/* ========================================
   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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-size: 16px; /* base for rem */
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background-color: #FAFAFA;
  color: #223445;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-weight: 400;
  line-height: 1.65;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  color: #13A187;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
a:hover, a:focus {
  color: #223445;
  text-decoration: underline;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
  box-shadow: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", Arial, sans-serif;
  color: #223445;
  font-weight: 700;
}
h1 { font-size: 2.25rem; margin-bottom: 20px; line-height: 1.18; }
h2 { font-size: 1.75rem; margin-bottom: 18px; line-height: 1.2; }
h3 { font-size: 1.25rem; margin-bottom: 16px; line-height: 1.2; }
h4 { font-size: 1.15rem; margin-bottom: 12px; }
p, ul, ol, .text-section { margin-bottom: 16px; }

strong { font-weight: bold; }
span, li, label { font-family: inherit; }
section { background: #FFF; border-radius: 16px; box-shadow: 0 2px 14px 0 rgba(34,52,69,0.06); margin-bottom: 60px; padding: 40px 20px; }

/* ========================================
   BRAND COLORS & THEME
========================================= */
:root {
  --primary: #223445;
  --secondary: #13A187;
  --accent: #FAFAFA;
  --gray-light: #F4F6F8;
  --gray-mid: #8591A3;
  --gray-dark: #374151;
  --border: #e5e8ec;
  --shadow: 0 2px 14px 0 rgba(34,52,69,0.06);
}

/* ========================================
   CONTAINER & LAYOUT
========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section { margin-bottom: 60px; padding: 40px 20px; } /* as required */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(34,52,69,0.12);
  transition: box-shadow 0.2s;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.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 {
  background: #F4F6F8;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(34,52,69,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 420px;
  flex: 1;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  color: #223445;
  font-size: 1.06rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.testimonial-card span {
  color: #374151;
  font-size: 0.95rem;
  font-style: italic;
}
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFF;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(34,52,69,0.05);
  padding: 22px 18px;
  min-width: 210px;
  flex: 1 1 220px;
  margin-bottom: 20px;
}
.feature-item img {
  width: 44px; height: 44px; margin-bottom: 6px; }
.feature-item h3 {
  margin: 0 0 5px 0;
  font-size: 1.15rem;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.service-item {
  flex: 1 1 240px;
  min-width: 240px;
  background: #FAFAFA;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 9px rgba(34,52,69,0.04);
  padding: 26px 20px 20px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-item h2 { font-size: 1.25rem; margin-bottom: 0; }
.service-item span { color: var(--secondary); font-weight: bold; font-size: 1.07rem; margin-top: 5px; }

/* ========================================
   HEADER & NAVIGATION (Desktop)
========================================= */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(34,52,69,0.06);
  position: relative;
  z-index: 1020;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  height: 80px;
  position: relative;
}
header a img[alt="Shining Magnet Fitness"] {
  height: 48px;
  width: auto;
  margin-right: 18px;
}
header nav {
  display: flex;
  gap: 18px;
}
header nav a {
  display: block;
  font-family: "Montserrat", Arial, sans-serif;
  color: #223445;
  font-weight: 500;
  font-size: 1.04rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a.active {
  background: var(--secondary);
  color: #fff;
  text-decoration: none;
}
.cta-btn {
  display: inline-block;
  background: var(--secondary);
  color: #fff !important;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 8px;
  padding: 12px 30px;
  margin-left: auto;
  box-shadow: 0 2px 8px 0 rgba(19,161,135,0.10);
  cursor: pointer;
  transition: background 0.18s, transform 0.15s, box-shadow 0.2s;
  border: none;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #15866c;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px 0 rgba(19,161,135,0.17);
  color: #fff;
}
header .mobile-menu-toggle {
  display: none;
}

/* ========================================
   HERO SECTION
========================================= */
.hero {
  background: linear-gradient(90deg, #FAFAFA 0%, #e3ebee 100%);
  padding: 54px 0 54px 0;
  margin-bottom: 54px;
  border-radius: 16px;
  box-shadow: 0 2px 26px rgba(34,52,69,0.07);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero h1 {
  font-size: 2.7rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: "Montserrat", Arial, sans-serif;
}
.hero .subheadline {
  color: var(--gray-mid);
  font-size: 1.18rem;
  margin-bottom: 15px;
}

/* ========================================
   FOOTER
========================================= */
footer {
  background: #FFF;
  border-top: 1px solid #e5e8ec;
  margin-top: 60px;
  padding-bottom: 12px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 25px 0 12px 0;
}
.footer-main img {
  height: 38px;
  margin-right: 18px;
}
.footer-main nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-main nav a {
  color: var(--gray-dark);
  font-size: 1.01rem;
  padding: 6px 8px;
  border-radius: 5px;
  transition: background 0.18s, color 0.21s;
}
.footer-main nav a:hover { background: var(--secondary); color: #fff; }
.footer-bottom {
  text-align: right;
  color: var(--gray-mid);
  font-size: 0.97rem;
}

/* ========================================
   UTILITY CLASSES & GENERAL SPACING
========================================= */
.text-section {
  margin-bottom: 24px;
  font-size: 1.06rem;
}
.text-section ul, .text-section ol {
  margin-left: 1.5em;
  margin-bottom: 16px;
  list-style: disc inside;
}
.text-section li {
  margin-bottom: 6px;
  font-size: 1.03rem;
}
.service-list {
  margin: 18px 0 24px 0;
  padding: 0;
}
.service-list li {
  margin-bottom: 16px;
  font-size: 1.08rem;
  background: #f5f7fa;
  border-radius: 8px;
  padding: 17px 16px;
}
.service-list span {
  color: var(--secondary);
  font-weight: bold;
  font-size: 1rem;
}
.team-section {
  display: flex;
  flex-direction: row;
  gap: 30px;
}
.team-section .text-section {
  flex: 2;
}

/* ========================================
   MOBILE BURGER MENU
========================================= */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 21px;
  z-index: 1101;
  width: 44px;
  height: 44px;
  background: var(--secondary);
  color: #fff;
  border-radius: 8px;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.22s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #15866c;
  outline: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,52,69,0.97);
  transform: translateX(-102vw);
  transition: transform 0.33s cubic-bezier(.4,0,.2,1);
  z-index: 1300;
  padding: 0 0 0 0;
  box-shadow: 2px 0 18px rgba(34,52,69,0.13);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  cursor: pointer;
  z-index: 1380;
  transition: color 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 96px 36px 16px 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.17rem;
  padding: 12px 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  transition: color 0.2s, background 0.18s;
  border-radius: 6px;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(19,161,135,0.18);
  color: var(--secondary);
}

/* ========================================
   COOKIES CONSENT BANNER
========================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #223445fa;
  color: #fff;
  padding: 22px 20px;
  z-index: 2100;
  box-shadow: 0 -2px 20px rgba(34,52,69,0.12);
  transition: transform 0.3s, opacity 0.22s;
  gap: 20px;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100px);
  pointer-events: none;
}
.cookie-banner .cookie-text {
  font-size: 1.02rem;
  max-width: 520px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: 22px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 1rem;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
  margin-right: 0px;
  margin-top: 3px;
  transition: background 0.19s, color 0.15s, box-shadow 0.19s;
}
.cookie-banner .cookie-accept {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 2px 5px rgba(19,161,135,0.09);
}
.cookie-banner .cookie-accept:hover { background: #15866c; }
.cookie-banner .cookie-reject {
  background: #fff;
  color: #223445;
  border: 1.5px solid #e5e8ec;
}
.cookie-banner .cookie-reject:hover { background: #edeff2; }
.cookie-banner .cookie-settings {
  background: transparent;
  color: #fff;
  text-decoration: underline;
  border: none;
}
.cookie-banner .cookie-settings:hover { color: var(--secondary); }

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2200;
  left: 0; top: 0; right:0; bottom: 0;
  background: rgba(34,52,69,0.77);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.24s;
}
.cookie-modal {
  background: #FFF;
  border-radius: 14px;
  min-width: 340px;
  max-width: 96vw;
  padding: 38px 26px 26px 26px;
  box-shadow: 0 8px 36px 0 rgba(19, 161, 135, 0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  position: relative;
}
.cookie-modal h2,
.cookie-modal h3 {
  color: var(--primary);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0.8;
}
.cookie-modal .close-modal:hover { opacity: 1; }
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.cookie-modal label {
  font-size: 1.08rem;
  color: var(--gray-dark);
  cursor: pointer;
}
.cookie-modal input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-right: 4px;
  accent-color: var(--secondary);
}
.cookie-modal .cookie-essential {
  color: var(--gray-mid);
  font-size: 0.96rem;
  margin-left: 9px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal button {
  border-radius: 5px;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
}
.cookie-modal .modal-accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-modal .modal-accept:hover { background: #15866c; }
.cookie-modal .modal-reject {
  background: #fff;
  border: 1.5px solid #e5e8ec;
  color: #223445;
}
.cookie-modal .modal-reject:hover { background: #edeff2; }

/* ========================================
   ANIMATIONS
========================================= */
@keyframes fadein {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes slidein-right {
  0% { transform: translateX(110vw); }
  100% { transform: translateX(0); }
}
@keyframes slidein-bottom {
  0% { opacity: 0; transform: translateY(110px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero {
  animation: fadein 0.7s cubic-bezier(.4,0,.2,1) 0.06s both;
}
.section, .feature-item, .card, .testimonial-card, .service-item {
  animation: fadein 0.5s cubic-bezier(.4,0,.2,1) 0.08s both;
}
.mobile-menu.open { animation: slidein-right 0.32s cubic-bezier(.4,0,.2,1) both; }
.cookie-banner { animation: slidein-bottom 0.45s cubic-bezier(.41,0,.2,1) 0.3s both; }

/* ========================================
   RESPONSIVE (MOBILE FIRST)
========================================= */
@media (max-width: 1024px) {
  .container { max-width: 900px; }
  .service-grid, .feature-grid, .testimonials, .card-container {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bottom { text-align: left; margin-left: 0; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .hero { padding: 32px 0; min-height: 220px; }
  .content-grid, .feature-grid, .service-grid, .testimonials, .card-container { flex-direction: column; gap: 18px; }
  .feature-item, .service-item, .testimonial-card {
    min-width: 100%;
    max-width: 100%;
  }
  .container { padding-left: 9px; padding-right: 9px; }
  header .container, .footer-main {
    gap: 12px;
    height: 64px;
  }
  .footer-main img { height: 30px; margin-right: 12px; }
  .hero .container { min-height: 180px; }
  section { padding: 24px 8px; }
  .section { padding: 24px 8px; }
  .footer-main nav { gap: 8px; font-size: 0.99rem; }
  .team-section { flex-direction: column; gap: 10px; }
  .cta-btn { font-size: 1rem; padding: 10px 16px; }
}
@media (max-width: 640px) {
  .hero { border-radius: 8px; }
  .cookie-modal { min-width: 90vw; padding: 22px 9px 16px 9px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.17rem; }
  h3 { font-size: 1.09rem; }
}

/* ------------------------------------------
   MOBILE NAVIGATION SHOW/HIDE
------------------------------------------- */
@media (max-width: 980px) {
  header nav,
  header .cta-btn {
    display: none;
  }
  .footer-main { flex-direction: column; align-items: flex-start; }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width: 981px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ======================
   FOCUS VISIBLE
======================= */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ======================
   SCROLLBAR DESIGN
======================= */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: #ecf2f7;
  border-radius: 10px;
}

/* ==========================
   MISC/ACCESSIBILITY
============================ */
[aria-hidden="true"] { display: none !important; }

/* ==========================
   THANK YOU PAGE BUTTON
============================ */
.text-section .cta-btn { margin-top: 22px; }
