/* =======================================================================
   CSS RESET & BASE STYLES
======================================================================= */
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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}

/* =======================================================================
   VARIABLE SETUP (with fallbacks)
======================================================================= */
:root {
  --color-primary: #114074;
  --color-secondary: #F2C94C;
  --color-accent: #F5F6FA;
  --color-on-accent: #114074;
  --color-heading: #114074;
  --color-body: #23292f;
  --color-muted: #888;
  --color-white: #fff;
  --shadow-soft: 0 1.5px 8px 0 rgba(17, 64, 116, 0.08);
  --shadow-card: 0 3px 18px 0 rgba(17, 64, 116, 0.10);
  --shadow-hover: 0 4px 24px 0 rgba(17, 64, 116, 0.13);
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --transition: 0.25s cubic-bezier(.4,.2,.4,1);
  --container-max-w: 1200px;
  --container-padding: 20px;
  --focus-outline: 2px solid var(--color-secondary);
}

body {
  background: var(--color-accent);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.01em;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =======================================================================
   TYPOGRAPHY
======================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  font-weight: 600;
}
h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 500;
}
p, li {
  font-size: 1rem;
  color: var(--color-body);
}
p {
  margin-bottom: 16px;
  max-width: 740px;
}
strong, b {
  font-weight: 600;
  color: var(--color-heading);
}
blockquote {
  border-left: 3px solid var(--color-secondary);
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 16px 24px;
  margin: 24px 0;
  font-style: italic;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-soft);
}
.bullet-list,
ul.bullet-list {
  list-style: disc;
  margin-left: 1.4em;
  margin-bottom: 18px;
}
.bullet-list li {
  margin-bottom: 8px;
  color: var(--color-body);
  font-size: 1rem;
}
/* =======================================================================
   LAYOUT CONTAINERS & SECTIONS
======================================================================= */
.container {
  width: 100%;
  max-width: var(--container-max-w);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}
section {
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.card {
  background: var(--color-white);
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.012);
}
.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;
  background: var(--color-accent);
  box-shadow: var(--shadow-soft);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card span {
  color: var(--color-muted);
  font-style: italic;
  font-size: 0.98rem;
  margin-left: auto;
  font-family: var(--font-body);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.009);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 20px;
}
.feature-icon {
  min-width: 48px;
  max-width: 56px;
  margin-right: 10px;
  display: flex;
  align-items: center;
}
.feature-description {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 220px;
  min-width: 180px;
  margin-bottom: 12px;
}
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.text-section {
  background: var(--color-white);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 22px 20px;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.qualifications-overview {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  margin-top: 14px;
}
.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.contact-details, .contact-info-snippet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.contact-details p, .contact-info-snippet p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-body);
}
.map-snippet, .opening-hours {
  background: var(--color-accent);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 14px 16px;
  margin-bottom: 10px;
}


/* =============================
   HEADER & MAIN NAV
============================= */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1001;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-heading);
  font-size: 1rem;
  transition: color var(--transition);
  padding: 6px 5px;
  border-radius: var(--border-radius-sm);
  position: relative;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-secondary);
  outline: none;
}
header .cta-button {
  margin-left: 24px;
}
header img {
  height: 40px;
}

/* =============================
   CTA BUTTONS & LINKS
============================= */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-card);
  padding: 12px 32px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  margin-top: 8px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-secondary);
  color: var(--color-heading);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.01);
  outline: var(--focus-outline);
}
/* =============================
   FOOTER STYLING
============================= */
footer {
  margin-top: 60px;
  background: var(--color-white);
  box-shadow: 0 -1px 8px rgba(17,64,116,0.03);
  width: 100%;
  padding: 0 0 20px 0;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 32px;
  padding-bottom: 0;
  gap: 32px;
}
.footer-logo img {
  height: 36px;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--color-heading);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 2px 0;
  transition: color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}
.footer-contact, .footer-links, .footer-hours {
  color: var(--color-muted);
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.footer-contact p {
  margin-bottom: 4px;
}
.footer-links a {
  color: var(--color-muted);
  font-size: 0.98rem;
  transition: color var(--transition);
  margin-bottom: 2px;
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--color-primary);
  outline: none;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 8px;
}
.footer-social img {
  height: 23px;
  filter: grayscale(40%);
  transition: filter var(--transition), transform var(--transition);
}
.footer-social a:hover img,
.footer-social a:focus img {
  filter: none;
  transform: scale(1.13);
}

.footer-hours {
  font-size: 0.93rem;
  color: var(--color-muted);
}

/* =======================================================================
   RESPONSIVE DESIGN
======================================================================= */
@media (max-width: 1000px) {
  .container {
    max-width: 96vw;
  }
  footer .container {
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  header .container {
    flex-direction: row;
    gap: 12px;
    min-height: 58px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  section, .section {
    padding: 30px 5px;
    margin-bottom: 36px;
  }
  .feature-grid, .content-grid, .news-grid, .team-list, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  footer .container {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding-top: 18px;
  }
}
@media (max-width: 500px) {
  .cta-button {
    padding: 10px 15px;
    font-size: 0.98rem;
  }
  h1 {font-size: 2rem;}
  h2 {font-size: 1.4rem;}
}

/* ========================================================================
   MOBILE NAVIGATION BURGER
======================================================================= */
.mobile-menu-toggle {
  display: none;
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 2.1rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--color-accent);
  padding: 2px 14px 4px 14px;
  margin: 0 8px 0 0;
  cursor: pointer;
  z-index: 1301;
  box-shadow: var(--shadow-soft);
  transition: background var(--transition), color var(--transition); 
}
.mobile-menu-toggle:focus {
  outline: var(--focus-outline);
}
@media (max-width: 980px) {
  header nav, header .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(245,246,250, 0.98);
  z-index: 1500;
  box-shadow: 0 1px 20px rgba(17,64,116,0.15);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(.6,0,.4,1), transform 0.33s cubic-bezier(.78,0,.24,1);
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 4px 0;
  padding: 4px 16px 6px 16px;
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--border-radius-sm);
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-accent);
  transition: background var(--transition), color var(--transition);
  z-index: 1402;
}
.mobile-menu-close:focus {
  outline: var(--focus-outline);
}
.mobile-nav {
  width: 100%;
  padding-left: 32px;
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8vh;
  margin-bottom: 20px;
}
.mobile-nav a {
  font-size: 1.1rem;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 8px 12px 0;
  border-bottom: 1px solid #e8eaee;
  width: 100%;
  border-radius: 0 16px 16px 0;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  outline: none;
}

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

/* ========================================================================
   COOKIE CONSENT BANNER & MODAL
======================================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--color-white);
  box-shadow: 0 -2px 24px rgba(17,64,116,0.10);
  color: var(--color-body);
  z-index: 1999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 30px;
  min-height: 64px;
  font-size: 1rem;
  animation: cookieSlideIn 0.43s cubic-bezier(0.7,0,0.3,1);
}
@keyframes cookieSlideIn {
  0% { transform: translateY(60px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  padding: 9px 22px;
  margin-left: 8px;
  border: none;
  cursor: pointer;
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-banner button.accept {
  background: var(--color-secondary);
  color: var(--color-heading);
  font-weight: 600;
}
.cookie-banner button.reject {
  background: var(--color-accent);
  color: var(--color-muted);
  font-weight: 500;
}
.cookie-banner button.settings {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 500;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  box-shadow: var(--shadow-hover);
  outline: var(--focus-outline);
  background: var(--color-secondary);
  color: var(--color-heading);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 10px 12px 10px;
    font-size: 0.98rem;
  }
  .cookie-banner button {
    margin-left: 0;
    margin-top: 6px;
  }
}

/* ==== COOKIE PREFS MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2100;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(17,64,116,0.27);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.8,0,0.2,1);
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  max-width: 380px;
  width: 94vw;
  padding: 33px 28px 27px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: cookieModalAppear 0.38s cubic-bezier(0.6,0,0.4,1);
  position: relative;
}
@keyframes cookieModalAppear {
  0% { opacity: 0; transform: translateY(38px) scale(.93); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--color-body);
  margin-bottom: 2px;
}
.cookie-modal-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 3px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
}
.cookie-modal-toggle.disabled input[type="checkbox"] {
  accent-color: var(--color-muted);
  background: var(--color-accent);
}
.cookie-modal .modal-close {
  position: absolute;
  top: 6px;
  right: 12px;
  font-size: 1.6rem;
  background: none;
  color: var(--color-muted);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: var(--color-primary);
  background: var(--color-accent);
  outline: var(--focus-outline);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}
.cookie-modal .modal-actions button {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: var(--border-radius-sm);
  padding: 8px 22px;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-modal .modal-actions button.save {
  background: var(--color-secondary);
  color: var(--color-heading);
}
.cookie-modal .modal-actions button.cancel {
  background: var(--color-accent);
  color: var(--color-muted);
}
.cookie-modal .modal-actions button:hover, .cookie-modal .modal-actions button:focus {
  background: var(--color-secondary);
  color: var(--color-heading);
  box-shadow: var(--shadow-hover);
  outline: var(--focus-outline);
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 17px 7vw 22px 6vw;
    font-size: 0.98rem;
  }
}

/* ========================================================================
   MICROINTERACTIONS & ANIMATIONS
======================================================================= */
a,
.cta-button,
header nav a,
.mobile-menu-toggle,
.testimonial-card,
.card,
.card-container .card,
.feature-description {
  transition: 
    color var(--transition), 
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    outline var(--transition);
}

/* ========================================================================
   FORMS & ACCESSIBILITY
======================================================================= */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid #dde1e5;
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
  background: var(--color-white);
  margin-bottom: 12px;
  transition: border var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-secondary);
  outline: none;
}
button:focus,
.cta-button:focus {
  outline: var(--focus-outline);
}

/* ------------- End ------------- */