/*
  AE Global Equipment Care: public informational site styles.

  Brand: AE Global brand guide, July 2026.
  Text pairings used: White, Sand or Light Green on Evergreen.
                      Evergreen or Natural Black on White.
                      Sand or Light Green on Natural Black.
  Off-White is used only as a page surround, never behind text.
*/

@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --evergreen: #18332F;
  --sand: #D1B98D;
  --viridian: #6A8380;
  --black: #222223;
  --light-green: #E2FADB;
  --white: #FFFFFF;
  --offwhite: #F5F3EE;

  --display: Georgia, "Times New Roman", serif;
  --sans: "Work Sans", Calibri, Carlito, Arial, sans-serif;

  --page: 1120px;
  --gutter: 16px;
  --radius: 10px;
  --radius-sm: 8px;

  color-scheme: light;
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: break-word;
}

@media (min-width: 960px) {
  body { font-size: 1.125rem; }
}

img,
svg { max-width: 100%; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--evergreen);
}

h1 { font-size: clamp(2.125rem, 1.5rem + 3.4vw, 3.75rem); }
h2 { font-size: clamp(1.625rem, 1.35rem + 1.3vw, 2.375rem); }

h3 {
  font-family: var(--sans);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--evergreen);
}

p + p { margin-top: 0.9em; }

a {
  color: var(--evergreen);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 500; }

/* Focus: always visible, never color alone */
:focus-visible {
  outline: 3px solid var(--evergreen);
  outline-offset: 3px;
}

.on-dark :focus-visible { outline-color: var(--sand); }

[tabindex="-1"]:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  border: 2px solid var(--evergreen);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--evergreen);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

/* Icons (inline SVG sprite, rounded line style) */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header */
.site-header {
  background: var(--evergreen);
  color: var(--white);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  min-height: 76px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
}

/* Official logo: Sand on transparent, 1667 x 250. Sized by height only, never stretched. */
.brand img {
  position: relative;
  display: block;
  height: 28px;
  width: auto;
  max-width: none;
  aspect-ratio: 1667 / 250;
  color: transparent;
}

@media (min-width: 640px) {
  .brand img { height: 34px; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px 20px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 4px;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover { text-decoration: underline; }

.header-actions .header-cta { display: none; }

@media (min-width: 760px) {
  .header-actions .header-cta { display: inline-flex; }
}

@media (max-width: 479px) {
  .sm-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.btn .icon { width: 20px; height: 20px; }

.btn--primary {
  border-color: var(--evergreen);
  background: var(--evergreen);
  color: var(--white);
}

.btn--primary:hover { box-shadow: inset 0 -4px 0 var(--sand); }

.btn--secondary {
  border-color: var(--evergreen);
  background: var(--white);
  color: var(--evergreen);
}

.btn--secondary:hover { box-shadow: inset 0 0 0 1px var(--evergreen); }

.btn--light {
  border-color: var(--white);
  background: var(--white);
  color: var(--evergreen);
}

.btn--light:hover { box-shadow: inset 0 -4px 0 var(--sand); }

.btn--outline-light {
  border-color: var(--sand);
  background: transparent;
  color: var(--sand);
}

.btn--outline-light:hover { box-shadow: inset 0 0 0 1px var(--sand); }

.btn--small {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--evergreen);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.btn-link:hover { text-decoration-thickness: 2px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero */
.hero {
  padding-block: 56px 64px;
  background: var(--evergreen);
  color: var(--white);
}

@media (min-width: 960px) {
  .hero { padding-block: 96px 104px; }
}

.hero h1 {
  max-width: 15ch;
  color: var(--white);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--sand);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 32px;
  height: 2px;
  background: var(--sand);
}

.hero .lead {
  max-width: 54ch;
  margin-top: 20px;
  color: var(--light-green);
  font-size: 1.125em;
}

.hero .actions { margin-top: 32px; }

.hero .fine {
  max-width: 60ch;
  margin-top: 24px;
  color: var(--light-green);
  font-size: 0.9375rem;
}

.hero--compact { padding-block: 40px 44px; }

@media (min-width: 960px) {
  .hero--compact { padding-block: 64px; }
}

/* Content sections */
.section { padding-block: 56px; }

.section + .section { padding-top: 0; }

.section + .section > .container::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 56px;
  background: var(--sand);
}

@media (min-width: 960px) {
  .section { padding-block: 88px; }
  .section + .section { padding-top: 0; }
  .section + .section > .container::before { margin-bottom: 88px; }
}

.section-head {
  max-width: 62ch;
  margin-bottom: 36px;
}

.section-head p { margin-top: 14px; }

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px 40px;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.service-grid li {
  padding-top: 20px;
  border-top: 3px solid var(--sand);
}

.service-grid .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  color: var(--evergreen);
}

.service-grid h3 { margin-bottom: 6px; }

.steps {
  display: grid;
  gap: 28px;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

.steps li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.step-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--evergreen);
  color: var(--sand);
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
}

.steps h3 { margin: 10px 0 6px; }

.after-steps {
  max-width: 62ch;
  margin-top: 36px;
  color: var(--evergreen);
  font-weight: 500;
}

.split {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }
}

.split p { margin-top: 14px; }

.checklist {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.checklist .icon {
  margin-top: 2px;
  color: var(--evergreen);
}

/* FAQ */
.faq {
  max-width: 780px;
  border-bottom: 1px solid var(--sand);
}

.faq details { border-top: 1px solid var(--sand); }

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 48px 14px 0;
  color: var(--evergreen);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}

.faq details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }

.faq .answer {
  max-width: 66ch;
  padding: 0 0 22px;
}

/* Safety note */
.safety {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  max-width: 780px;
  padding: 18px 20px;
  border: 2px solid var(--evergreen);
  border-radius: var(--radius);
}

.safety .icon {
  width: 28px;
  height: 28px;
  color: var(--evergreen);
}

.safety h2 {
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Evergreen band */
.band {
  padding-block: 56px;
  background: var(--evergreen);
  color: var(--light-green);
}

@media (min-width: 960px) {
  .band { padding-block: 80px; }
}

.band h2 { color: var(--white); }

.band p { margin-top: 12px; }

.band .actions { margin-top: 28px; }

/* Footer */
.site-footer {
  background: var(--evergreen);
  color: var(--light-green);
  font-size: 0.9375rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 32px;
}

.band + .site-footer .container { border-top: 1px solid var(--viridian); }

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
