/* ============================================================
   ATHARVA BADHE — SHARED DESIGN SYSTEM
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=gambetta@400,500,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&display=swap');

/* ── CSS Variables — Dark (default) ───────────────────────── */
:root {
  --bg:          #08100f;
  --bg-2:        #0c1614;
  --bg-3:        #111f1d;
  --surface:     #0f1e1c;
  --border:      rgba(1, 77, 78, 0.28);
  --border-warm: rgba(128, 77, 54, 0.22);

  --teal:        #014d4e;
  --teal-light:  #026b6d;
  --teal-glow:   rgba(1, 77, 78, 0.18);
  --copper:      #804d36;
  --amber:       #b97a3e;
  --amber-light: #d4955a;

  --text:        #f0ece4;
  --text-2:      #b8b2a8;
  --text-3:      #6e6962;
  --text-teal:   #4ab5b7;

  --radius:      4px;
  --radius-lg:   10px;

  --font-head:   'Gambetta', serif;
  --font-body:   'Montserrat', sans-serif;

  --nav-h:       72px;
  --max-w:       1200px;
  --section-v:   120px;
}

/* ── CSS Variables — Light mode ───────────────────────────── */
html.light {
  --bg:          #f5f2ed;
  --bg-2:        #edeae4;
  --bg-3:        #e4e0d9;
  --surface:     #ffffff;
  --border:      rgba(1, 77, 78, 0.18);
  --border-warm: rgba(128, 77, 54, 0.18);

  --teal:        #014d4e;
  --teal-light:  #026b6d;
  --teal-glow:   rgba(1, 77, 78, 0.1);
  --copper:      #804d36;
  --amber:       #b97a3e;
  --amber-light: #d4955a;

  --text:        #0f1a18;
  --text-2:      #3d4a48;
  --text-3:      #7a8886;
  --text-teal:   #015f60;
}

/* Light mode — noise overlay lighter */
html.light body::before { opacity: 0.012; }

/* Light mode — nav scrolled bg */
html.light .nav.scrolled {
  background: rgba(245, 242, 237, 0.94);
  border-color: var(--border);
}

/* Light mode — footer */
html.light .footer { background: var(--bg-2); }

/* Light mode — surface cards need shadow instead of dark bg */
html.light .card,
html.light .svc-card,
html.light .blog-card,
html.light .stat-cell,
html.light .value-card,
html.light .deliv-card,
html.light .sidebar-card,
html.light .form-card,
html.light .fit-card,
html.light .cal-placeholder,
html.light .about-photo-caption,
html.light .pain-card,
html.light .included-card,
html.light .solution-visual,
html.light .case-visual,
html.light .hero-visual,
html.light .dash-mock,
html.light .ml-mock,
html.light .cta-banner,
html.light .svc-bottom-cta,
html.light .cta-section .cta-inner,
html.light .post-featured,
html.light .post-item,
html.light .post-list {
  box-shadow: 0 1px 4px rgba(1,77,78,0.08), 0 4px 16px rgba(1,77,78,0.05);
}

/* Light mode — hero photo tag, stat floater */
html.light .hero__photo-tag,
html.light .hero__photo-stat {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(1,77,78,0.1);
}

/* ── Theme Toggle Button ──────────────────────────────────── */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--teal-light);
  color: var(--text-teal);
  transform: rotate(20deg);
}
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
html.light .theme-toggle .icon-moon { display: none; }
html.light .theme-toggle .icon-sun  { display: block; }

/* ── Smooth theme transition ──────────────────────────────── */
html { transition: background 0.25s, color 0.25s; }
body, .nav, .footer, .card, .svc-card, .blog-card, .stat-cell,
.surface, [class*="card"], [class*="mock"], [class*="visual"] {
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Typography Scale ───────────────────────────────────────── */
.t-display {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.03em;
}
.t-h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.t-h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.t-h3 {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
}
.t-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-teal);
}
.t-body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-2);
}
.t-body-lg {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-2);
}

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.section {
  padding: var(--section-v) 0;
}
.section--sm {
  padding: 64px 0;
}

/* ── Noise Overlay ──────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 16, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__logo img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  filter: brightness(1.1);
}
.nav__logo-text {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--amber);
  transition: width 0.25s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.active { color: var(--text); }
.nav__links a.active::after { width: 100%; background: var(--teal-light); }
.nav__cta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 22px;
  border: 1px solid var(--teal-light);
  color: var(--text-teal);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.nav__cta:hover {
  background: var(--teal);
  color: var(--text);
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--text);
  border: 1px solid var(--teal-light);
}
.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(1, 77, 78, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--amber);
  transform: translateY(-1px);
}
.btn-amber {
  background: var(--amber);
  color: var(--bg);
  border: 1px solid var(--amber-light);
}
.btn-amber:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(185, 122, 62, 0.35);
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  border-color: var(--teal-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(1, 77, 78, 0.15);
}

/* ── Section Label + Heading pattern ───────────────────────── */
.section-intro { margin-bottom: 64px; }
.section-intro .t-label { margin-bottom: 16px; }

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  width: 48px; height: 2px;
  background: var(--amber);
  margin: 24px 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
  background: var(--bg-2);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer__brand {}
.footer__brand img {
  height: 40px;
  margin-bottom: 16px;
  filter: brightness(1.1);
}
.footer__tagline {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 260px;
}
.footer__col-title {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text-teal); }
.footer__bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding: 24px 40px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__copy {
  font-size: 0.8rem;
  color: var(--text-3);
}
.footer__socials {
  display: flex;
  gap: 16px;
}
.footer__socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: border-color 0.2s, color 0.2s;
}
.footer__socials a:hover {
  border-color: var(--teal-light);
  color: var(--text-teal);
}

/* ── Accent line decoration ─────────────────────────────────── */
.accent-line {
  display: inline-block;
  position: relative;
}
.accent-line::after {
  content: '';
  position: absolute;
  bottom: 0.05em; left: 0; right: 0;
  height: 0.08em;
  background: var(--amber);
  z-index: -1;
  opacity: 0.7;
}

/* ── Stat block ─────────────────────────────────────────────── */
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text-teal);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ── Tag / Badge ────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(1, 77, 78, 0.18);
  border: 1px solid var(--border);
  color: var(--text-teal);
}

/* ── FAQ Section ────────────────────────────────────────────── */
.faq-section { background: var(--bg-2); }

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.faq-header {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.faq-header .t-label { margin-bottom: 16px; }

.faq-divider {
  width: 48px;
    height: 2px;
    background: var(--amber);
    margin: 24px 0;
}

.faq-title {
 font-family: var(--font-head);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.faq-title span { color: var(--text-teal); }

.faq-subtitle {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Accordion container */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Individual item */
.faq-item {
  background: var(--surface);
  transition: background 0.2s;
}

.faq-item.is-open { background: var(--bg-3); }

/* Trigger button */
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: -2px;
}

/* Question text */
.faq-q {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  transition: color 0.2s;
}

.faq-trigger:hover .faq-q,
.faq-item.is-open .faq-q { color: var(--text-teal); }

/* Chevron icon */
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: border-color 0.2s, color 0.2s, transform 0.32s ease;
}

.faq-trigger:hover .faq-icon { border-color: var(--teal-light); color: var(--text-teal); }
.faq-item.is-open .faq-icon { border-color: var(--teal-light); color: var(--text-teal); transform: rotate(180deg); }

/* Answer — grid-rows trick for smooth collapse without JS height calc */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }

.faq-answer__inner { overflow: hidden; }

.faq-a {
  margin: 0 28px 24px 48px;
  padding-left: 20px;
  border-left: 2px solid var(--amber);
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* Light mode — add subtle shadow to FAQ items */
html.light .faq-item {
  box-shadow: 0 1px 4px rgba(1,77,78,0.06);
}

@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-header { position: static; }
}

@media (max-width: 600px) {
  .faq-trigger { padding: 18px 20px; }
  .faq-a { margin-left: 20px; }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-v: 80px; }
  .container { padding: 0 24px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; }
}
