/* ===========================================================
   Russ Auto Care — splash site
   Schmiedlin Designs
   Navy #0B2545 · Gold #F2BC18
   =========================================================== */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/source-sans-3-700.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/source-sans-3-900.woff2") format("woff2");
}

:root {
  --navy:       #0B2545;
  --navy-light: #13365F;
  --navy-deep:  #071A33;
  --gold:       #F2BC18;
  --white:      #FFFFFF;
  --panel:      #EEEEEE;   /* matches the background of the embedded Kukui pages */
  --ink:        #2A3B4F;
  --ink-soft:   #5A6B80;
  --stack: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont,
           "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--stack);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- hero ---------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 72px) clamp(20px, 6vw, 64px) clamp(72px, 11vw, 118px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("bg.jpg");
  background-size: cover;
  background-position: 32% 58%;
  transform: scale(1.04);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(112% 86% at 50% 44%,
      rgba(11,37,69,.30) 0%,
      rgba(11,37,69,.62) 54%,
      rgba(7,24,46,.88) 100%),
    linear-gradient(180deg,
      rgba(11,37,69,.82) 0%,
      rgba(11,37,69,.28) 32%,
      rgba(11,37,69,.44) 68%,
      rgba(8,26,50,.90) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 780px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  width: clamp(84px, 12vw, 138px);
  height: auto;
  color: var(--gold);
  display: block;
  filter: drop-shadow(0 14px 34px rgba(0,0,0,.45));
}

.lockup { margin: clamp(22px, 3.4vw, 38px) 0 0; line-height: 0; }

.wordmark {
  width: clamp(248px, 64vw, 520px);
  height: auto;
  color: var(--white);
  display: block;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.40));
}

.rule {
  width: clamp(72px, 11vw, 104px);
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: clamp(26px, 3.8vw, 40px) 0 clamp(18px, 2.8vw, 28px);
}

.tagline {
  margin: 0;
  font-weight: 700;
  font-size: clamp(17px, 2.7vw, 25px);
  letter-spacing: -.005em;
  line-height: 1.28;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0,0,0,.55);
}

.eyebrow {
  margin: clamp(30px, 4.4vw, 48px) 0 0;
  font-weight: 700;
  font-size: clamp(11px, 1.5vw, 13.5px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}

.note {
  margin: clamp(10px, 1.6vw, 15px) 0 0;
  max-width: 34ch;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
  text-wrap: balance;
  color: rgba(255,255,255,.82);
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: clamp(30px, 4.4vw, 46px);
  padding: 15px 30px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(11,37,69,.32);
  font-weight: 700;
  font-size: clamp(15px, 1.9vw, 17px);
  letter-spacing: .01em;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.cta:hover,
.cta:focus-visible { background: var(--gold); color: var(--navy); transform: translateY(-1px); }
.cta svg { width: 14px; height: 14px; flex: none; }

/* ---------- shared page header (sub-pages) --------------- */

.topbar {
  background: var(--navy-deep);
  border-bottom: 4px solid var(--gold);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar .mark { width: 34px; color: var(--gold); flex: none; }
.topbar .name { width: 168px; color: var(--white); }
.topbar a.home {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  line-height: 0;
}

.topbar .back {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.topbar .back:hover { text-decoration: underline; }

/* ---------- content sections ---------------------------- */

.section-head {
  background: var(--navy);
  padding: clamp(44px, 7vw, 78px) clamp(20px, 5vw, 48px) clamp(32px, 5vw, 52px);
  text-align: center;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(26px, 4.6vw, 42px);
  letter-spacing: -.015em;
  line-height: 1.12;
  text-wrap: balance;
}

.section-head p {
  margin: clamp(12px, 1.8vw, 18px) auto 0;
  max-width: 56ch;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  text-wrap: balance;
}

.section-head .kicker {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* the embedded Kukui pages sit on #EEEEEE, so the panel matches them
   exactly and the seam disappears */
.embed {
  background: var(--panel);
  padding: 0;
}

.embed-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* The embedded pages are on another domain, so the page can't measure them
   and size the frame to fit. These heights are set generously on purpose:
   extra whitespace below the content is harmless, a cut-off Submit button
   is not. Trim them once the site is live and the real heights are visible. */
.embed iframe {
  display: block;
  width: 100%;
  border: 0;
  height: 880px;
}

.embed.tall iframe { height: 1500px; }

@media (max-width: 900px) {
  .embed iframe { height: 1080px; }
  .embed.tall iframe { height: 1800px; }
}

@media (max-width: 560px) {
  .embed iframe { height: 1420px; }
  .embed.tall iframe { height: 2300px; }
}

.embed-fallback {
  background: var(--panel);
  color: var(--ink);
  text-align: center;
  font-size: 15px;
  padding: 0 20px 34px;
  margin: 0;
}
.embed-fallback a { color: var(--navy); font-weight: 700; }

/* ---------- footer -------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  border-top: 8px solid var(--gold);
  padding: clamp(38px, 6vw, 58px) clamp(20px, 5vw, 48px) clamp(30px, 4vw, 40px);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(26px, 5vw, 56px);
  align-items: flex-start;
}

.footer-brand { flex: 1 1 260px; }
.footer-brand .mark { width: 44px; color: var(--gold); display: block; }
.footer-brand p {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.78);
}
.footer-brand .biz { color: var(--white); font-weight: 700; }
.footer-brand a { color: var(--gold); text-decoration: none; font-weight: 700; }
.footer-brand a:hover { text-decoration: underline; }

.footer-links { flex: 0 1 auto; }
.footer-links h2 {
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 9px; }
.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid rgba(242,188,24,.4);
  padding-bottom: 1px;
}
.footer-links a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.colophon {
  max-width: 1120px;
  margin: clamp(30px, 4vw, 44px) auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.5);
}

/* ---------- motion -------------------------------------- */

.hero-inner > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .72s cubic-bezier(.2,.7,.3,1) forwards;
}
.hero-inner .badge   { animation-delay: .05s; }
.hero-inner .lockup  { animation-delay: .16s; }
.hero-inner .rule    { animation-delay: .27s; }
.hero-inner .tagline { animation-delay: .35s; }
.hero-inner .eyebrow { animation-delay: .46s; }
.hero-inner .note    { animation-delay: .54s; }
.hero-inner .cta     { animation-delay: .64s; }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner > * { animation: none; opacity: 1; transform: none; }
  .hero::before { transform: none; }
  .cta { transition: none; }
}

/* portrait crops land on a calmer part of the photograph */
@media (max-width: 760px) {
  .hero::before { background-position: 62% 72%; }
  .hero::after {
    background:
      radial-gradient(105% 62% at 50% 44%,
        rgba(11,37,69,.34) 0%,
        rgba(11,37,69,.66) 56%,
        rgba(7,24,46,.90) 100%),
      linear-gradient(180deg,
        rgba(11,37,69,.90) 0%,
        rgba(11,37,69,.36) 34%,
        rgba(11,37,69,.50) 70%,
        rgba(8,26,50,.92) 100%);
  }
  .topbar .name { width: 140px; }
}
