/* -----------------------------------
   CSS RESET & BASE SETUP
----------------------------------- */
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;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FFFFFF;
  color: #153859;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  padding-left: 22px;
}
a {
  color: #1976b2;
  text-decoration: none;
  transition: color 0.20s;
}
a:hover, a:focus {
  color: #153859;
  text-decoration: underline;
}

/* Typography – Elegant classic scale */
h1, .h1 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: #153859;
}
h2, .h2 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.22;
  margin-bottom: 18px;
  color: #153859;
}
h3, .h3 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #153859;
}
h4, .h4 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
p, li, blockquote, .body-text {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: #233b53;
}
strong {
  font-weight: bold;
  color: #153859;
}
.subheadline {
  font-size: 1.2rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #3A99D8;
  margin-bottom: 22px;
  letter-spacing: 0.03em;
}

/* Layout container and universal classes */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .testimonial-card {
  margin-bottom: 20px;
  position: relative;
  background: #E9F3F7;
  border-radius: 14px;
  box-shadow: 0 1px 9px 0 rgba(21,56,89,0.08);
  padding: 24px 28px;
  color: #153859;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 4px 16px 0 rgba(21,56,89,0.18);
  transform: translateY(-2px) scale(1.01);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid #E9F3F7;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  color: #153859;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  min-width: 220px;
  max-width: 510px;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #233b53;
}
.testimonial-card span {
  font-size: 0.96rem;
  color: #3A99D8;
  padding-left: 20px;
  white-space: nowrap;
}

.hero {
  background: #E9F3F7;
  padding: 72px 0 56px 0;
  margin-bottom: 56px;
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 8px;
  background: #153859;
  color: #fff;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.18s, box-shadow 0.18s, color 0.2s, transform 0.18s;
  box-shadow: 0 2px 8px rgba(21,56,89,0.07);
  border: 1px solid #153859;
  margin-top: 8px;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: #3A99D8;
  color: #fff;
  box-shadow: 0 4px 16px rgba(21,56,89,0.11);
  transform: translateY(-1px) scale(1.017);
  border-color: #3A99D8;
}

button,
.mobile-menu-toggle,
.mobile-menu-close {
  font-family: inherit;
  font-size: 1.24rem;
  background: none;
  border: none;
  color: #153859;
  cursor: pointer;
  transition: color 0.22s, background 0.18s;
}
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 32px;
  top: 36px;
  z-index: 111;
  padding: 10px 16px;
  border-radius: 8px;
  background: #E9F3F7;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(21,56,89,0.09);
  line-height: 1;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #3A99D8;
  color: #fff;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 32px rgba(21,56,89,0.18);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.86, 0, 0.07, 1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #153859;
  margin: 26px 30px 10px 0;
  background: transparent;
  transition: color 0.2s, background 0.17s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #fff;
  background: #1976b2;
  border-radius: 50%;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 24px;
  margin-top: 16px;
  padding: 30px 44px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: #153859;
  padding: 14px 0;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  border-bottom: 1px solid #E9F3F7;
  width: 100%;
  transition: color 0.18s, background 0.19s;
}
.mobile-nav a:last-child {
  border-bottom: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #3A99D8;
  background: #E9F3F7;
  border-radius: 6px;
}

/* HEADER & NAVBAR */
header {
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #E9F3F7;
  box-shadow: 0 2px 9px rgba(21,56,89,0.03);
  z-index: 101;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 98px;
  gap: 24px;
  position: relative;
}
.logo-link img {
  height: 58px;
  width: auto;
  display: block;
}
header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav a {
  color: #153859;
  font-size: 1.06rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 0 0 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.21s;
}
header nav a:hover, header nav a:focus {
  color: #3A99D8;
  border-bottom: 2px solid #1976b2;
}

/* Hide nav and show mobile menu button on mobile */
@media (max-width: 1000px) {
  header nav,
  header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Cookie consent BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #E9F3F7;
  color: #153859;
  border-top: 1px solid #3A99D8;
  box-shadow: 0 -3px 16px 0 rgba(21,56,89,0.12);
  padding: 22px 16px 22px 16px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: cookieAppear 0.4s cubic-bezier(0.4,0,0.2,1);
}
@keyframes cookieAppear {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  font-size: 1.03rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  text-align: center;
  color: #233b53;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  background: #153859;
  color: #fff;
  border-radius: 7px;
  border: 1px solid #153859;
  padding: 10px 22px;
  font-size: 1rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 600;
  margin-top: 0;
  transition: background 0.15s, color 0.15s, border 0.19s;
  cursor: pointer;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fff;
  color: #153859;
  border: 1px solid #3A99D8;
}
.cookie-btn.secondary {
  background: #E9F3F7;
  color: #153859;
  border: 1px solid #3A99D8;
  margin-right: 0;
}
.cookie-btn.secondary:hover {
  background: #3A99D8;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 52px rgba(21,56,89,0.13);
  width: 97vw;
  max-width: 410px;
  z-index: 16000;
  padding: 32px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
  animation: cookieModalIn 0.25s cubic-bezier(0.4,0,0.2,1);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translate(-50%, 20%) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.cookie-modal__header {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 1.23rem;
  color: #153859;
  margin-bottom: 10px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #233b53;
}
.cookie-modal__toggle {
  width: 44px; height: 24px;
  border-radius: 12px;
  background: #E9F3F7;
  position: relative;
  margin-left: auto;
  outline: none;
  border: 1px solid #3A99D8;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal__toggle[data-enabled="true"] {
  background: #1976b2;
}
.cookie-modal__toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1.5px 5px rgba(21,56,89,0.06);
  transition: left 0.19s;
}
.cookie-modal__toggle[data-enabled="true"]::after {
  left: 22px;
}
.cookie-modal__desc {
  color: #617187;
  font-size: 0.98rem;
  margin-bottom: 3px;
}
.cookie-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* Utility spacings */
.mt-32 {margin-top: 32px;}
.mb-32 {margin-bottom: 32px;}
.mt-24 {margin-top: 24px;}
.mb-24 {margin-bottom: 24px;}
.mt-16 {margin-top: 16px;}
.mb-16 {margin-bottom: 16px;}
.mt-8 {margin-top: 8px;}
.mb-8 {margin-bottom: 8px;}

.text-section {
  margin-bottom: 26px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  max-width: 700px;
  line-height: 1.7;
}

/* Footer styles */
footer {
  background: #153859;
  color: #fff;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  padding: 40px 0 24px 0;
  box-shadow: 0 -3px 12px rgba(21,56,89,0.05);
}
footer .container {
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-direction: column;
}
footer nav {
  display: flex;
  gap: 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
footer nav a {
  color: #fff;
  font-size: 1.01rem;
  text-decoration: underline;
  opacity: 0.87;
  transition: color 0.13s, opacity 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: #E9F3F7;
  opacity: 1;
}
footer p {
  font-size: 0.98rem;
  color: #CAE2F0;
  text-align: center;
}

/* SECTION WRAPPERS SPECIALS */
.features ul,
.values ul,
.services ul,
.club-features ul,
.membership ul,
.experience-highlights ul,
.event-listings ul {
  margin-bottom: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Responsive typography */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.375rem; }
  .hero { padding: 45px 0 30px 0; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.34rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }
  .hero { padding: 24px 0 15px 0; }
}

/* Flex layouts for special sections */
@media (min-width: 900px) {
  .content-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }
  .hero .content-wrapper {
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
}

/* Content grids and card containers responsive */
@media (max-width: 900px) {
  .card-container,
  .content-grid,
  .testimonials {
    flex-direction: column;
    gap: 20px;
  }
  .features,
  .card-container,
  .content-grid {
    gap: 14px;
  }
}

/* TESTIMONIALS SECTION */
.testimonials-preview, .testimonials {
  background: #E9F3F7;
  border-radius: 16px;
  padding: 40px 10px 56px 10px;
}
.testimonials-preview .testimonial-card,
.testimonials .testimonial-card {
  background: #fff;
  color: #153859;
  border: 1px solid #E9F3F7;
  padding: 22px 24px;
}

/* CTA Banner */
.cta-banner {
  margin-bottom: 44px;
  padding: 36px 10px 40px 10px;
  background: #E9F3F7;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(21,56,89,0.04);
}
.cta-banner .content-wrapper {
  align-items: center;
  gap: 16px;
}

/* THANK YOU MESSAGE STYLES */
.thank-you .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 14px;
}
.confirmation-message {
  font-size: 1.09rem;
  color: #1976b2;
  margin-bottom: 10px;
}
.next-steps-info {
  font-size: 1rem;
  color: #233b53;
}

/* Form Elements */
input, select, textarea {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  border-radius: 7px;
  border: 1px solid #CAE2F0;
  padding: 12px 16px;
  font-size: 1rem;
  margin-bottom: 16px;
  width: 100%;
  background: #fff;
  color: #153859;
  outline: none;
  transition: border 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 1.5px rgba(21,56,89,0.04);
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #3A99D8;
  box-shadow: 0 0 6px 0 #E9F3F7;
}

/* MAP SECTION for Contact (simple placeholder style) */
.map {
  background: #E9F3F7;
  border-radius: 14px;
  margin-bottom: 36px;
  padding: 40px 10px;
  color: #153859;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.rounded { border-radius: 12px; }
.shadow-light { box-shadow: 0 2px 8px rgba(21,56,89,0.06); }

/* Scrollbar styling (Chrome/Edge/Safari) */
::-webkit-scrollbar { width: 9px; background: #E9F3F7; }
::-webkit-scrollbar-thumb { background: #CAE2F0; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3A99D8; }

/* ------------------------------
   FLEXBOX LAYOUT CRITICAL RULES 
------------------------------- */
/* Already implemented as per the provided patterns above */

/* ------------------------------
   RESPONSIVE DESIGN
------------------------------- */
@media (max-width: 768px) {
  .container {
    padding: 0 9px;
    max-width: 100vw;
  }
  .section {
    padding: 28px 6px;
    margin-bottom: 38px;
  }
  .card, .testimonial-card {
    padding: 18px 12px;
    min-width: unset;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-wrapper {
    gap: 16px;
    flex-direction: column !important;
  }
  .mobile-menu {
    padding-top: 0;
  }
  .mobile-nav {
    padding: 20px 14px;
  }
  header .container {
    min-height: 74px;
    gap: 10px;
    padding: 0 8px;
  }
  .logo-link img { height: 38px; }
}

/* Ensures at least 20px between all content cards/sections */
.section + .section {
  margin-top: 20px;
}
.card + .card, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* Avoid content overlap, fix z-index for header/banner */
header, .cookie-banner, .cookie-modal, .mobile-menu { z-index: 1100; }

/* Utility transition for micro-interactions */
.card, .cta-btn, .testimonial-card, input, textarea, .cookie-btn {
  transition: box-shadow 0.19s, background 0.17s, border 0.14s, color 0.14s, transform 0.14s;
}

/* Subtle animation for section appearance (optional, feel free to add "fade-in" class) */
.fade-in { animation: fadein 0.7s cubic-bezier(0.42,0,0.42,1); }
@keyframes fadein {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* END OF Elegant Classic CSS for BlauSegel Yachtclub */
