/* ========================================================================
   Fistoscior Yachtclub – NATURE ORGANIC / EARTHY ORGANIC FLEXBOX STYLE
   ======================================================================== */
/* === RESET & BASELINE NORMALIZATION === */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  background-color: #f4f8f5;
  color: #37433b;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}
img, picture, video {
  max-width: 100%;
  display: block;
}
h1,h2,h3,h4,h5,h6 {
  margin: 0 0 16px 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: #223423;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5,h6 { font-size: 1rem; font-weight: 500; }
p {
  margin-top: 0;
  margin-bottom: 1.25em;
  color: #455741;
}
ul, ol {
  margin: 0 0 1.5em 1.2em;
  padding: 0;
  list-style-position: outside;
  color: #37433b;
}
li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}
a {
  color: #1C4666;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #387633;
  text-decoration: none;
}
strong { font-weight: 700; }

/* === BRAND COLORS / EARTHY PALETTE === */
:root {
  --brand-primary: #1C4666;
  --brand-secondary: #E9F1F7;
  --brand-accent: #C08836;
  --nature-green: #54984b;
  --leaf-green: #7CA87E;
  --earth-brown: #776e60;
  --beige-bg: #f4f8f5;
  --sand: #f8eddc;
  --organic-shadow: rgba(60, 94, 60, 0.10);
  --organic-radius: 28px;
}

/* === SHARED LAYOUT === */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* inner gap via content-wrapper */
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: transparent;
  border-radius: var(--organic-radius);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--organic-radius);
  box-shadow: 0 4px 18px var(--organic-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s;
  position: relative;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(60,94,60,0.16);
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  margin-bottom: 20px;
  padding: 20px 28px;
  border-radius: var(--organic-radius);
  box-shadow: 0 4px 16px rgba(86,112,62,0.14);
  position: relative;
  color: #1d2f25;
}
.testimonial-card span {
  color: var(--nature-green);
  font-weight: 600;
  font-size: 1rem;
  font-family: "Montserrat", Arial, sans-serif;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === HERO SECTION & ORGANIC SHAPES === */
.hero-section {
  background: var(--beige-bg);
  background-image: url('../assets/organic-blob.svg'),linear-gradient(90deg,#f8eddc 0%, #e8f3e6 100%);
  background-size: 380px auto, cover;
  background-repeat: no-repeat, no-repeat;
  background-position: right 32px top -10px, center;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 90px 36px;
  border-top-left-radius: 56px 145px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #23462b;
  margin-bottom: 8px;
}
.hero-section p {
  font-size: 1.25rem;
  color: #445b3b;
  margin-bottom: 18px;
  max-width: 600px;
}

/* === BUTTONS & CTA === */
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--nature-green) 60%, var(--brand-accent) 100%);
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 48px 24px 32px 58px / 50px 32px 48px 30px;
  padding: 13px 36px 13px 36px;
  margin-top: 10px;
  margin-bottom: 0;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(70,115,63,0.1);
  transition: background 0.2s, box-shadow 0.2s, transform 0.08s;
  text-decoration: none;
}
.cta-btn:hover,
.cta-btn:focus {
  background: linear-gradient(90deg, #387633 60%, var(--brand-accent) 100%);
  color: #fff;
  box-shadow: 0 10px 32px rgba(70,115,63,0.16);
  transform: translateY(-2px) scale(1.023);
  outline: none;
}

/* === NAVIGATION BAR === */
header {
  background: #fff;
  box-shadow: 0 4px 12px #dbe5e1a6, 0 1.5px 0 rgba(191,200,196,0.08);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 210;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 38px 18px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 20px;
  padding: 0 20px;
  min-height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  height: 60px;
}
.logo img {
  height: 48px;
  width: auto;
  filter: saturate(1.2) hue-rotate(-11deg) drop-shadow(0 2px 4px #e8f3e6);
}
nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
nav a {
  color: #387633;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  font-size: 1.01rem;
  padding: 7px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
}
nav a:hover,
nav a:focus {
  background: #e8f3e6;
  color: #1C4666;
}

/* Hide desktop nav on mobile */
@media (max-width: 900px) {
  header nav { display: none; }
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(55, 67, 59, 0.98);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.6,0.0,0.3,1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 64px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: var(--brand-accent);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 100px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 10001;
  box-shadow: 0 2px 8px rgba(75,87,62,0.17);
  transition: background 0.14s, box-shadow 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--nature-green);
  color: #fff;
  box-shadow: 0 4px 18px rgba(70,115,63,0.17);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding-left: 10vw;
  padding-top: 20px;
  gap: 20px;
}
.mobile-nav a {
  color: #fff;
  background: transparent;
  font-size: 1.25rem;
  font-family: "Montserrat", Arial, sans-serif;
  padding: 14px 8px;
  border-radius: 12px;
  text-decoration: none;
  min-width: 180px;
  transition: color 0.2s, background 0.19s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #445b3b73;
  color: #D6A55A;
}
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-accent);
    color: #fff;
    border: none;
    border-radius: 100px;
    width: 48px;
    height: 48px;
    margin-left: auto;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.18s;
    z-index: 10001;
  }
  .mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    background: var(--nature-green);
  }
}
@media (max-width: 900px) {
  .cta-btn {
    margin-right: 8px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 10px;
  }
}

/* TOGGLE mobile menu with .open (handled JS) */

/* === FOOTER === */
footer {
  padding: 0;
  background: #efefe9;
  color: #4b5452;
  font-size: 1rem;
  border-top-left-radius: 38px 18px;
  border-top-right-radius: 0;
  box-shadow: 0 -1.5px 8px rgba(186,196,165,0.05);
  margin-top: 54px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 18px 20px;
}
footer nav {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
footer nav a {
  color: #4b5452;
  font-size: 1rem;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}
footer nav a:hover {
  background: #e8f3e6;
  color: var(--brand-accent);
}
.footer-info {
  font-size: 0.99rem;
  color: #788570;
  letter-spacing: 0.03em;
}

/* === FEATURE/ICON GRID (varies per page: .feature-grid) === */
.feature-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 8px;
}
.feature-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: 38px 18px 30px 56px;
  box-shadow: 0 4px 20px rgba(96,108,80,0.08);
  padding: 32px 24px 24px 24px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 460px;
  transition: box-shadow 0.18s, transform 0.12s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: 0 12px 40px rgba(105, 132, 90, 0.13);
  transform: translateY(-3px) scale(1.02);
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  filter: saturate(1.1) sepia(0.15) hue-rotate(-16deg) drop-shadow(0 2px 6px #ece9d2);
}
.feature-grid h3 {
  color: var(--nature-green);
  font-size: 1.22rem;
  font-family: "Montserrat", Arial, sans-serif;
  margin-bottom: 8px;
  font-weight: 700;
}

/* === ABOUT / TEXT BLOCKS === */
.text-section {
  background: #fff;
  border-radius: 32px 48px 24px 48px / 56px 52px 50px 38px;
  box-shadow: 0 4px 18px rgba(74,106,74,0.07);
  padding: 32px 24px;
  margin-bottom: 22px;
  color: #38543d;
}
.text-section ul {
  margin-bottom: 10px;
}

/* === CONTACT SNIPPET === */
.contact-snippet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #e8f3e6;
  border-radius: 30px 14px 30px 56px;
  padding: 22px 18px;
  box-shadow: 0 3px 16px rgba(60,94,60,0.10);
  color: #223423;
  width: 100%;
  margin-bottom: 18px;
  max-width: 360px;
}
.contact-snippet img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 7px;
  filter: hue-rotate(-18deg) saturate(1.1);
}
.contact-snippet span { color: #387633; font-weight: 600; font-family: "Montserrat", Arial, sans-serif; }

.map-embed-snippet {
  background: #fff;
  border-radius: 32px 50px 21px 32px;
  box-shadow: 0 4px 18px rgba(105,121,85,0.07);
  padding: 16px 20px 16px 16px;
  margin-bottom: 14px;
  color: #344c3b;
}

/* === SECTIONS / SPACING === */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--organic-radius);
  background: linear-gradient(90deg,#f8eddc 0%, #e8f3e6 100%);
  box-shadow: 0 1.5px 9px rgba(101,135,73,0.06);
}
section:last-child {
  margin-bottom: 0;
}

/* === MEMBER CTA SECTION === */
.member-cta-section {
  background: #e9f1f7;
  border-radius: 48px 15px 62px 38px;
  box-shadow: 0 4px 20px rgba(156,180,143,0.14);
  margin-bottom: 0;
}
.member-cta-section h2 { color: #23462b; }

/* === LINKS / MICRO-INTERACTIONS === */
a,
.cta-btn,
button {
  transition: background 0.15s, color 0.15s, border-color 0.14s, box-shadow 0.17s, transform 0.08s;
}

/* === LISTS === */
ul,ol { padding-left: 1.2em; }
ul li,ol li { margin-bottom: 0.5em; }
ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; }

/* === RESPONSIVE TYPOGRAPHY SCALE === */
@media (max-width: 580px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.08rem; }
  ul,ol { font-size: 0.97rem; }
  .cta-btn { font-size: 1rem; padding: 11px 24px; }
}

/* === FLEXBOX RESPONSIVE LAYOUTS === */
@media (max-width: 960px) {
  .container { max-width: 98vw; padding: 0 10px; }
  .feature-grid {
    flex-direction: column;
    gap: 19px;
  }
}
@media (max-width: 768px) {
  .feature-grid { flex-direction: column; }
  .text-image-section { flex-direction: column; align-items: flex-start; }
  .content-grid { flex-direction: column; gap: 16px; }
  .card-container { flex-direction: column; gap: 20px; }
  .section, section { padding: 30px 7px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; padding: 16px 12px; gap: 8px; }
  .contact-snippet, .text-section { padding: 18px 8px; }
}

/* Ensure min 20px between cards & sections */
.card, .feature-grid > div, .testimonial-card, .text-section, .contact-snippet {
  margin-bottom: 20px;
}


/* === TESTIMONIALS (CARD EFFECT) === */
.testimonial-card {
  font-size: 1.04rem;
  font-style: italic;
  background: #fff;
  border-left: 6px solid var(--nature-green);
  border-radius: 34px 16px 24px 54px;
  box-shadow: 0 5px 24px rgba(134,154,113,0.11);
  color: #274626;
}
.testimonial-card p {
  color: #223423;
  margin-bottom: 5px;
}
.testimonial-card span {
  font-style: normal;
  color: #54984b;
  font-size: 1.03rem;
  margin-left: 8px;
}

/* === ACCESSIBILITY/CONTRAST FOR CARDS === */
.testimonial-card, .feature-grid > div, .text-section, .contact-snippet {
  background: #fff;
  color: #23462b;
}


/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, #f8eddc 0%, #e8f3e6 100%);
  border-top: 3.5px solid var(--nature-green);
  box-shadow: 0 -2px 18px #b0b69b33;
  padding: 22px 7vw 18px 7vw;
  z-index: 999999;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 36px;
  justify-content: space-between;
  font-size: 1.06rem;
  min-height: 54px;
  transition: transform 0.4s;
}
.cookie-banner.hide {
  transform: translateY(200%);
}
.cookie-banner-text {
  color: #274626;
  flex: 1;
  margin-right: 18px;
  font-size: 1.04rem;
}
.cookie-banner-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  background: var(--nature-green);
  color: #fff;
  border: none;
  border-radius: 24px 10px 24px 20px;
  padding: 9px 20px;
  font-size: 1rem;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px #b5bfa336;
  transition: background 0.15s, color 0.15s, box-shadow 0.18s;
}
.cookie-btn.secondary {
  background: #fff;
  color: var(--nature-green);
  border: 2px solid var(--nature-green);
}
.cookie-btn.settings {
  background: var(--brand-accent);
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #388341;
  color: #fff;
  outline: none;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #e8f3e6;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #a97827;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 14px 6vw 12px 6vw;
  }
}

/* === COOKIE MODAL === */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(44,60,38,0.55);
  z-index: 1000000;
  justify-content: center;
  align-items: center;
  transition: opacity 0.35s;
}
.cookie-modal.open { display: flex; }
.cookie-modal-content {
  background: #fff;
  border-radius: 36px 22px 50px 34px;
  box-shadow: 0 8px 44px #6e77517a;
  max-width: 92vw;
  width: 400px;
  padding: 30px 20px 20px 24px;
  color: #284128;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-content h3 {
  font-size: 1.18rem;
  margin-bottom: 14px;
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #eaeaea;
}
.cookie-modal-category:last-child {
  border-bottom: none;
}
.cookie-modal-category label {
  flex: 1;
  font-size: 1.08rem;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  border-radius: 28px;
  background: #e3e7e0;
  outline: none;
  position: relative;
  cursor: pointer;
  transition: background 0.22s;
}
.cookie-toggle:checked {
  background: var(--nature-green);
}
.cookie-toggle::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 1px;
  transition: left 0.22s;
}
.cookie-toggle:checked::before { left: 19px; }
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: transparent;
  border: none;
  color: var(--nature-green);
  font-size: 1.6rem;
  cursor: pointer;
}

/* === Animations === */
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu,
  .cookie-banner,
  .cookie-modal {
    transition: all 0.36s cubic-bezier(.47,1.64,.41,.8);
  }
}

/* === MISC SMALL COMPONENTS === */
::-webkit-scrollbar {
  width: 12px; background: #e8f3e6;
}
::-webkit-scrollbar-thumb {
  background: #cfcfbf; border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b6bebb;
}

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

/* === HIGH CONTRAST FOR ACCESSIBILITY === */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  color: #1d2f25;
  background: #fff !important;
}

/* === RESPONSIVE FINE TUNING === */
@media (max-width: 610px) {
  .container { padding-left: 3vw; padding-right: 3vw; }
  section, .section { padding: 16px 3vw; }
}

/* ==== END ==== */