/* 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,
main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #181D22;
  color: #F9F7F0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #2CA6A4;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #fff;
  text-decoration: underline;
}
::selection {
  background: #2CA6A4;
  color: #181D22;
}

/* FONT FACES */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #F9F7F0;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.13; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.35rem; }

@media (max-width: 500px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

p, ul, ol, li, table, th, td {
  font-size: 1rem;
  color: #E0E5E8;
  margin-bottom: 12px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
strong, b {
  color: #F9F7F0;
  font-weight: 700;
}

/* CONTAINERS & LAYOUT */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: rgba(34,40,49,0.93);
  border-radius: 12px;
  box-shadow: 0 3px 16px 0 rgba(30,40,55,0.15), 0 1.5px 4px 0 rgba(75,115,135,0.05);
  padding: 36px 32px;
}
@media (max-width: 600px) {
  .text-section {
    padding: 24px 10px;
  }
}

/* SECTIONS & SPACING */
.section,
.hero,
.features,
.about-preview,
.services-snippet,
.testimonials,
.about-mission,
.team,
.services-overview,
.training-process,
.consulting,
.motivation-tips,
.swim-services,
.swim-benefits,
.course-details,
.run-details,
.run-benefits,
.legal,
.confirmation
{
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  background: none;
}
@media (max-width: 500px) {
  .section,
  .hero,
  .features,
  .about-preview,
  .services-snippet,
  .testimonials,
  .about-mission,
  .team,
  .services-overview,
  .training-process,
  .consulting,
  .motivation-tips,
  .swim-services,
  .swim-benefits,
  .course-details,
  .run-details,
  .run-benefits,
  .legal,
  .confirmation {
    padding: 24px 5px;
    margin-bottom: 36px;
  }
}

/* Hero Sections */
.hero {
  background: linear-gradient(120deg, #23272C 45%, #123B5B 100%);
  border-bottom: 3.5px solid #888D93;
  box-shadow: 0 6px 32px 0 rgba(10,18,26,0.18);
  display: flex;
  align-items: center;
  min-height: 320px;
  margin-top: 0;
  margin-bottom: 60px;
}
.hero h1 {
  color: #F9F7F0;
  text-shadow: 0 1px 8px #292e35;
}
.hero p {
  color: #b7c2ce;
  margin-bottom: 32px;
}
.hero .cta-primary {
  margin-top: 5px;
}

/* FLEX PATTERNS */
.card-container,
.feature-grid,
.testimonial-slider,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.feature-grid {
  gap: 24px;
  margin-top: 24px;
}
.testimonial-slider {
  gap: 24px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .feature-grid, .testimonial-slider, .content-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}

/* CARD & ITEM SPACING */
.card,
.feature-item {
  margin-bottom: 20px;
  position: relative;
  background: #222831;
  border-radius: 11px;
  box-shadow: 0 4px 24px 0 rgba(30,40,55,0.15), 0 2px 7px 0 rgba(44,166,164,0.05);
  padding: 28px 22px 22px 22px;
  border: 1.5px solid #3b4753;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  filter: grayscale(0.2) brightness(1.25)
    drop-shadow(0 2px 6px #2ca6a432);
}
.feature-item h3 {
  color: #2CA6A4;
}
.card:last-child,
.feature-item:last-child {
  margin-bottom: 0;
}

/* TESTIMONIALS */
.testimonial-slider {
  margin-top: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #F9F7F0;
  color: #181D22;
  border-radius: 12px;
  padding: 20px 24px;
  border-left: 4px solid #2CA6A4;
  min-width: 260px;
  box-shadow: 0 2px 20px 0 rgba(34,40,49,0.08), 0 1px 4px 0 rgba(44,166,164,0.04);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 20px;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card strong {
  color: #123B5B;
  font-size: 0.95rem;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(44,166,164,0.13), 0 4px 18px rgba(30,59,91,0.09);
  transform: translateY(-3px) scale(1.015);
}
@media (max-width:768px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    width: 100%;
    min-width: unset;
    padding: 18px 11px;
  }
}

/* BUTTONS & CTAs */
.cta-primary, .cta-secondary, .mobile-nav a.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 14px 30px;
  min-width: 120px;
  min-height: 48px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, border 0.22s, opacity 0.19s;
  box-shadow: 0 2px 8px 0 rgba(44,166,164,0.08);
  margin-top: 10px;
  outline: none;
}
.cta-primary {
  background: #2CA6A4;
  color: #181D22;
  border: 2px solid #2CA6A4;
}
.cta-primary:hover, .cta-primary:focus {
  background: #181D22;
  color: #2CA6A4;
  border: 2px solid #2CA6A4;
  box-shadow: 0 4px 24px 0 #2CA6A4AA;
}
.cta-secondary {
  background: #F9F7F0;
  color: #2CA6A4;
  border: 2px solid #2CA6A4;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #2CA6A4;
  color: #F9F7F0;
  border: 2px solid #2CA6A4;
}

/* NAVIGATION */
.site-header {
  width: 100%;
  background: #23272C;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 65px;
  border-bottom: 3px solid #51565D;
  padding: 6px 0 6px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 0 18px;
}
.logo img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto;
}
.main-nav a {
  color: #E0E5E8;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  transition: color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #2CA6A4;
}
.main-nav .cta-primary {
  margin-left: 12px;
  min-width: 130px;
  font-size: 1.04rem;
  box-shadow: 0 2px 8px 0 #2CA6A420;
}

/* Hamburger & Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: #2CA6A4;
  color: #181D22;
  border: none;
  border-radius: 50%;
  font-size: 2.1rem;
  width: 46px;
  height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: 14px;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #123B5B;
  color: #2CA6A4;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,29,34,0.98);
  z-index: 999;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(0.36,1.3,0.45,1), opacity 0.17s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: #2CA6A4;
  color: #181D22;
  border: none;
  font-size: 2.1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 20px 0 8px 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1000;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #123B5B;
  color: #2CA6A4;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  padding: 16px 32px;
}
.mobile-nav a {
  color: #F9F7F0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 12px 0;
  display: block;
  border-radius: 6px;
  transition: background 0.18s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #2CA6A4;
  color: #181D22;
}
.mobile-nav a.cta-primary {
  background: #2CA6A4;
  color: #181D22;
  margin-top: 10px;
}
@media (max-width: 1040px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media(min-width: 1041px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* FOOTER */
.site-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  background: #23272C;
  border-top: 3px solid #51565D;
  padding: 34px 0 16px 0;
  margin-top: 32px;
}
.site-footer .logo img {
  height: 44px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  margin: 12px 0 8px 0;
}
.footer-nav a {
  color: #E0E5E8;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #2CA6A4;
}
.site-footer .contact-details {
  color: #b9c3ce;
  font-size: 0.98rem;
  text-align: center;
  margin-bottom: 10px;
}
.site-footer .contact-details a { color: #2CA6A4; }

/* SERVICE-LIST, TABLE, QUICK-LINKS */
.service-list {
  padding-left: 20px;
  margin-bottom: 16px;
}
.service-list li {
  margin-bottom: 8px;
  color: #E0E5E8;
}
.quick-links {
  margin: 20px 0 0 0;
  font-size: 1rem;
  display: flex;
  gap: 5px;
  color: #b7c2ce;
  flex-wrap: wrap;
}
.quick-links a {
  color: #2CA6A4;
  font-weight: 500;
}
.quick-links a:hover { color: #fff; }

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  background: #222831;
  border-radius: 9px;
  overflow: hidden;
}
th, td {
  border: 1px solid #32414f;
  padding: 12px 13px;
  font-size: 1rem;
}
th {
  background: #2CA6A4;
  color: #181D22;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
td {
  background: #1D2327;
  color: #F9F7F0;
}

/* LISTS */
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
  color: #E0E5E8;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 2px;
}
ul li::marker, ol li::marker {
  color: #2CA6A4;
}

/* FORM ELEMENTS (if forms are added in the future) */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 11px 15px;
  border: 2px solid #51565D;
  background: #23272C;
  color: #F9F7F0;
  border-radius: 7px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #2CA6A4;
  background: #1D2327;
}
label {
  color: #F9F7F0;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #181D22;
  color: #e9ecee;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 6vw 20px 6vw;
  box-shadow: 0 -2px 24px 0 rgba(30,59,91,0.12);
  z-index: 1100;
  border-top: 2px solid #51565D;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.35s, opacity 0.35s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(150px);
  pointer-events: none;
}
.cookie-banner-message {
  flex: 1 1 auto;
  color: #e9ecee;
  margin-right: 25px;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 24px;
  cursor: pointer;
  border: none;
  background: #2CA6A4;
  color: #181D22;
  transition: background 0.18s, color 0.18s;
  margin-left: 1px;
}
.cookie-btn.reject {
  background: #51565D;
  color: #F9F7F0;
}
.cookie-btn:hover, .cookie-settings-btn:hover {
  background: #123B5B;
  color: #2CA6A4;
}
.cookie-settings-btn {
  background: #F9F7F0;
  color: #2CA6A4;
  border: 2px solid #2CA6A4;
}
.cookie-settings-btn:hover {
  background: #2CA6A4;
  color: #F9F7F0;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px;
    gap: 18px;
  }
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #23272C;
  color: #f7fafc;
  max-width: 420px;
  width: 95vw;
  box-shadow: 0 8px 40px 0 rgba(30,59,91,0.23);
  border-radius: 18px;
  z-index: 1200;
  padding: 28px 20px 26px 20px;
  opacity: 1;
  transition: opacity 0.27s, transform 0.27s;
  pointer-events: all;
  display: none;
}
.cookie-modal.open {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal-header {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 13px;
  color: #2CA6A4;
}
.cookie-modal-categories {
  margin: 12px 0 22px 0;
}
.cookie-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.cookie-cat-row span {
  font-size: 1rem;
}
.cookie-toggle {
  width: 38px; height: 20px; border-radius: 19px; background: #51565D;
  border: none; appearance: none; outline: none; cursor: pointer; position: relative; transition: background 0.18s;
}
.cookie-toggle:checked { background: #2CA6A4; }
.cookie-toggle::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 1px; left: 1px;
  transition: left 0.18s;
}
.cookie-toggle:checked::before {
  left: 19px;
}
.cookie-cat-row[data-essential="true"] .cookie-toggle {
  background: #2CA6A4 !important;
}
.cookie-cat-row[data-essential="true"] .cookie-toggle::before {
  background: #e6e6e6;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  justify-content: flex-end;
}
.cookie-modal-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 24px;
  padding: 9px 24px;
  border: none;
  cursor: pointer;
  background: #2CA6A4;
  color: #181D22;
  transition: background 0.17s, color 0.17s;
}
.cookie-modal-btn.cancel {
  background: #51565D;
  color: #e9ecee;
}
.cookie-modal-btn:hover, .cookie-modal-btn:focus {
  background: #123B5B;
  color: #2CA6A4;
}

/* VISUAL ACCENTS / METALLIC LINES */
h1, h2, h3 {
  position: relative;
  isolation: isolate;
}
h1::after, h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: -10px;
  width: 62px; height: 4px;
  background: linear-gradient(90deg, #88A3B0, #2CA6A4 65%, #88A3B088 100%);
  border-radius: 2px;
  opacity: 0.55;
}
h2::after {
  width: 46px; height: 3px;
}

/* SHADOWS & VISUAL DEPTH */
.card, .feature-item, .text-section, .cookie-modal {
  box-shadow: 0 2px 16px 0 rgba(30,59,91,0.13), 0 2px 7px 0 rgba(44,166,164,0.06);
}

/* MICRO-INTERACTIONS */
.button, .cta-primary, .cta-secondary, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: background 0.22s, color 0.22s, box-shadow 0.15s, transform 0.17s;
}
.feature-item:hover, .card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 8px 32px 0 #2ca6a42b, 0 10px 30px 0 #181d2210;
  border-color: #2CA6A4;
}

/* SCROLLBAR (for industrial feel) */
::-webkit-scrollbar {
  width: 9px;
  background: #1D2327;
}
::-webkit-scrollbar-thumb {
  background: #51565D;
  border-radius: 9px;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .container {
    padding: 0 10px;
  }
  .main-nav a {
    font-size: 0.96rem;
  }
}
@media (max-width: 700px) {
  .site-header, .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0 7px 0;
  }
}
@media (max-width:610px) {
  .site-footer {
    padding: 22px 0 7px 0;
  }
}

/* Print adjustments */
@media print {
  header, .site-header, .site-footer, .cookie-banner, .cookie-modal { display: none !important; }
}
