/* Astar Tire & Service Centre — design tokens (prefix --at-)
   Brand source: their shop signboard (royal blue + white, bold italic capitals). See brand-notes.md.
   Look: clean white pages, one royal blue voice, deep navy for the photo hero, reviews and footer.
   Green is used for WhatsApp and nothing else.
   Mobile first: designed at 390, then widened at 768 / 1024 / 1440.
   MASTER COPY. After any change run:  sh _tools/sync.sh  (copies to site/css/). */

:root {
  color-scheme: light;

  /* Colour — brand (from the signboard) */
  --at-blue:      #1F4B9F;     /* primary buttons, links, eyebrows, active states */
  --at-blue-hi:   #183E86;     /* hover (darker) */
  --at-blue-lo:   #12326E;     /* pressed */
  --at-on-blue:   #FFFFFF;     /* 7.7:1 */
  --at-blue-soft: #E8EFFB;     /* icon tiles, chips, selected rows */
  --at-blue-line: #B9CDF0;     /* card hover edge */

  /* Colour — navy areas (top bar, hero, reviews, footer) */
  --at-navy:      #0C2148;
  --at-navy-2:    #14306A;     /* cards sitting on navy */
  --at-on-navy:   #FFFFFF;
  --at-on-navy-2: #B9C6DE;     /* secondary text on navy (9.2:1) */
  --at-on-navy-3: #8FA1C2;     /* small print on navy (6:1) */
  --at-navy-line: rgba(255, 255, 255, .16);
  --at-sky:       #9CC3FF;     /* highlight word in the hero headline, links on navy */
  --at-on-navy-tint:   rgba(255, 255, 255, .12);   /* chips and button hover on navy */
  --at-on-navy-tint-2: rgba(255, 255, 255, .22);   /* button pressed on navy */
  --at-photo-cap:      rgba(8, 22, 50, .78);       /* caption strip on photos */

  /* Colour — WhatsApp only */
  --at-wa:    #0F7F45;         /* white text 5.1:1 */
  --at-wa-hi: #0C6E3B;
  --at-wa-lo: #095C31;
  --at-on-wa: #FFFFFF;

  /* Colour — surfaces */
  --at-bg:        #FFFFFF;     /* page, cards, inputs */
  --at-surface:   #F3F6FB;     /* section bands */
  --at-surface-2: #E7ECF5;     /* photo backing, disabled */
  --at-field:     #FFFFFF;
  --at-nav-bg:    rgba(255, 255, 255, .94);

  /* Colour — lines */
  --at-line:   #DCE3EE;        /* card and divider hairlines */
  --at-line-2: #8892A4;        /* input borders (3.1:1 on white) */
  --at-line-3: #566176;        /* input border on hover */
  --at-line-on-photo: rgba(255, 255, 255, .6);

  /* Colour — text */
  --at-head:  #101B33;         /* headings */
  --at-ink:   #333E52;         /* body */
  --at-ink-2: #566176;         /* secondary (6.2:1 on white) */
  --at-ink-3: #677186;         /* hints, placeholders (4.9:1 on white) */

  /* Colour — status (never decoration) */
  --at-ok:       #0F7F45;      /* sent */
  --at-ok-soft:  #E5F5EC;
  --at-ok-dot:   #2BC16E;      /* open-now dot */
  --at-ok-ring:  rgba(43, 193, 110, .25);
  --at-off-dot:  #8892A4;      /* closed dot */
  --at-off-ring: rgba(136, 146, 164, .25);
  --at-err:      #C0301D;      /* form errors (5.7:1 on white) */
  --at-err-soft: #FDEEEB;
  --at-err-line: #F2B8AE;
  --at-star:     #F5A623;      /* review stars only */
  --at-star-off: #C9D1DF;
  --at-star-off-navy: rgba(255, 255, 255, .28);

  /* Type */
  --at-font-display: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --at-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --at-fs-xs: 12px;
  --at-fs-sm: 14px;
  --at-fs-md: 16px;            /* body and every input (16px stops iPhone zoom) */
  --at-fs-lg: 18px;
  --at-h3: 24px;
  --at-h2: clamp(32px, 3.8vw, 48px);
  --at-h1: clamp(42px, 5.6vw, 76px);
  --at-lh-tight: 1.04;
  --at-lh-body: 1.6;

  /* Space (4px grid) */
  --at-s1: 4px;   --at-s2: 8px;   --at-s3: 12px;  --at-s4: 16px;
  --at-s5: 20px;  --at-s6: 24px;  --at-s8: 32px;  --at-s10: 40px;
  --at-s12: 48px; --at-s16: 64px; --at-s20: 80px; --at-s24: 96px;
  --at-section: clamp(56px, 8vw, 96px);   /* top and bottom of every section */
  --at-gutter: 20px;                       /* left and right page edge */

  /* Shape */
  --at-r-sm: 6px;              /* tick box, tags, logo block */
  --at-r-md: 10px;             /* buttons, inputs, icon tiles */
  --at-r-lg: 14px;             /* cards, photos, map */
  --at-r-xl: 20px;             /* form panel, quick-price bar */
  --at-r-pill: 999px;
  --at-bw: 1px;                /* cards, dividers */
  --at-bw-field: 1.5px;        /* inputs, outline buttons */
  --at-shadow-1: 0 1px 2px rgba(16, 27, 51, .06), 0 2px 8px rgba(16, 27, 51, .05);
  --at-shadow-2: 0 16px 40px rgba(16, 27, 51, .14);
  --at-focus: 0 0 0 2px #FFFFFF, 0 0 0 5px rgba(31, 75, 159, .6);        /* the only focus ring on light areas */
  --at-focus-navy: 0 0 0 2px #0C2148, 0 0 0 5px rgba(156, 195, 255, .9); /* the same ring on navy areas */
  --at-focus-field: 0 0 0 4px rgba(31, 75, 159, .22);                    /* inputs: soft halo + blue border */
  --at-focus-err: 0 0 0 4px rgba(192, 48, 29, .2);
  --at-hero-shade: linear-gradient(90deg, rgba(8, 22, 50, .94) 0%, rgba(8, 22, 50, .8) 44%, rgba(8, 22, 50, .3) 100%);

  /* Layout */
  --at-max: 1200px;
  --at-topbar-h: 44px;         /* phone number in it must be thumb-sized */
  --at-header-h: 64px;
  --at-tap: 44px;              /* smallest thing a thumb may have to hit */
  --at-field-h: 52px;          /* inputs and main buttons */
  --at-icon-lift: -0.5px;      /* browsers draw a line of text about half a pixel above its true middle; an icon beside text is lifted the same amount so the two look level */
  --at-ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --at-gutter: 32px; --at-header-h: 76px; }
}
@media (min-width: 1024px) {
  :root { --at-gutter: 48px; --at-topbar-h: 38px; }
}
