/* RESET & BASE TYPOGRAPHY */
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 {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #1a232d;
  color: #e3e3e3;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  letter-spacing: 0.01em;
  transition: background 0.3s cubic-bezier(.4,.9,.2,1);
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
*,*:before,*:after {
  box-sizing: inherit;
}
a {
  color: #AFE7CB;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2EFF3;
  text-decoration: underline;
}

/* VARIABLE FONTS & STYLES */
@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');

:root {
  --color-primary: #233346;
  --color-secondary: #AFE7CB;
  --color-accent: #F2EFF3;
  --color-bg: #1a232d;
  --color-bg-light: #263343;
  --color-bg-darker: #181e25;
  --color-metal: #bbc7cc;
  --color-card: #232c38;
  --color-border: #3d4753;
  --color-contrast: #101417;
  --color-error: #e57373;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* TYPOGRAPHY */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--color-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  text-shadow: 0 4px 16px rgba(67,74,89,0.65);
}
@media (min-width: 700px) {
  h1, .h1 { font-size: 3rem; }
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 20px;
  letter-spacing: 0.005em;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 12px;
}
h4, .h4 {  
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}
p, li, address {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #e3e3e3;
}
.subheadline {
  font-size: 1.16rem;
  color: var(--color-metal);
  margin-bottom: 20px;
  font-weight: 400;
}
strong {
  color: var(--color-secondary);
  font-weight: 700;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 20px;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* CONTAINER AND SECTIONS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 0;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 900px) {
  .section, section {
    padding: 60px 0;
  }
  .content-wrapper {
    gap: 32px;
  }
}

/* FLEX LAYOUT PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 16px rgba(24,27,36,0.10);
  border-radius: 12px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.25s, border 0.2s;
}
.card:hover, .card:focus-within {
  border-color: var(--color-secondary);
  box-shadow: 0 8px 32px rgba(128,225,175,0.12) , 0 2px 18px rgba(41,64,51,0.09);
  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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f4f5f7;
  color: #233346;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(22,25,34,0.09);
  margin-bottom: 20px;
  flex: 1 1 320px;
  min-width: 240px;
  border-left: 6px solid #AFE7CB;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 12px 32px rgba(23,56,40,0.10);
  border-left-color: #233346;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(110deg, #1a232d 80%, #233346 100%);
  border-bottom: 2px solid #353d49;
  padding: 44px 0 32px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
@media (min-width: 700px) {
  .hero .container {
    gap: 32px;
  }
}

/* FEATURE LIST & GRIDS */
.feature-grid, .feature-list, .service-list, .team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0 0 20px 0;
}
.feature-grid li, .feature-list li, .service-list li, .team-members li {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 3px 16px 0 rgba(35,51,70,0.06);
  border-radius: 10px;
  padding: 24px 18px 22px 18px;
  flex: 1 1 240px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .2s, border-color .2s, transform 0.15s;
  position: relative;
  margin-bottom: 20px;
}
.feature-grid li:hover,
.feature-list li:hover,
.service-list li:hover,
.team-members li:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 8px 26px rgba(175,231,203,0.07);
  transform: translateY(-2px) scale(1.015);
  z-index: 2;
}
.feature-grid li img {
  height: 36px;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .feature-grid, .feature-list, .service-list, .team-members {
    flex-wrap: wrap;
    gap: 16px;
  }
  .feature-grid li, .feature-list li, .service-list li, .team-members li {
    flex: 1 1 140px;
    min-width: 120px;
  }
}
@media (max-width: 700px) {
  .feature-grid, .feature-list, .service-list, .team-members {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid li, .feature-list li, .service-list li, .team-members li {
    margin-bottom: 12px;
    min-width: 0;
    width: 100%;
  }
}

/* TESTIMONIALS */
.testimonials {
  background: #232c38;
  padding: 0;
  border-top: 2px solid #333c49;
}
.testimonials h2 {
  color: var(--color-secondary);
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .testimonial-list {
    flex-direction: column;
    gap: 12px;
  }
}
.testimonial-author {
  display: block;
  margin-top: 13px;
  color: #475063;
  font-weight: 700;
  font-size: .97rem;
  font-family: var(--font-display);
  letter-spacing: 0.004em;
}

/* BUTTONS & CTA */
.cta, .cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.07rem;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  box-shadow: 0 1px 8px rgba(126,153,153,0.12);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  margin-top: 18px;
  margin-bottom: 6px;
  transition: background 0.18s, color 0.14s, box-shadow 0.22s, transform 0.16s;
}
.cta.primary:hover, .cta.primary:focus {
  background: #233346;
  color: var(--color-accent);
  box-shadow: 0 6px 22px rgba(41,67,58,0.14);
  transform: translateY(-1px) scale(1.025);
  border: 1px solid var(--color-secondary);
}

/* CARDS – for any card list/section */
.card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(28,31,35,0.05);
  padding: 28px 22px;
  margin-bottom: 20px;
  color: var(--color-accent);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* NAVIGATION & HEADER */
header {
  background: var(--color-primary);
  box-shadow: 0 8px 40px -10px rgba(0,0,0,0.20);
  border-bottom: 1.5px solid var(--color-border);
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.logo-link img {
  height: 44px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .03em;
  border-bottom: 2px solid transparent;
  position: relative;
  padding: 4px 2px 4px 2px;
  transition: color 0.16s, border 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 12px;
    font-size: .97rem;
  }
}

/* --- BURGER NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.35rem;
  color: #AFE7CB;
  cursor: pointer;
  z-index: 301;
  position: absolute;
  right: 24px;
  top: 18px;
  padding: 4px 10px;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-secondary);
}

@media (max-width: 950px) {
  .main-nav,
  header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(35,51,70,0.96);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.51,.9,.33,1.07), opacity 0.25s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 2.6rem;
  margin: 20px 32px 16px 0;
  cursor: pointer;
  transition: color .12s;
  z-index: 403;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--color-secondary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 22px 0 0 36px;
}
.mobile-nav a {
  color: #AFE7CB;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 10px 0;
  width: 90vw;
  border-bottom: 1px solid rgba(241,241,241,0.10);
  transition: color 0.18s, background 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(175,231,203,0.09);
  color: #F2EFF3;
}

@media (max-width: 500px) {
  .mobile-nav {
    margin-left: 14px;
    gap: 10px;
  }
  .mobile-nav a {
    font-size: 1rem;
    width: 90vw;
  }
}

/* FOOTER */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 55px 0 20px 0;
  border-top: 2px solid #2c3747;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand img {
  height: 40px;
  margin-bottom: 12px;
  filter: contrast(1.02);
}
.footer-brand p {
  color: var(--color-secondary);
  font-size: .97rem;
}
.footer-contact, .footer-legal, .footer-social, .footer-nav {
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a,
.footer-legal a {
  color: var(--color-accent);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 5px;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}
.footer-social a img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  filter: brightness(1.3) grayscale(.4);
  transition: filter .12s, transform .12s;
}
.footer-social a:hover img {
  filter: brightness(2) grayscale(0.07);
  transform: scale(1.10);
}
@media (max-width: 900px) {
  .footer-columns {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

/* THANK YOU PAGE NAVS */
.thankyou-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin: 31px 0 10px 0;
}
.thankyou-navigation a {
  background: #232c38;
  color: #AFE7CB;
  padding: 8px 18px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  transition: background .14s, color .12s;
}
.thankyou-navigation a:hover, .thankyou-navigation a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* GENERAL FORMATTING */
address { font-style: normal; }
.map-embed {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 18px 0 6px 0;
}
.map-embed img {
  width: 44px;
  height: 44px;
  opacity: 0.92;
}

/* LEGAL PAGES - PRIVACY, TERMS, GDPR */
.legal {
  background: var(--color-card);
  border-radius: 10px;
  margin-top: 32px;
  margin-bottom: 60px;
  box-shadow: 0 1px 10px rgba(42,49,58,0.09);
  padding: 36px 14px;
}
.legal .h1, .legal h1 {
  color: var(--color-accent);
}
.legal .h2, .legal h2 {
  color: var(--color-secondary);
}

/* ABOUT US PAGE */
.brand-values {
  list-style: disc;
  margin-left: 24px;
}
.team-members {
  margin-top: 18px;
}

/* CONTACT PAGE */
.contact-details, .hours-address {
  background: var(--color-card);
  border-radius: 12px;
  padding: 28px 18px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(38,47,61,0.055);
}
.contact-details h2 { color: var(--color-secondary); margin-bottom: 14px;}

/* RESPONSIVE LAYOUTS */
@media (max-width: 768px){
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .container {
    padding: 0 8px;
  }
  header .container {
    padding: 12px 8px;
  }
  section, .section {
    padding: 24px 0;
    margin-bottom: 34px;
  }
}

/* COOKIE BANNER & PREFERENCES MODAL */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9000;
  width: 100%;
  background: #232c38;
  color: #e4eaef;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 18px 20px 18px;
  font-size: 1rem;
  font-family: var(--font-body);
  opacity: 0;
  pointer-events: none;
  transform: translateY(48px);
  transition: opacity 0.24s, transform 0.31s; 
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner p {
  flex: 1 1 300px;
  margin-right: 15px;
}
.cookie-banner .cookie-btn {
  margin-left: 12px;
  padding: 10px 24px;
  border-radius: 5px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 7px rgba(111,176,152,0.09);
  transition: background 0.16s, color 0.14s, filter 0.13s;
}
.cookie-banner .cookie-btn.reject {
  background: #2c3747;
  color: #AFE7CB;
  border: 1px solid #AFE7CB;
  margin-left: 10px;
}
.cookie-banner .cookie-btn.prefs {
  background: var(--color-accent);
  color: var(--color-primary);
  margin-left: 8px;
}
.cookie-banner .cookie-btn:hover,.cookie-banner .cookie-btn:focus {
  filter: brightness(0.92);
  background: var(--color-secondary);
  color: #233346;
}
.cookie-banner .cookie-btn.prefs:hover,.cookie-banner .cookie-btn.prefs:focus {
  background: #AFE7CB;
  color: #1a232d;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    padding: 16px 8px 18px 10px;
  }
  .cookie-banner p { margin-right: 0; }
}

.cookie-modal-bg {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(22,27,34,0.65);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s;
}
.cookie-modal-bg.open { display: flex; }
.cookie-modal {
  background: #F2EFF3;
  border-radius: 13px;
  box-shadow: 0 2px 42px rgba(41,67,58, 0.18);
  color: var(--color-primary);
  max-width: 410px;
  width: calc(100vw - 30px);
  padding: 36px 24px 24px 24px;
  position: relative;
  animation: cookie-popup 0.36s cubic-bezier(.5,.8,.45,1.09);
}
@keyframes cookie-popup {
  from { transform: translateY(80px) scale(.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.24rem;
}
.cookie-categories {
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-secondary);
  margin: 0;
  cursor: pointer;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-display);
  cursor: pointer;
}
.cookie-modal .cookie-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.cookie-modal .cookie-btn {
  padding: 10px 18px;
  border-radius: 5px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 1px 7px rgba(111,176,152,0.09);
  transition: background 0.16s, color 0.14s;
}
.cookie-modal .cookie-btn:focus {
  outline: 2px solid var(--color-primary);
}
.cookie-modal .cookie-btn.dismiss {
  background: #dfe4ea;
  color: #233346;
}
.cookie-modal .cookie-btn:hover,.cookie-modal .cookie-btn:focus {
  filter: brightness(0.91);
  background: #AFE7CB;
  color: #1a232d;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 13px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #3d4753;
  cursor: pointer;
  z-index: 3;
  transition: color 0.13s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: var(--color-error);
}

/* ALWAYS ENABLED: Essential cookies (styling for disabled toggle) */
.cookie-category[data-essential] label, .cookie-category[data-essential] {
  color: #233346 !important;
  opacity: .66;
}
.cookie-category[data-essential] input[type='checkbox'] {
  accent-color: #bbc7cc;
}
.cookie-category[data-essential] input[type='checkbox'] {
  pointer-events: none;
  filter: grayscale(0.68);
}

@media (max-width: 450px) {
  .cookie-modal {
    padding: 24px 8px 18px 8px;
  }
}

/* MICRO-INTERACTIONS & TRANSITIONS */
::-webkit-scrollbar {
  width: 12px;
  background: #232c38;
}
::-webkit-scrollbar-thumb {
  background: #2c3644;
  border-radius: 22px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a4c62;
}

input, textarea, select {
  background: #232c38;
  color: #F2EFF3;
  border: 1px solid #3d4753;
  padding: 12px 14px;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 15px;
  transition: border .14s, box-shadow .16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 2px 8px rgba(79, 210, 170, 0.12);
}

/* ENSURE MINIMUM SPACING BETWEEN ALL CARDS */
.card, .testimonial-card, .feature-grid li, .feature-list li, .team-members li, .service-list li {
  margin-bottom: 20px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .content-grid, .feature-grid, .feature-list, .team-members, .testimonial-list, .service-list {
  gap: 20px;
}

/* PREVENT OVERLAPPING CONTENT */
.card, .testimonial-card, .feature-grid li, .feature-list li, .service-list li, .team-members li, .content-wrapper {
  z-index: 1;
}

/* Z-INDEX FOR HEADER & MODALS */
header {
  z-index: 101;
}
.mobile-menu {
  z-index: 401;
}
.cookie-banner {
  z-index: 9000;
}
.cookie-modal-bg {
  z-index: 10001;
}

/* ACCESSIBILITY FOCUS STATES */
a:focus, button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
  border-radius: 3px;
}

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

/* --- END --- */
