/* ============================================
   CALDER MERRITT - GLOBAL STYLES
   Brand: #050505 bg, #BF9B30 gold, #FFFFFF white
   Fonts: DM Serif Display (headings), Montserrat (body)
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #050505;
  --gold: #BF9B30;
  --gold-light: #D4AF37;
  --gold-dark: #A68628;
  --white: #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-200: #E0E0E0;
  --gray-300: #AAAAAA;
  --gray-600: #666666;
  --gray-800: #1A1A1A;
  --gray-900: #0D0D0D;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Montserrat', Arial, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

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

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; }
h1 { font-size: 3.5rem; letter-spacing: 0.04em; }
h2 { font-size: 2.4rem; letter-spacing: 0.03em; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

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

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(191, 155, 48, 0.15);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.06em;
}

.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--gray-300);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--gold);
  color: var(--black) !important;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.8rem !important;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.nav-cta:hover { background: var(--gold-light); color: var(--black) !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center top, rgba(191, 155, 48, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero h1 {
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--gray-300);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover { background: var(--gold-light); color: var(--black); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

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

.btn-small {
  padding: 10px 24px;
  font-size: 0.78rem;
}

/* --- SECTIONS --- */
section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 { margin-bottom: 16px; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 20px auto 0;
}

.section-sub {
  color: var(--gray-300);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 16px auto 0;
}

/* Alternating backgrounds */
.section-dark { background: var(--black); }
.section-darker { background: var(--gray-900); }

/* --- ABOUT --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--gray-800);
  border: 1px solid rgba(191, 155, 48, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-image-placeholder {
  color: var(--gray-600);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-text p {
  color: var(--gray-300);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.about-text p:last-of-type { margin-bottom: 32px; }

/* --- SERVICES / WHAT I OFFER --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--gray-900);
  border: 1px solid rgba(191, 155, 48, 0.12);
  padding: 40px 32px;
  transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: rgba(191, 155, 48, 0.4);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 { margin-bottom: 12px; color: var(--white); }

.service-card p { color: var(--gray-300); font-size: 0.9rem; }

/* --- GALLERY --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--gray-800);
  border: 1px solid rgba(191, 155, 48, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition);
}

.gallery-item:hover { border-color: rgba(191, 155, 48, 0.4); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-placeholder {
  color: var(--gray-600);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gallery-more {
  text-align: center;
  margin-top: 40px;
}

/* --- STORE --- */
.store-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.store-content p {
  color: var(--gray-300);
  font-size: 1rem;
  margin-bottom: 32px;
}

.store-categories {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.store-category {
  background: var(--gray-800);
  border: 1px solid rgba(191, 155, 48, 0.15);
  padding: 20px 32px;
  text-align: center;
  min-width: 160px;
  transition: border-color var(--transition);
}

.store-category:hover { border-color: rgba(191, 155, 48, 0.4); }

.store-category h4 { color: var(--gold); margin-bottom: 4px; }
.store-category p { color: var(--gray-300); font-size: 0.8rem; margin: 0; }

/* --- BLOG PREVIEW --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: var(--gray-900);
  border: 1px solid rgba(191, 155, 48, 0.12);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.blog-card:hover {
  border-color: rgba(191, 155, 48, 0.4);
  transform: translateY(-4px);
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-image-placeholder {
  color: var(--gray-600);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blog-card-body { padding: 24px; }

.blog-card-date {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.blog-card h3 a { color: var(--white); }
.blog-card h3 a:hover { color: var(--gold); }

.blog-card p { color: var(--gray-300); font-size: 0.85rem; line-height: 1.6; }

.blog-more { text-align: center; margin-top: 40px; }

/* --- NEWSLETTER --- */
.newsletter {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--black) 100%);
  border-top: 1px solid rgba(191, 155, 48, 0.15);
  border-bottom: 1px solid rgba(191, 155, 48, 0.15);
}

.newsletter-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-content h2 { margin-bottom: 12px; }

.newsletter-content p {
  color: var(--gray-300);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  background: var(--gray-800);
  border: 1px solid rgba(191, 155, 48, 0.2);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input[type="email"]::placeholder { color: var(--gray-600); }
.newsletter-form input[type="email"]:focus { border-color: var(--gold); }

.newsletter-form button {
  padding: 14px 28px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--gold-light); }

.newsletter-note {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 12px;
}

/* --- FOOTER --- */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid rgba(191, 155, 48, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--gray-300);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--gray-300);
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--gray-600);
  font-size: 0.78rem;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: var(--gray-300);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* --- PAGE HEADER (for inner pages) --- */
.page-header {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  text-align: center;
  background: var(--black);
  border-bottom: 1px solid rgba(191, 155, 48, 0.1);
}

.page-header h1 { font-size: 2.8rem; margin-bottom: 12px; }
.page-header p { color: var(--gray-300); font-size: 0.95rem; }

/* --- GALLERY PAGE --- */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-page-grid .gallery-item { aspect-ratio: 1; }

.gallery-page-grid .gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-page-grid .gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* --- BLOG PAGE --- */
.blog-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.blog-post-full { max-width: 760px; margin: 0 auto; }

.blog-post-full h1 { font-size: 2.4rem; margin-bottom: 12px; }

.blog-post-full .post-meta {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.blog-post-full .post-content { color: var(--gray-300); font-size: 0.95rem; }
.blog-post-full .post-content p { margin-bottom: 20px; }
.blog-post-full .post-content h2 { margin: 40px 0 16px; font-size: 1.8rem; color: var(--white); }
.blog-post-full .post-content h3 { margin: 32px 0 12px; font-size: 1.3rem; color: var(--white); }
.blog-post-full .post-content a { color: var(--gold); text-decoration: underline; }
.blog-post-full .post-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 24px 0;
  color: var(--gray-300);
  font-style: italic;
}

/* --- 18+ GATE (if needed) --- */
.age-gate {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 5, 5, 0.98);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.age-gate-content { max-width: 420px; padding: 24px; }
.age-gate-content h2 { margin-bottom: 16px; }
.age-gate-content p { color: var(--gray-300); font-size: 0.9rem; margin-bottom: 24px; }
.age-gate-buttons { display: flex; gap: 16px; justify-content: center; }

.age-gate.hidden { display: none; }

/* --- MOBILE NAV --- */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 5, 0.98);
  z-index: 999;
  padding: 40px 24px;
}

.mobile-nav.active { display: flex; flex-direction: column; gap: 24px; }

.mobile-nav a {
  color: var(--gray-300);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }

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

  .hero { min-height: 80vh; padding-top: calc(var(--nav-height) + 20px); }
  .hero-tagline { font-size: 0.9rem; }
  .hero-sub { font-size: 0.9rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { max-width: 400px; margin: 0 auto; }

  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-page-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-page-grid .gallery-item.wide { grid-column: span 1; aspect-ratio: 1; }
  .gallery-page-grid .gallery-item.tall { grid-row: span 1; aspect-ratio: 1; }

  .blog-grid { grid-template-columns: 1fr; }
  .blog-page-grid { grid-template-columns: 1fr; }

  .store-categories { flex-direction: column; align-items: center; }
  .store-category { width: 100%; max-width: 280px; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
