/* ============================================================
   ADAMS FINE HATS — Stylesheet
   ============================================================ */

:root {
  --bg:         #0e0c0a;
  --bg-2:       #141210;
  --bg-3:       #1c1916;
  --gold:       #b8945a;
  --gold-light: #d4aa72;
  --text:       #e8e0d4;
  --text-muted: #8a8078;
  --border:     #2a2520;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', system-ui, sans-serif;
  --max-w:      1200px;
  --radius:     4px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.2;
}

h1 { font-size: clamp(3rem, 8vw, 6.5rem); letter-spacing: 0.04em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.3rem; font-weight: 400; }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

p { color: var(--text-muted); max-width: 56ch; }

/* ── LAYOUT ─────────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 7rem 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* ── BUTTON ─────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  transition: background var(--transition), color var(--transition);
  border-radius: var(--radius);
}

.btn:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ── NAV ────────────────────────────────────────────────── */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  transition: background var(--transition), padding var(--transition), border-bottom var(--transition);
}

#nav.scrolled {
  background: rgba(14, 12, 10, 0.95);
  backdrop-filter: blur(8px);
  padding: 1rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--gold); }

.nav-toggle { display: none; }

/* ── HERO ───────────────────────────────────────────────── */

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(184,148,90,0.06) 0%, transparent 70%),
    var(--bg);
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  max-width: none;
  margin-bottom: 1.5rem;
}

#hero h1 {
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-indicator span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ── ABOUT ──────────────────────────────────────────────── */

#about {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-text h2 { color: var(--text); margin-bottom: 1.5rem; }
.about-text p  { margin-bottom: 1rem; }

.quality-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quality-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.quality-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.aside-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-3);
  transition: border-color var(--transition);
}

.aside-card:hover { border-color: var(--gold); }

.aside-icon {
  display: block;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.aside-card h3 { color: var(--text); margin-bottom: 0.5rem; }
.aside-card p  { font-size: 0.9rem; max-width: none; }

/* ── GALLERY ────────────────────────────────────────────── */

#gallery { background: var(--bg); }
#gallery h2 { color: var(--text); margin-bottom: 3rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}

.gallery-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item.placeholder span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.4;
}

/* ── SOCIAL ─────────────────────────────────────────────── */

#social {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.social-container { max-width: 640px; }
#social h2 { color: var(--text); margin-bottom: 1rem; }
.social-sub { margin: 0 auto 2.5rem; }

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}

.social-btn:hover { border-color: var(--gold); color: var(--gold); }

.social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── CONTACT ────────────────────────────────────────────── */

#contact { background: var(--bg); }

.contact-split { align-items: start; gap: 5rem; }

.contact-text h2 { color: var(--text); margin-bottom: 1rem; }
.contact-text p  { margin-bottom: 1.5rem; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-details li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.contact-details li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  justify-content: center;
  height: 100%;
}

.contact-cta p { margin: 0; }

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: none;
  opacity: 0.6;
}

/* ── FOOTER ─────────────────────────────────────────────── */

footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 4rem 2rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text);
  max-width: none;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: none;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-social a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-social a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.4;
  max-width: none;
  letter-spacing: 0.05em;
}

/* ── FADE-IN ON SCROLL ──────────────────────────────────── */

.fade-target {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-target.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .split         { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .contact-split { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  section { padding: 5rem 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav-links.open a { font-size: 1.2rem; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 101;
  }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .form-row     { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
