/* Skanda Energy — Workspace style
   Colors + type aligned with the Skanda Workspace product. */
:root {
  --navy: #202A3A;            /* header, hero tint, contact band, primary text */
  --page: #F7F8FA;            /* page background */
  --card: #FFFFFF;
  --border: #E3E6EB;
  --input-border: #D5DAE1;
  --slate: #3C5577;           /* secondary accent, focus */
  --amber: #CD863F;           /* primary button fill (navy text on it) */
  --amber-hover: #BC7633;
  --amber-text: #A55A1C;      /* eyebrows on light backgrounds (contrast-safe) */
  --amber-light: #E9B27A;     /* eyebrows on navy */
  --muted: #5B6472;           /* body text on light */
  --muted-dark: #C9D0DA;      /* body text on navy */
  --label: #3B4453;
  --radius: 6px;
  --max: 1280px;
  --font: "Inter", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;     /* headings */
  --font-mono: "IBM Plex Mono", ui-monospace, monospace; /* eyebrows, data */
  --font-logo: "Inter Tight", "Inter", sans-serif;    /* company wordmark only */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font); color: var(--navy); background: var(--page); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: 40px; }

.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-text); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: var(--radius); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-hover); }
.btn-ghost { background: transparent; color: var(--page); border-color: rgba(247,248,250,.4); font-weight: 500; }
.btn-ghost:hover { background: rgba(247,248,250,.08); }
.btn-light { background: #fff; color: var(--navy); min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--input-border); font-weight: 500; font-size: 14px; min-height: 44px; padding: 0 18px; }

/* Wordmark (company logo — lowercase, NOT the spaced-caps product style) */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 24px; height: 23px; }
.brand span { font-family: var(--font-logo); font-size: 22px; font-weight: 500; letter-spacing: -.02em; }

/* ---------- Hero (full-bleed photo, nav on top) ---------- */
.hero-wrap { position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1080px; display: flex; flex-direction: column; color: var(--page); background: var(--navy); isolation: isolate; }
/* Hero photo is a <picture> in index.html (WebP + JPEG srcset) */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(32,42,58,.90) 0%, rgba(32,42,58,.72) 45%, rgba(32,42,58,.25) 80%, rgba(32,42,58,.10) 100%),
              linear-gradient(180deg, rgba(32,42,58,.35) 0, rgba(32,42,58,0) 160px, rgba(32,42,58,0) calc(100% - 220px), rgba(32,42,58,.45) 100%); }

.site-header { position: relative; border-bottom: 1px solid rgba(247,248,250,.12); }
.site-header .container { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-block: 24px 20px; }
.site-header .brand { color: var(--page); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.nav-link { text-decoration: none; color: #D7DCE4; }
.nav-link:hover { color: var(--amber-light); }

.hero { flex: 1 0 auto; display: flex; }
.hero .container { width: 100%; display: flex; align-items: flex-end; padding-block: clamp(24px, 5vh, 40px) clamp(48px, 11vh, 88px); }
.hero-copy { max-width: 820px; display: flex; flex-direction: column; gap: clamp(16px, 3vh, 24px); }
.hero .eyebrow { color: var(--amber-light); letter-spacing: .14em; }
.hero h1 { margin: 0; font-family: var(--font-serif); font-size: clamp(42px, min(5.6vw, 9vh), 76px); line-height: 1.02; font-weight: 500; letter-spacing: -.02em; color: #fff; }
.hero p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted-dark); max-width: 600px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

/* ---------- Approach ---------- */
.approach { border-top: 1px solid var(--border); }
.approach .container { display: flex; flex-wrap: wrap; gap: 64px; padding-block: 96px; }
.approach-intro { flex: 1 1 340px; min-width: 0; }
.approach-intro .eyebrow { margin-bottom: 18px; }
.approach h2 { margin: 0; font-family: var(--font-serif); font-size: 42px; line-height: 1.12; font-weight: 500; letter-spacing: -.015em; }
.pillars { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.pillar { border-top: 2px solid var(--navy); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.pillar h3 { margin: 0; font-family: var(--font-serif); font-size: 22px; line-height: 1.2; font-weight: 500; }
.pillar p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---------- Contact (navy band; white form card overlaps its bottom edge) ---------- */
.contact { --overhang: 140px; background: linear-gradient(180deg, var(--navy) 0, var(--navy) calc(100% - var(--overhang)), var(--page) calc(100% - var(--overhang))); }
.contact .container { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-block: 96px; }
.contact-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; color: var(--page); }
.contact-intro .eyebrow { color: var(--amber-light); }
.contact h2 { margin: 0; font-family: var(--font-serif); font-size: 46px; line-height: 1.08; font-weight: 500; letter-spacing: -.015em; }
.contact-intro p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted-dark); max-width: 420px; }
.contact-email { font-family: var(--font-mono); font-size: 16px; text-underline-offset: 6px; text-decoration-color: var(--amber); }

.contact-card { flex: 999 1 560px; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 36px; box-shadow: 0 12px 32px rgba(32,42,58,.18); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 500; color: var(--label); }
.field-full, .form-footer { grid-column: 1 / -1; }
.input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--input-border); background: #fff; color: var(--navy); font: inherit; font-size: 15px; border-radius: var(--radius); outline: none; }
.input::placeholder { color: #8A93A0; }
.input:focus-visible { border-color: var(--slate); box-shadow: 0 0 0 3px rgba(60,85,119,.15); }
textarea.input { height: 136px; padding: 12px 14px; resize: vertical; }
.form-footer { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 18px; }
.form-note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.form-error { color: #B42318; font-size: 14px; }
.hp { position: absolute; left: -9999px; }

.contact-card { display: flex; flex-direction: column; }
.form-success { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding-block: 12px; }
.form-success:focus { outline: none; }   /* focused only so screen readers announce it; not interactive */
.form-success h3 { margin: 0; font-family: var(--font-serif); font-size: 26px; font-weight: 500; }
.form-success p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.form-success .btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { flex: 1 0 auto; background: var(--page); color: var(--muted); border-top: 1px solid var(--border); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-block: 26px; font-size: 13px; }
.site-footer .brand { color: var(--navy); gap: 10px; }
.site-footer .brand svg { width: 18px; height: 17px; }
.site-footer .brand span { font-size: 15px; letter-spacing: -.01em; }

/* ============================================================
   Responsive — breakpoints: desktop ≥1024 · tablet 641–1023 · mobile ≤640
   Matches the "Workspace style" Tablet (834) and Mobile (390) mockups.
   ============================================================ */
@media (max-width: 1023px) {
  .container { padding-inline: 32px; }
  .brand span { font-size: 20px; }
  .nav { gap: 22px; }
  .hero-wrap { height: auto; min-height: 0; max-height: none; }   /* hugs content */
  .hero-bg::after { background: linear-gradient(90deg, rgba(32,42,58,.90) 0%, rgba(32,42,58,.72) 55%, rgba(32,42,58,.30) 100%); }
  .hero .container { padding-block: 56px 72px; }
  .hero h1 { font-size: 60px; line-height: 1.03; }
  .hero p { font-size: 18px; }
  .approach .container, .contact .container { flex-direction: column; gap: 44px; padding-block: 80px; }
  .approach-intro, .pillars, .contact-intro, .contact-card { flex: none; width: 100%; }
  .approach-intro, .contact-intro { max-width: 600px; }
  .approach h2 { font-size: 36px; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .pillar h3 { font-size: 20px; }
  .pillar p { font-size: 14px; line-height: 1.6; }
  .contact { --overhang: 180px; }
  .contact h2 { font-size: 40px; }
  .contact-card { padding: 30px; }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .brand span { font-size: 18px; }
  .nav .nav-link { display: none; }              /* logo + Contact only; no hamburger */
  .hero-bg img { object-position: 88% center; }   /* keeps the foreground tower in frame */
  .hero-bg::after { background: linear-gradient(180deg, rgba(32,42,58,.70) 0%, rgba(32,42,58,.78) 35%, rgba(32,42,58,.90) 100%); }
  .hero .container { padding-block: 40px; }
  .hero-copy { gap: 18px; }
  .hero h1 { font-size: 42px; line-height: 1.05; letter-spacing: -.015em; }
  .hero p { font-size: 16px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; min-height: 52px; font-size: 16px; }
  .approach .container { gap: 36px; padding-block: 60px; }
  .approach h2 { font-size: 30px; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .pillar h3 { font-size: 21px; }
  .pillar p { font-size: 15px; }
  .contact { --overhang: 160px; }
  .contact .container { gap: 36px; padding-block: 56px; padding-inline: 16px; }
  .contact-intro { padding-inline: 4px; }
  .contact h2 { font-size: 32px; }
  .contact-card { padding: 22px; }
  .form { grid-template-columns: 1fr; gap: 14px; }
  .input { height: 48px; font-size: 16px; }      /* prevents iOS zoom on focus */
  .form-footer { flex-direction: column-reverse; align-items: stretch; text-align: center; border-top: 0; padding-top: 4px; }
  .form-footer .btn { width: 100%; min-height: 52px; font-size: 16px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; gap: 8px; }
}
