/* =========================
   SPARK HARBOR VINTAGE RETRO CSS
   ========================= */

/* 1. FONT IMPORTS (Vintage/Retro + Brand) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600&family=Pacifico&display=swap');

:root {
  /* Brand Colors */
  --primary: #133063;
  --secondary: #F3B13A;
  --accent: #F7F7F3;
  /* Vintage/Retro Palette */
  --retro-red: #C1440E;
  --retro-blue: #3B5D82;
  --retro-cream: #FDF6E3;
  --retro-green: #6C8E6B;
  --retro-brown: #A67C52;
  --retro-orange: #F7A072;
  --retro-shadow: rgba(20, 30, 60, 0.12);
  /* Typography */
  --font-display: 'Montserrat', 'Arial Black', 'Pacifico', cursive, sans-serif;
  --font-body: 'Open Sans', 'Arial', sans-serif;
  --font-vintage: 'Pacifico', cursive;
  /* Spacing */
  --section-mb: 60px;
  --section-py: 40px;
  --section-px: 20px;
  --card-gap: 24px;
  --card-mb: 20px;
  --content-gap: 20px;
  --text-image-gap: 30px;
  --feature-gap: 15px;
  /* Shadows */
  --card-shadow: 0 4px 16px var(--retro-shadow);
  --btn-shadow: 0 2px 8px var(--retro-shadow);
  /* Border Radius */
  --radius: 14px;
  --btn-radius: 24px;
  /* Z-index */
  --z-mobile-menu: 1000;
  --z-cookie: 2000;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-body);
  background: var(--retro-cream);
  color: var(--primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  margin: 0 0 18px 0;
  color: var(--primary);
  letter-spacing: 0.03em;
  text-shadow: 1px 2px 0 var(--secondary), 0 2px 8px var(--retro-shadow);
}
h1 {
  font-size: 2.5rem;
  font-family: var(--font-vintage), var(--font-display);
  color: var(--retro-red);
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  color: var(--retro-blue);
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  color: var(--retro-brown);
  font-family: var(--font-display);
  font-weight: 700;
}
p, ul, ol {
  font-size: 1.08rem;
  margin-bottom: 18px;
  color: var(--primary);
}
ul, ol {
  padding-left: 1.2em;
}
ul li, ol li {
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
  color: var(--retro-red);
}
a {
  color: var(--retro-blue);
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--secondary);
  text-decoration: none;
}

/* ========== LAYOUT CONTAINERS ========== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========== SECTIONS & SPACING ========== */
section {
  margin-bottom: var(--section-mb);
  padding: var(--section-py) var(--section-px);
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--retro-shadow);
  position: relative;
}
section:nth-child(even) {
  background: var(--retro-cream);
}

/* ========== FLEXBOX PATTERNS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--card-gap);
}
.card {
  margin-bottom: var(--card-mb);
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 260px;
  flex: 1 1 300px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--content-gap);
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: var(--text-image-gap);
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--retro-cream);
  border-left: 6px solid var(--secondary);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--retro-shadow);
  margin-bottom: 20px;
  color: var(--primary);
  font-style: italic;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px var(--retro-shadow);
  transform: translateY(-2px) scale(1.02);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--feature-gap);
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 22px 18px;
  margin-bottom: 20px;
}

/* ========== FEATURE GRID (for .feature-grid) ========== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--retro-cream);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 22px 18px;
  min-width: 220px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  border: 2px dashed var(--retro-orange);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px var(--retro-shadow);
  border-color: var(--secondary);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--primary);
  color: var(--accent);
  padding: 0;
  box-shadow: 0 2px 12px var(--retro-shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 18px;
  filter: drop-shadow(0 2px 8px var(--retro-shadow));
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.08rem;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.main-nav .cta-btn {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-vintage), var(--font-display);
  font-size: 1.1rem;
  border-radius: var(--btn-radius);
  padding: 8px 28px;
  margin-left: 10px;
  box-shadow: var(--btn-shadow);
  border: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: var(--retro-orange);
  color: var(--primary);
  box-shadow: 0 4px 16px var(--retro-shadow);
  transform: scale(1.04);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-left: 18px;
}
.mobile-menu-toggle:active {
  background: var(--retro-orange);
  transform: scale(0.96);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, var(--retro-cream) 80%, var(--secondary) 100%);
  box-shadow: 0 8px 32px var(--retro-shadow);
  z-index: var(--z-mobile-menu);
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 18px 24px 0 0;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.mobile-menu-close:hover {
  color: var(--retro-red);
  transform: scale(1.1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  align-items: flex-start;
  margin-top: 40px;
  padding-left: 32px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 0;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--retro-red);
}

/* ========== HERO & CTA BUTTONS ========== */
.cta-btn {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-vintage), var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: var(--btn-radius);
  padding: 12px 36px;
  margin-top: 10px;
  box-shadow: var(--btn-shadow);
  border: none;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--retro-orange);
  color: var(--primary);
  box-shadow: 0 8px 32px var(--retro-shadow);
  transform: scale(1.05);
}

/* ========== MAP PLACEHOLDER ========== */
.map-placeholder {
  background: repeating-linear-gradient(135deg, var(--retro-orange), var(--retro-orange) 8px, var(--retro-cream) 8px, var(--retro-cream) 16px);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--primary);
  font-style: italic;
  margin: 18px 0 0 0;
  box-shadow: 0 2px 8px var(--retro-shadow);
}

/* ========== FOOTER ========== */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 32px 0 18px 0;
  font-size: 1rem;
  border-top: 6px solid var(--secondary);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--retro-orange);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--accent);
  font-size: 0.98rem;
}
.footer-contact a {
  color: var(--secondary);
  text-decoration: underline;
}
footer p {
  margin: 0;
  color: var(--accent);
  font-size: 0.95rem;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--retro-cream);
  color: var(--primary);
  box-shadow: 0 -2px 16px var(--retro-shadow);
  z-index: var(--z-cookie);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 22px 12px 18px 12px;
  font-size: 1.08rem;
  animation: cookie-slide-in 0.7s cubic-bezier(.77,0,.18,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--btn-radius);
  border: none;
  padding: 8px 22px;
  margin: 0;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .accept:hover {
  background: var(--retro-orange);
}
.cookie-banner .reject {
  background: var(--retro-red);
  color: var(--accent);
}
.cookie-banner .reject:hover {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-banner .settings {
  background: var(--retro-blue);
  color: var(--accent);
}
.cookie-banner .settings:hover {
  background: var(--primary);
  color: var(--secondary);
}

/* ========== COOKIE MODAL ========== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(19, 48, 99, 0.55);
  z-index: calc(var(--z-cookie) + 1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--retro-cream);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px var(--retro-shadow);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modal-pop-in 0.5s cubic-bezier(.77,0,.18,1);
}
@keyframes modal-pop-in {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  color: var(--retro-blue);
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--primary);
}
.cookie-modal .cookie-toggle {
  width: 38px;
  height: 22px;
  background: var(--retro-blue);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 8px;
}
.cookie-modal .cookie-toggle input {
  display: none;
}
.cookie-modal .cookie-toggle span {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  transition: left 0.2s, background 0.2s;
}
.cookie-modal .cookie-toggle input:checked + span {
  left: 19px;
  background: var(--secondary);
}
.cookie-modal .cookie-category.essential label {
  color: var(--retro-green);
  font-weight: 700;
}
.cookie-modal .cookie-category.essential .cookie-toggle {
  background: var(--retro-green);
  opacity: 0.7;
  pointer-events: none;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--btn-radius);
  border: none;
  padding: 8px 22px;
  margin: 0;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.cookie-modal .save {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal .save:hover {
  background: var(--retro-orange);
}
.cookie-modal .cancel {
  background: var(--retro-blue);
  color: var(--accent);
}
.cookie-modal .cancel:hover {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.cookie-modal .close-modal:hover {
  color: var(--retro-red);
  transform: scale(1.1);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .feature-grid > div, .card {
    min-width: 180px;
    flex: 1 1 180px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding: 0 8px;
  }
  section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
    margin-bottom: 0;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card {
    min-width: 0;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
    padding: 10px 8px;
  }
  footer .container {
    gap: 10px;
    padding: 0 8px;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .cookie-modal {
    padding: 18px 6px 12px 6px;
    min-width: 0;
  }
}

/* ========== RETRO DECORATIVE ELEMENTS ========== */
section:before {
  content: '';
  display: block;
  position: absolute;
  top: -18px;
  left: 24px;
  width: 60px;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--retro-orange), var(--retro-orange) 8px, var(--retro-cream) 8px, var(--retro-cream) 16px);
  border-radius: 8px;
  opacity: 0.7;
  z-index: 1;
}
section:nth-child(even):before {
  left: auto;
  right: 24px;
  background: repeating-linear-gradient(90deg, var(--retro-blue), var(--retro-blue) 8px, var(--retro-cream) 8px, var(--retro-cream) 16px);
}
@media (max-width: 768px) {
  section:before, section:nth-child(even):before {
    left: 10px;
    right: auto;
    width: 36px;
    height: 6px;
  }
}

/* ========== MICRO-INTERACTIONS ========== */
.card, .feature-grid > div, .feature-item {
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 8px 32px var(--retro-shadow);
  transform: translateY(-2px) scale(1.02);
}

/* ========== ACCESSIBILITY & CONTRAST ========== */
.testimonial-card {
  background: var(--retro-cream);
  color: var(--primary);
  border-left: 6px solid var(--secondary);
}
.testimonial-card p, .testimonial-card span {
  color: var(--primary);
}

/* ========== UTILITY CLASSES ========== */
.hide {
  display: none !important;
}

/* ========== END OF CSS ========== */
