*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; background: #F4F0E6; color: #2C3B22; margin: 0; }

.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}
.grain > * { position: relative; z-index: 2; }

.font-display { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-body { font-family: 'DM Sans', system-ui, sans-serif; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes waveSlide {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.anim-fade-up   { animation: fadeUp 0.7s cubic-bezier(0.34, 1.1, 0.64, 1) forwards; }
.anim-fade-in   { animation: fadeIn 0.6s ease forwards; }
.anim-wave      { animation: waveSlide 0.8s cubic-bezier(0.34, 1.1, 0.64, 1) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.65s; }

nav { background: #2C3B22; }
.nav-link {
  color: #C4A882;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
}
.nav-link:hover { color: #F4F0E6; }
.nav-link.active { color: #F4F0E6; }

.btn-primary {
  display: inline-block;
  background: #2C3B22;
  color: #F4F0E6;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  border-radius: 2px;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 4px 20px rgba(44, 59, 34, 0.25), 0 1px 4px rgba(44, 59, 34, 0.15);
  text-decoration: none;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid #D4A0B5; outline-offset: 3px; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: #F4F0E6;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 13px 31px;
  border-radius: 2px;
  border: 1px solid rgba(244, 240, 230, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
  text-decoration: none;
}
.btn-ghost:hover { background: rgba(244, 240, 230, 0.08); border-color: rgba(244, 240, 230, 0.6); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(0); }

.btn-cream {
  display: inline-block;
  background: #F4F0E6;
  color: #2C3B22;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  border-radius: 2px;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 4px 20px rgba(44, 59, 34, 0.2);
  text-decoration: none;
}
.btn-cream:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-cream:active { transform: translateY(0); }

.btn-forest {
  display: inline-block;
  background: #2C3B22;
  color: #F4F0E6;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  border-radius: 2px;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 4px 20px rgba(44, 59, 34, 0.2);
  text-decoration: none;
}
.btn-forest:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-forest:active { transform: translateY(0); }

.wave-divider svg { display: block; }

.card-surface {
  background: #F4F0E6;
  border: 1px solid rgba(196, 168, 130, 0.3);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(44, 59, 34, 0.06), 0 8px 32px rgba(44, 59, 34, 0.04);
  transition: transform 0.25s cubic-bezier(0.34, 1.1, 0.64, 1), box-shadow 0.25s ease;
}
.card-surface:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(44, 59, 34, 0.1), 0 16px 48px rgba(44, 59, 34, 0.07);
}

.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196, 168, 130, 0.15);
  border-radius: 4px;
}

.brand-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #D4A0B5, #B07A8A);
  border-radius: 1px;
  flex-shrink: 0;
}

.shadow-warm {
  box-shadow: 0 2px 6px rgba(176, 122, 138, 0.12), 0 8px 24px rgba(44, 59, 34, 0.1), 0 24px 64px rgba(44, 59, 34, 0.06);
}

.pricing-card {
  background: rgba(244, 240, 230, 0.07);
  border: 1px solid rgba(196, 168, 130, 0.2);
  border-radius: 4px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.1, 0.64, 1);
}
.pricing-card:hover {
  background: rgba(244, 240, 230, 0.11);
  border-color: rgba(196, 168, 130, 0.45);
  transform: translateY(-2px);
}
.pricing-card.featured {
  background: rgba(244, 240, 230, 0.12);
  border-color: rgba(244, 240, 230, 0.3);
}

.arch-frame {
  border-radius: 999px 999px 8px 8px;
  overflow: hidden;
  position: relative;
}
.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.arch-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

/* Form elements */
.form-input {
  width: 100%;
  background: #F4F0E6;
  border: 1px solid rgba(44, 59, 34, 0.2);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #2C3B22;
  transition: border-color 0.2s ease;
  outline: none;
}
.form-input:focus { border-color: rgba(44, 59, 34, 0.5); }
.form-input::placeholder { color: rgba(44, 59, 34, 0.4); }
textarea.form-input { resize: vertical; min-height: 120px; }
.form-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2C3B22;
  margin-bottom: 8px;
}

/* Page hero (non-home) */
.page-hero {
  background: #2C3B22;
  padding: 80px 24px 64px;
}

/* Responsive helpers */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
