/*
  A Cool Company (ACC) — site stylesheet
  Rebuilt from the "ACC Website" design (Aug 2026): cat-mark logo, sticky
  navy header, top-accent service cards, numbered process, portfolio grid,
  navy footer. The design was desktop-only; the responsive rules and the
  accessible/native patterns (focus rings, <details> FAQ, mobile nav) are
  added on top so the built site works on phones and with the keyboard.
*/

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --navy: #0F2440;
  --navy-hover: #1B3559;
  --navy-line: #2A3F5F;
  --baby-blue: #A5D8E8;
  --baby-blue-hover: #8EC9DD;
  --cat-black: #14181D;
  --white: #FFFFFF;

  /* On-navy text */
  --on-navy: #B8CBE0;
  --on-navy-dim: #7F96B4;

  /* Interface */
  --surface: #F5F9FB;
  --surface-hover: #F0F5F9;
  --border: #E3E8EE;
  --muted: #5F7590;
  --body-text: #10151C;
  --success: #1F7A5C;
  --error: #B4402F;

  /* Spacing scale (8px base) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-12: 96px;

  /* Radius */
  --radius-control: 6px;
  --radius-card: 8px;

  --content-max: 1200px;
  --text-max: 62ch;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--body-text);
  font-family: "Archivo", Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }

/* Visible focus ring everywhere — never remove outline without replacing it */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--baby-blue);
  outline-offset: 2px;
  border-radius: var(--radius-control);
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, .h1 {
  font-weight: 700;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: pretty;
}
h2, .h2 {
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  color: var(--navy);
  text-wrap: pretty;
}
h3, .h3 {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--navy);
}
p { text-wrap: pretty; }
.text-max { max-width: var(--text-max); }
.lead { font-size: 17px; line-height: 1.65; }
small, .small {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

@media (min-width: 900px) {
  h1, .h1 { font-size: 52px; line-height: 1.05; letter-spacing: -0.02em; }
  h2, .h2 { font-size: 34px; line-height: 1.15; }
  .hero__title { font-size: 56px; }
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}
@media (min-width: 700px) {
  .container { padding: 0 var(--sp-4); }
}
.section { padding: var(--sp-8) 0; }
@media (min-width: 900px) {
  .section { padding: var(--sp-12) 0; }
}
.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--babyblue { background: var(--baby-blue); color: var(--navy); }
.section--babyblue h1, .section--babyblue h2, .section--babyblue h3 { color: var(--navy); }

.stack { display: flex; flex-direction: column; gap: var(--sp-3); }
.stack--tight { gap: var(--sp-2); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }

.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }

.grid { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-2);
  padding-bottom: var(--sp-2);
  gap: var(--sp-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand__tile {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-card);
  background: var(--baby-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand__tile svg { width: 32px; height: 32px; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__word {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  line-height: 1;
  color: var(--white);
}
.brand__sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  text-transform: uppercase;
  color: var(--on-navy-dim);
}

.nav-toggle {
  background: none;
  border: 1.5px solid var(--white);
  color: var(--white);
  border-radius: var(--radius-control);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.site-nav { display: none; width: 100%; order: 3; }
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: var(--sp-2) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--sp-1) 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--on-navy);
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--baby-blue); }
/* The CTA button in the mobile dropdown is a baby-blue button — keep its
   navy text (the generic .site-nav a colour above would otherwise win on
   specificity and leave pale text on a pale background). */
.site-nav .nav-cta-item a,
.site-nav .nav-cta-item a:hover { color: var(--navy); border-bottom-color: transparent; }

a.header-cta { display: none; }
.nav-cta-item { display: block; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; order: 0; }
  .site-nav ul { flex-direction: row; gap: 28px; margin: 0; align-items: center; }
  .site-nav a { padding: 6px 0; min-height: auto; }
  a.header-cta { display: inline-flex; }
  .nav-cta-item { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-control);
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-hover); color: var(--white); }
.btn--secondary { background: var(--white); border-color: var(--navy); color: var(--navy); }
.btn--secondary:hover { background: var(--surface-hover); }
.btn--on-navy { background: var(--baby-blue); color: var(--navy); }
.btn--on-navy:hover { background: var(--baby-blue-hover); color: var(--navy); }
.btn--block { width: 100%; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 3px;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge--fill { background: var(--baby-blue); color: var(--navy); }
.badge--solid { background: var(--navy); color: var(--white); }
.badge--outline { background: var(--white); color: var(--navy); border: 1px solid var(--border); }

/* ---------- Brand / supplier logo strip ---------- */
.brand-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}
.brand-strip__item {
  flex: 1 1 220px;
  max-width: 300px;
  min-height: 110px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3) var(--sp-4);
}
.brand-strip__item img {
  max-height: 52px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* ---------- Hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: center;
}
.hero__media { height: 300px; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--sp-8); }
  .hero__media { height: 420px; }
}
.hero--navy { background: var(--navy); border-bottom: none; }
.hero--navy .eyebrow { color: var(--baby-blue); }
.hero--navy .hero__title { color: var(--white); }
.hero--navy .hero__lead { color: var(--on-navy); }

/* Page hero (portfolio / faq / contact / solar intro) */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.page-hero .container { padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
.page-hero .stack { gap: var(--sp-2); }

/* ---------- Media placeholders (until real photos drop in) ---------- */
.media {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  text-align: center;
  padding: var(--sp-2);
}
/* Real photo dropped into a .media box: fill and crop to the box, no dashed frame. */
.media--photo { padding: 0; border-style: solid; }
.media--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------- Service cards (top accent bar) ---------- */
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.service-card__bar { height: 10px; background: var(--baby-blue); }
.service-card__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.service-card h3 { font-size: 22px; }
.service-card p { font-size: 15px; line-height: 1.6; }
.card-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: auto;
  padding-top: 12px;
}

/* ---------- Process steps ---------- */
.step { display: flex; flex-direction: column; gap: 12px; }
.step__num {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-control);
  background: var(--navy);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 18px; }
.step p { font-size: 15px; line-height: 1.6; }

/* ---------- Feature cards (icon tiles, e.g. solar) ---------- */
.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
}
.icon-tile {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-control);
  background: var(--baby-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Portfolio ---------- */
.work { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.work__media { height: 300px; }
.work__title { font-size: 15px; font-weight: 600; color: var(--navy); }
.work__loc {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.section__head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.link-underline {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--baby-blue);
  padding-bottom: 3px;
  white-space: nowrap;
}
.link-underline:hover { color: var(--navy); border-bottom-color: var(--navy); }

/* Callout strip (portfolio / faq footers) */
.callout {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.callout--dashed { border-style: dashed; border-color: var(--baby-blue); }

/* Bullet list with baby-blue dots */
.dot-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.dot-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.dot-list li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--baby-blue);
  margin-top: 9px;
  flex-shrink: 0;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}
@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: var(--sp-2); }
.field label { font-weight: 600; font-size: 14px; color: var(--navy); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 16px; /* never below 16px, or Safari zooms on focus */
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--white);
  color: var(--body-text);
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--baby-blue);
}
.field--error input,
.field--error textarea,
.field--error select { border-color: var(--error); }
.field__error { color: var(--error); font-size: 14px; display: flex; align-items: baseline; gap: 6px; }
.field__error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--error);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.field__hint { color: var(--muted); font-weight: 400; }

.form-status {
  border-radius: var(--radius-control);
  padding: 14px 18px;
  margin-bottom: var(--sp-3);
  display: none;
  border-left: 3px solid transparent;
}
.form-status.is-visible { display: block; }
.form-status--success { background: var(--surface); border-left-color: var(--success); color: var(--body-text); }
.form-status--error { background: #FBEAE6; border-left-color: var(--error); color: var(--error); }

/* Enquiry-type pills */
.pill-group { display: flex; gap: var(--sp-1); flex-wrap: wrap; }
.pill {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
}
.pill:hover { border-color: var(--navy); }
.pill.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Contact sidebar */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.15fr 1fr; gap: var(--sp-8); }
}
.contact-card {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-card__label,
.side-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.contact-card__label { color: var(--baby-blue); }
.side-label { color: var(--muted); }
.contact-card__primary { font-size: 22px; font-weight: 700; color: var(--white); line-height: 1.2; }
.contact-card__primary a { color: var(--white); }
.contact-card__rule { height: 1px; background: var(--navy-line); }
.contact-card__hours { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.contact-card__hours .is-closed { color: var(--on-navy-dim); }
.area-tags { display: flex; gap: var(--sp-1); flex-wrap: wrap; }
.area-tag { border: 1px solid var(--border); border-radius: 4px; padding: 7px 12px; font-size: 14px; color: var(--body-text); }
.next-steps { display: flex; flex-direction: column; gap: 10px; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; list-style: none; }
.next-steps ol { padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.next-steps__num { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--baby-blue); flex-shrink: 0; }

/* ---------- FAQ accordion (native <details>) ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; background: var(--white); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  width: 24px; height: 24px;
  border-radius: 4px;
  background: var(--baby-blue);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item[open] summary { background: var(--surface); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item__body { padding: 0 24px 22px; font-size: 16px; line-height: 1.7; max-width: 620px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); }
.site-footer .container { padding-top: var(--sp-8); padding-bottom: var(--sp-5); }
.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand__tile { width: 40px; height: 40px; border-radius: 7px; }
.footer-brand .brand__tile svg { width: 29px; height: 29px; }
.footer-brand .brand__word { font-size: 19px; }
.footer-blurb { font-size: 15px; line-height: 1.65; color: var(--on-navy); max-width: 260px; }
.footer-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-navy-dim);
}
.footer-col a, .footer-col span { font-size: 15px; }
.footer-rule { height: 1px; background: var(--navy-line); margin: var(--sp-5) 0 var(--sp-4); }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--on-navy-dim);
}

/* ---------- Misc ---------- */
.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-3);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
