/* Hop Valley Customs LLC — site styles */

:root {
  --bg: #0b0c0a;
  --bg-elev: #121411;
  --bg-card: #171914;
  --bg-header: rgba(11, 12, 10, 0.92);
  --gold: #c6a35a;
  --gold-soft: #d8bc74;
  --gold-dim: #8a7038;
  --green: #1e4a2e;
  --green-mid: #2a5c3a;
  --hop: #3d7a4a;
  --cream: #f0e6d0;
  --text: #e8e2d4;
  --muted: #a39b8a;
  --line: rgba(198, 163, 90, 0.3);
  --line-soft: rgba(198, 163, 90, 0.14);
  --danger: #d07060;
  --ok: #6aaa74;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font-display: "Cinzel", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --header-h: 6.75rem;
  --max: 1180px;
  --radius: 2px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-soft); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--cream); }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: #0b0c0a;
  padding: 0.6rem 1rem;
  z-index: 1000;
  font-weight: 700;
}
.skip:focus { top: 0.75rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0.55rem 0;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo-link img {
  width: 210px;
  height: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.socials {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.socials a {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--gold);
  text-decoration: none;
  border-radius: var(--radius);
}
.socials a:hover { background: var(--green); color: var(--cream); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold);
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.25rem 4.5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}
.hero::after {
  /* faint art-deco corner ticks */
  content: "";
  position: absolute;
  inset: 1.25rem;
  pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 48px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 1px 48px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 48px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 1px 48px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 48px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1px 48px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 48px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1px 48px no-repeat;
  opacity: 0.7;
}
.hero-inner { position: relative; z-index: 1; max-width: 48rem; }
.hero-logo {
  width: min(540px, 92vw);
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}
.tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--gold);
  margin: 0 0 1.15rem;
}
.hero-lead {
  margin: 0 auto 2rem;
  max-width: 38rem;
  color: var(--text);
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #0b0c0a;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--gold-soft); color: #0b0c0a; }
.btn-ghost {
  background: transparent;
  color: var(--gold);
}
.btn-ghost:hover { background: var(--gold); color: #0b0c0a; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Sections */
.section {
  padding: 5rem 1.25rem;
}
.section-inner { width: min(var(--max), 100%); margin: 0 auto; }
.section-kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.03em;
  color: var(--cream);
  margin: 0 0 1.25rem;
  line-height: 1.2;
}
.gold-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
  color: var(--gold);
}
.gold-rule::before,
.gold-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  max-width: 8rem;
}
.gold-rule span {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.band { background: var(--bg-elev); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}
.about-copy p { margin: 0 0 1.1rem; color: var(--text); }
.about-copy p:last-of-type { margin-bottom: 0; }
.serving {
  font-style: italic;
  color: var(--cream);
  font-size: 1.08rem;
}
.about-photos {
  display: grid;
  gap: 0.85rem;
}
.about-photos figure { margin: 0; }
.about-photos img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line-soft);
}
.about-photos figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.sister {
  margin-top: 2.75rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: center;
}
.sister img { width: 180px; }
.sister p { margin: 0 0 0.6rem; }
.sister p:last-child { margin: 0; }
.ready {
  margin-top: 2.5rem;
  text-align: center;
}
.ready h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold);
  font-size: 1.45rem;
  margin: 0 0 1rem;
}

/* Portfolio */
.portfolio-intro {
  max-width: 44rem;
  margin: 0 0 2rem;
}
.portfolio-intro p { margin: 0 0 1rem; color: var(--text); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.gallery-item { margin: 0; }
.gallery-link {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #1a1c16;
  border: 1px solid var(--line-soft);
  color: inherit;
  text-decoration: none;
}
.gallery-link img,
.gallery-link picture,
.gallery-link picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-link:hover img,
.gallery-link:focus-visible img { transform: scale(1.05); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.7rem 0.55rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.gallery-link:hover .gallery-caption,
.gallery-link:focus-visible .gallery-caption,
.gallery-link:focus-within .gallery-caption {
  opacity: 1;
  transform: none;
}

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 3.5rem 2rem;
}
.lightbox-img-wrap {
  max-width: min(1600px, 100%);
  max-height: calc(100vh - 7rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: var(--shadow);
}
.lightbox-cap {
  margin: 0.85rem 0 0;
  color: var(--cream);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.3em;
}
.lightbox-btn {
  position: absolute;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold);
  cursor: pointer;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.lightbox-btn:hover { background: var(--green); color: var(--cream); }
.lightbox-close { top: 0.85rem; right: 0.85rem; font-size: 1.6rem; }
.lightbox-prev { left: 0.7rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.7rem; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-details {
  color: var(--text);
}
.contact-details h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.vcard p { margin: 0 0 0.35rem; }
.vcard .name { color: var(--cream); font-weight: 700; font-size: 1.15rem; }
.vcard a { color: var(--gold-soft); }
.contact-details .socials { margin-top: 1.25rem; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  padding: 1.5rem;
}
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.req { color: var(--gold); }
.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  background: #0e0f0c;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: var(--gold);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.3rem; }
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.3em;
  font-size: 0.95rem;
}
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
.form-note {
  grid-column: 1 / -1;
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 1.25rem 2.5rem;
  background: #080908;
}
.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer img { width: 168px; }
.footer-meta { color: var(--muted); font-size: 0.9rem; }
.footer-meta p { margin: 0 0 0.35rem; }
.footer-meta a { color: var(--gold-soft); }

/* 404 */
.not-found {
  min-height: calc(100vh - var(--header-h) - 8rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem;
}
.not-found h1 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.75rem;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sister { grid-template-columns: 1fr; text-align: center; }
  .sister img { margin: 0 auto; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.5rem; }
  .gallery-caption { opacity: 1; transform: none; padding-top: 1.2rem; font-size: 0.75rem; }
}

@media (max-width: 760px) {
  .logo-link img { width: 168px; }
  .site-header { padding: 0.4rem 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
  .site-header.is-open .nav-panel { display: flex; }
  .hero::before, .hero::after { inset: 0.7rem; }
  .contact-form { grid-template-columns: 1fr; padding: 1.15rem; }
  .lightbox { padding: 4rem 0.6rem 2rem; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 0.7rem; transform: none; }
  .lightbox-prev { left: 0.6rem; }
  .lightbox-next { right: 0.6rem; }
  .section { padding: 3.5rem 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .gallery-link:hover img { transform: none; }
}
