/* =========================================================
   Kolluru & Srinivasan — Design System
   Direction: "digital architecture" — drafting-paper surfaces,
   blueprint-blue ink, soft drafted edges instead of hard blueprint
   corners. Comfortable, not corporate; precise, not cold.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Sora:wght@400;500;600;700&display=swap');

:root {
  /* ---- Color tokens (light / "day drafting table") ---- */
  --bg: #EEF1EF;              /* cool vellum paper, not warm cream */
  --bg-alt: #FFFFFF;          /* card surfaces */
  --bg-raised: #F6F8F7;       /* subtle raised panels */
  --text: #1F2A2E;            /* soft ink, not pure black */
  --text-muted: #5B6B6E;
  --primary: #3D5A80;         /* blueprint blue */
  --primary-strong: #2C4360;
  --primary-tint: rgba(61, 90, 128, 0.10);
  --accent: #C17F5D;          /* warm clay — used sparingly */
  --accent-tint: rgba(193, 127, 93, 0.14);
  --line: rgba(31, 42, 46, 0.12);
  --line-soft: rgba(31, 42, 46, 0.07);
  --shadow: 0 10px 28px rgba(31, 42, 46, 0.09);
  --shadow-lift: 0 16px 40px rgba(31, 42, 46, 0.14);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --header-bg: #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #1A2027;
  --bg-alt: #232B34;
  --bg-raised: #202730;
  --text: #ECEFEC;
  --text-muted: #9FB0B5;
  --primary: #8FB4D9;
  --primary-strong: #B7D0E8;
  --primary-tint: rgba(143, 180, 217, 0.14);
  --accent: #E3A17F;
  --accent-tint: rgba(227, 161, 127, 0.16);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.06);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 18px 44px rgba(0, 0, 0, 0.45);
  --header-bg: #1A2027;
  color-scheme: dark;
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .45s ease, color .45s ease, opacity .3s ease;
}
body.theme-fade { opacity: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--text-muted); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
  display: inline-block;
}

/* =========================================================
   Header — logo centered, nav + settings to its right
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .45s ease, border-color .45s ease;
}
.header-inner {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.header-start { display: flex; align-items: center; }
.brand {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.brand img { height: 40px; width: auto; }
.brand-fallback-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  white-space: nowrap;
}

.header-end {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav ul { display: flex; gap: 1.9rem; }
.main-nav a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: .3rem 0;
  position: relative;
  transition: color .2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: right .25s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { right: 0; }
.main-nav a[aria-current="page"] { color: var(--primary); }

/* Settings */
.settings-wrap { position: relative; }
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { box-shadow: var(--shadow); border-color: var(--primary); color: var(--primary); }
.icon-btn:active { transform: scale(.9); }

.settings-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 250px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.settings-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.settings-row { display: flex; flex-direction: column; gap: .4rem; }
.settings-row label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lang-select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .55rem .7rem;
  background: var(--bg-raised);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
}

.theme-switch-row { display: flex; align-items: center; justify-content: space-between; }
.theme-switch {
  --w: 52px; --h: 28px;
  width: var(--w); height: var(--h);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  position: relative;
  cursor: pointer;
  transition: background-color .2s ease;
}
.theme-switch .thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: calc(var(--h) - 6px);
  height: calc(var(--h) - 6px);
  border-radius: 50%;
  background: var(--primary);
  display: grid; place-items: center;
  color: var(--bg-alt);
  transition: transform .28s cubic-bezier(.65,0,.35,1), background-color .2s ease;
}
.theme-switch .thumb svg { width: 13px; height: 13px; }
html[data-theme="dark"] .theme-switch .thumb { transform: translateX(24px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  place-items: center;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
}
.btn:hover { box-shadow: var(--shadow-lift); filter: brightness(1.06); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.96); box-shadow: none; }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }

.btn-outline-accent {
  --btn-bg: transparent;
  --btn-fg: var(--accent);
  border-color: var(--accent);
}
.btn-outline-accent:hover { background: var(--accent-tint); box-shadow: none; }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  color: var(--primary);
  padding: .2rem .1rem;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s ease, gap .2s ease, opacity .15s ease;
}
.link-cta:hover { border-color: var(--primary); gap: .55rem; }
.link-cta:active { opacity: .6; }

/* =========================================================
   Hero + signature drafting animation
   ========================================================= */
.hero {
  padding: 5.5rem 0 4.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
.hero-lede { font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.blueprint-frame {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.2rem;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 26px 26px;
}
.blueprint-frame svg { width: 100%; height: 100%; }
.draft-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.8s ease forwards;
  animation-delay: var(--d, 0s);
}
.draft-line.accent { stroke: var(--accent); }
.draft-dot {
  fill: var(--primary);
  opacity: 0;
  animation: dot-in .4s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot-in { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .draft-line { animation: none; stroke-dashoffset: 0; }
  .draft-dot { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Generic sections / cards
   ========================================================= */
.section { padding: 4.5rem 0; }
.section-head { max-width: 62ch; margin-bottom: 2.6rem; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.9rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--primary-tint);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.card .card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.card p { margin: 0; font-size: .95rem; }

.cta-band {
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: #fff;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: var(--primary-strong); }
.cta-band .btn:hover { filter: none; background: #F3F6FA; }

/* Process steps (real sequence -> numbered) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--primary);
  opacity: .55;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .93rem; margin: 0; }

/* Owners / people */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
.person-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  gap: 1.3rem;
}
.person-photo {
  flex: none;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  overflow: hidden;
}
.person-photo svg { width: 34px; height: 34px; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-name { font-size: 1.1rem; margin-bottom: .1rem; }
.person-role {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .6rem;
  display: block;
}
.person-contact { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
.person-contact a { color: var(--text-muted); transition: color .15s ease; }
.person-contact a:hover { color: var(--primary); }

.company-contact {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.4rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
}
.company-contact .brand-block { display: flex; align-items: center; gap: .8rem; }
.company-contact img { height: 34px; }

/* =========================================================
   Service Plans — article / heading-body style
   ========================================================= */
.plan-group { margin-bottom: 3.2rem; }
.plan-group > h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.plan-group > .group-note { max-width: 60ch; margin-bottom: 1.8rem; }
.plan-article {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.2rem;
}
.plan-article:last-child { padding-bottom: 0; }
.plan-heading h3 { font-size: 1.28rem; margin-bottom: .4rem; }
.plan-price {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent);
  font-size: .95rem;
}
.plan-body p { font-size: .98rem; }
.plan-installments {
  list-style: none;
  margin: 1rem 0 1.2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.plan-installments li {
  font-size: .9rem;
  color: var(--text-muted);
  display: flex;
  gap: .6rem;
}
.plan-installments b { color: var(--text); font-family: var(--font-display); }

/* =========================================================
   Our Clients
   ========================================================= */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.client-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.client-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.client-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--bg-raised);
  display: grid; place-items: center;
  overflow: hidden;
  flex: none;
}
.client-logo img { width: 100%; height: 100%; object-fit: contain; }
.client-name { font-weight: 700; font-size: .98rem; }
.client-service { font-size: .8rem; color: var(--text-muted); }

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 3.2rem 2rem;
  text-align: center;
  color: var(--text-muted);
}
.empty-state h3 { color: var(--text); margin-bottom: .4rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 2.6rem 0;
  margin-top: 3rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.footer-inner a:hover { color: var(--primary); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .card-grid, .steps, .people-grid, .clients-grid { grid-template-columns: 1fr; }
  .plan-article { grid-template-columns: 1fr; }
  .header-start { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
  .header-end { gap: 1rem; }
  .brand { grid-column: 1; justify-self: start; }
  .header-inner { grid-template-columns: 1fr auto; }
}

@media (max-width: 880px) {
  .mobile-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--bg);
    z-index: 90;
    padding: 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .mobile-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .mobile-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 1px solid var(--line-soft);
  }
}
@media (min-width: 881px) { .mobile-nav { display: none; } }

/* Focus visibility (accessibility floor) */
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
