/* ============================================================
   AMPM Vintage Watches — Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --charcoal: #383838;
  --charcoal-soft: #55524e;
  --cream: #f6f2e9;
  --cream-dark: #ece5d3;
  --paper: #fbf9f4;
  --gold: #8e582a;
  --gold-light: #b47a45;
  --line: #ddd4bf;
  --success: #4c6b4f;
  --danger: #8c3a2e;
  --max-width: 1200px;
  --radius: 2px;
  --shadow: 0 8px 30px rgba(56, 56, 56, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); line-height: 1.2; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; color: var(--charcoal-soft); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--charcoal);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
}
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.btn-secondary {
  background: transparent;
  color: var(--charcoal);
}
.btn-secondary:hover { background: var(--charcoal); color: var(--cream); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  overflow: hidden;
  gap: 16px;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}
.logo span { color: var(--gold); }
/* Height + max-width are both pinned (not just width:auto) so this can
   never balloon to the source file's native size — e.g. if a browser or a
   stale cached copy of this stylesheet doesn't apply the height rule for
   any reason, max-width still caps it at a sane size instead of the full
   900px-wide source image rendering edge-to-edge. */
.logo img.logo-img {
  height: 60px;
  max-height: 60px;
  width: auto;
  max-width: 260px;
  flex-shrink: 0;
  display: block;
}
.footer-logo-img {
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: 220px;
  display: block;
  margin-bottom: 14px;
}

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--charcoal-soft);
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--charcoal); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--charcoal) url('../images/site/hero.jpg') center 35%/cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(30,28,24,0.86) 0%, rgba(30,28,24,0.68) 42%, rgba(30,28,24,0.32) 75%, rgba(30,28,24,0.12) 100%);
}
.hero .container {
  position: relative;
  z-index: 1;
  padding: 90px 24px;
}
.hero-content { max-width: 640px; }
.hero-content .eyebrow { color: var(--gold-light); }
.hero-content h1 { color: var(--paper); }
.hero-content p.lede {
  font-size: 1.1rem;
  max-width: 46ch;
  color: rgba(251, 249, 244, 0.85);
}
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero .btn-secondary { color: var(--paper); border-color: rgba(251, 249, 244, 0.6); }
.hero .btn-secondary:hover { background: var(--paper); color: var(--charcoal); }
.hero-image { display: none; }

/* ---------- Section headers ---------- */
.section {
  padding: 70px 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 6px 0 0; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}
.product-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card .thumb {
  aspect-ratio: 1/1;
  background: var(--cream-dark);
  overflow: hidden;
  position: relative;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: var(--radius);
}
.badge.sold { background: var(--danger); }
.badge.new { background: var(--gold); color: var(--charcoal); }
.product-card .info { padding: 18px 18px 22px; }
.product-card .brand {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 500;
}
.product-card h3 { margin: 4px 0 6px; font-size: 1.25rem; }
.product-card .summary {
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
}
.price.sold { text-decoration: line-through; color: #9a9186; }

/* ---------- Filters ---------- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.filter-btn {
  padding: 9px 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--charcoal); }
.filter-btn.active { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.filter-sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-sort select {
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--charcoal-soft);
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  padding: 50px 0 80px;
}
.gallery-main {
  aspect-ratio: 1/1;
  background: var(--cream-dark);
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumbs img {
  width: 76px; height: 76px;
  object-fit: cover;
  border: 1px solid var(--line);
  cursor: pointer;
  opacity: 0.7;
}
.gallery-thumbs img.active { opacity: 1; border-color: var(--gold); }

.product-info .brand-line {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 8px;
}
.product-info h1 { margin-bottom: 6px; }
.product-info .year-condition {
  color: var(--charcoal-soft);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.product-info .price {
  font-size: 2rem;
  display: block;
  margin-bottom: 24px;
}
.product-info .description { margin-bottom: 28px; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
}
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table td { padding: 12px 0; font-size: 0.92rem; }
.spec-table td:first-child {
  width: 40%;
  color: var(--charcoal-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

.sold-notice {
  background: var(--cream-dark);
  border-left: 3px solid var(--danger);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.92rem;
}
.trust-note {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  margin-top: 18px;
  align-items: flex-start;
}

/* ---------- About / static pages ---------- */
.prose { max-width: 70ch; }
.prose p { font-size: 1.02rem; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
  text-align: center;
}
.stat-row .stat h3 { font-size: 2.2rem; color: var(--gold); margin-bottom: 4px; }
.stat-row .stat span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal-soft);
}

/* ---------- Contact / forms ---------- */
.form-grid {
  display: grid;
  gap: 20px;
  max-width: 560px;
}
label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--charcoal-soft);
}
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  border-radius: var(--radius);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
}
textarea { min-height: 140px; resize: vertical; }
.form-success {
  background: #eef3ee;
  border-left: 3px solid var(--success);
  padding: 16px 20px;
  display: none;
}
.form-success.visible { display: block; }

/* ---------- Founders / about photo ---------- */
.founders-photo {
  margin: 40px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.founders-photo img { width: 100%; display: block; }
.founders-caption {
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  margin-top: 10px;
  font-style: italic;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--charcoal);
  color: var(--cream);
  padding: 36px 0;
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-strip h4 { color: var(--cream); font-size: 1.05rem; margin-bottom: 4px; }
.trust-strip p { color: #cfc9bd; font-size: 0.85rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 56px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid address { font-style: normal; font-size: 0.92rem; color: var(--charcoal-soft); }
.footer-grid address p { margin: 0 0 8px; }
.footer-grid address a { color: var(--charcoal-soft); }
.footer-grid address a:hover { color: var(--gold); }
.footer-grid h4 {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--charcoal-soft);
}
.payment-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.payment-row img { height: 22px; width: auto; opacity: 0.9; }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a { display: inline-flex; }
.social-row img { height: 26px; width: 26px; border-radius: 50%; transition: transform .15s ease; }
.social-row img:hover { transform: translateY(-2px); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.divider { border: none; border-top: 1px solid var(--line); margin: 50px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { min-height: 56vh; background-position: 65% 35%; }
  .hero::before { background: linear-gradient(180deg, rgba(30,28,24,0.55) 0%, rgba(30,28,24,0.82) 100%); }
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid address { grid-column: span 2; }
  .stat-row { grid-template-columns: 1fr; gap: 30px; }
  .trust-strip .container { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 700px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
}
