/* AAKAAR · global tokens, typography and layout
   Visual language follows the CraftMarket "trade" skin (editorial, restrained), in AAKAAR colours.
   Tokens are the single source of truth; Bootstrap variables are mapped onto them.
   Spec: docs/superpowers/specs/2026-11-16-aakaar-restyle-design.md */

/* Fonts: self-hosted variable fonts (Latin) + a tiny Inter subset carrying ₹ and −.
   Plus Jakarta Sans has no ₹ glyph; the heading stack falls through to Inter for it.
   Metric-matched local fallbacks keep text from jumping while fonts load. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-symbols-var.woff2") format("woff2"); unicode-range: U+20B9, U+2212; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 107%; ascent-override: 90%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: "Jakarta Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 104%; ascent-override: 98%; descent-override: 21%; line-gap-override: 0%; }

:root {
  /* Brand palette (playbook) */
  --ak-green: #123F32;
  --ak-green-2: #1D5947;
  --ak-ink: #17211D;
  --ak-body: #5F6863;
  --ak-warm: #F7F4EE;
  --ak-white: #FFFFFF;
  --ak-border: #E8E5DE;
  --ak-border-input: #D6D2C8;
  --ak-muted-green: #EAF0EA;
  --ak-beige: #E8DCCB;
  --ak-beige-soft: #F1E9DD;
  --ak-sample-fg: #5A4325;
  --ak-sample-bg: #FBF7F0;
  --ak-sample-line: #A08A66;
  /* Quote CTA (user choice): every "get a quote" action */
  --ak-quote: #F3A23B;
  --ak-quote-hover: #E28F25;
  --ak-quote-fg: #17211D;

  /* Status (unchanged) */
  --ak-success: #1E6B3A; --ak-success-bg: #E3F1E6;
  --ak-warning: #7A4F00; --ak-warning-bg: #FBF0D9;
  --ak-danger:  #A63A2B; --ak-danger-bg:  #F8E5E1;
  --ak-info:    #1F5673; --ak-info-bg:    #E2EEF5;
  --ak-neutral: #4A524E; --ak-neutral-bg: #EEECE6;

  /* Type */
  --ak-font-title: "Plus Jakarta Sans", "Jakarta Fallback", "Inter", system-ui, sans-serif;
  --ak-font-display: var(--ak-font-title);
  --ak-font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ak-heading-weight: 700;
  --ak-heading-tracking: -0.02em;
  --ak-label-tracking: 0.08em;
  --ak-fs-display: clamp(2.25rem, 4vw, 3.5rem);
  --ak-fs-h1: clamp(2rem, 3.2vw, 2.875rem);
  --ak-fs-h2: clamp(1.5rem, 2.2vw, 2rem);
  --ak-fs-h3: clamp(1.25rem, 1.7vw, 1.5rem);
  --ak-fs-h4: 1.125rem;
  --ak-fs-body: 1rem;
  --ak-fs-small: 0.875rem;
  --ak-fs-tiny: 0.8125rem;

  /* Shape */
  --ak-radius-xs: 4px;
  --ak-radius-sm: 6px;
  --ak-radius-md: 10px;
  --ak-radius-lg: 14px;
  --ak-radius-pill: 9999px;
  --ak-radius-badge: var(--ak-radius-xs);
  --ak-radius-input: 6px;
  --ak-radius-btn: 6px;
  --ak-radius-card: 8px;

  /* Elevation (tinted to ink) */
  --ak-shadow-xs: 0 1px 2px rgba(23, 33, 29, 0.05);
  --ak-shadow-sm: 0 2px 8px rgba(23, 33, 29, 0.06);
  --ak-shadow-md: 0 8px 24px rgba(23, 33, 29, 0.09);
  --ak-shadow-lg: 0 18px 48px rgba(23, 33, 29, 0.14);
  --ak-shadow-float: var(--ak-shadow-md);

  /* Layout */
  --ak-container: 1280px;
  --ak-section-space: 80px;
  --ak-header-h: 76px;
  --ak-focus-ring: rgba(18, 63, 50, 0.35);

  /* Bootstrap mapping */
  --bs-body-font-family: var(--ak-font-body);
  --bs-body-color: var(--ak-ink);
  --bs-body-bg: var(--ak-warm);
  --bs-border-color: var(--ak-border);
  --bs-link-color: var(--ak-green);
  --bs-link-color-rgb: 18, 63, 50;
  --bs-link-hover-color: var(--ak-green-2);
  --bs-link-hover-color-rgb: 29, 89, 71;
  --bs-primary: var(--ak-green);
  --bs-primary-rgb: 18, 63, 50;
  --bs-border-radius: var(--ak-radius-btn);
  --bs-focus-ring-color: var(--ak-focus-ring);
  --bs-form-invalid-color: var(--ak-danger);
  --bs-form-invalid-border-color: var(--ak-danger);
  --bs-form-valid-color: var(--ak-success);
  --bs-form-valid-border-color: var(--ak-success);
}
@media (max-width: 1099px) { :root { --ak-section-space: 70px; } }
@media (max-width: 767px) { :root { --ak-section-space: 50px; } }

html { scroll-behavior: smooth; overflow-x: clip; }
body { font-size: var(--ak-fs-body); line-height: 1.6; font-optical-sizing: auto; text-rendering: optimizeLegibility; font-feature-settings: 'cv11' 1, 'ss03' 1; background: var(--ak-warm); color: var(--ak-ink); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; }
a { color: var(--ak-green); text-underline-offset: 3px; }
a:hover { color: var(--ak-green-2); }
:focus-visible { outline: 3px solid var(--ak-focus-ring); outline-offset: 2px; }
.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus { box-shadow: 0 0 0 3px var(--ak-focus-ring); }

/* Typography: one sans family for every heading level, tight tracking (trade skin) */
h1, h2, h3, h4, h5, h6,
.ak-display, .ak-h1, .ak-h2, .ak-h3, .ak-h4 { font-family: var(--ak-font-title); font-weight: var(--ak-heading-weight); letter-spacing: var(--ak-heading-tracking); color: var(--ak-ink); }
h1, .ak-h1 { font-size: var(--ak-fs-h1); line-height: 1.12; }
h2, .ak-h2 { font-size: var(--ak-fs-h2); line-height: 1.2; }
h3, .ak-h3 { font-size: var(--ak-fs-h3); line-height: 1.3; }
h4, .ak-h4 { font-size: var(--ak-fs-h4); line-height: 1.4; }
.ak-display { font-size: var(--ak-fs-display); line-height: 1.08; }
.ak-lead { font-size: 1.125rem; line-height: 1.65; color: var(--ak-body); }
.ak-body { color: var(--ak-body); }
.ak-small { font-size: var(--ak-fs-small); }
.ak-caption { font-size: .75rem; color: var(--ak-body); }
.ak-eyebrow { font-family: var(--ak-font-title); font-size: .75rem; font-weight: 700; letter-spacing: var(--ak-label-tracking); text-transform: uppercase; color: var(--ak-green-2); }
.ak-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.text-ak-green { color: var(--ak-green) !important; }
.text-ak-body { color: var(--ak-body) !important; }

/* Layout */
.ak-container { width: 100%; max-width: var(--ak-container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.ak-section { padding-top: var(--ak-section-space); padding-bottom: var(--ak-section-space); }
.ak-section-sm { padding-top: calc(var(--ak-section-space) * .65); padding-bottom: calc(var(--ak-section-space) * .65); }
.ak-bg-white { background: var(--ak-white); }
.ak-bg-green-soft { background: var(--ak-muted-green); }
.ak-bg-green { background: var(--ak-green); color: #fff; }
.ak-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.ak-section-head .ak-eyebrow { display: block; margin-bottom: 10px; }
.ak-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.visually-hidden-focusable:focus { position: fixed !important; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: 8px 12px; border-radius: var(--ak-radius-sm); }
[hidden] { display: none !important; }

/* Numbers line up in tables, KPIs and prices */
.ak-table, .ak-kpi b, .price, .ak-mono, .ak-metric-dark b { font-variant-numeric: tabular-nums; }
h1, h2, h3, .ak-display, .ak-h1, .ak-h2 { text-wrap: balance; }
p, .ak-lead { text-wrap: pretty; }
/* Phones: 16px inputs prevent iOS zoom-on-focus */
@media (max-width: 767.98px) { .form-control, .form-select { font-size: 16px; } }
