/* === Paul Reeves Bike Art — Site Styles === */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

/* --- Tokens --- */
:root {
  --black:      #1a1a18;
  --charcoal:   #2e2e2a;
  --rust:       #8b3a1e;
  --rust-light: #b04a28;
  --cream:      #f0ebe2;
  --warm-white: #faf8f4;
  --mid:        #6b6860;
  --border:     #d4cfc5;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;

  --max-w: 1100px;
  --nav-h: 64px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--black);
  background: var(--warm-white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* --- Nav --- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--cream);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; color: #fff; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  flex-wrap: wrap;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 0.4rem 0.9rem;
  color: #b0ada5;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; text-decoration: none; }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: 0.25s;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,24,0.72) 0%, transparent 55%);
}
.hero-text {
  position: relative;
  padding: 2.5rem 2.5rem;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}
.hero-text p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* --- Page wrapper --- */
.page { max-width: var(--max-w); margin: 0 auto; padding: 3rem 2rem 5rem; }

/* --- Section heading --- */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

/* --- Home page --- */
.home-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3.5rem;
}
.home-intro img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.home-intro-text { display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; }
.home-intro-text p { color: var(--charcoal); max-width: 60ch; }

.home-display { margin-top: 3rem; }
.home-display img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}
.home-display p { max-width: 65ch; color: var(--charcoal); }
.gofundme-link {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.65rem 1.5rem;
  background: var(--rust);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 2px;
  transition: background 0.15s;
}
.gofundme-link:hover { background: var(--rust-light); text-decoration: none; }

/* --- Collection grid --- */
.collection-intro { max-width: 60ch; margin-bottom: 2.5rem; color: var(--mid); font-style: italic; }
.bike-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}
.bike-card {}
.bike-card-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 0.85rem;
}
.bike-card-images.single { grid-template-columns: 1fr; }
.bike-card-images img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.bike-card-images.single img { height: 260px; }
.bike-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}
.bike-desc { font-size: 0.9rem; color: var(--mid); line-height: 1.6; }
.photo-credit { margin-top: 3rem; font-size: 0.85rem; color: var(--mid); font-style: italic; }

/* --- Gallery grid --- */
.gallery-grid {
  columns: 3;
  column-gap: 12px;
}
.gallery-grid img {
  width: 100%;
  margin-bottom: 12px;
  break-inside: avoid;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.15s;
}
.gallery-grid img:hover { opacity: 0.88; }

/* lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  color: #fff; font-size: 2rem; cursor: pointer;
  background: none; border: none; line-height: 1;
}

/* --- Order page --- */
.order-intro { max-width: 60ch; margin-bottom: 2.5rem; color: var(--charcoal); }
.order-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.order-examples { display: flex; flex-direction: column; gap: 2rem; }
.order-example img { width: 100%; height: 240px; object-fit: cover; }
.order-example-cap {
  font-size: 0.88rem;
  color: var(--mid);
  font-style: italic;
  margin-top: 0.5rem;
}

/* --- About page --- */
.about-text { max-width: 62ch; color: var(--charcoal); margin-bottom: 3rem; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}
.news-card { border-top: 2px solid var(--rust); padding-top: 1rem; }
.news-card img { width: 100%; height: 170px; object-fit: cover; margin-bottom: 1rem; }
.news-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
  font-style: italic;
}
.news-card-date { font-size: 0.8rem; color: var(--mid); margin-bottom: 0.6rem; }
.news-card-desc { font-size: 0.9rem; color: var(--mid); margin-bottom: 0.8rem; }

/* --- Contact page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-images { display: flex; flex-direction: column; gap: 8px; }
.contact-images img { width: 100%; height: 200px; object-fit: cover; }
.contact-form-wrap {}
.contact-intro { color: var(--charcoal); margin-bottom: 1.8rem; max-width: 50ch; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--black);
  border-radius: 2px;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rust);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-submit {
  padding: 0.7rem 2rem;
  background: var(--rust);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s;
}
.form-submit:hover { background: var(--rust-light); }
.form-note { font-size: 0.8rem; color: var(--mid); margin-top: 0.6rem; }

/* --- Footer --- */
footer {
  background: var(--black);
  color: #7a7870;
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}
footer a { color: #9a9690; }

/* --- Responsive --- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--charcoal);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 1.5rem; font-size: 1rem; }

  .hero { height: 320px; }
  .home-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .home-intro img { height: 240px; }
  .order-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .bike-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .page { padding: 2rem 1.2rem 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
