/* Stuart Sailing — Custom Styles */
/* Extends Tailwind with brand-specific design tokens and components */

/* ─── Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Custom Properties ─── */
:root {
  --navy: #0c2340;
  --navy-light: #1a3a5c;
  --teal: #1b6b7d;
  --teal-light: #2a8fa3;
  --gold: #c9a84c;
  --gold-light: #dfc477;
  --sand: #f5f0e8;
  --sand-light: #faf8f4;
  --warm-white: #fefdfb;
  --charcoal: #2d2d2d;
  --slate: #64748b;
  --coral: #e07a5f;
}

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

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.6;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'DM Serif Display', serif;
}

/* ─── Sticky Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(12, 35, 64, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  opacity: 0.9;
  margin-bottom: 2rem;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Page Hero (interior pages) ─── */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero .hero-bg {
  filter: brightness(0.45);
}

.page-hero .hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.35);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.85rem;
}

/* ─── Cards ─── */
.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.card-body p {
  color: var(--slate);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* ─── Partner Badge ─── */
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--sand);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Guest Count Toggle ─── */
.guest-toggle {
  display: flex;
  background: var(--sand);
  border-radius: 50px;
  padding: 4px;
  max-width: 400px;
  margin: 0 auto 2rem;
}

.guest-toggle-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--slate);
}

.guest-toggle-btn.active {
  background: var(--navy);
  color: white;
  box-shadow: 0 4px 12px rgba(12, 35, 64, 0.25);
}

/* ─── Section Styles ─── */
.section {
  padding: 5rem 1.5rem;
}

.section-sm {
  padding: 3rem 1.5rem;
}

.section-dark {
  background: var(--navy);
  color: white;
}

.section-sand {
  background: var(--sand);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.section-dark .section-title {
  color: white;
}

.section-subtitle {
  color: var(--slate);
  font-size: 1.1rem;
  max-width: 600px;
  font-weight: 300;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* ─── Review Stars ─── */
.stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.review-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.review-card .quote {
  font-style: italic;
  color: var(--charcoal);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 1rem 0;
}

.review-card .author {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

/* ─── Divider ─── */
.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

/* ─── Floating CTA (Mobile) ─── */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--gold);
  color: var(--navy);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 30px rgba(201, 168, 76, 0.4);
  transition: all 0.3s ease;
  gap: 0.5rem;
  align-items: center;
}

.floating-cta:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 10px 40px rgba(201, 168, 76, 0.5);
}

@media (max-width: 768px) {
  .floating-cta { display: inline-flex; }
}

/* ─── Mobile Nav ─── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  font-family: 'DM Serif Display', serif;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--gold);
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* ─── FAQ Accordion ─── */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
}

.faq-question .icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--gold);
}

.faq-question.active .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--slate);
  line-height: 1.7;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 1.5rem 2rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: var(--gold);
}

/* ─── Responsive Grid Helpers ─── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 2rem; }

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

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

/* ─── Container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-teal { color: var(--teal); }
.text-slate { color: var(--slate); }
.bg-sand { background: var(--sand); }
.bg-navy { background: var(--navy); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

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

.fade-up {
  animation: fadeUp 0.8s ease forwards;
}

.fade-up-delay-1 { animation-delay: 0.15s; opacity: 0; }
.fade-up-delay-2 { animation-delay: 0.3s; opacity: 0; }
.fade-up-delay-3 { animation-delay: 0.45s; opacity: 0; }

/* ─── Celebrations of Life (Respectful) ─── */
.memorial-section {
  background: linear-gradient(135deg, var(--sand-light) 0%, #eee8dd 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.memorial-section h2 {
  color: var(--navy-light);
}

.memorial-section p {
  color: var(--slate);
}

/* ─── Contact Form ─── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--navy);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
}

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