/* GLOBAL STYLES & VARIABLES */
:root {
  --earth: #2c1a0e;
  --gold: #C9973A;
  --sand: #d9c9a8;
  --clay: #a65d3d;
  --cream: #faf7f2;
  --warm-white: #f5f0e6;
  --sage: #6b7c5c;
  --light-text: rgba(44, 26, 14, 0.65);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--earth);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
}

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

/* ANIMATIONS & REVEALS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201,151,58, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(201,151,58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201,151,58, 0); }
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--earth);
  color: var(--cream) !important;
  padding: 16px 36px;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.4s;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn-primary span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cream) !important; /* Force visibility */
}

/* ACTIVE STATE FOR NAV BUTTONS */
.btn-primary.active-btn {
  background: var(--gold);
}

.btn-primary.active-btn span {
  color: var(--earth) !important;
}

.btn-primary.active-btn::before {
  display: none; /* No need for hover effect on already active button */
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--earth);
  border: 1px solid var(--earth);
  padding: 15px 35px;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.4s;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--earth);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.btn-outline:hover { color: var(--cream); }
.btn-outline:hover::before { transform: translateY(0); }
.btn-outline span { position: relative; z-index: 1; }

.btn-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--earth);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.btn-text:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* SECTION LABELS (Small tags above headers) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--sand);
}

/* MARQUEE */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--earth);
  color: var(--gold);
  padding: 16px 0;
  border-top: 1px solid rgba(201,151,58,0.2);
  border-bottom: 1px solid rgba(201,151,58,0.2);
  display: flex;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-item {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
}
.marquee-item::after {
  content: '✦';
  margin-left: 64px;
  color: rgba(201,151,58,0.3);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* PAGE HERO (Shared across inner pages) */
.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 140px 60px 80px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top:0; right:0; width: 60%; height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(201,151,58,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-content {
  flex: 1; max-width: 600px;
  position: relative; z-index: 10;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond';
  font-size: clamp(48px, 6vw, 90px);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 24px;
  color: var(--earth);
  opacity: 0; animation: fadeUp 0.8s 0.3s ease forwards;
}
.page-hero h1 em {
  font-style: italic; color: var(--clay);
}
.page-hero p {
  font-size: 16px; line-height: 1.8; color: var(--light-text);
  max-width: 480px;
  opacity: 0; animation: fadeUp 0.8s 0.4s ease forwards;
}
.page-hero-img {
  position: absolute; right: 60px; top: 120px; bottom: 80px;
  width: 40%;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(44,26,14,0.1);
  opacity: 0; animation: fadeIn 1.2s 0.5s ease forwards;
}
.page-hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

@media (max-width: 860px) {
  .page-hero { padding: 120px 20px 60px; flex-direction: column; text-align: center; justify-content: center; }
  .page-hero-content { margin: 0 auto; }
  .page-hero-img { position: relative; right: auto; top: auto; bottom: auto; width: 100%; height: 300px; margin-top: 40px; }
  .section-label { justify-content: center; }
  .section-label::before { display: none; }
}
