/* ============================================================
   Kakefrue — Shared Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  --cream: #FAF6F0;
  --gold: #C9A884;
  --gold-dark: #9B7A54;
  --rose: #E8AAAA;
  --sage: #8B9E7A;
  --brown: #4A3728;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(74, 55, 40, 0.08);
  --shadow-hover: 0 8px 32px rgba(74, 55, 40, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --max-width: 1200px;
  --section-padding: 80px 24px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--brown);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--brown); }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--brown);
  line-height: 1.3;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: var(--section-padding); }
.section-title {
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  color: var(--gold-dark);
  font-size: 1rem;
  margin-bottom: 48px;
  font-style: italic;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 246, 240, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 132, 0.2);
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--brown);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--gold); }
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brown);
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--gold-dark); }
.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.85rem !important;
  opacity: 1 !important;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-dark) !important; color: var(--white) !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  transition: all 0.3s;
  border-radius: 2px;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(201, 168, 132, 0.2);
  padding: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid rgba(201, 168, 132, 0.15);
  color: var(--brown);
  font-size: 1rem;
  display: block;
}
.mobile-menu a:last-child { border-bottom: none; }

/* Page offset for fixed nav */
.page-content { padding-top: 72px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(155, 122, 84, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--gold-dark);
  border: 2px solid var(--gold);
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--brown);
  border: 2px solid rgba(74, 55, 40, 0.2);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 44px; font-size: 1.1rem; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-body { padding: 24px; }
.card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--cream) 0%, #F5EDE0 50%, #EFE4D4 100%);
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 132, 0.1) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 170, 170, 0.08) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 em {
  font-style: italic;
  color: var(--gold-dark);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--brown);
  opacity: 0.75;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Gallery / Grid
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* ============================================================
   Reviews Carousel
   ============================================================ */
.reviews-carousel {
  position: relative;
  overflow: hidden;
}
.reviews-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.review-stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 12px; }
.review-text { font-style: italic; margin-bottom: 16px; opacity: 0.85; }
.review-author { font-weight: 700; font-size: 0.9rem; color: var(--gold-dark); }

/* ============================================================
   Badges / Trust Signals
   ============================================================ */
.trust-section {
  background: var(--white);
  padding: 48px 24px;
}
.trust-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--brown);
  opacity: 0.7;
}
.trust-icon { font-size: 1.8rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--brown);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 24px 32px;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand h3 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.footer-brand h3 span { color: var(--gold); }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  opacity: 0.5;
}
.social-links { display: flex; gap: 16px; }
.social-links a { color: rgba(255,255,255,0.6); font-size: 1.2rem; transition: color 0.2s; }
.social-links a:hover { color: var(--gold); }

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--brown);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(74, 55, 40, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--brown);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 132, 0.15);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint {
  font-size: 0.8rem;
  color: var(--brown);
  opacity: 0.6;
  margin-top: 4px;
}

/* ============================================================
   Alerts / Messages
   ============================================================ */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.alert-success { background: #E8F5E9; color: #2E7D32; border-left: 4px solid #4CAF50; }
.alert-error { background: #FFEBEE; color: #C62828; border-left: 4px solid #EF5350; }
.alert-info { background: #E3F2FD; color: #1565C0; border-left: 4px solid #42A5F5; }
.alert-warning { background: #FFF8E1; color: #E65100; border-left: 4px solid #FFA726; }

/* ============================================================
   Utility Classes
   ============================================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold-dark); }
.text-sage { color: var(--sage); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.fw-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }
.divider {
  border: none;
  border-top: 1px solid rgba(201, 168, 132, 0.2);
  margin: 32px 0;
}
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag-gold { background: rgba(201, 168, 132, 0.15); color: var(--gold-dark); }
.tag-rose { background: rgba(232, 170, 170, 0.2); color: #C0505050; color: #B85C5C; }
.tag-sage { background: rgba(139, 158, 122, 0.15); color: #5F7A4E; }
.tag-pending { background: #FFF8E1; color: #B86A00; }
.tag-confirmed { background: #E8F5E9; color: #2E7D32; }
.tag-cancelled { background: #FFEBEE; color: #C62828; }
.tag-completed { background: #E8EAF6; color: #283593; }

/* ============================================================
   Page Hero (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--cream) 0%, #F0E6D8 100%);
  padding: 80px 24px 60px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; opacity: 0.7; max-width: 560px; margin: 0 auto; }

/* ============================================================
   Loading Spinner
   ============================================================ */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(201, 168, 132, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 32px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-padding: 56px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-center { position: static; transform: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .review-card { flex: 0 0 280px; }
}
