/* CSS 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;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1A2233;
  background: #F5F1E6;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #1A2233;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A68C5B;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 16px;
}
li + li {
  margin-top: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  color: #1A2233;
}
h1 { font-size: 2.2rem; line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: 1.6rem; margin-bottom: 20px; }
h3 { font-size: 1.2rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1rem; }
p { margin-bottom: 18px; }
strong { font-weight: 600; }

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 20px;
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 2px 6px 0 rgba(26,34,51,0.04);
  z-index: 60;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img[alt="ConneRimun Club"] {
  max-height: 52px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav.main-nav a {
  font-size: 16px;
  padding: 8px 0px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: color 0.2s;
}
nav.main-nav a.cta-btn {
  margin-left: 16px;
  background: #1A2233;
  color: #fff;
  border-radius: 24px;
  padding: 10px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  box-shadow: 0 2px 12px rgba(26,34,51,0.06);
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
}
nav.main-nav a.cta-btn:hover, nav.main-nav a.cta-btn:focus {
  background: #A68C5B;
  color: #fff;
  box-shadow: 0 4px 18px rgba(166,140,91,0.10);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 120;
  background: #fff;
  color: #1A2233;
  border: none;
  font-size: 2.2rem;
  padding: 6px 16px;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(26,34,51,0.09);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #e8ecf2;
  outline: 2px solid #A68C5B;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: #fff;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.55,.07,.41,.95);
  box-shadow: 0 4px 32px #1a223312, 0 1.5px 0px #A68C5B0A inset;
  padding-top: 58px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 2rem;
  color: #1A2233;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
  padding: 2px 10px;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e8ecf2;
  color: #A68C5B;
}
.mobile-nav {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 16px 32px 0 36px;
}
.mobile-nav a {
  font-size: 1.12rem;
  color: #1A2233;
  padding: 18px 6px 8px 0px;
  font-weight: 500;
  width: 100%;
  border-radius: 6px;
  transition: background 0.18s, color 0.15s;
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e8ecf2;
  color: #A68C5B;
}

@media (max-width: 1000px) {
  nav.main-nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: column;
    gap: 10px;
  }
  nav.main-nav {
    margin-top: 8px;
  }
}
@media (max-width: 768px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MAIN LAYOUT STRUCTURE */
main {
  background: #F5F1E6;
  min-height: 60vh;
  padding-bottom: 0;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.section.cta, section.cta {
  background: #1A2233;
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(26,34,51,0.08);
  padding: 48px 20px;
}
.section.cta h2, section.cta h2,
.section.cta p, section.cta p {
  color: #fff;
}
/* HERO SECTION */
.hero {
  background: #f2f4f8 url('../assets/hero-pattern.svg') no-repeat right bottom/auto 70%;
  min-height: 260px;
  border-radius: 14px;
  box-shadow: 0 2.5px 12px rgba(26,34,51,0.05);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  padding: 0;
}
.hero .container {
  padding-top: 36px;
  padding-bottom: 44px;
}
.hero h1 {
  color: #1A2233;
  font-size: 2.6rem;
  margin-bottom: 10px;
}
.hero p {
  color: #222b39;
  font-size: 1.16rem;
  max-width: 600px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 180px;
  }
  .hero h1 {
    font-size: 2rem;
  }
}
@media (max-width: 768px) {
  .section, section {
    padding: 32px 8px;
    margin-bottom: 40px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .hero .container {
    padding-top: 24px;
    padding-bottom: 32px;
  }
  .hero h1 { font-size: 1.45rem; }
}

/* FLEXBOX LAYOUTS BY CLASS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2.5px 14px rgba(26,34,51,0.09);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  transition: box-shadow 0.17s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 32px rgba(26,34,51,0.12);
}
.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;
}
@media (max-width: 900px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.profile {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1.5px 9px #1A22331a;
  padding: 20px 18px;
  min-width: 240px;
  flex: 1 1 210px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: box-shadow 0.15s;
}
.profile:hover, .profile:focus-within {
  box-shadow: 0 6px 18px #1A22331c;
}

.founder-message {
  margin-top: 32px;
  background: #A68C5B16;
  border-radius: 14px;
  padding: 24px 22px;
  font-style: italic;
  color: #1A2233;
  box-shadow: 0 1.5px 9px #1A22330C;
  max-width: 550px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: #1A2233;
  border-radius: 14px;
  box-shadow: 0 2px 11px #1A22331a;
  padding: 20px;
  margin-bottom: 20px;
  max-width: 700px;
  transition: box-shadow 0.16s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 34px #A68C5B22;
}
.testimonial-card p {
  font-size: 1.13rem;
  font-family: 'Playfair Display', serif;
  flex: 1;
  color: #1A2233;
  margin-right: 10px;
}
.testimonial-card strong {
  font-size: 1rem;
  font-weight: 600;
  color: #A68C5B;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    max-width: 95vw;
    padding: 14px 10px;
  }
}

/* CTA BUTTON STYLES */
.cta-btn {
  background: #1A2233;
  color: #fff !important;
  border-radius: 24px;
  padding: 13px 38px;
  font-size: 1.08rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  outline: none;
  box-shadow: 0 2px 12px rgba(26,34,51,0.08);
  cursor: pointer;
  transition: background 0.19s, color 0.14s, box-shadow 0.19s, transform 0.11s;
  display: inline-block;
  margin-top: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #A68C5B;
  color: #fff !important;
  box-shadow: 0 7px 32px rgba(166,140,91,0.15);
  transform: translateY(-1.5px) scale(1.02);
}
@media (max-width: 600px) { .cta-btn { width: 100%; } }

/* FOOTER */
footer {
  background: #1A2233;
  color: #fff;
  padding: 40px 0 18px;
  width: 100%;
  box-shadow: 0 -1.5px 12px #1A223318;
  margin-top: 30px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.18s;
  padding: 4px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #A68C5B;
}
address {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-style: normal;
  color: #F5F1E6;
  font-size: 0.98rem;
  margin-bottom: 10px;
}
address a {
  color: #A68C5B;
  text-decoration: underline;
  transition: color 0.16s;
}
.social-media {
  display: flex;
  gap: 16px;
  margin: 12px 0 6px 0;
}
.social-media a img {
  height: 28px;
  width: 28px;
  filter: grayscale(0.5) brightness(0.98);
  transition: filter 0.19s, transform 0.17s;
}
.social-media a:hover img, .social-media a:focus img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.13);
}
footer small {
  color: #A68C5B;
  font-size: 0.93rem;
  margin-top: 16px;
}

@media (max-width: 800px) {
  footer .container { padding: 0 8vw; }
}
@media (max-width: 480px) {
  footer .container { padding: 0 4vw; }
}

/* FORM (if present, generic) */
input, textarea, select, button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  outline: none;
  color: #1A2233;
  border-radius: 6px;
}
input, textarea, select {
  border: 1.5px solid #c8d0df;
  padding: 10px 14px;
  background: #f7faff;
  margin-bottom: 20px;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #A68C5B;
}
button {
  cursor: pointer;
  transition: background 0.15s, color 0.13s;
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #1A2233;
  color: #fff;
  z-index: 5000;
  padding: 26px 16px 20px 16px;
  box-shadow: 0 -1.5px 12px #1A223325;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  border-radius: 18px 18px 0 0;
  animation: slideCookieIn 0.34s cubic-bezier(0.55,0.17,0.25,1) 0s 1;
}
@keyframes slideCookieIn {
  from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1;}
}
.cookie-banner p {
  color: #F5F1E6;
  margin-bottom: 0;
  font-size: 1.08rem;
  max-width: 650px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 0px;
}

.cookie-btn {
  border-radius: 22px;
  padding: 11px 32px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.17s, color 0.15s, box-shadow 0.18s;
  margin-right: 6px;
}
.cookie-btn.accept {
  background: #A68C5B;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #1A2233;
  color: #fff;
  box-shadow: 0 6px 18px #A68C5B44;
}
.cookie-btn.reject {
  background: #fff;
  color: #1A2233;
  border: 1px solid #1A2233;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #A68C5B16;
  color: #A68C5B;
  border-color: #A68C5B;
}
.cookie-btn.settings {
  background: #fff;
  color: #1A2233;
  border: 1.5px solid #A68C5B;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #A68C5B16;
  color: #A68C5B;
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 6000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: #1a223388;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.22s cubic-bezier(0.82,0,0.21,1) 1;
}
@keyframes fadeInOverlay {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #1A2233;
  border-radius: 18px;
  padding: 38px 26px 28px 26px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 6px 32px #1A223344;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modalIn 0.2s cubic-bezier(0.67,0,0.21,1) 1;
}
@keyframes modalIn {
  from { transform: translateY(60px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1;}
}
.cookie-modal h3 {
  font-size: 1.15rem;
  color: #A68C5B;
  margin-bottom: 6px;
}
.cookie-modal label {
  font-size: 1rem;
  margin-right: 16px;
  user-select: none;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 4px;
}
.cookie-modal .modal-close {
  background: none;
  color: #1A2233;
  border: none;
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1.7rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.13s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #e8ecf2;
  color: #A68C5B;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
  font-size: 1rem;
}
.category .toggle {
  accent-color: #A68C5B;
  width: 18px;
  height: 18px;
}
.category .always {
  color: #1A2233;
  font-weight: 500;
  margin-left: 6px;
}

/* RESPONSIVE - MOBILE LAYOUTS */
@media (max-width: 992px) {
  .team-profiles {
    flex-direction: column;
    gap: 13px;
  }
}
@media (max-width: 700px) {
  .content-wrapper {
    padding-right: 0;
    padding-left: 0;
  }
  .fonder-message {
    max-width: 98vw;
  }
}

/* Utility classes and general alignment rules */
.gap-24 { gap: 24px; }
.gap-20 { gap: 20px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.mt-32 { margin-top: 32px; }
.mt-24 { margin-top: 24px; }
.mt-16 { margin-top: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 8px; }

/* List styling for brand icons/lists */
ul li img {
  vertical-align: middle;
  margin-right: 8px;
  width: 30px;
  height: 30px;
  filter: grayscale(0.2) brightness(0.96);
}

/* Accessibility focus states */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, input:focus, textarea:focus {
  outline: 2px solid #A68C5B;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #F5F1E6, 0 0 0 4px #A68C5B44;
}

/* Selection color */
::selection {
  background: #A68C5B44;
  color: #1A2233;
}

/* Hide elements utility */
.hidden {
  display: none !important;
}

/* Ensure no content overlapping and proper margin between cards/sections */
.card + .card,
.profile + .profile,
.testimonial-card + .testimonial-card,
section + section,
.section + .section,
.content-wrapper > * + * {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .card-container,
  .team-profiles,
  .features,
  .footer-nav {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .footer-nav {
    align-items: flex-start;
  }
}

/* Small adjustments for large screens */
@media (min-width: 1300px) {
  .container { max-width: 1380px; }
}

/* Misc. spacing/visual tweaks */
li {
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Remove scroll for modal open */
body.cookie-modal-open {
  overflow: hidden;
}
