/* Mehta & Mehta — DPDP Advisory site */

:root {
  --navy-900: #0c5528;
  --navy-800: #1f6339;
  --navy-700: #3d7753;
  --navy-600: #619173;
  --gold-600: #661818;
  --gold-500: #7c1d1d;
  --gold-100: #ebdddd;
  --cream: #f1f6f1;
  --ink: #24262a;
  --gray-700: #4a4c50;
  --gray-600: #6b6d70;
  --gray-400: #9a9c9f;
  --gray-300: #dcdcda;
  --gray-100: #f2f1ef;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(12, 85, 40, 0.08);
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .container, .page-hero .container, .tab-panel.active { animation: none; }
  .btn:hover, .card:hover, .pillar:hover { transform: none; }
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--gray-700); }
a { color: var(--navy-700); text-decoration: none; }
ul { padding-left: 1.2em; color: var(--gray-700); }
li { margin-bottom: 0.5em; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.6em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand .name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--navy-900);
}

.brand .sub {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--gold-600);
  font-weight: 600;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy-900);
  border-bottom-color: var(--gold-500);
}

.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}
.dropdown-toggle {
  background: none;
  border: none;
  padding: 6px 2px;
  cursor: pointer;
  color: var(--gray-600);
  display: flex;
  align-items: center;
}
.dropdown-toggle svg { width: 13px; height: 13px; transition: transform 0.15s ease; }
.nav-item-dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 14px;
  min-width: 300px;
  z-index: 150;
}
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu-inner {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
}
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: none;
}
.dropdown-menu a:hover { background: var(--gray-100); color: var(--navy-900); }

@media (max-width: 680px) {
  .nav-item-dropdown { flex-direction: column; align-items: flex-start; width: 100%; }
  .dropdown-menu {
    display: none;
    position: static;
    padding-top: 0;
    min-width: 0;
    width: 100%;
  }
  .dropdown-menu-inner {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 4px 0 0 8px;
  }
  .nav-item-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 8px 12px; font-size: 0.85rem; }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--navy-900);
}
.nav-cta svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-cta:hover { color: var(--gold-600); border-bottom-color: transparent; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold-500);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold-600); color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-900);
}
.btn-outline:hover { background: var(--navy-700); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--navy-900);
}
.btn-light:hover { background: var(--gold-100); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--gray-100), var(--white));
  border-bottom: 1px solid var(--gray-300);
  padding: 90px 0 70px;
}
.hero .container { max-width: 900px; animation: fadeInUp 0.7s ease both; }
.hero h1 { color: var(--navy-900); }
.hero p.lead {
  color: var(--gray-700);
  font-size: 1.1rem;
  max-width: 720px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.page-hero {
  background: linear-gradient(160deg, var(--gray-100), var(--white));
  border-bottom: 1px solid var(--gray-300);
  padding: 64px 0;
}
.page-hero h1 { color: var(--navy-900); }
.page-hero p { color: var(--gray-700); max-width: 680px; }
.page-hero .container { animation: fadeInUp 0.7s ease both; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 18px;
}
.back-link svg { width: 14px; height: 14px; }
.back-link:hover { color: var(--navy-900); }

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-300);
  border: 1px solid var(--gray-300);
  margin-top: -1px;
}
.stat-strip .stat {
  background: var(--white);
  color: var(--navy-900);
  padding: 26px 20px;
  text-align: center;
}
.stat-strip .stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-600);
  display: block;
}
.stat-strip .stat .label {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 4px;
}

section { padding: 64px 0; }
.section-alt { background: var(--gray-100); }

.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Grids and cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.card-gold {
  border-top: 3px solid var(--gold-500);
}

.icon-num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--gold-600);
  font-size: 1.4rem;
  margin-bottom: 10px;
  display: block;
}

.callout {
  background: var(--gold-100);
  border-left: 4px solid var(--gold-500);
  padding: 24px 28px;
  border-radius: var(--radius);
}
.callout h4 { margin-top: 0; }
.callout ul { margin: 0; }

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.timeline .step {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-top: 3px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 22px;
}
.timeline .step .date {
  font-weight: 700;
  color: var(--navy-900);
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
}
.timeline .step .desc { font-size: 0.88rem; color: var(--gray-600); margin-top: 6px; }
.timeline .step.penalty { border-top-color: var(--gold-500); }
.timeline .step.penalty .date { color: var(--gold-600); }

/* Countdown */
.countdown {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.countdown .unit {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 14px 18px;
  min-width: 84px;
  text-align: center;
}
.countdown .unit .val {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-600);
  display: block;
}
.countdown .unit .lbl {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* Section banner (brochure-style) */
.section-banner {
  background: var(--gray-100);
  border-left: 4px solid var(--navy-900);
  padding: 26px 32px;
  border-radius: var(--radius);
  margin-bottom: 30px;
}
.section-banner .eyebrow { color: var(--gold-600); }
.section-banner h2 { color: var(--navy-900); margin: 0; }

.deliverables {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.deliverables h4 { color: var(--navy-900); margin-top: 0; }
.deliverables ul { columns: 2; column-gap: 40px; color: var(--gray-700); }
.deliverables li { break-inside: avoid; }

/* Tabs — folder / book-page style */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: flex-end;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  position: relative;
  top: 3px;
}
.tab-btn .tab-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-700);
  transition: background 0.15s ease, color 0.15s ease;
}
.tab-btn .tab-icon svg { width: 14px; height: 14px; }
.tab-btn:hover { color: var(--navy-900); }
.tab-btn.active {
  background: var(--white);
  color: var(--navy-900);
  top: 0;
  z-index: 2;
  box-shadow: 0 -6px 14px rgba(12, 85, 40, 0.06);
}
.tab-btn.active .tab-icon { background: var(--gold-500); color: var(--white); }

.tab-book {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 0 10px 10px 10px;
  padding: 36px;
}

.tab-panel { display: none; max-width: 640px; }
.tab-panel.active { display: block; animation: pageIn 0.35s ease both; }
.tab-panel-head { margin-bottom: 20px; }
.tab-panel-head .s-desc { color: var(--gray-600); font-size: 0.95rem; margin-top: 4px; }
.tab-panel ul { margin-bottom: 24px; }
.tab-panel li { margin-bottom: 8px; }

@keyframes pageIn {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

/* FAQ */
.faq-list { border-top: 1px solid var(--gray-300); max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--gray-300); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-weight: 700;
  color: var(--navy-900);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  font-size: 1.4rem;
  color: var(--gold-600);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 4px 22px; color: var(--gray-700); max-width: 680px; }
.faq-item[open] .faq-answer { animation: fadeInUp 0.3s ease both; }

.accordion-sub { margin-bottom: 24px; }
.accordion-sub:last-child { margin-bottom: 0; }
.accordion-sub h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 8px;
}
.accordion-sub .kicker { font-style: italic; color: var(--gray-600); font-size: 0.88rem; margin-bottom: 8px; }

/* Table */
table.penalty-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
table.penalty-table th, table.penalty-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--gray-300);
}
table.penalty-table th {
  background: var(--gray-100);
  color: var(--navy-900);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--navy-900);
}
table.penalty-table td:first-child {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--gold-600);
  white-space: nowrap;
}
table.penalty-table tr:nth-child(even) td { background: var(--gray-100); }

/* Phase cards */
.phase-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--gray-300);
  align-items: start;
}
.phase-card:last-child { border-bottom: none; }
.phase-card .phase-label {
  color: var(--gold-600);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.phase-card h3 { margin-top: 4px; }

/* Service tags */
.tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.tag-assessment { background: #eaf1f8; color: #1f4e79; }
.tag-assessment::before { background: #1f4e79; }
.tag-implementation { background: var(--gold-100); color: var(--gold-600); }
.tag-implementation::before { background: var(--gold-600); }
.tag-advisory { background: var(--gray-100); color: var(--navy-800); }
.tag-advisory::before { background: var(--navy-800); }
.tag-retainer { background: #f4eaf2; color: #7a3970; }
.tag-retainer::before { background: #7a3970; }

/* Stage / fit-finder cards */
.stage-card { display: flex; flex-direction: column; }
.stage-card .stage-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 10px;
}
.stage-card h4 { font-size: 1rem; line-height: 1.35; margin-bottom: 8px; }
.stage-card p { font-size: 0.86rem; margin-bottom: 14px; flex-grow: 1; }
.stage-card a { font-size: 0.82rem; font-weight: 600; color: var(--gold-600); }
.stage-card a:hover { color: var(--gold-500); }

/* Service line rows */
.service-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  padding: 40px 0;
  border-top: 1px solid var(--gray-300);
  scroll-margin-top: 90px;
}
.service-row:last-child { padding-bottom: 0; }
.service-row .idx {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-600);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.service-row h3 { font-size: 1.35rem; line-height: 1.28; margin: 10px 0 0; }
.service-row .summary { max-width: 560px; }

.dash-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.dash-list li { padding-left: 18px; position: relative; font-size: 0.9rem; margin-bottom: 0; }
.dash-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1.5px;
  background: var(--gold-600);
}

@media (max-width: 820px) {
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .dash-list { grid-template-columns: 1fr; }
}

/* CTA band */
.cta-band {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
  text-align: center;
  padding: 60px 0;
}
.cta-band h2 { color: var(--navy-900); }
.cta-band p { color: var(--gray-700); }
.cta-band .hero-actions { justify-content: center; }

.gold-band {
  background: var(--navy-900);
  color: var(--white);
  text-align: center;
  padding: 14px 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Footer */
.site-footer {
  background: var(--white);
  color: var(--gray-700);
  border-top: 1px solid var(--gray-300);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 { color: var(--navy-900); font-family: 'Inter', sans-serif; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: var(--gray-700); }
.site-footer a:hover { color: var(--gold-600); }
.site-footer .brand .name { color: var(--navy-900); }
.site-footer p { color: var(--gray-600); font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid var(--gray-300);
  padding-top: 20px;
  font-size: 0.78rem;
  color: var(--gray-600);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card dt { font-weight: 700; color: var(--navy-900); margin-top: 18px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-info-card dd { margin: 4px 0 0; color: var(--gray-700); }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-field textarea { min-height: 120px; resize: vertical; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar { padding: 24px 0; border-top: 3px solid var(--gold-500); transition: transform 0.2s ease; }
.pillar:hover { transform: translateY(-4px); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .contact-grid, .pillars { grid-template-columns: 1fr; }
  .deliverables ul { columns: 1; }
}

@media (max-width: 680px) {
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; overflow-y: auto; transform: translateX(100%); transition: transform 0.2s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .timeline, .stat-strip { grid-template-columns: 1fr; }
  .phase-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
