/* Finger Lakes Automotive — draft site styles
   Palette: black, charcoal, gray, tan, bronze, cream
   Mobile-first, fast, no framework. */

:root {
  --black: #0b0b0c;
  --charcoal: #1c1d1f;
  --charcoal-2: #26282b;
  --gray: #6f7276;
  --gray-2: #3a3c40;
  --gray-3: #9a9da1;
  --tan: #c4a574;
  --tan-2: #d4b98a;
  --bronze: #8c6a3d;
  --cream: #f4efe6;
  --cream-2: #e8e0d2;
  --white: #fbf9f5;
  --danger: #c45c4a;
  --sample: #c4a574;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --radius: 10px;
  --max: 72rem;
  --header-h: 4.5rem;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", Roboto, sans-serif;
  --space: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cream);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, video, svg { max-width: 100%; height: auto; display: block; }
picture { display: block; }
img[width][height] { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--tan); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--tan-2); }
:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--tan);
  color: var(--black);
  padding: 0.5rem 0.9rem;
  z-index: 100;
  font-weight: 700;
}
.skip:focus { top: 0.75rem; }

/* Type */
h1, h2, h3, h4, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 0.6em;
}
h1, .h1 { font-size: clamp(2.15rem, 6vw, 3.85rem); letter-spacing: 0.01em; }
h2, .h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3, .h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: 0.08em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.28rem); color: var(--cream-2); max-width: 38rem; }
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 0.65rem;
}
.muted { color: var(--gray-3); }
.fine { font-size: 0.9rem; color: var(--gray-3); }

/* Layout */
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.section { padding: clamp(2.75rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(1.75rem, 4vw, 3rem) 0; }
.section-cream { background: var(--cream); color: var(--charcoal); }
.section-cream h2, .section-cream h3, .section-cream .h2, .section-cream .h3 { color: var(--black); }
.section-cream .kicker { color: var(--bronze); }
.section-cream .lead, .section-cream p { color: #2a2c2e; }
.section-cream a { color: #6a4e28; }
.section-charcoal { background: var(--charcoal); }
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .split.reverse { grid-template-columns: 0.9fr 1.1fr; }
  .split.reverse > :first-child { order: 2; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 165, 116, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  min-width: 0;
  flex-shrink: 0;
}
.logo:hover { color: var(--white); }
img.logo-img[width][height],
.logo-img {
  display: block;
  height: 2.5rem; /* 40px on small screens */
  width: auto;
  max-width: min(16rem, 70vw);
}
@media (min-width: 700px) {
  img.logo-img[width][height],
  .logo-img { height: 3rem; } /* 48px */
}
@media (min-width: 1100px) {
  img.logo-img[width][height],
  .logo-img { height: 3.25rem; } /* 52px */
}
.site-footer img.logo-img[width][height],
.site-footer .logo-img {
  height: 3.25rem;
  max-width: 100%;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(196, 165, 116, 0.35);
  background: transparent;
  color: var(--cream);
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; }
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
}

.nav {
  display: none;
}
.nav.is-open { display: block; }
@media (min-width: 1100px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 0.15rem 0.95rem;
  }
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
@media (min-width: 1100px) {
  .nav-links {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 0.15rem 1rem;
  }
  .nav-panel { display: contents; }
}
.nav a.nav-link,
.more-btn {
  display: block;
  color: var(--cream-2);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav a.nav-link:hover,
.more-btn:hover,
.nav a.nav-link[aria-current="page"] { color: var(--tan); }

/* More dropdown */
.more { position: relative; }
.more-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0.6rem 0.9rem;
}
.more.is-open .more-menu { display: block; }
@media (min-width: 1100px) {
  .more-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 12rem;
    background: var(--charcoal);
    border: 1px solid rgba(196, 165, 116, 0.25);
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
  }
  .more-menu a { padding: 0.45rem 0.9rem; }
  .more:hover .more-menu,
  .more:focus-within .more-menu,
  .more.is-open .more-menu { display: block; }
}

.nav-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0 1.1rem;
}
@media (min-width: 1100px) {
  .nav-cta { padding: 0 0 0 0.6rem; flex-wrap: nowrap; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.84rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--tan); color: var(--black); }
.btn-primary:hover { background: var(--tan-2); color: var(--black); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(196, 165, 116, 0.45);
}
.btn-ghost:hover { border-color: var(--tan); color: var(--tan); }
.btn-dark {
  background: var(--black);
  color: var(--cream);
  border-color: var(--black);
}
.btn-dark:hover { background: var(--charcoal-2); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.25rem; }

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 42rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--black);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,12,0.35) 0%, rgba(11,11,12,0.55) 40%, rgba(11,11,12,0.88) 100%),
    linear-gradient(90deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.15) 60%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 3.25rem;
  max-width: 42rem;
}
.hero h1 { margin-bottom: 0.7rem; }

/* Price promise */
.promise {
  background: var(--tan);
  color: var(--black);
  text-align: center;
  padding: 1.35rem 1rem;
}
.promise p { margin: 0; }
.promise-line {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}
.promise-sub { margin-top: 0.35rem; font-size: 1rem; }

/* Cards */
.card {
  background: var(--charcoal);
  border: 1px solid rgba(196, 165, 116, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
  height: 100%;
}
.section-cream .card {
  background: var(--white);
  border-color: rgba(140, 106, 61, 0.18);
  color: var(--charcoal);
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--tan); color: inherit; }
.icon-line {
  width: 2rem;
  height: 2px;
  background: var(--tan);
  margin-bottom: 0.85rem;
}

/* Media figure — aspect-ratio lives on the image so photos paint reliably (no absolute fill). */
.shot {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal-2);
  margin: 0;
  line-height: 0;
}
.shot picture { display: block; width: 100%; }
.shot img,
.shot img[width][height] {
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
.shot-wide img, .shot-pano img { aspect-ratio: 16 / 9; }
.shot-sq img { aspect-ratio: 1 / 1; }
.shot-tall img { aspect-ratio: 4 / 5; }
.shot-land img { aspect-ratio: 4 / 3; }

/* Brands */
.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.4rem;
  justify-content: flex-start;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}
.brands li {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--cream-2);
  border: 1px solid rgba(196, 165, 116, 0.28);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

/* Quotes / reviews */
.quote {
  border-left: 2px solid var(--tan);
  padding: 0.15rem 0 0.15rem 1rem;
}
.quote p { font-style: italic; color: var(--cream-2); }
.quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--tan);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Forms */
form { display: grid; gap: 0.9rem; }
label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
input, select, textarea {
  background: var(--black);
  border: 1px solid rgba(196, 165, 116, 0.28);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  color: var(--cream);
  width: 100%;
}
.section-cream input,
.section-cream select,
.section-cream textarea {
  background: var(--white);
  color: var(--black);
  border-color: rgba(140, 106, 61, 0.35);
}
textarea { min-height: 8rem; resize: vertical; }
.form-row {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* Tire search */
.tire-search {
  background: var(--charcoal);
  border: 1px solid rgba(196, 165, 116, 0.18);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tab {
  background: transparent;
  border: 1px solid rgba(196, 165, 116, 0.3);
  color: var(--cream-2);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.tab[aria-selected="true"] {
  background: var(--tan);
  color: var(--black);
  border-color: var(--tan);
}
.panel[hidden] { display: none; }
.size-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
@media (min-width: 700px) {
  .size-row { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
}
.results { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.tire-card {
  display: grid;
  gap: 0.35rem 1rem;
  background: var(--black);
  border: 1px solid rgba(196, 165, 116, 0.16);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}
@media (min-width: 700px) {
  .tire-card {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
}
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
  background: var(--tan);
  color: var(--black);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.price-sample, .tire-price { color: var(--tan-2); font-weight: 700; }
.sample-note {
  background: rgba(196, 165, 116, 0.1);
  border: 1px dashed rgba(196, 165, 116, 0.45);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.92rem;
  color: var(--cream-2);
}

/* Gallery + placeholders */
.gallery {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: 1fr 1fr 1fr; } }
.gallery figcaption {
  font-size: 0.88rem;
  color: var(--gray-3);
  padding: 0.5rem 0.1rem 0;
}
.placeholder-tile {
  min-height: 12rem;
  border: 1px dashed rgba(196, 165, 116, 0.45);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(196,165,116,0.05) 0 12px, transparent 12px 24px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.25rem;
  color: var(--gray-3);
  font-size: 0.92rem;
}
.placeholder-tile strong {
  display: block;
  color: var(--tan);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

/* Booking embed placeholder */
#booking-embed {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}
#booking-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  /* Shopmonkey's work-request form is taller than the snippet's height=700 and does not
     scroll inside the frame, so the CSS height is raised so the full form (incl. Send) fits
     on desktop (~1320px) and stacked mobile (~1510px). */
  height: 1600px;
  border: 0;
  background: #111;
}

/* Map */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 18rem;
  border: 1px solid rgba(196, 165, 116, 0.18);
}
.map-wrap iframe {
  width: 100%;
  height: 18rem;
  border: 0;
  display: block;
  filter: grayscale(0.25) contrast(1.05);
}

/* Hours table */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td {
  text-align: left;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(196, 165, 116, 0.16);
  font-weight: 400;
}
.hours th { color: var(--cream); width: 40%; }

/* Page hero (interior) */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4.25rem) 0 0.5rem;
  background:
    linear-gradient(180deg, rgba(28,29,31,0.95), var(--black) 80%),
    var(--charcoal);
  border-bottom: 1px solid rgba(196, 165, 116, 0.12);
}
.page-hero h1 { max-width: 20ch; }

/* Footer */
.site-footer {
  background: #080809;
  border-top: 1px solid rgba(196, 165, 116, 0.16);
  padding: 2.75rem 0 1.5rem;
  color: var(--gray-3);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
.site-footer h2 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--tan);
  margin-bottom: 0.7rem;
}
.site-footer a { color: var(--cream-2); text-decoration: none; }
.site-footer a:hover { color: var(--tan); }
.footer-nav, .footer-meta { list-style: none; margin: 0; padding: 0; }
.footer-nav li, .footer-meta li { margin: 0.25rem 0; }
.legal {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.82rem;
}

/* Misc */
.hr-tan {
  border: 0;
  height: 1px;
  background: rgba(196, 165, 116, 0.25);
  margin: 0;
}
.callout {
  background: var(--charcoal);
  border-left: 3px solid var(--tan);
  padding: 1rem 1.1rem;
  border-radius: 0 8px 8px 0;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Mobile header nav panel */
@media (max-width: 1099px) {
  .nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--charcoal);
    border-bottom: 1px solid rgba(196, 165, 116, 0.2);
    padding: 0 1rem;
    max-height: calc(100dvh - var(--header-h));
    overflow: auto;
  }
}
