/* ==============================================
   (SB) Kamdhenu DGCDA — Shared Design System
   Structured after tech2software design pattern
   ============================================== */

:root {
  --primary:       #1a6b3c;
  --primary-dark:  #0f4a29;
  --primary-light: #e8f5ee;
  --accent:        #c89a2a;
  --accent2:       #f5c842;
  --red:           #c0392b;
  --red2:          #e74c3c;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --bg:            #ffffff;
  --bg-light:      #f0f7f3;
  --cream:         #fdf9f3;
  --dark:          #1a1a1a;
  --mid:           #555555;
  --border:        #e2e8f0;
  --shadow-sm:     0 2px 8px rgba(26,107,60,0.08);
  --shadow-md:     0 8px 32px rgba(26,107,60,0.14);
  --shadow-lg:     0 20px 60px rgba(26,107,60,0.18);
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scrollbar-gutter: stable; overflow-x: hidden; }
body {
  font-family: 'Inter', 'Poppins', 'Segoe UI', Roboto, sans-serif;
  color: var(--text); background: var(--bg);
  line-height: 1.6; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm   { max-width: 960px;  margin: 0 auto; padding: 0 24px; }
.section-pad    { padding: 80px 0; }
.bg-light       { background: var(--bg-light); }
.bg-cream       { background: var(--cream); }

/* ===== HIGHLIGHT ===== */
.highlight {
  background: linear-gradient(135deg, var(--primary), #2d8a55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SECTION HEADER — NEW PATTERN ===== */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-tag {
  display: inline-block;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.73rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 12px;
}
.section-header h2 {
  font-family: 'Playfair Display', 'Inter', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900; line-height: 1.2; margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); font-size: 1rem; }

/* ===== SECTION HEADER — LEGACY PATTERN ===== */
.sec-label {
  display: inline-block; color: var(--accent);
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px;
}
.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  color: var(--dark); line-height: 1.25; margin-bottom: 14px;
}
.sec-sub   { color: var(--mid); font-size: 0.95rem; line-height: 1.8; max-width: 620px; }
.sec-hdr   { margin-bottom: 54px; }
.sec-hdr.center { text-align: center; }
.sec-hdr.center .sec-sub { margin: 0 auto; }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999; transition: width 0.1s linear;
}

/* ===== MARQUEE BAR ===== */
.marquee-bar {
  background: var(--red); color: #fff;
  padding: 9px 0; font-size: 0.82rem; font-weight: 600; overflow: hidden;
}
.marquee-inner { display: flex; white-space: nowrap; animation: marquee 28s linear infinite; }
.marquee-inner span { padding-right: 80px; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 9000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1200px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img-nav {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--primary-light); flex-shrink: 0;
}
.logo-text .brand {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 900; color: var(--primary); display: block;
}
.logo-text .sub-text {
  font-size: 0.62rem; color: var(--text-muted);
  font-weight: 500; letter-spacing: 0.05em; display: block;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text); font-weight: 600; font-size: 0.85rem;
  padding: 8px 13px; border-radius: 8px; transition: var(--transition); white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-light); }
.btn-nav {
  background: var(--primary) !important; color: #fff !important;
  border-radius: 50px !important; padding: 9px 20px !important;
  box-shadow: 0 4px 14px rgba(26,107,60,.3);
}
.btn-nav:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }

.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px; flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--primary); border-radius: 2px; transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 8998;
}
.nav-overlay.active { display: block; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; padding: 13px 30px; border-radius: 50px;
  font-family: inherit; font-size: 0.92rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 20px rgba(26,107,60,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,107,60,0.4); }
.btn-full { width: 100%; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--primary); color: var(--primary);
  background: transparent; padding: 11px 26px; border-radius: 50px;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-hero-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #2a1500; padding: 14px 32px; border-radius: 40px;
  font-weight: 800; font-size: 0.9rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 24px rgba(200,154,42,.45);
  transition: var(--transition); border: none; cursor: pointer;
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(200,154,42,.55); }

.btn-hero-outline {
  border: 2px solid rgba(255,255,255,.6); color: #fff;
  padding: 12px 28px; border-radius: 40px; text-decoration: none;
  font-weight: 600; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition); cursor: pointer;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-excel {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #1a5276, #2e86c1);
  color: #fff; border: none; padding: 12px 26px; border-radius: 50px;
  font-family: inherit; font-size: 0.87rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 16px rgba(26,82,118,0.3);
}
.btn-excel:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26,82,118,0.4); }

.btn-submit {
  width: 100%; background: linear-gradient(135deg, var(--primary), #2d8a55);
  color: #fff; border: none; padding: 14px; border-radius: 50px;
  font-family: inherit; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,107,60,.35); }

/* ===== SHARED FORM ELEMENTS ===== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { margin-bottom: 18px; }
.fg label {
  display: block; font-size: 0.72rem; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
  letter-spacing: 0.05em; text-transform: uppercase;
  display: flex; align-items: center; gap: 5px;
}
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 11px 16px; border: 2px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 0.88rem;
  color: var(--text); background: var(--bg); outline: none; transition: .25s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,107,60,.09);
}
.fg input.error, .fg select.error, .fg textarea.error { border-color: var(--red); }
.fg textarea { min-height: 90px; resize: vertical; }
.fg .helper { font-size: 0.68rem; color: var(--text-muted); margin-top: 5px; }
.success {
  display: none; background: #d4edda; color: #155724;
  padding: 13px; border-radius: 10px; text-align: center;
  font-weight: 600; margin-top: 10px; font-size: 0.88rem;
}
.success.show { display: block; }

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, #071e0e, #0f3620);
  color: rgba(255,255,255,0.75); padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: 44px; padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-text .brand { color: #fff; font-size: 1rem; }
.footer-brand .logo-text .sub-text { color: rgba(255,255,255,0.5); }
.footer-brand p { color: rgba(255,255,255,.62); font-size: 0.82rem; line-height: 1.8; margin: 14px 0 20px; }
.footer-social { display: flex; gap: 9px; }
.fsoc {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: var(--transition); font-size: 0.88rem;
}
.fsoc:hover { background: var(--accent); }
.fc h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.92rem; color: var(--accent2);
  margin-bottom: 14px; padding-bottom: 9px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.flinks { display: flex; flex-direction: column; gap: 9px; }
.flinks a {
  color: rgba(255,255,255,.65); font-size: 0.82rem;
  display: flex; align-items: center; gap: 7px; transition: 0.2s;
}
.flinks a:hover { color: var(--accent2); }
.flinks a i { font-size: 0.55rem; color: var(--accent); }
.fcontact-list { display: flex; flex-direction: column; gap: 13px; }
.fci { display: flex; gap: 11px; align-items: flex-start; }
.fci i { color: var(--accent); font-size: 0.82rem; margin-top: 3px; flex-shrink: 0; }
.fci span { color: rgba(255,255,255,.65); font-size: 0.78rem; line-height: 1.6; }
.footer-bottom {
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { color: rgba(255,255,255,.45); font-size: 0.75rem; }
.footer-bottom a { color: var(--accent); }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed; bottom: 80px; right: 24px;
  width: 52px; height: 52px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 900; transition: var(--transition);
  animation: waFloat 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(37,211,102,.5); }
@keyframes waFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* ===== BACK TO TOP ===== */
.back-to-top, .scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(20px);
  transition: var(--transition); z-index: 900;
}
.back-to-top.visible, .scroll-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover, .scroll-top:hover { background: var(--primary-dark); }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s, transform 0.7s;
}
.reveal.visible { opacity: 1; transform: none; }
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 960px) {
  .navbar { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 9000; }
  .nav-inner { min-height: 73px; }
  body { padding-top: 73px; }
  .hamburger { display: flex; }

  /* Full-width dropdown — drops below navbar, height = content, always white */
  .nav-links {
    display: none;
    position: fixed;
    top: 73px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 10px 20px 18px;
    z-index: 8999;
    gap: 2px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    border-top: 2px solid var(--primary-light);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 11px 16px;
    width: 100%;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid var(--bg-light);
  }
  .nav-links a:last-of-type { border-bottom: none; }
  .btn-nav {
    margin-top: 8px !important;
    justify-content: center;
    border-bottom: none !important;
  }
}
@media (max-width: 640px) {
  .section-pad { padding: 55px 0; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
