/*
Theme Name: East Bay
Description: Custom theme for East Bay private vehicle acquisition.
Version: 1.0
Text Domain: eastbay
*/

:root {
  --petrol: #0f2a2d;
  --petrol-2: #163a3e;
  --chalk: #f3f3ef;
  --paper: #e6e8e3;
  --ink: #18201f;
  --ink-soft: #46524f;
  --brass: #b38b55;
  --brass-light: #d2b07c;
  --fog: #9aaba9;
  --rule-dark: rgba(243, 243, 239, 0.16);
  --rule-light: rgba(24, 32, 31, 0.14);
  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto;
  background: var(--chalk); color: var(--ink); padding: 10px 16px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 6.6vw, 104px); }
h2 { font-size: clamp(34px, 4.2vw, 62px); }
h3 { font-size: clamp(24px, 2.2vw, 32px); }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 34em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 15px/1 var(--text); font-variation-settings: "wdth" 112;
  letter-spacing: .02em; text-decoration: none;
  padding: 17px 26px; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-brass { background: var(--brass); color: var(--petrol); }
.btn-brass:hover { background: var(--brass-light); }
.btn-ghost { border-color: rgba(243,243,239,.5); color: var(--chalk); }
.btn-ghost:hover { border-color: var(--chalk); background: rgba(243,243,239,.08); }
.btn-ink { background: var(--petrol); color: var(--chalk); }
.btn-ink:hover { background: var(--petrol-2); }

/* Header */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  color: var(--chalk);
}
.site-header.is-solid { position: relative; background: var(--petrol); }
.header-inner {
  max-width: none; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 26px var(--gutter);
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 30px; letter-spacing: .01em; }
.brand-tag {
  font-size: 11.5px; margin-top: 6px; color: var(--brass-light);
  font-variation-settings: "wdth" 125; letter-spacing: .06em;
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: 15px; opacity: .88; }
.nav a:hover, .nav .current-menu-item > a { opacity: 1; box-shadow: inset 0 -1px 0 var(--brass); }
.nav .btn { opacity: 1; padding: 13px 20px; }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(243,243,239,.45); color: var(--chalk);
  font: 500 14px var(--text); padding: 10px 14px; border-radius: 2px; cursor: pointer;
}
@media (max-width: 1020px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--petrol); padding: 8px var(--gutter) 28px;
    border-top: 1px solid var(--rule-dark);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); font-size: 17px; }
  .nav .btn { margin-top: 22px; justify-content: center; }
}

/* Hero slider */
.hero {
  position: relative; min-height: min(100svh, 1000px); color: var(--chalk); background: var(--petrol);
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; margin: 0; padding: 0; list-style: none; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 9s ease-out;
}
.hero-slide.is-active img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,42,45,.55) 0%, rgba(15,42,45,0) 26%),
    linear-gradient(90deg, rgba(10,30,32,.72) 0%, rgba(10,30,32,.35) 45%, rgba(10,30,32,0) 70%),
    linear-gradient(0deg, rgba(10,30,32,.92) 0%, rgba(10,30,32,.45) 38%, rgba(10,30,32,0) 66%);
}
.hero-content {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px;
  padding-bottom: clamp(36px, 7vh, 80px);
}
.hero h1 { max-width: 11.5em; margin-bottom: .35em; }
.hero-lede { font-size: clamp(17px, 1.35vw, 20px); max-width: 33em; color: rgba(243,243,239,.86); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-controls { min-width: 270px; }
.hero-caption { min-height: 3.2em; margin-bottom: 18px; }
.hero-caption strong { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; }
.hero-caption span { font-size: 14px; color: rgba(243,243,239,.72); }
.hero-dots { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hero-dot {
  width: 46px; height: 22px; padding: 0; background: none; border: 0; cursor: pointer; position: relative;
}
.hero-dot::before, .hero-dot::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(243,243,239,.3);
}
.hero-dot::after { background: var(--brass); right: 100%; }
.hero-dot.is-active::after { animation: eb-fill var(--eb-slide, 7s) linear forwards; }
.hero.is-paused .hero-dot.is-active::after, .hero.no-motion .hero-dot.is-active::after { animation: none; right: 0; }
@keyframes eb-fill { to { right: 0; } }
.hero-arrows { display: flex; gap: 8px; margin-top: 16px; }
.hero-arrow {
  width: 44px; height: 44px; border: 1px solid rgba(243,243,239,.4); background: none; color: var(--chalk);
  border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1;
}
.hero-arrow:hover { border-color: var(--chalk); }
@media (max-width: 860px) {
  .hero::after { background: linear-gradient(0deg, rgba(10,30,32,.95) 0%, rgba(10,30,32,.7) 55%, rgba(10,30,32,.25) 100%); }
  .hero-content { grid-template-columns: 1fr; gap: 28px; }
  .hero-controls { min-width: 0; }
}

/* Sections */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-dark { background: var(--petrol); color: var(--chalk); }
.section-paper { background: var(--paper); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 96px); align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 34em; }
.section-dark .section-head p { color: rgba(243,243,239,.75); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Intro statement */
.statement { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.statement h2 { font-size: clamp(36px, 4.6vw, 70px); }
.statement-body { padding-top: .6em; color: var(--ink-soft); font-size: 18px; }
.statement-body p:last-child { margin: 0; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }

/* Services list beside image */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: stretch; }
.split-media { position: relative; min-height: 420px; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-dark); }
.service-list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--rule-dark); }
.service-list h3 { font-size: 26px; margin: 0; }
.service-list p { margin: 0; color: rgba(243,243,239,.75); font-size: 16px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 300px; }
  .service-list li { grid-template-columns: 1fr; gap: 6px; }
}

/* Process — a real sequence, so it is numbered */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.process li { counter-increment: step; padding: 0 24px 0 0; border-top: 1px solid var(--ink); position: relative; }
.process li::before {
  content: counter(step); display: block; font-family: var(--display); font-size: 54px; line-height: 1;
  color: var(--brass); margin: 22px 0 18px;
}
.process h3 { font-size: 24px; margin-bottom: 10px; }
.process p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
@media (max-width: 1020px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* Banner */
.banner { position: relative; min-height: clamp(460px, 72vh, 760px); display: flex; align-items: center; color: var(--chalk); isolation: isolate; overflow: hidden; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,30,32,.88) 0%, rgba(10,30,32,.55) 45%, rgba(10,30,32,.1) 100%); }
.banner h2 { max-width: 12em; }
.banner p { max-width: 30em; color: rgba(243,243,239,.82); font-size: 18px; }

/* What we source — tiles of unequal size */
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 24vw, 330px); gap: 14px; }
.tile { position: relative; overflow: hidden; color: var(--chalk); text-decoration: none; display: flex; align-items: flex-end; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,30,32,.85), rgba(10,30,32,0) 60%); }
.tile:hover img { transform: scale(1.04); }
.tile-body { padding: 26px; }
.tile h3 { margin: 0 0 6px; }
.tile p { margin: 0; font-size: 15px; color: rgba(243,243,239,.8); max-width: 26em; }
.tile-a { grid-column: span 7; grid-row: span 2; }
.tile-b { grid-column: span 5; }
.tile-c { grid-column: span 5; }
.tile-d { grid-column: span 12; }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .tile-a, .tile-b, .tile-c, .tile-d { grid-column: auto; grid-row: auto; }
}

/* CTA band */
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.cta-band h2 { margin: 0; max-width: 14em; }
.cta-band p { margin: 14px 0 0; color: rgba(243,243,239,.75); max-width: 34em; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* Inner page hero */
.page-hero { position: relative; color: var(--chalk); background: var(--petrol); padding: clamp(150px, 20vw, 230px) 0 clamp(56px, 7vw, 96px); isolation: isolate; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(15,42,45,.95), rgba(15,42,45,.35)); }
.page-hero h1 { font-size: clamp(42px, 5.6vw, 84px); max-width: 13em; margin: 0; }
.page-hero p { margin: 18px 0 0; max-width: 34em; color: rgba(243,243,239,.82); font-size: 19px; }

/* Editor content */
.entry { padding: clamp(64px, 9vw, 120px) 0; }
.entry-inner { max-width: 760px; }
.entry-inner > * + h2 { margin-top: 1.4em; }
.entry-inner h2 { font-size: clamp(30px, 3.2vw, 44px); }
.entry-inner h3 { margin-top: 1.4em; }
.entry-inner p, .entry-inner li { color: var(--ink-soft); font-size: 18px; }
.entry-inner ul { padding-left: 1.1em; }
.entry-inner li { margin-bottom: .5em; }
.entry-inner li::marker { color: var(--brass); }
.entry-inner details { border-top: 1px solid var(--rule-light); padding: 22px 0; }
.entry-inner details:last-of-type { border-bottom: 1px solid var(--rule-light); }
.entry-inner summary { cursor: pointer; font-family: var(--display); font-size: 24px; line-height: 1.25; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.entry-inner summary::-webkit-details-marker { display: none; }
.entry-inner summary::after { content: "+"; font-family: var(--text); color: var(--brass); font-size: 24px; transition: transform .2s; }
.entry-inner details[open] summary::after { transform: rotate(45deg); }
.entry-inner details p { margin: 14px 0 0; }
.entry-inner figure { margin: 2em 0; }

/* Request form */
.request { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.request-aside p { color: var(--ink-soft); }
.request-aside dl { margin: 28px 0 0; border-top: 1px solid var(--rule-light); }
.request-aside dt { font-weight: 600; margin-top: 18px; }
.request-aside dd { margin: 2px 0 0; color: var(--ink-soft); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form label small { font-weight: 400; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  width: 100%; font: 400 16px/1.4 var(--text); color: var(--ink);
  background: #fff; border: 1px solid #c4cac7; border-radius: 2px; padding: 14px 15px;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--petrol); outline: none; box-shadow: 0 0 0 3px rgba(179,139,85,.35); }
.form .hp { position: absolute; left: -9999px; }
.form-note { font-size: 14px; color: var(--ink-soft); margin: 0; }
.notice { padding: 18px 20px; margin-bottom: 28px; border-left: 3px solid var(--brass); background: var(--paper); }
.notice-error { border-left-color: #a3322a; }
@media (max-width: 860px) {
  .request { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { background: #0b2023; color: rgba(243,243,239,.75); padding: 72px 0 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 48px; }
.footer-grid h2 { font-size: 15px; font-family: var(--text); font-weight: 600; color: var(--chalk); margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--chalk); }
.footer-brand .brand-name { color: var(--chalk); }
.footer-brand p { margin-top: 18px; max-width: 26em; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-slide img { transform: none !important; }
}
