/* ═══════════════════════════════════════
   Totally Cape Cod — Shared Design System
   Pastel Beach Theme 🏖️
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,600&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ── Pastel Beach Palette ── */
  --sea-deep:         #4A90A4;
  --sea-soft:         #7BBCD0;
  --sea-light:        #A8D8E8;
  --sea-mist:         #D4EDF5;
  
  --sand-warm:        #D4A574;
  --sand-soft:        #E8C9A0;
  --sand-light:       #F5E6D3;
  --sand-cream:       #FDF6ED;
  
  --coral-soft:       #F4A896;
  --coral-light:      #FAD4CC;
  
  --mint-soft:        #A8D5C5;
  --mint-light:       #D4ECE3;
  
  --lavender-soft:    #C5B8D4;
  --lavender-light:   #E8E0F0;
  
  --peach-soft:       #F5C9A8;
  --peach-light:      #FCE8D8;
  
  --blush-soft:       #E8B8B8;
  --blush-light:      #F5D8D8;
  
  --warm-brown:       #6B5344;
  --warm-brown-soft:  #8A7465;
  
  /* ── Functional ── */
  --bg:               #FDF8F2;
  --card:             #FFFFFF;
  --text:             #4A4038;
  --text-secondary:   #9A8E82;
  --divider:          #F0E6D8;
  --gold:             #D4A574;
  --gold-soft:        #E8C9A0;

  /* ── Status ── */
  --status-open:      #6BC4A6;
  --status-mid:       #E8B87A;
  --status-full:      #E88A8A;

  /* ── Shadows ── */
  --shadow-sm:        0 2px 8px rgba(107,84,68,0.06);
  --shadow-md:        0 8px 24px rgba(107,84,68,0.10);
  --shadow-lg:        0 16px 48px rgba(107,84,68,0.14);
  --shadow-gold:      0 6px 20px rgba(212,165,116,0.30);

  /* ── Radius ── */
  --radius-sm:  12px;
  --radius-md:  18px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full: 999px;

  /* ── Transitions ── */
  --transition-fast:  0.2s ease;
  --transition-base:  0.3s ease;
  --transition-slow:  0.5s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.font-display {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
}

.font-script {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
}

/* ── Layout ── */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.section {
  padding: 64px 0;
}

@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .page-wrap { padding: 0 16px 60px; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 20px 60px;
  overflow: hidden;
  background: linear-gradient(180deg, 
    var(--sea-light) 0%, 
    var(--sea-mist) 25%,
    var(--mint-light) 50%,
    var(--sand-light) 75%,
    var(--sand-cream) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(245,230,211,0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(212,237,245,0.4) 0%, transparent 50%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.hero-video {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(168,216,232,0.3) 0%, 
    rgba(212,237,245,0.2) 40%, 
    rgba(245,230,211,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.6);
  color: var(--warm-brown);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--warm-brown);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  text-shadow: 0 2px 16px rgba(255,255,255,0.5);
}

.hero-title .script {
  font-style: italic;
  font-weight: 400;
  color: var(--coral-soft);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--warm-brown-soft);
  line-height: 1.6;
  margin: 0 0 32px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 28px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--coral-soft) 0%, var(--sand-warm) 100%);
  color: white;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(212,165,116,0.40);
  text-decoration: none;
}

.btn-navy {
  background: linear-gradient(135deg, var(--sea-deep) 0%, var(--sea-soft) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(74,144,164,0.25);
}

.btn-navy:hover {
  box-shadow: 0 6px 22px rgba(74,144,164,0.35);
  text-decoration: none;
}

.btn-ghost {
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
  color: var(--warm-brown);
  border: 1.5px solid rgba(255,255,255,0.6);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.6);
  text-decoration: none;
}

.btn-sm { padding: 10px 18px; font-size: 13px; border-radius: var(--radius-full); }

/* ── Cards ── */
.card {
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--divider);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-cover {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74,64,56,0.35) 0%, transparent 50%);
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  color: var(--warm-brown);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  z-index: 1;
}

.card-body {
  padding: 16px;
}

.card-title {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px;
}

.card-sub {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0;
}

.card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Grid systems ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Section headers ── */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-soft);
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--warm-brown);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Filters ── */
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
  flex: none;
  background: white;
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--sea-soft);
  color: var(--sea-deep);
}

.filter-chip.active {
  background: linear-gradient(135deg, var(--sea-light) 0%, var(--mint-light) 100%);
  color: var(--sea-deep);
  border-color: var(--sea-light);
}

/* ── Affiliate CTA bands ── */
.affiliate-band {
  background: linear-gradient(135deg, var(--sand-cream) 0%, var(--peach-light) 100%);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  border: 1px solid var(--divider);
}

.affiliate-band .label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral-soft);
  margin-bottom: 2px;
}

.affiliate-band .title {
  font-weight: 700;
  font-size: 15px;
  color: var(--warm-brown);
}

@media (max-width: 480px) {
  .affiliate-band { flex-direction: column; align-items: flex-start; }
}

/* ── Forms ── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--sea-soft);
  box-shadow: 0 0 0 3px rgba(123,188,208,0.12);
}

.form-textarea { resize: vertical; min-height: 100px; }

/* ── Modal / Popup ── */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(74,64,56,0.35);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-bg.show { display: flex; }

.modal-sheet {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.35s ease;
  border: 1px solid var(--divider);
}

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

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--divider);
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253,248,242,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--divider);
  transition: background var(--transition-fast);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--warm-brown);
  text-decoration: none;
}

.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--warm-brown-soft);
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--sea-deep);
  text-decoration: none;
}

.nav-cta {
  background: linear-gradient(135deg, var(--coral-soft) 0%, var(--sand-warm) 100%);
  color: white !important;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--warm-brown);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
}

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(74,64,56,0.3);
  backdrop-filter: blur(6px);
  display: none;
}

.mobile-menu.show { display: block; }

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: white;
  padding: 80px 24px 24px;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.mobile-menu-panel a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--divider);
}

/* ── Footer ── */
.site-footer {
  background: linear-gradient(180deg, var(--sand-cream) 0%, var(--sand-light) 100%);
  border-top: 1px solid var(--divider);
  padding: 48px 20px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--warm-brown);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 300px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
}

.footer-links a:hover {
  color: var(--sea-deep);
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Wave divider ── */
.wave-divider {
  width: 100%;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23FDF8F2' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,64C960,75,1056,85,1152,80C1248,75,1344,53,1392,42.7L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center bottom;
  background-size: cover;
  margin-top: -60px;
  position: relative;
  z-index: 3;
}

/* ── Pastel accent backgrounds ── */
.bg-pastel-sea { background: linear-gradient(135deg, var(--sea-mist) 0%, var(--mint-light) 100%); }
.bg-pastel-sand { background: linear-gradient(135deg, var(--sand-light) 0%, var(--peach-light) 100%); }
.bg-pastel-coral { background: linear-gradient(135deg, var(--coral-light) 0%, var(--blush-light) 100%); }
.bg-pastel-lavender { background: linear-gradient(135deg, var(--lavender-light) 0%, var(--sea-mist) 100%); }

/* ── Utility ── */
.w-full { width: 100%; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
