/* RESET & NORMALIZE */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
  background: #FFFBF3;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* CSS VARIABLES & VINTAGE RETRO PALETTE */
:root {
  --color-primary: #1B4974; /* Brand Navy Blue */
  --color-secondary: #139AAE; /* Brand Teal */
  --color-accent: #F1F4F8; /* Brand Light */
  /* Vintage-retro colors (warming up the scheme) */
  --color-cream: #FFF7E0;
  --color-biscuit: #E6C89B;
  --color-rust: #CC6C36;
  --color-mustard: #FFD15B;
  --color-bordeaux: #A43332;
  --color-green: #387C6D;
  --color-shadow: rgba(44, 36, 31, 0.09);
  /* Brand fallback */
  --brand-display: 'Montserrat', 'Arial Rounded MT Bold', 'Tahoma', sans-serif;
  --brand-retro: 'Montserrat', 'Roboto Slab', 'Georgia', 'serif';
  --brand-body: 'Roboto', 'Montserrat', 'Arial', sans-serif;
}

body {
  color: #1B2B32;
  background-color: var(--color-cream);
  font-family: var(--brand-body);
  font-size: 16px;
  letter-spacing: -0.01em;
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--brand-retro);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol, li {
  font-family: var(--brand-body);
  font-size: 1rem;
  line-height: 1.66;
}
p {
  margin-bottom: 1em;
  color: #432918;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1.2em;
}
ul > li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 0.6em;
}
ul > li::before {
  content: '\2022';
  color: var(--color-rust);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  font-size: 1.1em;
  vertical-align: baseline;
}
strong, b {
  color: var(--color-bordeaux);
  font-weight: 700;
  font-family: var(--brand-retro);
}
.sub-headline {
  font-size: 1.15rem;
  font-family: var(--brand-display);
  color: var(--color-green);
  margin-bottom: 2em;
}

/* LINKS */
a {
  transition: color 0.18s;
}
a:hover, a:focus {
  color: var(--color-rust);
  text-decoration: underline;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}

/* HEADER & NAVIGATION */
header {
  background: var(--color-primary);
  color: #fff;
  padding: 0;
  box-shadow: 0 4px 32px -8px var(--color-shadow);
  border-bottom: 5px solid var(--color-biscuit);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  position: relative;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: var(--brand-retro);
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-mustard);
  color: var(--color-primary);
}
.cta-btn.primary {
  background: var(--color-mustard);
  color: var(--color-bordeaux);
  font-size: 1rem;
  font-family: var(--brand-retro);
  font-weight: 700;
  padding: 10px 32px;
  border-radius: 30px;
  box-shadow: 0 6px 24px -12px var(--color-shadow), 0 2px 0 0 var(--color-biscuit);
  border: 2px solid var(--color-biscuit);
  margin-left: 12px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  letter-spacing: 0.01em;
  outline: none;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: var(--color-biscuit);
  color: var(--color-bordeaux);
  box-shadow: 0 10px 36px -10px var(--color-shadow), 0 3px 0 0 var(--color-biscuit);
}
.cta-btn.secondary {
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--brand-retro);
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 30px;
  border: 2px solid var(--color-bordeaux);
  box-shadow: 0 2px 10px -3px var(--color-shadow);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  display: inline-block;
  margin-top: 20px;
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: var(--color-bordeaux);
  color: #fff;
  box-shadow: 0 6px 14px -3px var(--color-shadow);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: var(--color-bordeaux);
  color: #fff;
  font-size: 2.2rem;
  border-radius: 10px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 14px;
  z-index: 222;
  transition: background 0.18s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-rust);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-cream);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.37s cubic-bezier(.65,0,.35,1);
  box-shadow: 7px 0 28px -4px var(--color-shadow);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-bordeaux);
  color: #fff;
  font-size: 2.1rem;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-self: flex-end;
  margin: 24px 18px 8px 0;
  transition: background 0.17s;
  z-index: 1002;
}
.mobile-menu-close:active, .mobile-menu-close:focus {
  background: var(--color-rust);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 28px 0 28px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--brand-retro);
  font-size: 1.15rem;
  padding: 14px 0;
  border-bottom: 1px dashed var(--color-bordeaux);
  transition: color 0.17s, background 0.17s;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-biscuit);
  color: var(--color-bordeaux);
}

/* Hide nav on mobile, show burger */
@media (max-width: 992px) {
  .main-nav, .cta-btn.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* SECTIONS & SPACING */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 920px;
}
.text-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* FLEX UTILS & PATTERNS */
.feature-grid, .marina-highlights, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.content-grid {
  gap: 20px;
}
.card-container {
  gap: 24px;
}
.card {
  background: var(--color-accent);
  border-radius: 20px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 4px 24px -8px var(--color-shadow);
  padding: 28px;
  transition: box-shadow 0.19s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 40px -6px var(--color-shadow);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* Feature Items (Retro look) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-accent);
  border: 2.5px dashed var(--color-biscuit);
  border-radius: 16px;
  box-shadow: 0 3px 18px -6px var(--color-shadow);
  padding: 22px 20px;
  min-width: 230px;
  max-width: 340px;
  flex: 1 1 230px;
  transition: border-color 0.17s, box-shadow 0.17s;
}
.feature-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--color-mustard);
  box-shadow: 0 2px 12px -4px var(--color-shadow);
  margin-bottom: 10px;
  border: 2px solid var(--color-rust);
}
.feature-item h3 {
  color: var(--color-bordeaux);
  font-size: 1.12rem;
  margin-bottom: 8px;
  font-family: var(--brand-retro);
}
.feature-item p {
  color: #542d20;
}
.feature-item:hover, .feature-item:focus-within {
  border-color: var(--color-mustard);
  box-shadow: 0 8px 32px -4px var(--color-shadow);
}

/* Testimonial Card */
.testimonial-card {
  background: #fffdf8;
  padding: 20px;
  border-radius: 18px;
  border: 2.5px solid var(--color-biscuit);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 3px 18px -6px var(--color-shadow);
  max-width: 680px;
  font-size: 1.07rem;
  color: #332120;
  flex-wrap: wrap;
}
.testimonial-card p {
  color: #493025;
  margin: 0 0 10px 0;
}
.testimonial-card strong {
  color: var(--color-rust);
  font-family: var(--brand-retro);
  font-size: 1.12rem;
}
/* Enhanced contrast for testimonials: dark on light, always */
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  color: #332120;
}

/* Testimonial Slider (for index homepage) */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
}

/* Card Grid Sample Layouts */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

/* Contact Short/Details */
.contact-short, .contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin: 20px 0 0 0;
}
.contact-short p, .contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.06rem;
  color: #54393A;
}
.contact-details img {
  width: 26px; height: 26px;
}
.contact-details ul {
  padding-left: 0;
  margin-top: 16px;
}
.contact-details li {
  padding-left: 0;
}

/* Special Blog List Styles */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.blog-list a {
  font-family: var(--brand-retro);
  color: var(--color-bordeaux);
  background: var(--color-cream);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 2px 10px -3px var(--color-shadow);
  transition: background 0.16s, color 0.16s;
}
.blog-list a:hover, .blog-list a:focus {
  background: var(--color-biscuit);
  color: var(--color-primary);
}

/* Marina Regions List (retro check) */
.marina-regions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.marina-regions-list li::before {
  content: '\25CB';
  color: var(--color-green);
  font-size: 1em;
  margin-right: 7px;
}

/* Section Borders & Patterns */
section {
  border-radius: 28px;
  background: repeating-linear-gradient(-45deg, #FFF7E0, #FFF7E0 18px, #F6F3DE 18px, #F6F3DE 38px);
  box-shadow: 0 3px 32px -8px var(--color-shadow);
}
section:nth-of-type(2n) {
  background: repeating-linear-gradient(45deg, #FFF6E6, #FFF6E6 18px, #E6C89B 18px, #E6C89B 38px);
}

/* Footer */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 0;
  border-top: 5px solid var(--color-biscuit);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 18px 15px 18px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--color-mustard);
  font-family: var(--brand-retro);
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.17s, color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-bordeaux);
  color: #fff;
}
footer p {
  color: var(--color-biscuit);
  font-size: 0.95rem;
  margin: 0;
}

/* BUTTONS & INTERACTIONS */
button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.17s, color 0.17s, box-shadow 0.2s;
}
.cta-btn:active {
  transform: translateY(2px) scale(0.98);
}

/* FORM & FOCUS VINTAGE STYLES */
input, textarea, select {
  border-radius: 7px;
  border: 2px solid var(--color-biscuit);
  background: var(--color-accent);
  padding: 10px 14px;
  font-size: 1rem;
  font-family: var(--brand-body);
  margin-bottom: 20px;
  outline: none;
  box-shadow: 0 2px 6px -2px var(--color-shadow);
  transition: border-color 0.14s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-mustard);
  box-shadow: 0 4px 12px -3px var(--color-shadow);
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fffbe6;
  color: #57381c;
  border-top: 3px solid var(--color-biscuit);
  box-shadow: 0 -2px 22px -8px var(--color-shadow);
  padding: 24px 18px 20px 18px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  font-size: 1.02rem;
  animation: slideUp 0.6s cubic-bezier(.55,1.2,.6,1) 0s 1;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-banner .cta-btn {
  font-size: 1rem;
  min-width: 110px;
  border-radius: 18px;
  border: 2px solid var(--color-biscuit);
  transition: background 0.15s, color 0.15s;
}
.cookie-banner .cta-btn.primary {
  background: var(--color-mustard);
  color: var(--color-bordeaux);
}
.cookie-banner .cta-btn.primary:hover, .cookie-banner .cta-btn.primary:focus {
  background: var(--color-biscuit);
  color: var(--color-bordeaux);
}
.cookie-banner .cta-btn.secondary {
  background: var(--color-secondary);
  color: #fff;
  border: 2px solid var(--color-bordeaux);
}
.cookie-banner .cta-btn.secondary:hover, .cookie-banner .cta-btn.secondary:focus {
  background: var(--color-bordeaux);
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: var(--color-accent);
  color: var(--color-bordeaux);
  border: 2px solid var(--color-biscuit);
  font-weight: 600;
  font-family: var(--brand-retro);
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--color-biscuit);
}

/* COOKIE CONSENT MODAL */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(71,51,15,0.55);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal-backdrop.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fffdf6;
  color: #3f2d1b;
  border-radius: 26px;
  margin: auto;
  box-shadow: 0 10px 56px -10px var(--color-shadow);
  padding: 32px 26px 28px 26px;
  max-width: 410px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  animation: scaleUp 0.4s cubic-bezier(.55,1.2,.6,1) 0s 1;
  z-index: 2105;
}
@keyframes scaleUp {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-bordeaux);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-accent);
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-weight: 600;
  font-family: var(--brand-retro);
  font-size: 1.03rem;
}
.cookie-toggle {
  width: 34px;
  height: 20px;
  border-radius: 11px;
  background: var(--color-cream);
  border: 2px solid var(--color-biscuit);
  position: relative;
  margin-left: 8px;
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle .dot {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-mustard);
  position: absolute;
  left: 2px;
  top: 1px;
  transition: left 0.18s;
}
.cookie-toggle input:checked + .dot {
  left: 16px;
  background: var(--color-rust);
}
.cookie-modal .cta-btn {
  margin-top: 16px;
  width: 100%;
  border-radius: 18px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-bordeaux);
  color: #fff;
  border-radius: 100px;
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 32px;
  border: none;
  transition: background 0.15s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: var(--color-rust);
}

/* RETRO MICRO-EFFECTS */
.card, .feature-item, .testimonial-card, .cta-btn, .blog-list a, input, textarea, select {
  transition: box-shadow 0.21s, border-color 0.12s, background 0.15s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  box-shadow: 0 10px 40px -3px var(--color-shadow);
}
.cta-btn:active {
  transform: scale(0.985);
}

/* ----------- RESPONSIVE DESIGN ----------- */
@media (max-width: 992px) {
  .container {
    max-width: 96vw;
    padding: 0 7vw;
  }
  section {
    padding-left: 3vw;
    padding-right:3vw;
  }
  .header .container {
    flex-direction: column;
    padding: 18px 10px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 1.42rem;
    margin-bottom: 14px;
  }
  .content-wrapper {
    max-width: 100vw;
  }
  section {
    border-radius: 16px;
    margin-bottom: 40px;
    padding: 26px 4vw;
  }
  .feature-grid, .marina-highlights, .card-container, .testimonial-slider, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-item, .card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 20px 16px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 14px 10px;
  }
  .blog-list {
    gap: 12px;
  }
}
@media (max-width:480px) {
  header img { height: 34px; }
  .cta-btn.primary, .cta-btn.secondary {
    padding: 10px 16px;
    font-size: 0.98rem;
  }
  section {
    padding: 15px 0px;
  }
}

/* ----------- Z-INDEX EXTRAS ----------- */
header { z-index: 90; position:relative; }
.mobile-menu, .mobile-menu-toggle, .mobile-menu-close { z-index:1140; }
.cookie-banner { z-index: 2150; }
.cookie-modal-backdrop, .cookie-modal { z-index: 2200; }

/* ----------- OTHER MINOR POLISH ----------- */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--color-bisque,#e8d6b6);
  border-radius: 5px;
}

/* ----------- PRINT ----------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  section { page-break-inside: avoid; }
}
