/* ---- CSS RESET & NORMALIZE ---- */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FCFDFB;
  color: #1b2631;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
footer div {
  color: white !important;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #174B76;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #0d305f;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #174B76;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
}
.lead {
  font-size: 1.2rem;
  color: #335776;
  margin-bottom: 28px;
}
.text-center {
  text-align: center;
}
.text-section h3 {
  font-size: 1.1rem;
  color: #226bb3;
}

/* ---- BRAND COLORS & THEMING ---- */
:root {
  --primary: #174B76;
  --primary-light: #2c5b8c;
  --secondary: #A4C4DD;
  --accent: #FCFDFB;
  --gray-light: #f3f6fa;
  --gray-medium: #e3e9f0;
  --gray-dark: #7c8796;
  --shadow: 0 2px 12px rgba(53,80,112,0.08);
  --border-radius: 12px;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.25s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 4px 20px rgba(23,75,118,0.2);
  z-index: 2;
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- HEADER ---- */
header {
  background: #174B76;
  color: #fff;
  position: relative;
  box-shadow: 0 2px 10px rgba(23,75,118,0.07);
  z-index: 100;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.logo img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 24px;
}
.main-nav a {
  color: #FCFDFB;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
  padding: 2px 0;
}
.main-nav a:hover, .main-nav a:focus {
  color: #A4C4DD;
}
.btn-primary {
  padding: 12px 26px;
  background: var(--primary);
  color: #fff;
  border-radius: 25px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(23,75,118,0.10);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  margin-left: 12px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #31618c;
  color: #fff;
  transform: translateY(-1px) scale(1.04);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 301;
  margin-left: 12px;
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,75,118, 0.97);
  z-index: 300;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  transition: transform 0.35s cubic-bezier(.23,1.04,.73,1.01), opacity 0.18s;
  transform: translateX(100%);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  padding: 18px 26px 0 18px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 301;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100vw;
  margin-top: 28px;
  gap: 12px;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 18px 0 8px 0;
  width: 88vw;
  border-radius: 6px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255,255,255,0.10);
  color: #A4C4DD;
}

@media (max-width: 1100px) {
  .header-flex {
    gap: 12px;
  }
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
  }
  .btn-primary {
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ---- HERO SECTIONS ---- */
.hero, .hero-eq, .hero-blog, .hero-contact {
  background: linear-gradient(120deg, #A4C4DD 18%, #FCFDFB 100%);
  padding: 54px 0 44px 0;
  margin-bottom: 0;
  min-height: 280px;
  display: flex;
  align-items: center;
  box-shadow: 0 6px 30px rgba(23,75,118,0.09);
}
.hero .container, .hero-eq .container, .hero-blog .container, .hero-contact .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}
.content-wrapper.text-center {
  justify-content: center;
  align-items: center;
}

/* ---- FEATURES / CARDS / COURSES ---- */
.features, .features-eq, .features-courses, .about-section, .services, .services-list, .courses, .blog-posts, .cta-accent, .cta-eq, .thankyou, .contact, .contact-direction {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features h2, .services h2, .about-section h2, .courses h2, .blog-posts h2 {
  margin-bottom: 28px;
}
.feature-grid, .value-grid, .category-grid, .service-list, .services-list .service-grid, .course-list, .blog-post-list, .icon-list, .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature, .value, .equipment, .service, .course, .blog-snippet, .benefit {
  background: #f3f6fa;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 6px rgba(53,80,112,0.03);
  flex: 1 1 260px;
  min-width: 220px;
  padding: 26px 22px 22px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.17s, background 0.17s;
  position: relative;
}
.feature img, .value img, .equipment img, .benefit img, .icon-list .feature img {
  height: 44px;
  width: auto;
  margin-bottom: 10px;
  filter: hue-rotate(12deg) saturate(1.25);
}
.feature:hover, .value:hover, .equipment:hover, .benefit:hover, .service:hover, .course:hover, .blog-snippet:hover {
  background: #e3e9f0;
  box-shadow: 0 4px 16px rgba(23,75,118,0.09);
  z-index: 2;
}
.service-price, .course-price {
  margin-top: 10px;
  color: #226bb3;
  font-weight: 500;
  font-size: 1.1rem;
}

.service {
  min-width: 180px;
  flex: 1 1 265px;
  border-left: 5px solid #A4C4DD;
  padding-left: 18px;
  margin-right: 10px;
  background: #f6fafd;
  box-shadow: 0 2px 8px rgba(53,80,112,0.02);
}

.blog-snippet h3 {
  color: #174B76;
  margin-bottom: 12px;
}
.btn-link {
  color: #174B76;
  font-weight: 500;
  font-size: 1rem;
  padding-bottom: 2px;
  border-bottom: 1px solid #A4C4DD;
  transition: color 0.17s, border-color 0.17s;
}
.btn-link:hover, .btn-link:focus {
  color: #226bb3;
  border-bottom-color: #226bb3;
}

.icon-list {
  gap: 30px;
}
.icon-list .feature {
  min-width: 200px;
  flex: 1 1 220px;
  align-items: center;
  text-align: center;
}

.benefit-icons {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  margin-top: 28px;
}
.benefit {
  flex: 1 1 130px;
  min-width: 100px;
  background: #FCFDFB;
  align-items: center;
  text-align: center;
  padding: 16px 8px 12px 8px;
}
.benefit span {
  color: #376793;
  font-size: 1.02rem;
  font-weight: 500;
  margin-top: 4px;
}

.values {
  list-style: disc outside;
  margin-top: 14px;
  color: #335776;
}

/* ---- TESTIMONIALS ---- */
.testimonials {
  background: #f1f6fb;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.testimonials h2 {
  color: #174B76;
}
.testimonial-carousel {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
}
.testimonial-card {
  flex: 1 1 290px;
  min-width: 246px;
  background: #fff;
  color: #174B76;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px rgba(23,75,118,0.09);
  padding: 28px 22px 24px 22px;
  margin-bottom: 20px;
  position: relative;
  align-items: flex-start;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  font-size: 1.03rem;
  margin-bottom: 13px;
  color: #24466b;
}
.testimonial-card strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: #31618c;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 24px rgba(23,75,118,0.15);
  background: #f3f6fa;
  z-index: 2;
}

/* ---- CTA ACCENT ---- */
.cta-accent, .cta-eq {
  background: linear-gradient(100deg, #174B76 30%, #A4C4DD 90%);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(23,75,118,0.08);
  margin-bottom: 60px;
  padding: 46px 20px;
  text-align: center;
}
.cta-accent h2, .cta-eq h2 {
  color: #fff;
  margin-bottom: 20px;
}
.cta-accent .btn-primary, .cta-eq .btn-primary {
  background: #fff;
  color: #174B76;
  box-shadow: 0 2px 10px rgba(23,75,118,0.13);
  margin-top: 14px;
}
.cta-accent .btn-primary:hover, .cta-eq .btn-primary:hover {
  background: #A4C4DD;
  color: #174B76;
}

/* ---- BLOG POSTS LIST ---- */
.blog-posts {
  background: #fff;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.blog-post-list {
  gap: 28px;
  flex-wrap: wrap;
}
.blog-snippet {
  flex: 1 1 285px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  background: #f6fafd;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 6px rgba(53,80,112,0.03);
  padding: 22px 18px 16px 18px;
  transition: box-shadow 0.15s, background 0.15s;
  margin-bottom: 20px;
}
.blog-snippet:hover {
  background: #e3e9f0;
  box-shadow: 0 4px 16px rgba(23,75,118,0.08);
}

/* ---- THANK YOU PAGE ---- */
.thankyou .next-steps {
  margin-top: 42px;
  background: #f7fafd;
  border-radius: 8px;
  padding: 30px 22px 14px 22px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(53,80,112,0.08);
}

/* ---- CONTACT PAGE ---- */
.contact-details, .contact-help {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #335776;
}
.contact-info img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
}
.hours {
  font-size: 0.98rem;
}
.location-map-embed {
  display: flex;
  align-items: center;
  min-height: 70px;
  background: #f1f6fb;
  color: #174B76;
  border-radius: 7px;
  padding: 18px 14px;
}
.transport-info {
  margin-left: 18px;
}
.transport-info h3 {
  color: #226bb3;
  font-size: 1.07rem;
  margin: 14px 0 4px 0;
}
.transport-info ul {
  color: #335776;
  margin-bottom: 10px;
}

/* ---- FOOTER ---- */
footer {
  background: #174B76;
  color: #fff;
  padding-top: 34px;
  padding-bottom: 24px;
  box-shadow: 0 -2px 16px rgba(23,75,118,0.06);
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 18px;
}
.logo-footer img {
  width: 44px;
  height: auto;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-nav a {
  color: #D2E7F9;
  font-size: 1rem;
  transition: color 0.19s;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #A4C4DD;
}
footer .contact-info a {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
}
.copyright {
  font-size: 0.97rem;
  text-align: center;
  color: #c2d7e2;
  opacity: 0.86;
  margin-top: 12px;
}

/* ---- LEGAL PAGES ---- */
.legal-privacy, .legal-gdpr, .legal-cookies, .legal-terms {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.legal-privacy h1, .legal-gdpr h1, .legal-cookies h1, .legal-terms h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: #174B76;
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f1f6fb;
  color: #174B76;
  box-shadow: 0 -2px 24px rgba(23,75,118,0.13);
  z-index: 9999;
  padding: 20px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  animation: cookieSlideUp 0.6s cubic-bezier(.23,1.04,.73,1.01);
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border: none;
  border-radius: 5px;
  background: #174B76;
  color: #fff;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 18px;
  font-size: 1rem;
  margin: 0 2px;
  outline: none;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  box-shadow: 0 2px 8px rgba(23,75,118,0.09);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #31618c;
}
.cookie-banner .cookie-settings-btn {
  background: #A4C4DD;
  color: #174B76;
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: #CCD9E7;
  color: #174B76;
}

/* COOKIE MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(23,75,118,0.53);
  z-index: 10100;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
}
.cookie-preferences {
  background: #fff;
  padding: 38px 30px 26px 30px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(23,75,118,0.15);
  max-width: 380px;
  min-width: 270px;
  font-size: 1rem;
  animation: fadeModalIn 0.35s cubic-bezier(.23,1.04,.73,1.01);
  color: #174B76;
}
@keyframes fadeModalIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
.cookie-preferences h3 {
  font-size: 1.23rem;
  margin-bottom: 14px;
  color: #174B76;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 13px;
}
.cookie-category-toggle {
  margin-top: 2px;
}
.cookie-category .toggle {
  width: 40px;
  height: 22px;
  border-radius: 16px;
  background: #e3e9f0;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-category .toggle-input {
  display: none;
}
.cookie-category .toggle-input:checked + .toggle-slider {
  background: #174B76;
}
.cookie-category .toggle-slider {
  display: block;
  background: #A4C4DD;
  border-radius: 16px;
  width: 40px;
  height: 22px;
  position: relative;
  transition: background 0.15s;
}
.cookie-category .toggle-slider:before {
  content: "";
  display: block;
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.15s;
}
.cookie-category .toggle-input:checked + .toggle-slider:before {
  left: 20px;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1rem;
  color: #174B76;
}
.cookie-preferences .modal-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-preferences button {
  font-size: 1rem;
  padding: 7px 20px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
}
.cookie-preferences .close-cookie-modal {
  background: #A4C4DD;
  color: #174B76;
}
.cookie-preferences .close-cookie-modal:hover {
  background: #CCD9E7;
  color: #174B76;
}

/* ---- SPACING PATTERNS ---- */
@media (min-width: 640px) {
  .content-wrapper, .feature-grid, .value-grid, .category-grid, .service-list, .services-list .service-grid, .course-list, .blog-post-list, .icon-list {
    gap: 28px;
  }
  .section, .features, .services, .courses, .contact, .blog-posts, .thankyou, .cta-accent, .cta-eq {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ---- RESPONSIVE LAYOUT ---- */
@media (max-width: 1024px) {
  .container {
    max-width: 940px;
  }
}
@media (max-width: 900px) {
  footer .footer-flex {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 800px) {
  .container {
    max-width: 92vw;
    padding: 0 7vw;
  }
  .feature, .value, .equipment, .service, .course, .blog-snippet {
    min-width: 160px;
    padding: 20px 8px 18px 10px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .header-flex {
    flex-direction: row;
    gap: 6px;
  }
  .footer-flex {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  .content-wrapper, .feature-grid, .category-grid, .service-list, .services-list .service-grid, .course-list, .blog-post-list, .icon-list {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .features, .services, .about-section, .about, .courses, .contact, .blog-posts, .testimonials, .cta-accent, .cta-eq, .thankyou, .legal-privacy, .legal-gdpr, .legal-cookies, .legal-terms {
    padding-left: 14px;
    padding-right: 14px;
  }
  .testimonial-carousel {
    flex-direction: column;
    align-items: stretch;
  }
  .testimonial-card {
    min-width: 0;
    padding: 18px 8px;
  }
  .benefit-icons {
    flex-direction: column;
    gap: 18px;
  }
  .about .text-section, .about-section .text-section {
    padding: 0 5px;
  }
  .hero, .hero-eq, .hero-contact, .hero-blog {
    min-height: 180px;
    padding: 38px 0 26px 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}
@media (max-width: 540px) {
  .container {
    padding: 0 3vw;
    max-width: 99vw;
  }
  .blog-snippet {
    min-width: 0;
    padding: 12px 5px;
  }
  .feature, .value, .equipment, .service, .course {
    min-width: 0;
    padding: 12px 5px 11px 5px;
  }
  .footer-flex {
    font-size: 0.95rem;
  }
  .cta-accent, .cta-eq {
    padding: 28px 8px;
  }
}

/* ---- MISC ---- */
::-webkit-input-placeholder { color: #7c8796; }
::-moz-placeholder { color: #7c8796; }
:-ms-input-placeholder { color: #7c8796; }
::placeholder { color: #7c8796; }

button, .btn-primary, .cookie-banner button, .cookie-preferences button {
  outline: none;
}

/* Focus style for accessibility */
a:focus, button:focus, .btn-primary:focus, .cookie-banner button:focus, .cookie-modal .close-cookie-modal:focus {
  box-shadow: 0 0 0 2px #A4C4DD;
  outline: none;
}

/* Hide visually on mobile-only classes, if any */
@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
  .show-on-mobile {
    display: block !important;
  }
}

/* ---- END ---- */
