/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #FCF3E8;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #FCF3E8;
  color: #2C2C2C;
  line-height: 1.6;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 16px;
  color: #234E70;
  text-shadow: 1px 1px 0 #E6C19A;
}
h1 { font-size: 2.5rem; letter-spacing: 2px; }
h2 { font-size: 2rem; letter-spacing: 1px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }
p, ul, ol { margin-top: 0; }
ul, ol { padding-left: 1.3em; margin-bottom: 24px; }
ul { list-style-type: square; }
img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
svg { vertical-align: middle; }
a { color: #BF5633; text-decoration: underline; transition: color 0.2s; }
a:hover, a:focus { color: #234E70; text-decoration: none; }
strong, b { font-weight: bold; }
hr { border: 0; border-top: 1px dashed #E6C19A; margin: 30px 0; }
::selection { background: #EFDBC7; }

/* RETRO COLOURS & PATTERNS */
:root {
  --brand-primary: #234E70;
  --brand-secondary: #8FD3F4;
  --brand-accent: #F4F7FA;
  --vintage-peach: #EFDBC7;
  --vintage-sand: #FAF3E7;
  --vintage-orange: #BF5633;
  --vintage-brown: #A47551;
  --vintage-blue: #5DA7A3;
  --white: #FFFFFF;
  --black: #111;
}

body {
  background: repeating-linear-gradient(135deg, #FCF3E8, #FCF3E8 21px, #FAF3E7 21px, #FAF3E7 42px);
}

/* GENERAL LAYOUT */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FAF3E7;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(164,117,81,0.07);
}

/* FLEXBOX SECTION PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(44,44,44,0.08);
  padding: 24px 20px;
  flex: 1 1 320px;
  min-width: 260px;
}
.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;
  padding: 20px;
  background: #FFF7EE;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(36,78,112,0.07);
  border: 2px dashed #BF5633;
  margin: 0 0 20px 0;
  flex: 1 1 320px;
  min-width: 270px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F4F7FA;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(164,117,81,0.04);
  margin-bottom: 20px;
}

/* HERO SECTION */
.hero {
  padding: 60px 0 36px 0;
  background: repeating-linear-gradient(45deg, #8FD3F4 0 16px, #EFDBC7 16px 32px);
  border-bottom: 4px solid #BF5633;
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.hero h1 {
  color: #BF5633;
  font-size: 2.7rem;
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  text-shadow: 2px 2px 0 #FAF3E7, 0px 1px 0 #A47551;
  letter-spacing: 2px;
}
.hero p {
  font-size: 1.3rem;
  color: #234E70;
  margin-bottom: 28px;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* BUTTONS & CTA */
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: #FFF;
  background: #BF5633;
  border-radius: 32px;
  padding: 16px 38px;
  letter-spacing: 1px;
  text-decoration: none;
  border: 2px solid #BF5633;
  box-shadow: 0 4px 16px rgba(36,78,112,0.09);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
  margin-bottom: 16px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #234E70;
  color: #FFD1B8;
  border-color: #E6C19A;
  box-shadow: 0 7px 24px rgba(36,78,112,0.14);
}

/* HEADER NAVIGATION */
header {
  background: #EFDBC7;
  box-shadow: 0 2px 16px rgba(36,78,112,0.05);
  border-bottom: 2px solid #A47551;
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.logo img { height: 42px; }
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #234E70;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 24px;
  transition: background 0.15s, color 0.15s;
}
nav a:hover, nav a.active {
  background: #234E70;
  color: #F4F7FA;
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 28px;
  top: 34px;
  background: none;
  border: none;
  font-size: 2.6rem;
  color: #BF5633;
  cursor: pointer;
  z-index: 250;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #EFDBC7;
  box-shadow: 0 0 68px 6px rgba(36,78,112,0.18);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform .45s cubic-bezier(0.77,0.2,0.05,1.0);
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 32px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #BF5633;
  cursor: pointer;
  z-index: 2020;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin: 70px 0 0 0;
  gap: 32px;
  align-items: center;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.40rem;
  padding: 18px 0;
  color: #234E70;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed #BF5633;
  width: 80%;
  text-align: center;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover {
  background: #234E70;
  color: #FFD1B8;
}

@media (max-width: 1023px) {
  nav { display: none; }
  .cta-btn { display: none; }
  .mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 16px;
    right: 16px;
    background: #BF5633;
    color: #FFF7EE;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    border: 2px solid #BF5633;
    z-index: 1700;
    box-shadow: 0 6px 20px rgba(36,78,112,0.15);
  }
}
@media (max-width: 1023px) {
  .mobile-menu {
    display: flex;
  }
}
@media (max-width: 768px) {
  .mobile-menu-close {
    right: 12px;
    top: 18px;
    font-size: 2rem;
  }
}

/* --- CARDS & PATTERNS --- */
.feature-grid, .wellness-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.feature-grid li, .wellness-list li {
  flex: 1 1 260px;
  min-width: 215px;
  background: #F4F7FA;
  color: #234E70;
  border-radius: 13px;
  padding: 28px 22px 22px 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(36,78,112,0.04);
  font-size: 1.1em;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  border: 2px dashed #EFDBC7;
  position: relative;
}
.feature-grid li img, .wellness-list li img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  justify-content: flex-start;
}
.testimonial-card p {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #234E70;
  font-size: 1.13rem;
  margin: 0;
  font-style: italic;
}
.testimonial-card span {
  color: #A47551;
  font-size: 0.94rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  margin-left: 12px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.team-member {
  background: #F9ECD8;
  color: #234E70;
  border: 1.5px solid #BF5633;
  border-radius: 12px;
  padding: 24px 16px;
  flex: 1 1 200px;
  min-width: 180px;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(36,78,112,0.07);
}

.cta-section {
  background: #BF5633;
  padding-top: 48px;
  padding-bottom: 48px;
  text-align: center;
  color: #FFF7EE;
}
.cta-section h2 {
  color: #F4F7FA;
  text-shadow: 2px 2px 0 #BF5633, 0px 1px 0 #A47551;
  margin-bottom: 20px;
}
.cta-section .cta-btn {
  margin-top: 18px;
  background: #FFF7EE;
  color: #BF5633;
  border-color: #FFF7EE;
  box-shadow: 0 6px 16px rgba(36,78,112,0.08);
}
.cta-section .cta-btn:hover {
  background: #234E70;
  color: #FFD1B8;
  border-color: #A47551;
}

/* TABLES */
table.schedule-table, table.membership-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: #F4F7FA;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(36,78,112,0.05);
}
table th, table td {
  padding: 16px 12px;
  text-align: left;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
table th {
  background: #EFDBC7;
  color: #234E70;
  font-weight: 700;
}
table tr:nth-child(even) td {
  background: #FBF6F2;
}
table td {
  border-bottom: 1px dashed #E6C19A;
  color: #2C2C2C;
}

/* MAP PLACEHOLDER */
.map-placeholder {
  display: flex;
  align-items: center;
  background: #f9ecd8;
  border: 1.5px dashed #BF5633;
  border-radius: 13px;
  padding: 20px 18px;
  gap: 14px;
  margin-bottom: 18px;
  color: #294C68;
  font-family: 'Montserrat', Arial, sans-serif;
}
.map-placeholder img { width: 32px; height: 32px; margin-right: 12px; }

/* FOOTER */
footer {
  background: #234E70;
  color: #FFF7EE;
  padding: 45px 0 25px 0;
  border-top: 5px double #BF5633;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand img {
  height: 50px;
  margin-bottom: 22px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-menu a {
  color: #FFD1B8;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05em;
  text-decoration: none;
  padding: 2px 0;
  transition: color 0.13s;
}
.footer-menu a:hover { color: #FFF7EE; text-decoration: underline; }
.contact-summary {
  font-size: 0.97em;
  color: #FFF7EE;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 10px;
}
.contact-summary img { width: 18px; height: 18px; vertical-align: middle; margin-right: 8px; }
.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 11px;
}
.social-icons img {
  width: 28px;
  height: 28px;
  filter: brightness(1) sepia(1) hue-rotate(325deg) saturate(2) contrast(0.85);
  transition: filter 0.18s;
}
.social-icons img:hover {
  filter: none;
}

/* CONTACT SECTIONS */
.contact-details, .opening-hours {
  background: #F9ECD8;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 22px;
}
.contact-details img, .opening-hours img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
}

/* COOKIES BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #2C2C2C;
  color: #FFF7EE;
  z-index: 3000;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  box-shadow: 0 0 34px 0 #A47551, 0 2px 8px 0 rgba(36,78,112,0.14);
  justify-content: space-between;
  gap: 24px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  animation: slideInUp 0.47s cubic-bezier(.77,0,.18,1) both;
}
@keyframes slideInUp {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cookie-btn {
  padding: 11px 22px;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.12s;
}
.cookie-btn.accept {
  background: #BF5633;
  color: #FFF7EE;
  border: 1.5px solid #BF5633;
  box-shadow: 0 2px 12px rgba(191,86,51,0.11);
}
.cookie-btn.accept:hover {
  background: #234E70;
  color: #FFD1B8;
  border-color: #E6C19A;
}
.cookie-btn.reject {
  background: #FFF7EE;
  color: #BF5633;
  border: 1.5px solid #A47551;
}
.cookie-btn.reject:hover {
  background: #EFDBC7;
  color: #234E70;
}
.cookie-btn.settings {
  background: #E6C19A;
  color: #234E70;
  border: 1.5px solid #A47551;
}
.cookie-btn.settings:hover {
  background: #234E70;
  color: #FFF7EE;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44,44,44,0.32);
  z-index: 3500;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal__content {
  background: #FFF7EE;
  color: #234E70;
  box-shadow: 0 3px 18px rgba(36,78,112,0.16);
  border-radius: 18px;
  max-width: 420px;
  width: 92vw;
  padding: 34px 25px 18px 25px;
  font-family: 'Open Sans', Arial, sans-serif;
  position: relative;
  animation: fadeIn 0.35s cubic-bezier(.61,.3,.45,.79) both;
}
@keyframes fadeIn {
  0% { opacity: 0; transform: scale(0.93); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal__close {
  position: absolute;
  top: 11px;
  right: 19px;
  background: none;
  border: none;
  color: #BF5633;
  font-size: 2.1rem;
  cursor: pointer;
  z-index: 20;
}
.cookie-modal h3 {
  margin: 0 0 10px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #BF5633;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 15px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 600;
  color: #234E70;
}
.cookie-category input[type='checkbox'] {
  appearance: none;
  width: 20px;
  height: 20px;
  background: #EFDBC7;
  border: 2px solid #BF5633;
  border-radius: 5px;
  margin-right: 6px;
  position: relative;
  transition: background 0.14s;
}
.cookie-category input[type='checkbox']:checked {
  background: #BF5633;
  border-color: #234E70;
}
.cookie-category input[type='checkbox']:disabled {
  background: #F4F7FA;
  border-style: dotted;
}
.cookie-modal__actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* TYPOGRAPHY SCALE */
html {font-size: 100%;}
@media (min-width: 360px) {html {font-size: 102%;} }
@media (min-width: 640px) {html {font-size: 105%;} }
@media (min-width: 980px) {html {font-size: 109%;} }

/* RESPONSIVE DESIGN */
@media (max-width: 980px) {
  .container { max-width: 94vw; }
  .section { padding: 30px 7vw; }
}
@media (max-width: 800px) {
  .footer-brand img { height: 40px; }
  .map-placeholder { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .container { padding-left: 6px; padding-right: 6px; }
  .content-wrapper { gap: 15px; }
  .section { padding: 22px 4vw; }
  .feature-grid, .wellness-list, .testimonial-slider, .team-grid { flex-direction: column; gap: 18px; }
  .card-container, .content-grid { flex-direction: column; gap: 16px; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-menu, .social-icons { flex-direction: row; gap: 14px; }
  footer .container { flex-direction: column; gap: 18px; align-items: stretch; }
  .cta-section { padding: 32px 0; }
}
@media (max-width:480px) {
  .hero { padding: 36px 0 16px 0; }
  .hero h1 { font-size: 1.6rem; }
  .cta-btn { font-size: 1rem; padding: 12px 22px; }
  .section { margin-bottom: 32px; }
  .feature-grid li, .wellness-list li { padding: 18px 11px; font-size: 1em; }
}

/* HOVER EFFECTS & MICRO-INTERACTIONS */
.card, .feature-item, .testimonial-card, .team-member, .feature-grid li {
  transition: box-shadow 0.17s, transform 0.18s;
}
.card:hover, .feature-item:hover, .team-member:hover, .testimonial-card:hover, .feature-grid li:hover {
  box-shadow: 0 8px 28px 0 rgba(164,117,81,0.19);
  transform: translateY(-4px) scale(1.012);
  z-index: 1;
}

input, select, textarea {
  border-radius: 6px;
  border: 1.5px solid #EFDBC7;
  padding: 10px 13px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px dashed #BF5633;
  border-color: #BF5633;
  background: #fbf6f2;
}

/* UTILITY */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* COLOUR RETRO BADGES */
.badge {
  display: inline-block;
  background: #EFDBC7;
  color: #234E70;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 4px 14px;
  border-radius: 7px;
  font-size: 0.97em;
  box-shadow: 0 2px 6px rgba(191,86,51,0.08);
  letter-spacing: 1.2px;
}

/* NOSTALGIC ORNAMENTS */
.section {
  border: 3px double #EFDBC7;
  box-shadow: 0 1.5px 20px 0 rgba(164,117,81,0.05);
}
footer, .hero, .section, .card, .cta-btn, .feature-grid li, .team-member, .testimonial-card {
  border-radius: 13px;
}

/* VISUAL HIERARCHY SPACING */
.section + .section, .section + .cta-section, .card + .card, .testimonial-card + .testimonial-card {
  margin-top: 32px;
}
.card { margin-bottom: 20px; }

/* NO OVERLAP, SUFFICIENT SPACE */
.card, .testimonial-card, .feature-grid li, .team-member, .feature-item {
  min-width: 0;
  margin-bottom: 20px;
}

/* UNIQUE RETRO CORNERS/ACCENTS */
.feature-grid li:before, .testimonial-card:before {
  content: '';
  display: block;
  position: absolute;
  width: 18px;
  height: 18px;
  top: 8px;
  left: 8px;
  background: url('data:image/svg+xml;utf8,<svg fill="%23BF5633" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect x="0" y="0" width="16" height="16" rx="6"/></svg>') no-repeat center/contain;
  opacity: 0.13;
}

/* STYLIZE SCROLLBAR FOR RETRO VIBE */
::-webkit-scrollbar {
  width: 9px;
  background: #FAF3E7;
}
::-webkit-scrollbar-thumb {
  background: #BF5633;
  border-radius: 7px;
  border: 2px solid #EFDBC7;
}

/* KEYBOARD NAVIGATION FOCUS VISIBLE */
a:focus-visible, .cta-btn:focus-visible, button:focus-visible {
  outline: 2.5px dashed #BF5633;
}

/* PRINT */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .section, body, html { background: #FFF !important; }
  .section, .card, .feature-grid li {
    box-shadow: none !important;
    border: 1px solid #CCC !important;
  }
}

/* --- END OF SERENE FLASH FITNESS RETRO THEME --- */
