/* ══════════════════════════════════════════════════
   TEMPORA LUX — Global Stylesheet
   ══════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────── */
:root {
  --ivory:      #F8F5EF;
  --warm:       #EDE8DF;
  --sand:       #C9BFA8;
  --charcoal:   #1E1C1A;
  --mid:        #5A5550;
  --muted:      #8a857e;
  --border:     #e0dbd2;
  --light:      #f4f1eb;
  --white:      #ffffff;
  --gold:       #b8966a;
  --gold-light: #d4b48a;

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;

  --nav-h: 60px;
  --max-w: 1160px;
  --gutter: 40px;
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── HELPERS ─────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.placeholder-img {
  background: var(--warm);
  border: 1px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sand);
}
.placeholder-img svg { width: 40px; height: 40px; opacity: 0.45; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 11px 26px;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s,
              opacity 0.25s, box-shadow 0.25s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-solid {
  background: var(--charcoal);
  color: var(--white);
  border: 1px solid var(--charcoal);
  box-shadow: 0 2px 8px rgba(30,28,26,0.18);
}
.btn-solid:hover {
  opacity: 0.82;
  box-shadow: 0 4px 14px rgba(30,28,26,0.26);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(30,28,26,0.22);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border: 1px solid var(--gold);
  box-shadow: 0 2px 8px rgba(184,150,106,0.30);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 4px 16px rgba(184,150,106,0.38);
}

.btn-ghost-link {
  background: transparent;
  color: var(--charcoal);
  border: none;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-ghost-link::after { content: '→'; transition: transform 0.2s; }
.btn-ghost-link:hover { opacity: 0.6; }
.btn-ghost-link:hover::after { transform: translateX(4px); }

/* ── NAVIGATION ──────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--ivory);
  border-bottom: 1px solid var(--sand);
  height: var(--nav-h);
  box-shadow: 0 1px 6px rgba(30,28,26,0.06);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.72; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 0 16px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--charcoal);
  background: rgba(184,150,106,0.06);
}
.nav-links a.active {
  color: var(--charcoal);
  border-bottom-color: var(--gold);
}

/* hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.3s, opacity 0.3s;
}

/* mobile overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--ivory);
  z-index: 199;
  padding: 36px var(--gutter);
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--sand);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 16px 0;
  border-bottom: 1px solid var(--warm);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--charcoal); padding-left: 6px; }


/* ── NAV ACTIONS (auth buttons) ─────────────────── */
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* ── AUTH MODAL ──────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,8,6,0.52);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--ivory);
  border: 1px solid var(--sand);
  width: 100%;
  max-width: 400px;
  padding: 44px 40px 40px;
  position: relative;
  animation: modalIn 0.22s ease both;
  box-shadow: 0 20px 60px rgba(10,8,6,0.28);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--mid);
  line-height: 1;
  padding: 4px 6px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--charcoal); }

.modal-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 18px;
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 28px;
  line-height: 1.6;
}
.modal-sub a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.modal-sub a:hover { color: var(--gold-light); }

/* form fields */
.modal-field { margin-bottom: 16px; }
.modal-field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 7px;
}
.modal-field input {
  width: 100%;
  padding: 11px 14px;
  background: var(--white);
  border: 1px solid var(--sand);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 1px;
}
.modal-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,150,106,0.12);
}
.modal-field input.m-error { border-color: #c0392b; }
.modal-field-err {
  font-size: 11px;
  color: #c0392b;
  margin-top: 5px;
  display: none;
}
.modal-field-err.show { display: block; }

.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-submit {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--charcoal);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.modal-submit:hover { opacity: 0.82; }
.modal-submit:disabled { opacity: 0.4; cursor: not-allowed; }

.modal-note {
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.65;
  padding: 10px 12px;
  background: var(--warm);
  border: 1px solid var(--sand);
}

/* ── CSS ANIMATIONS ──────────────────────────────── */

/* Fade + slide up — applied to hero text on page load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes pulse-border {
  0%, 100% { border-color: var(--gold); }
  50%       { border-color: var(--gold-light); }
}

/* Hero text animation — eyebrow, h1, p, buttons staggered */
.page-hero .eyebrow,
.home-hero-text .eyebrow  { animation: fadeUp 0.6s 0.1s both ease-out; }
.page-hero h1,
.home-hero-text h1        { animation: fadeUp 0.7s 0.25s both ease-out; }
.page-hero p,
.home-hero-text p         { animation: fadeUp 0.7s 0.4s both ease-out; }
.page-hero-btns,
.home-hero-btns           { animation: fadeUp 0.6s 0.55s both ease-out; }

/* Gold shimmer on logo */
.nav-logo {
  background: linear-gradient(
    90deg,
    var(--charcoal) 0%,
    var(--gold) 45%,
    var(--charcoal) 55%,
    var(--charcoal) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
  opacity: 1 !important;
}
/* Fallback for browsers without background-clip text */
@supports not (-webkit-background-clip: text) {
  .nav-logo { color: var(--charcoal); background: none; }
}

/* Watch cards lift on hover */
.watch-card {
  transition: transform 0.25s, box-shadow 0.25s;
}
.watch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30,28,26,0.12);
}

/* Stat boxes subtle pulse border on hover */
.stat-box:hover {
  animation: pulse-border 1.2s ease infinite;
  border: 1px solid var(--gold);
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 60px var(--gutter) 0;
  color: rgba(255,255,255,0.55);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 220px;
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-col li a:hover { color: var(--gold); }

/* Social icons row */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,150,106,0.08);
}

/* Opening hours */
.footer-hours {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
}
.footer-hours strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}

/* Disclaimer + members bar */
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
  font-style: italic;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-members {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ── PAGE HERO ───────────────────────────────────── */
.page-hero {
  background: var(--charcoal);
  padding: 80px var(--gutter) 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,150,106,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner { position: relative; max-width: 560px; margin: 0 auto; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 36px;
}
.page-hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── WATCH GRID ──────────────────────────────────── */
.watch-section {
  padding: 88px 0;
}
.watch-section.bg-warm {
  background: var(--warm);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.section-header p {
  font-size: 13px;
  color: var(--mid);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.75;
}
.watch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.watch-card {
  background: var(--ivory);
  border: 1px solid var(--sand);
  box-shadow: 0 2px 6px rgba(30,28,26,0.06);
}
.watch-card .watch-img {
  aspect-ratio: 1;
  width: 100%;
}
.watch-card .watch-info {
  padding: 16px 18px 22px;
}
.watch-card .watch-brand {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 5px;
}
.watch-card .watch-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.watch-card .watch-price {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}
.watch-card .watch-tier {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.section-footer { text-align: center; }

/* ── TESTIMONIALS ────────────────────────────────── */
.testimonials-section {
  background: var(--light);
  padding: 90px var(--gutter);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 30px 28px;
  box-shadow: 0 2px 10px rgba(30,28,26,0.06);
  transition: box-shadow 0.25s, transform 0.25s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 20px rgba(30,28,26,0.12);
  transform: translateY(-2px);
}
.stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 22px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--warm);
  border: 1px solid var(--sand);
  flex-shrink: 0;
}
.author-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
}
.author-role {
  font-size: 12px;
  color: var(--muted);
}

/* ── NEWSLETTER ──────────────────────────────────── */
.newsletter-section {
  background: var(--charcoal);
  padding: 72px var(--gutter);
}
.newsletter-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.newsletter-inner h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.newsletter-inner > div > p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  line-height: 1.7;
}
.newsletter-form {
  display: flex;
  margin-top: 6px;
}
.newsletter-form input {
  flex: 1;
  padding: 13px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  border-radius: 2px 0 0 2px;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: rgba(184,150,106,0.5); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form button {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  transition: background 0.2s;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--gold-light); }
.newsletter-privacy {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 10px;
}

/* ── MOBILE ──────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brand { grid-column: 1 / -1; }

  .watch-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .watch-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-hero { padding: 60px var(--gutter) 52px; }
}
