/* Valley — valleywatches.com
   Boutique look: a Patek Philippe–style pairing of two free Google Fonts.
   Type follows goldammer.me:
   --display  Libre Baskerville (regular, normal case): headings and watch names
   --text     Nunito Sans: descriptions, prices, forms
   --label    Nunito Sans, small uppercase with light tracking: menu, labels, buttons
   Warm taupe (--accent) for headings and buttons, soft charcoal text, warm off-white panels. */
:root {
  --ink: #2e2e33;
  --soft: #56565c;
  --muted: #8a8a8f;
  --accent: #8c7a66;
  --accent-dark: #6f604f;
  --line: #e8e3dc;
  --tile: #f4f2ee;
  --warm: #f5f1eb;
  --bg: #fff;
  --label: "Nunito Sans", Arial, sans-serif;
  --text: "Nunito Sans", Arial, sans-serif;
  --display: "Libre Baskerville", Georgia, serif;
  --wrap: 1400px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Shared type ---------- */
.main-nav a, .text-link, .btn, .label, .card-brand, .card-price, .badge,
.watch-brand, .watch-price, .specs dt, .specs-head, .form label, .form legend,
.search-results small, .section-meta, .newsletter-form button, .copyright {
  font-family: var(--label);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: .1em;
}
/* Headings: light, uppercase, lightly tracked, in taupe */
/* Headings and watch names: Libre Baskerville, regular weight, normal case */
.display, .watch-title, .page-title, .card-title, .feature-title {
  font-family: var(--display); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink);
}
.display { line-height: 1.2; margin: 0; }
.label { font-size: 12px; line-height: 20px; color: var(--muted); margin: 0 0 10px; }
.text-link { font-size: 13px; line-height: 20px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; white-space: nowrap; }
.text-link:hover { color: var(--soft); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: var(--wrap); margin: 0 auto; height: var(--header-h);
  padding: 0 var(--gutter);
  /* logo left | menu centred | search right */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.logo { display: block; justify-self: start; line-height: 0; }
.logo img { height: 54px; width: auto; }
.main-nav { display: flex; gap: clamp(22px, 2.8vw, 38px); }
.main-nav a { font-size: 13px; line-height: 18px; letter-spacing: .12em; text-decoration: none; color: var(--soft); padding: 3px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.header-tools { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; font-size: 30px; line-height: 1; color: var(--soft); }
.icon-btn:hover { color: var(--ink); }
.menu-toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { display: block; height: 1.5px; width: 22px; background: var(--ink); }

@media (max-width: 820px) {
  :root { --header-h: 60px; }
  .logo img { height: 46px; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .main-nav a { padding: 16px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current] { border-bottom-color: var(--line); }
  body.menu-open .main-nav { display: flex; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- Search ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(255,255,255,.98);
  padding: clamp(24px, 8vh, 90px) var(--gutter); overflow-y: auto;
}
.search-box { max-width: 760px; margin: 0 auto; display: flex; border-bottom: 1px solid var(--ink); }
.search-box input { flex: 1; border: 0; outline: 0; font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); padding: 8px 0; background: transparent; }
.search-results { max-width: 760px; margin: 24px auto 0; display: grid; gap: 4px; }
.search-results a { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
.search-results img { width: 64px; height: 64px; object-fit: cover; background: var(--tile); }
.search-results small { color: var(--muted); font-size: 13px; }

/* ---------- Sections ---------- */
main { min-height: 50vh; }
.collection, .page, .watch { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.collection { padding-top: 64px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-bottom: clamp(18px, 2.4vw, 28px); margin-bottom: clamp(24px, 3.4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.section-head .display { font-size: clamp(22px, 2.4vw, 30px); }
.section-meta { font-size: 13px; line-height: 20px; color: var(--muted); margin: 0; }

/* ---------- Grid & cards ---------- */
/* 4 watches per row with 20px gaps, as on S.Song (280px cards at 1280px wide) */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: block; text-decoration: none; }
.card-img { position: relative; background: var(--tile); aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 14px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card[data-status="sold"] .card-img img { opacity: .5; }
.badge { position: absolute; top: 14px; left: 14px; background: #fff; font-size: 12px; line-height: 12px; padding: 7px 10px; }
.card-text { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-brand { display: block; font-size: 13px; line-height: 20px; color: var(--soft); }
.card-title { font-size: 15px; line-height: 22px; margin: 2px 0 0; }
.card-price { font-size: 14px; line-height: 20px; color: #8a8a8a; white-space: nowrap; letter-spacing: .02em; text-transform: none; }
.card[data-status="sold"] .card-price, .card[data-status="reserved"] .card-price { color: var(--muted); }
@media (max-width: 700px) {
  .grid { gap: 36px 12px; }
  .card-text { flex-direction: column; gap: 4px; }
  .card-brand { font-size: 12px; }
  .card-title { font-size: 14px; line-height: 20px; }
  .card-price { font-size: 13px; }
}

/* ---------- Homepage featured slideshow + Details panel (S.Song-style) ---------- */
.feature {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(20px, 3vw, 44px) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr); gap: clamp(20px, 2.6vw, 36px); align-items: start;
}
.feature-stage { position: relative; aspect-ratio: 3 / 2; background: var(--tile); overflow: hidden; outline-offset: 4px; }
/* Horizontal slide, 1s ease, like S.Song (FlexSlider "slide" animation) */
.feature-track { display: flex; height: 100%; will-change: transform; }
.feature-track.is-animating { transition: transform 1s ease; }
.feature-slide { flex: 0 0 100%; height: 100%; display: block; }
.feature-slide img { width: 100%; height: 100%; object-fit: cover; }
.feature-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 64px; display: grid; place-items: center; color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); opacity: .85;
}
.feature-arrow:hover { opacity: 1; }
.feature-arrow.prev { left: 8px; } .feature-arrow.next { right: 8px; }
.feature-head { font-family: var(--label); font-weight: 400; font-size: 14px; line-height: 20px; letter-spacing: .16em; text-transform: uppercase; text-align: center; color: var(--ink); margin: 0 0 14px; }
.feature-panel { display: none; }
.feature-panel.is-active { display: block; }
/* Details panel fades in over 1s when the watch changes (like S.Song) */
.feature-panel.is-fading { animation: panel-in 1s cubic-bezier(.45,.05,.55,.95) both; }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }
.feature-thumb { display: block; aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; margin-bottom: 16px; }
.feature-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature-title { display: block; font-size: 18px; line-height: 25px; color: var(--ink); text-decoration: none; margin-bottom: 8px; }
.feature-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.feature-text p { font-size: 15px; line-height: 24px; font-weight: 400; color: var(--soft); margin: 0 0 12px; }
.feature-text .feature-price { font-family: var(--label); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
/* Desktop: the Details panel is exactly as tall as the slideshow photo, never taller.
   The thumbnail takes whatever height is left; the name is limited to 2 lines and the
   blurb to 3, ending in "…" when longer, so "Full listing" lines up with the photo bottom. */
@media (min-width: 901px) {
  .feature { align-items: stretch; }
  .feature-details { position: relative; }
  .feature-details-inner { position: absolute; inset: 0; display: flex; flex-direction: column; }
  .feature-panel.is-active { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  .feature-thumb { flex: 1 1 auto; min-height: 60px; aspect-ratio: auto; }
  .feature-text { flex: 0 0 auto; }
  .feature-text .text-link { display: inline-block; margin-bottom: -1px; }
  .feature-text .feature-price { margin-bottom: 10px; }
}
.feature-title, .feature-blurb { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.feature-title { -webkit-line-clamp: 2; line-clamp: 2; }
.feature-blurb { -webkit-line-clamp: 3; line-clamp: 3; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; padding-left: 0; padding-right: 0; padding-top: 0; }
  .feature-details { padding: 0 var(--gutter); }
  .feature-head { display: none; }
  .feature-panel.is-active { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
  .feature-thumb { margin: 0; }
  .feature-title { font-size: 17px; }
}
/* Homepage and "More from the collection": S.Song spacing. About 50px below the
   slideshow, a small heading with "View all" right beside it, then 32px to the watches. */
.home .collection { padding-top: clamp(36px, 4vw, 52px); }
.home .section-head, .related .section-head {
  justify-content: flex-start; align-items: baseline; gap: 20px;
  padding-bottom: 12px; margin-bottom: 20px;
}
.home .section-head .display, .related .section-head .display { font-size: 22px; line-height: 1.2; }
.home .section-head .text-link, .related .section-head .text-link { font-size: 11px; letter-spacing: .14em; }



/* ---------- Product ---------- */
.watch {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4.5vw, 72px);
  padding-top: 40px; align-items: start;
}
/* Photos are shown whole at their natural shape (no box, no background, no crop).
   They sit side by side in a track that slides sideways (0.6s ease). The gallery is
   as tall as the tallest photo; shorter photos sit centred, so nothing jumps. */
.gallery-stage { position: relative; overflow: hidden; }
.gallery-track { display: flex; align-items: center; will-change: transform; }
.gallery-track.is-animating { transition: transform .6s ease; }
.gallery-slide { flex: 0 0 100%; display: block; cursor: zoom-in; width: 100%; }
.gallery-slide img { width: 100%; height: auto; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink);
  background: rgba(255,255,255,.8); border-radius: 50%; opacity: .85;
}
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow:hover { opacity: 1; background: #fff; }
.hero-arrow.prev { left: 14px; } .hero-arrow.next { right: 14px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: 0 0 76px; aspect-ratio: 1; opacity: .5; outline-offset: 1px; }
.gallery-thumbs button.is-active, .gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.watch-info { padding-top: 12px; }
.watch-brand { font-size: 13px; line-height: 20px; color: var(--soft); margin: 0 0 6px; }
.watch-title { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; margin: 0 0 18px; }
.watch-buy { display: grid; gap: 14px; padding-bottom: 32px; }
.watch-price { font-size: 17px; line-height: 24px; }
.btn {
  display: flex; align-items: center; justify-content: center; min-height: 50px;
  background: var(--accent); color: #fff; text-decoration: none; border: 1px solid var(--accent);
  font-size: 13px; line-height: 13px; padding: 0 36px;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 16px; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.specs-head { font-size: 13px; line-height: 20px; margin: 32px 0 8px; }
.specs { margin: 0 0 28px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 13px; line-height: 22px; color: var(--muted); }
.specs dd { margin: 0; font-size: 15px; line-height: 22px; }
.watch-note { font-size: 14px; line-height: 22px; color: var(--soft); }
.related { padding-top: clamp(48px, 5vw, 64px); }
@media (max-width: 900px) {
  .watch { grid-template-columns: 1fr; padding-top: 0; }
  .gallery { margin: 0 calc(var(--gutter) * -1); }
  .gallery-thumbs { padding: 0 var(--gutter); }
  .watch-info { padding-top: 4px; }
}

.no-scroll, .no-scroll body { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: #fff; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.lightbox[hidden] { display: none; }
/* Fit mode: whole photo visible, centred */
.lightbox img { display: block; margin: 0 auto; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); width: auto; height: auto; position: relative; top: 50%; transform: translateY(-50%); cursor: zoom-in; }
/* Zoomed: full size, scroll in any direction */
.lightbox.is-zoomed img { max-width: none; max-height: none; width: max(100vw, 1600px); top: 0; transform: none; cursor: zoom-out; }
.lightbox-bar { position: fixed; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 2; }
.lightbox-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); box-shadow: 0 1px 6px rgba(0,0,0,.15); }
.lightbox-btn:hover { background: #fff; }
.lightbox-hint { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); margin: 0; padding: 4px 12px; background: rgba(255,255,255,.9); font-family: var(--label); text-transform: uppercase; font-size: 12px; color: var(--soft); pointer-events: none; }
.lightbox.is-zoomed .lightbox-hint { display: none; }

/* ---------- Pages & forms ---------- */
.page { max-width: 880px; padding-top: 64px; }
.page-title { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.2; margin: 0 0 clamp(24px, 4vw, 40px); }
.page-image { margin-bottom: 30px; background: var(--tile); }
/* Forms: every field is the same outlined box, laid out on an even two-column grid */
.form { margin-top: 32px; display: grid; gap: 20px; max-width: 760px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form label, .form legend { display: grid; gap: 8px; font-size: 12px; line-height: 16px; color: var(--ink); }
.form input:not([type="file"]), .form select, .form textarea {
  font-family: var(--text); font-size: 16px; line-height: 24px; letter-spacing: 0; text-transform: none;
  border: 1px solid #d9d4cc; border-radius: 0; padding: 11px 14px; background: #fff; color: var(--ink); width: 100%;
}
.form textarea { resize: vertical; min-height: 140px; }
.form ::placeholder { color: #a7a39c; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form-files { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-files legend { display: flex; gap: 10px; align-items: baseline; padding: 0; margin-bottom: 8px; }
.form-hint { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); }
.photo-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-tile {
  position: relative; aspect-ratio: 1; display: grid !important; place-items: center;
  border: 1px dashed #cfc8bd; background: #faf8f5; cursor: pointer; overflow: hidden;
}
.photo-tile:hover, .photo-tile:focus-within { border-color: var(--accent); }
.photo-tile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-tile-empty { font-size: 13px; letter-spacing: .06em; color: var(--soft); pointer-events: none; }
.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.photo-tile.has-photo { border-style: solid; }
@media (max-width: 480px) { .photo-tiles { grid-template-columns: repeat(2, 1fr); } }
.form .btn { justify-self: start; min-width: 200px; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #2b2a2e; color: #e8e8e8; margin-top: clamp(72px, 9vw, 120px); padding: clamp(48px, 6vw, 80px) var(--gutter) 28px; }
.footer-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.5fr; gap: 40px;
}
.site-footer .label { color: #8d949b; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-brand .logo { display: inline-block; margin-bottom: 18px; }
.footer-brand .logo img { height: 96px; }
.footer-brand p { margin: 0 0 12px; color: #b9bec3; font-size: 15px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.footer-news p:not(.label) { margin: 0 0 14px; color: #b9bec3; font-size: 15px; }
.newsletter-form { display: flex; border-bottom: 1px solid #e8e8e8; }
.newsletter-form input { flex: 1; min-width: 0; border: 0; padding: 10px 0; font-family: var(--text); font-size: 16px; outline: 0; background: transparent; color: #fff; }
.newsletter-form input::placeholder { color: #8d949b; }
.newsletter-form button { font-size: 13px; padding: 0 0 0 16px; color: #fff; }
.copyright { max-width: var(--wrap); margin: clamp(40px, 5vw, 64px) auto 0; padding-top: 20px; border-top: 1px solid #2a2a2a; font-size: 12px; line-height: 20px; color: #8d949b; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

