/* StartupLeasing.com
   Tokens, base, components, sections, then breakpoints (1180, 720). */

:root {
  --navy: #122345;
  --navy-deep: #002345;
  --rust: #953f1a;
  --rust-dark: #7d3414;
  --rust-bright: #c46028;
  --cream: #fdfcfb;
  --sand: #f6f3ef;
  --line: #d9d4cc;
  --text: #1f2a44;
  --focus: #c46028;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --script: "Mr Dafoe", "Brush Script MT", cursive;

  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 88px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.5; color: var(--text); background: var(--cream); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); color: var(--navy); line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

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

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; border-radius: 0 0 4px 4px; }
.skip-link:focus { top: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 14px 36px; font: 600 1.05rem/1.2 var(--sans); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border: 2px solid transparent; border-radius: 3px; transition: background-color .15s, color .15s; }
.btn-primary { background: var(--rust); color: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .18); }
.btn-primary:hover { background: var(--rust-dark); }
.btn-outline { background: rgb(255 255 255 / .9); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: .95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgb(0 0 0 / .08); }
.header-inner { position: relative; display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.logo { flex: none; display: block; }
.logo img { width: 300px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 22px; }
.main-nav a { display: block; padding: 10px 0; font-size: .92rem; font-weight: 500; color: var(--navy); text-decoration: none; white-space: nowrap; }
.main-nav a:hover { color: var(--rust); }
.nav-phone { display: none; }
.phone { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 1.1rem; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.phone svg { width: 20px; fill: currentColor; }
.phone:hover { color: var(--rust); }

.menu-toggle { display: none; flex: none; flex-direction: column; justify-content: center; gap: 6px; width: 48px; height: 48px; padding: 12px; border: 0; background: none; cursor: pointer; }
.menu-toggle .bar { display: block; height: 3px; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .bar:nth-of-type(2) { transform: translateY(9px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-of-type(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-of-type(4) { transform: translateY(-9px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero-photo { position: absolute; inset: 0 0 0 38%; background: url("images/hero.jpg") center / cover no-repeat; }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream) 0%, rgb(253 252 251 / .75) 22%, rgb(253 252 251 / 0) 50%); }
.hero-inner { position: relative; padding-block: 56px 60px; }
.eyebrow { margin-bottom: 18px; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); }
.hero h1 { max-width: 9.5em; font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 800; line-height: .98; letter-spacing: -.02em; }
.hero .accent { color: var(--rust); }
.hero-sub { margin: 18px 0 32px; font-size: clamp(1.15rem, 2vw, 1.55rem); color: var(--navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; }

/* Features */
.features { padding-block: 28px 32px; background: var(--sand); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { padding: 6px 26px; text-align: center; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature svg { width: 64px; margin: 0 auto 10px; }
.feature h3 { margin-bottom: 8px; font-size: 1.45rem; }
.feature p { font-size: 1.02rem; }

/* How it works */
.how { padding-block: 32px 36px; }
.how-head { display: flex; align-items: center; gap: 22px; margin-bottom: 28px; }
.how-head h2 { font-size: 2.1rem; text-transform: uppercase; white-space: nowrap; }
.how-head .rule { flex: 0 1 300px; height: 2px; background: var(--rust); }
.how-head .eyebrow { margin: 0 0 0 auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.steps li { display: flex; align-items: flex-start; gap: 24px; padding: 0 16px; }
.steps li + li { padding-left: 44px; border-left: 1px solid var(--line); }
.num { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--rust); color: #fff; font: 700 2.2rem/1 var(--serif); }
.steps h3 { margin: 10px 0 4px; font-size: 1.5rem; }
.steps p { font-size: 1.05rem; }

/* Call to action */
.cta { position: relative; background: var(--navy-deep); color: #fff; }
.cta-mountains { height: 64px; background: url("images/mountains.jpg") center top / cover no-repeat; }
.cta-inner { display: flex; align-items: center; gap: 40px; padding-block: 12px 40px; }
.script { font-family: var(--script); font-size: 3rem; line-height: .95; transform: rotate(-8deg); }
.script sup { font-family: var(--sans); font-size: .25em; }
.cta .script { padding-right: 40px; border-right: 2px solid var(--rust-bright); }
.cta-text { flex: 1; }
.cta h2 { font-size: 1.9rem; color: #fff; }
.cta-text p { margin-top: 6px; }

/* Footer */
.site-footer { padding-block: 24px 32px; font-size: .9rem; color: var(--navy); background: var(--cream); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer-nav, .legal { display: flex; flex-wrap: wrap; }
.footer-nav li + li::before, .legal span + span::before { content: "|"; margin: 0 12px; }
.footer-nav a { display: inline-block; padding: 8px 0; text-decoration: none; }
.footer-nav a:hover { color: var(--rust); }
.legal { margin-top: 6px; }
.social { display: flex; gap: 8px; margin-left: auto; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; }
.social svg { width: 26px; fill: var(--navy); }
.social a:hover svg { fill: var(--rust); }
.footer-script { font-size: 1.9rem; color: var(--navy); transform: rotate(-6deg); }

/* Tablet and narrow desktop */
@media (max-width: 1180px) {
  .menu-toggle { display: flex; }
  .header-cta { margin-left: auto; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 8px 0 16px; background: #fff; box-shadow: 0 10px 18px rgb(0 0 0 / .12); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px var(--gutter); font-size: 1.05rem; border-top: 1px solid var(--sand); }
  .nav-phone { display: block; }
  .nav-phone a { font-weight: 700; }
  .features-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .feature:nth-child(3) { border-left: 0; }
  .steps li + li { padding-left: 28px; }
}

@media (max-width: 900px) {
  .phone { display: none; }
}

/* Phone */
@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 68px; }
  .header-inner { gap: 10px; }
  .logo img { width: 180px; }
  .header-cta { padding-inline: 14px; font-size: .8rem; }
  .hero-photo { position: relative; inset: auto; height: 240px; }
  .hero-photo::before { background: linear-gradient(180deg, rgb(253 252 251 / 0) 60%, var(--cream) 100%); }
  .hero-inner { padding-block: 20px 36px; }
  .hero .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .features-grid { grid-template-columns: 1fr; row-gap: 0; }
  .feature { padding: 22px 8px; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .how-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .how-head h2 { font-size: 1.8rem; }
  .how-head .rule { display: none; }
  .how-head .eyebrow { margin: 0; }
  .steps { grid-template-columns: 1fr; row-gap: 24px; }
  .steps li, .steps li + li { padding: 0; border-left: 0; }
  .cta-inner { flex-direction: column; gap: 24px; text-align: center; }
  .cta .script { padding-right: 0; border-right: 0; }
  .cta .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .social { margin-left: -10px; }
}

@media (max-width: 400px) {
  .header-inner { gap: 6px; }
  .logo img { width: 158px; }
  .header-cta { padding-inline: 10px; font-size: .74rem; }
  .menu-toggle { width: 44px; padding: 10px; }
}

@media (max-width: 340px) {
  .logo img { width: 132px; }
  .header-cta .arrow { display: none; }
}
