/* =========================================================
   SamSiddhi Services — styles.css
   Direction: modern corporate, premium. Deep navy + brass accent,
   generous whitespace, one fluid type scale.
   ========================================================= */

:root {
  /* Colour */
  --ink: #0d1726;
  --ink-2: #1b2a40;
  --paper: #ffffff;
  --tint: #f5f3ee;
  --muted: #566173;
  --line: #e3e0d8;
  --accent: #b0843a;
  --accent-ink: #8a6425;
  --on-dark: #f2efe8;
  --on-dark-muted: #b8c0cc;

  /* One fluid type scale (ratio ≈1.25 → 1.333) */
  --step--1: clamp(0.83rem, 0.81rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.5rem);
  --step-2: clamp(1.44rem, 1.3rem + 0.7vw, 2rem);
  --step-3: clamp(1.73rem, 1.45rem + 1.4vw, 2.67rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 4.2rem);

  /* Space */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  --radius: 14px;
  --max: 1200px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 var(--step-0)/1.65 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 76px; /* room for mobile contact dock */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.5rem;
  font: 600 var(--step--1)/1 var(--font-body); letter-spacing: .02em;
  text-decoration: none; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 40px; padding: .6rem 1.1rem; }
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { max-width: 1440px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { font: 700 1rem/1 var(--font-head); letter-spacing: .14em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; }
.site-nav a:not(.btn) { font-size: var(--step--1); font-weight: 500; text-decoration: none; color: var(--muted); white-space: nowrap; transition: color .2s; }
.site-nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 1480px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: absolute; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: var(--step-0); }
  .site-nav .btn { margin-top: 1rem; }
  .no-js .site-nav { position: static; display: flex; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, #1b2a40 0%, #0d1726 70%); position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,23,38,.25) 0%, rgba(13,23,38,.55) 45%, rgba(13,23,38,.92) 100%); }
.hero__content { position: relative; padding-block: clamp(6rem, 12vw, 9rem) clamp(3rem, 7vw, 6rem); }
.hero__title { font-size: var(--step-4); font-weight: 700; max-width: 16ch; margin-bottom: 1.25rem; }
.hero__lede { font-size: var(--step-1); font-weight: 500; max-width: 38ch; color: #fff; }
.hero__body { max-width: 60ch; color: var(--on-dark-muted); margin-bottom: 2rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .section__intro { color: var(--on-dark); }
.section__title { font-size: var(--step-3); font-weight: 600; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); max-width: 22ch; }
.section__intro { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.section__kicker { font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .75rem; }
.section--dark .section__kicker, .careers .section__kicker { color: #d9b36f; }
.subhead { font-size: var(--step-2); font-weight: 600; margin: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; }

.two-col { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.2fr 1fr; align-items: start; } .two-col--cards { grid-template-columns: 1fr 1fr; } }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .cap-grid { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; } }
@media (min-width: 1024px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }
.cap { display: flex; gap: 1rem; align-items: baseline; padding: 1.35rem 0; border-bottom: 1px solid var(--line); transition: padding-left .25s var(--ease); }
.cap:hover { padding-left: .5rem; }
.cap__num { font: 600 var(--step--1)/1 var(--font-head); color: var(--accent); }
.cap__name { font: 500 var(--step-1)/1.3 var(--font-head); }

/* Approach steps */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 2.5rem; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(6, 1fr); } }
.steps li {
  counter-increment: step; position: relative;
  padding: 1.25rem 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  font: 600 var(--step-1)/1.2 var(--font-head);
  transition: border-color .2s, background-color .2s;
}
.steps li::before { content: "0" counter(step); display: block; font-size: var(--step--1); color: #d9b36f; margin-bottom: .5rem; }
.steps li:hover { border-color: #d9b36f; background: rgba(255,255,255,.04); }

/* Cards */
.card-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--accent); box-shadow: 0 12px 30px -18px rgba(13,23,38,.35); transform: translateY(-2px); }
.card__title { font-size: var(--step-1); font-weight: 600; margin-bottom: .6rem; }
.card p:last-child { margin: 0; color: var(--muted); }
.tags { font-size: var(--step--1); font-weight: 500; color: var(--accent-ink); margin-bottom: .9rem; }

/* Profile */
.profile { display: grid; gap: 2rem; }
@media (min-width: 900px) { .profile { grid-template-columns: 1fr 1.4fr; gap: 4rem; } }
.profile__name { font-size: var(--step-3); font-weight: 600; }
.profile__role { color: var(--accent-ink); font-weight: 600; margin: .5rem 0 1.5rem; }
.profile__motto { font: 500 var(--step-1)/1.45 var(--font-head); padding-left: 1rem; border-left: 3px solid var(--accent); }
.profile__body p { color: var(--ink-2); }

.philosophy { display: grid; gap: 1rem; margin: 0; }
@media (min-width: 700px) { .philosophy { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .philosophy { grid-template-columns: repeat(5, 1fr); } }
.philosophy > div { background: #fff; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); }
.philosophy dt { font: 600 var(--step-0)/1.3 var(--font-head); margin-bottom: .5rem; }
.philosophy dd { margin: 0; color: var(--muted); font-size: var(--step--1); }

/* Solutions */
.solutions { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .solutions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .solutions { grid-template-columns: repeat(3, 1fr); } }
.solution { padding: 2rem 1.75rem; border-radius: var(--radius); background: var(--tint); transition: background-color .25s var(--ease); }
.solution:hover { background: #efebe2; }
.solution__title { font-size: var(--step-1); font-weight: 600; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 2px solid var(--accent); }
.solution li { padding: .45rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.solution li:last-child { border-bottom: 0; }

/* Industries */
.chips { display: flex; flex-wrap: wrap; gap: .75rem; }
.chips li {
  padding: .75rem 1.25rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
  font-weight: 500; transition: background-color .2s, color .2s, border-color .2s;
}
.chips li:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

/* Projects */
.list-grid { display: grid; gap: 0 3rem; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .list-grid { grid-template-columns: repeat(2, 1fr); } }
.list-item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.list-item h3 { font-size: var(--step-1); font-weight: 600; margin-bottom: .4rem; }
.list-item p { margin: 0; color: var(--muted); }
.list-item p::first-letter { text-transform: uppercase; }

/* Why */
.why-grid { display: grid; gap: 2rem 3rem; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why h3 { font-size: var(--step-1); font-weight: 600; margin-bottom: .5rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.why p { margin: 0; color: var(--muted); }

/* Partnerships split */
.split { display: grid; padding-block: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; min-height: 560px; } }
.split__media { background: linear-gradient(150deg, #e9e4d8 0%, #d8cfbb 100%); min-height: 280px; }
.split__media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.split__text { padding: var(--section) var(--gutter); align-self: center; max-width: 620px; }
.split__text p { color: var(--ink-2); margin-bottom: 2rem; }

/* Social impact */
.impact-wrap { max-width: 760px; }
.impact { padding: 2rem; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); }
.impact h3 { font-size: var(--step-2); font-weight: 600; margin-bottom: 1rem; }
.impact p { margin: 0; color: var(--on-dark-muted); }

/* Careers */
.careers { background: linear-gradient(120deg, #0d1726 0%, #1b2a40 100%); position: relative; color: #fff; overflow: hidden; }
.careers__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.careers__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,23,38,.92) 0%, rgba(13,23,38,.7) 55%, rgba(13,23,38,.35) 100%); }
.careers__content { position: relative; padding-block: var(--section); }
.careers__content p:not(.section__kicker) { max-width: 56ch; color: var(--on-dark); margin-bottom: 2rem; }

/* Contact */
.contact { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.3fr; gap: 5rem; } }
.contact__intro p { color: var(--ink-2); }
.contact__meta { margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.contact__meta dt { font-size: var(--step--1); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact__meta dd { margin: .25rem 0 0; font-weight: 500; }
.contact__meta a { text-decoration-color: var(--accent); text-underline-offset: 3px; }

.form { display: grid; gap: 1.1rem 1.25rem; background: var(--tint); padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: var(--radius); }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c9c4b8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(176,132,58,.2); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.form__status { margin: .75rem 0 0; font-size: var(--step--1); color: var(--muted); min-height: 1.2em; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 3.5rem 0 2rem; }
.site-footer__inner { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (min-width: 800px) { .site-footer__inner { grid-template-columns: 1fr auto; align-items: end; } }
.brand--footer { color: #fff; margin-bottom: .75rem; }
.site-footer__tag { font-size: var(--step--1); margin: 0; max-width: 60ch; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer__links a { font-size: var(--step--1); text-decoration: none; transition: color .2s; }
.site-footer__links a:hover { color: #fff; }
.site-footer__copy { font-size: var(--step--1); margin: 1.5rem 0 0; }

/* ---------- Persistent contact dock ---------- */
.cta-dock {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); box-shadow: 0 -6px 20px -10px rgba(13,23,38,.3);
  padding-bottom: env(safe-area-inset-bottom);
}
.cta-dock__btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 60px; font-weight: 600; text-decoration: none; transition: filter .2s;
}
.cta-dock__btn svg { width: 20px; height: 20px; fill: currentColor; }
.cta-dock__btn--call { background: var(--ink); color: #fff; }
.cta-dock__btn--wa { background: #1f7a4d; color: #fff; }
.cta-dock__btn:hover { filter: brightness(1.12); }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .cta-dock {
    left: auto; right: 24px; bottom: 24px; grid-template-columns: none; gap: .6rem;
    background: none; box-shadow: none; padding: 0;
  }
  .cta-dock__btn {
    min-height: 52px; padding: 0 1.25rem; border-radius: 999px;
    box-shadow: 0 10px 24px -12px rgba(13,23,38,.55);
    transition: transform .2s var(--ease), filter .2s;
  }
  .cta-dock__btn:hover { transform: translateY(-2px); }
}

/* ---------- Scroll reveal (subtle) ---------- */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal--pending { opacity: 0; transform: translateY(14px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal--pending { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Spam honeypot ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.site-footer__contact { font-size: var(--step--1); margin: .75rem 0 0; }
.site-footer__contact a { text-decoration: none; }
.site-footer__contact a:hover { color: #fff; }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--ink); color: var(--on-dark); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.legal-hero h1 { font-size: var(--step-4); font-weight: 700; text-wrap: balance; }
.legal-hero p { color: var(--on-dark-muted); margin: 1rem 0 0; }
.legal { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.legal__body { max-width: 72ch; }
.legal__body h2 { font-size: var(--step-2); font-weight: 600; margin: 2.75rem 0 1rem; text-wrap: balance; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: var(--step-1); font-weight: 600; margin: 1.75rem 0 .75rem; }
.legal__body p, .legal__body li { color: var(--ink-2); }
.legal__body ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 1em; display: grid; gap: .4rem; }
.legal__body a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal__contact { background: var(--tint); border-radius: var(--radius); padding: 1.5rem; margin-top: 1rem; }
.legal__contact p:last-child { margin: 0; }
.back-link { font-size: var(--step--1); font-weight: 600; text-decoration: none; color: var(--muted); }
.back-link:hover { color: var(--ink); }
