/* ==========================================================================
   Seven Infra — brand tokens and base styles
   v2.0 · 8 Oct 2026
   Source of truth for colour, type and spacing on sevenhvac.com.
   Full guidance: /branding
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

/* Primary face: Proxima Nova (Mark Simonson Studio, commercial). Served by the Adobe Fonts
   kit set in _build/config.json (ADOBE_FONTS_KIT) once the licence is in place. Until then the
   stack falls through to Metropolis, a public-domain face drawn as a Proxima Nova equivalent,
   self-hosted below so the design renders the same everywhere. */
@font-face { font-family: 'Metropolis'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/metropolis-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Metropolis'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/metropolis-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Metropolis'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/metropolis-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Metropolis'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/metropolis-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Metropolis'; font-weight: 800; font-style: normal; font-display: swap; src: url('/assets/fonts/metropolis-latin-800-normal.woff2') format('woff2'); }

:root {
  /* Core brand colours (from the logo) */
  --navy:        #121A19;   /* Ink — the logo black; headlines and body text */
  --blue:        #1F7A72;   /* Teal — the vent lines; buttons, links, accents (AA on white, 5.1:1) */
  --white:       #FFFFFF;
  --black:       #000000;

  /* Navy scale */
  --navy-950:    #0A100F;
  --navy-800:    #1E2B29;
  --navy-700:    #2A3B38;
  --navy-100:    #DCE3E1;

  /* Blue scale */
  --blue-700:    #1F7A72;   /* Link / text teal — passes AA on white (5.1:1) */
  --blue-light:  #3FB3A8;   /* Teal for small text on ink surfaces (6.9:1 on ink) */
  --blue-100:    #E6F1EF;   /* Sky tint — section backgrounds, chips */

  /* Neutrals */
  --ice:         #F0F3F2;   /* Paper: neutral off-white for alternate sections */
  --paper:       #E9ECEA;   /* A shade deeper, for alternate sections */
  --midnight:    #0C1211;   /* Deep ink, for full-bleed dark sections */
  --grey-200:    #DCE2E0;   /* Borders, dividers */
  --grey-500:    #5D6462;   /* Secondary text, neutral grey — passes AA on white (6.2:1) */
  --ink:         #121A19;   /* Body text on light, dark-mode surface */

  /* Accent and semantic */
  --sand:        #E0A458;   /* Warm accent — use on navy only, never for text on white */
  --success:     #1F9D61;
  --warning:     #E0A458;
  --error:       #D64545;
  --whatsapp:    #25D366;   /* Only for the WhatsApp button */

  /* Semantic aliases */
  --bg:          var(--ice);
  --bg-alt:      var(--paper);
  --surface:     var(--white);
  --text:        var(--ink);
  --text-muted:  var(--grey-500);
  --heading:     var(--navy);
  --link:        var(--blue-700);
  --border:      var(--grey-200);

  /* Type */
  --font-display: 'proxima-nova', 'Proxima Nova', 'Metropolis', 'Helvetica Neue', Arial, sans-serif;
  --font-accent:  var(--font-display);   /* accent words now set in the display face; the serif italic was retired 9 Oct 2026 */
  --font-latin:  'proxima-nova', 'Proxima Nova', 'Metropolis', 'Helvetica Neue', Arial, sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --font-mono:   'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --text-xs:   0.75rem;   /* 12 */
  --text-sm:   0.875rem;  /* 14 */
  --text-base: 1rem;      /* 16 */
  --text-lg:   1.125rem;  /* 18 */
  --text-xl:   1.25rem;   /* 20 */
  --text-2xl:  1.5rem;    /* 24 */
  --text-3xl:  2rem;      /* 32 */
  --text-4xl:  2.5rem;    /* 40 */
  --text-5xl:  3.5rem;    /* 56 */

  --tracking-label: 0.18em;  /* Uppercase labels, echoing "H V A C" */
  --tracking-tight: -0.02em; /* Display headlines */

  /* Spacing — 8pt grid */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Shape and elevation */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(18,26,25,.08);
  --shadow:    0 4px 16px rgba(18,26,25,.10);
  --shadow-lg: 0 12px 40px rgba(18,26,25,.16);

  --max-w: 1160px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         var(--navy-950);
    --bg-alt:     var(--navy);
    --surface:    var(--navy-800);
    --text:       var(--ice);
    --text-muted: #A8B2AF;
    --heading:    var(--white);
    --link:       var(--blue);
    --border:     #2E3F3C;
    --shadow-sm:  0 1px 2px rgba(0,0,0,.3);
    --shadow:     0 4px 16px rgba(0,0,0,.35);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"] {
  --bg:         var(--navy-950);
  --bg-alt:     var(--navy);
  --surface:    var(--navy-800);
  --text:       var(--ice);
  --text-muted: #A8B2AF;
  --heading:    var(--white);
  --link:       var(--blue);
  --border:     #2E3F3C;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-latin);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
:lang(ar), [dir="rtl"] { font-family: var(--font-arabic); }

h1, h2, h3, h4 {
  color: var(--heading);
  font-family: var(--font-display);

  line-height: 1.02;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { font-family: var(--font-arabic); }
h1 { font-size: var(--text-4xl); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: var(--text-2xl); font-weight: 600; line-height: 1.1; }
h4 { font-size: var(--text-xl);  font-weight: 600; font-family: var(--font-latin); line-height: 1.3; }
p, ul, ol, table { margin: 0 0 var(--s-4); }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:root[data-theme="dark"] a:hover { color: var(--white); }
strong { font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-7) 0; }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-alt); padding: 1px 6px; border-radius: 4px; }

.label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--blue-700);
}
:root[data-theme="dark"] .label { color: var(--blue); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.container > *, .grid > * { min-width: 0; }
html, body { overflow-x: clip; }
@media (max-width: 719px) { table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---- Tables --------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th, td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-3); border-bottom: 1px solid var(--border); }
th { color: var(--heading); font-weight: 700; background: var(--bg-alt); }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: 52px; padding: 0 var(--s-5);
  border-radius: var(--radius-sm);
  font-family: var(--font-latin); font-weight: 700; font-size: var(--text-xs);
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn::after { content: "→"; font-family: var(--font-mono); font-size: 14px; letter-spacing: 0; transition: transform .2s; }
.btn:hover::after { transform: translateX(3px); }
.btn.no-arrow::after { content: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-primary   { background: var(--navy);  color: var(--white); }
.btn-primary:hover { background: var(--navy-800); color: var(--white); }
.btn-secondary { background: var(--blue);  color: var(--navy); }
.btn-secondary:hover { background: #17625B; color: var(--navy); }
.btn-outline   { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-whatsapp  { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-whatsapp:hover { background: var(--navy); color: var(--white); }
.btn-whatsapp::after { content: none; }
.on-dark .btn-whatsapp, .hero .btn-whatsapp { color: var(--white); border-color: rgba(255,255,255,.5); }
.on-dark .btn-whatsapp:hover, .hero .btn-whatsapp:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.on-dark .btn-outline { color: var(--white); border-color: var(--white); }
.on-dark .btn-outline:hover { background: var(--white); color: var(--navy); }

/* ---- Cards and chips ------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s-5); box-shadow: var(--shadow-sm); }
.chip { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--blue-100); color: var(--navy); font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em; }
:root[data-theme="dark"] .chip { background: var(--navy-800); color: var(--blue); }

/* ---- Forms ---------------------------------------------------------------- */
.input {
  width: 100%; min-height: 48px; padding: 0 var(--s-4);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font: inherit;
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,122,114,.25); }

/* ---- Utilities ------------------------------------------------------------ */
.on-dark { background: var(--navy); color: var(--ice); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark a { color: var(--blue); }
.on-dark .label { color: var(--blue); }
.muted { color: var(--text-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
