/* ==========================================================================
   Queens Fuel — stylesheet
   ========================================================================== */

:root {
  --navy: #0a1929;
  --navy-soft: #10263c;
  --navy-line: rgba(255, 255, 255, 0.12);
  --ink: #16232f;
  --body: #4a5a68;
  --sand: #f6f3ee;
  --sand-deep: #eee9e1;
  --amber: #f5a524;
  --amber-deep: #d9880c;
  --white: #ffffff;
  --line: #e2ddd4;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 25, 41, 0.06), 0 8px 24px rgba(10, 25, 41, 0.05);
  --shadow-md: 0 24px 60px rgba(10, 25, 41, 0.13);
  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 2.9vw, 2.6rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--amber);
  color: var(--navy);
  padding: 12px 18px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 3px solid var(--amber-deep);
  outline-offset: 2px;
}

/* ---------- Buttons & small parts ---------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
              border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--amber {
  background: var(--amber);
  color: #21160a;
  box-shadow: 0 10px 24px rgba(245, 165, 36, 0.28);
}
.btn--amber:hover { background: #ffb63c; }
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.6); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: #132f4b; }
.btn--wide { width: 100%; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.eyebrow--light { color: var(--amber); }
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.link-arrow svg { transition: transform 0.18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Topbar ------------------------------------------------------- */

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.79rem;
  letter-spacing: 0.01em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  padding-block: 8px;
}
.topbar__note { margin: 0; }
.topbar__contact { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.topbar__contact a { color: rgba(255, 255, 255, 0.86); }
.topbar__contact a:hover { color: var(--amber); }
.topbar__sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.25); }

/* ---------- Header / nav ------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.is-stuck { box-shadow: 0 8px 26px rgba(10, 25, 41, 0.09); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--amber);
  flex: none;
}
.brand__mark--image { background: transparent; overflow: hidden; }
.brand__mark--image img { width: 100%; height: 100%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__text small {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b98a4;
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 0;
  background: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: #33465a;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}
.nav__link:hover { color: var(--navy); background: var(--sand); }
.nav__link.is-active { color: var(--navy); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 12px; right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
}
.nav__list > li { position: relative; }
.nav__link.is-active { position: relative; }
.nav__cta { padding: 12px 20px; font-size: 0.85rem; }

.has-menu > .nav__link--menu svg { transition: transform 0.2s ease; }
.has-menu.is-open > .nav__link--menu svg { transform: rotate(180deg); }
.has-menu.is-open > .nav__link--menu { background: var(--sand); color: var(--navy); }

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 274px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.has-menu.is-open .submenu,
.has-menu:hover .submenu,
.has-menu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  transition: background-color 0.15s ease;
}
.submenu a:hover { background: var(--sand); }
.submenu span { display: block; font-size: 0.87rem; font-weight: 600; color: var(--ink); }
.submenu small { font-size: 0.76rem; color: #8492a0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero --------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  padding-block: clamp(64px, 9vw, 128px) clamp(52px, 7vw, 96px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 18, 30, 0.94) 0%, rgba(7, 21, 35, 0.86) 42%, rgba(8, 24, 39, 0.5) 74%, rgba(8, 24, 39, 0.42) 100%),
    linear-gradient(to top, rgba(6, 18, 30, 0.9), transparent 55%);
}
.hero__copy { max-width: 720px; }
.hero h1 { color: var(--white); }
.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 58ch;
  margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 46px; }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero__stats div { min-width: 150px; }
.hero__stats dt {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}
.hero__stats dd {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

/* ---------- Trust strip -------------------------------------------------- */

.strip { background: var(--sand-deep); border-bottom: 1px solid var(--line); }
.strip__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-block: 18px;
}
.strip__label {
  margin: 0;
  flex: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a8378;
}
.strip__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #56636f;
}
.strip__items li { position: relative; padding-left: 16px; }
.strip__items li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-50%);
}

/* ---------- Sections ----------------------------------------------------- */

.section { padding-block: clamp(62px, 8vw, 104px); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--navy); color: rgba(255, 255, 255, 0.72); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(30px, 4vw, 46px);
}
.section__head > div { max-width: 620px; }
.section__head h2 { margin-bottom: 0; }
.section__intro {
  max-width: 42ch;
  margin: 0;
  font-size: 0.95rem;
}
.section__head--dark .section__intro { color: rgba(255, 255, 255, 0.62); }

/* ---------- About -------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about__copy > p { max-width: 62ch; }
.about__pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.pillar h3 { font-size: 0.98rem; margin-bottom: 6px; }
.pillar h3::before {
  content: "";
  display: block;
  width: 22px; height: 2px;
  margin-bottom: 10px;
  background: var(--amber);
  border-radius: 2px;
}
.pillar p { font-size: 0.88rem; margin: 0; }

.about__card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 34px);
  position: relative;
  overflow: hidden;
}
.about__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), rgba(245, 165, 36, 0.15));
}
.about__card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8a8378;
  margin-bottom: 8px;
}
.about__card-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 20px;
}

.tick-list { display: grid; gap: 11px; }
.tick-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.92rem;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(245, 165, 36, 0.18);
}
.tick-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 8px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--amber-deep);
  border-bottom: 2px solid var(--amber-deep);
  transform: rotate(-45deg);
}
.about__card .link-arrow { margin-top: 24px; }
.tick-list--stacked { gap: 14px; margin: 24px 0; }
.tick-list--stacked li { line-height: 1.55; }
.tick-list--stacked strong { color: var(--ink); font-weight: 600; }

/* ---------- Cards grid --------------------------------------------------- */

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 32px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: #d6cfc3;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(10, 25, 41, 0.05);
  color: var(--navy);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.92rem; }
.mini-list { display: grid; gap: 7px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.mini-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.83rem;
  color: #63717e;
  font-weight: 500;
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.solution-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--white);
  border: 1px dashed #d8d1c5;
  border-radius: var(--radius);
}
.solution-cta h3 { margin-bottom: 4px; }
.solution-cta p { margin: 0; font-size: 0.9rem; }

/* ---------- Industries --------------------------------------------------- */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--navy-line);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.industry-grid li {
  background: var(--navy);
  padding: clamp(24px, 3vw, 34px);
  transition: background-color 0.2s ease;
}
.industry-grid li:hover { background: #0e2337; }
.industry-grid__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 14px;
}
.industry-grid h3 { font-size: 1.05rem; margin-bottom: 6px; }
.industry-grid p { font-size: 0.86rem; color: rgba(255, 255, 255, 0.6); margin: 0; }

/* ---------- Other services ---------------------------------------------- */

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.service-card__body { padding: clamp(22px, 2.6vw, 30px); }
.service-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 8px;
}
.service-card h3 { font-size: 1.34rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; margin-bottom: 18px; }

/* ---------- Detail (gold / tanks) --------------------------------------- */

.detail__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.detail--reverse .detail__figure { order: 2; }
.detail__figure { margin: 0; }
.detail__figure img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.detail__figure figcaption {
  margin-top: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #8a8378;
}
.detail__copy > p { max-width: 60ch; }
.detail__copy h2 { margin-bottom: 12px; }
.detail__subtitle {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  margin-top: -4px;
  margin-bottom: 16px;
}
.detail__copy .btn { margin-top: 26px; }

/* ---------- Contact ------------------------------------------------------ */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.contact__intro p { max-width: 44ch; margin-bottom: 26px; color: rgba(255, 255, 255, 0.68); }
.contact__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--navy-line);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact__cards li {
  background: #0d2033;
  padding: clamp(22px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
}
.contact__cards li p { margin: 0; color: rgba(255, 255, 255, 0.78); }
.contact__cards a { color: var(--white); font-weight: 600; }
.contact__cards a:hover { color: var(--amber); }
.contact__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 2px;
}
.contact__cards small { font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }

/* ---------- Quote form --------------------------------------------------- */

.section--quote {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(245, 165, 36, 0.12), transparent 70%),
    var(--sand);
  border-top: 1px solid var(--line);
}
.quote {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 4vw, 46px);
  align-items: start;
}
.quote__aside {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  padding: clamp(28px, 3.4vw, 42px);
  position: sticky;
  top: 100px;
}
.quote__aside h2 { color: var(--white); }
.quote__aside > p { font-size: 0.94rem; color: rgba(255, 255, 255, 0.66); }
.steps { display: grid; gap: 22px; margin: 30px 0; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps span {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(245, 165, 36, 0.15);
  border: 1px solid rgba(245, 165, 36, 0.45);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber);
}
.steps strong { display: block; font-size: 0.92rem; color: var(--white); margin-bottom: 3px; }
.steps p { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.quote__aside-note {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
}
.quote__aside-note a { color: var(--amber); font-weight: 600; }

.quote__formwrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 42px);
  box-shadow: var(--shadow-sm);
}
.quote__formtitle { font-size: 1.3rem; margin-bottom: 6px; }
.quote__formsub { font-size: 0.83rem; color: #8a8378; margin-bottom: 26px; }

.form { display: grid; gap: 18px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.req { color: var(--amber-deep); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font);
  font-size: 0.93rem;
  color: var(--ink);
  background: #fbfaf8;
  border: 1px solid #ddd7cc;
  border-radius: var(--radius-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: #a8b0b8; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #c9c1b4; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.18);
}
.field [aria-invalid="true"] {
  border-color: #cf4b3f;
  background: #fdf6f5;
}
.field [aria-invalid="true"]:focus {
  border-color: #cf4b3f;
  box-shadow: 0 0 0 3px rgba(207, 75, 63, 0.16);
}
.hint { margin: 6px 0 0; font-size: 0.75rem; color: #96a0a9; }
.error { margin: 6px 0 0; font-size: 0.77rem; font-weight: 500; color: #c0392b; }

.select-wrap { position: relative; display: block; }
.select-wrap select { padding-right: 40px; cursor: pointer; }
.select-wrap svg {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: #7d8a96;
  pointer-events: none;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: #5b6874;
  cursor: pointer;
  user-select: none;
}
.check input {
  width: 17px; height: 17px;
  margin: 2px 0 0;
  accent-color: var(--amber-deep);
  flex: none;
}
.form__status {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  min-height: 0;
  color: #17663f;
}
.form__status:not(:empty) {
  padding: 14px 16px;
  background: #edf8f2;
  border: 1px solid #bfe3ce;
}
.form__status--error {
  color: #a3312a !important;
}
.form__status a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}
.form__status--error:not(:empty) {
  background: #fdf5f4;
  border-color: #f0c9c4;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__fineprint a { color: var(--ink); font-weight: 600; text-decoration: underline; }
.form button[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.form__fineprint { margin: 0; font-size: 0.73rem; color: #9aa4ad; }

/* ---------- Footer ------------------------------------------------------- */

.footer { background: #071320; color: rgba(255, 255, 255, 0.6); padding-top: clamp(48px, 6vw, 72px); }
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(30px, 5vw, 64px);
  padding-bottom: 44px;
}
.brand--footer .brand__mark { background: rgba(255, 255, 255, 0.07); }
.brand--footer .brand__text strong { color: var(--white); }
.brand--footer .brand__text small { color: rgba(255, 255, 255, 0.42); }
.footer__brand p { margin: 18px 0 0; font-size: 0.88rem; max-width: 34ch; color: rgba(255, 255, 255, 0.52); }
.footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 26px;
}
.footer__nav h3 {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}
.footer__nav ul { display: grid; gap: 9px; font-size: 0.87rem; }
.footer__nav a:hover { color: var(--amber); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer__bottom p { margin: 0; }

/* ---------- Reveal animation -------------------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Responsive --------------------------------------------------- */

@media (max-width: 1024px) {
  .about,
  .contact,
  .quote { grid-template-columns: 1fr; }
  .quote__aside { position: static; }
  .detail__inner { grid-template-columns: 1fr; }
  .detail--reverse .detail__figure { order: 0; }
  .detail__figure img { aspect-ratio: 16 / 9; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section__intro { max-width: 60ch; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px clamp(18px, 4vw, 40px) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(10, 25, 41, 0.1);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 13px 12px;
    font-size: 0.95rem;
  }
  .nav__link.is-active::after { display: none; }
  .nav__cta { width: 100%; }
  .submenu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 2px 0 6px 12px;
    padding: 4px 0 4px 8px;
    display: none;
    background: none;
  }
  .has-menu.is-open .submenu { display: block; }
  .has-menu:hover .submenu { display: none; }
  .has-menu.is-open:hover .submenu { display: block; }
  .topbar__note { display: none; }
  .topbar__inner { justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .form__row { grid-template-columns: 1fr; }
  .hero__stats { gap: 16px 24px; }
  .hero__stats div { min-width: 130px; }
  .strip__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .strip__items { gap: 8px 18px; font-size: 0.82rem; }
  .solution-cta { flex-direction: column; align-items: flex-start; }
  .solution-cta .btn { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
