:root {
  --cream: #F5F0E6;
  --ivory: #F5F0E6;
  --section-categories: #F0E9DE;
  --section-stories: #E8DFD2;
  --brown: #4A2E1B;
  --brown-light: #6B4A33;
  --gold: #B58A4A;
  --gold-light: #D4B079;
  --shadow-sm: 0 2px 10px rgba(74, 46, 27, 0.06);
  --shadow-md: 0 8px 30px rgba(74, 46, 27, 0.1);
  --shadow-lg: 0 20px 60px rgba(74, 46, 27, 0.15);
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--ivory);
  color: var(--brown);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Containers */
.container-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--brown);
  color: var(--ivory);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(100%);
  transition: var(--transition);
  z-index: 0;
}

.btn-primary:hover::before { transform: translateY(0); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: 1px solid var(--brown);
  color: var(--brown);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--brown);
  color: var(--ivory);
}

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

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

/* Section heading */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  color: var(--brown);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--brown-light);
  max-width: 600px;
  margin: 0 auto;
}

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem auto;
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.divider-ornament svg { color: var(--gold); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes flicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.animate-fadeInUp { animation: fadeInUp 0.8s ease forwards; }
.animate-fadeIn { animation: fadeIn 1s ease forwards; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Toast */
.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--brown);
  color: var(--ivory);
  padding: 1rem 1.5rem;
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  animation: slideInRight 0.4s ease, slideOutRight 0.4s ease 2.6s forwards;
  border-left: 3px solid var(--gold);
}

.toast.success { border-left-color: #7a9e5c; }
.toast.error { border-left-color: #c76b5a; }

@keyframes slideInRight {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  to { transform: translateX(400px); opacity: 0; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brown); }

/* Section padding */
.section-padding { padding: 6rem 0; }
@media (max-width: 768px) {
  .section-padding { padding: 4rem 0; }
}

/* Inner pages — room for fixed split header */
.inner-page-shell {
  padding-top: calc(88px + 1.5rem);
}

@media (max-width: 1024px) {
  .inner-page-shell {
    padding-top: calc(80px + 1rem);
  }
}

/* Contact & forms */
.contact-page {
  padding: calc(88px + 2.5rem) 0 4rem;
  background: var(--cream);
  min-height: 80vh;
}

@media (max-width: 1024px) {
  .contact-page {
    padding-top: calc(80px + 2rem);
    padding-bottom: 3rem;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-form-panel {
  background: var(--ivory);
  padding: 2.5rem;
  border-radius: 4px;
}

@media (max-width: 480px) {
  .contact-form-panel {
    padding: 1.5rem;
  }
}

.contact-form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 540px) {
  .contact-form-split {
    grid-template-columns: 1fr;
  }
}

.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Loader */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--cream);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Form inputs */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--ivory);
  border: 1px solid rgba(74, 46, 27, 0.2);
  border-radius: 2px;
  font-family: inherit;
  color: var(--brown);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 138, 74, 0.1);
}

.form-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-error {
  color: #c76b5a;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}