/* --------------------------------------------------------------------------
   CSS RESET & BASE
----------------------------------------------------------------------------*/
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  outline: none;
  border: 0;
}
html, body {
  height: 100%;
  font-size: 16px;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #FFF;
  color: #23303A;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
a {
  color: #14647A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFD700;
}
ul, ol {
  list-style: disc inside;
  margin-bottom: 1.5em;
}
li + li {
  margin-top: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #14647A;
  font-weight: 700;
  margin-bottom: 0.8em;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin: 0.7em 0 0.5em 0;
}
h2 {
  font-size: 2rem;
  margin: 0.6em 0 0.5em 0;
}
h3 {
  font-size: 1.35rem;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p {
  margin: 0 0 1em 0;
}
strong {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   COLORS & CUSTOM PROPERTIES
----------------------------------------------------------------------------*/
:root {
  --color-primary: #14647A;
  --color-secondary: #E4F2F6;
  --color-accent: #FFD700;
  --color-bg: #FFF;
  --color-bg-soft: #F9F6F3;
  --color-shadow: rgba(70, 60, 40, 0.08);
  --color-section-bg: #FAF7F3;
  --color-error: #B71C1C;
}

/* --------------------------------------------------------------------------
   GLOBAL CONTAINERS & SPACING (Mobile-first)
----------------------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-section-bg);
  border-radius: 22px;
  box-shadow: 0 4px 18px var(--color-shadow);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  box-shadow: 0 2px 10px var(--color-shadow);
  border-radius: 20px;
  padding: 24px 20px;
}
.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: #FFF;
  border-radius: 18px;
  box-shadow: 0 3px 12px var(--color-shadow);
  padding: 20px;
  margin-bottom: 20px;
  color: #23303A;
  transition: box-shadow 0.25s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 30px rgba(51,34,16,.12);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION
----------------------------------------------------------------------------*/
header {
  background: #FFF;
  box-shadow: 0 2px 8px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 18px 16px 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 18px;
  color: #14647A;
  transition: background .18s, color .18s;
  display: flex;
  align-items: center;
}
.main-nav > a:hover:not(.cta):not([href="index.html"]), .main-nav > a:focus:not(.cta):not([href="index.html"]) {
  background: var(--color-accent);
  color: #4C3F10;
}
.main-nav > a.cta {
  background: var(--color-primary);
  color: #FFF;
  padding: 9px 20px;
  border-radius: 20px;
  font-weight: 700;
  margin-left: auto;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background .18s, color .18s, box-shadow .16s;
}
.main-nav > a.cta:hover, .main-nav > a.cta:focus {
  background: var(--color-accent);
  color: #14647A;
  box-shadow: 0 6px 20px rgba(255,215,0,0.14);
}
.main-nav img {
  height: 40px;
  width: auto;
  margin-right: 16px;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: flex;
  position: absolute;
  right: 24px;
  top: 22px;
  background: #FFD700;
  color: #14647A;
  font-size: 2rem;
  border: none;
  padding: 6px 12px;
  border-radius: 50%;
  box-shadow: 0 2px 8px var(--color-shadow);
  cursor: pointer;
  z-index: 30;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #f4ca21;
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245,231,219,0.97);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform .35s cubic-bezier(.67,.01,.47,1.07);
  z-index: 100;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #14647A;
  background: #FFD700;
  border-radius: 50%;
  border: none;
  width: 48px;
  height: 48px;
  margin: 20px 20px 10px 20px;
  cursor: pointer;
  align-self: flex-end;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background .18s, color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #f4ca21;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 40px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  color: #14647A;
  border-radius: 14px;
  padding: 15px;
  transition: background .18s, color .15s;
  text-align: left;
  margin: 0 0 5px 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #4C3F10;
}

/* Hide desktop nav on small screens, hide mobile by default */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 981px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   HERO & HEADINGS
----------------------------------------------------------------------------*/
.hero {
  background: linear-gradient(120deg, #FFE9BB 0%, #E4F2F6 67%, #fff 100%);
  border-radius: 0 0 36px 36px;
  box-shadow: 0 5px 24px var(--color-shadow);
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  width: 100%;
  margin-bottom: 38px;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 700px;
  gap: 12px;
}
.hero h1 {
  color: #14647A;
  font-size: 2.35rem;
  margin-bottom: .25em;
}
.hero p {
  color: #4f4e49;
  font-size: 1.18rem;
  margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   FEATURE GRID (Cards, Features, Offers etc.)
----------------------------------------------------------------------------*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.feature-grid > div {
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 2px 12px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 20px 22px 20px;
  min-width: 230px;
  flex: 1 1 250px;
  margin-bottom: 0px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 4px 24px #d2ccb8ae;
  transform: translateY(-4px) scale(1.015);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 7px;
}

/* --------------------------------------------------------------------------
   CTA BUTTONS & INTERACTIONS
----------------------------------------------------------------------------*/
.cta {
  display: inline-block;
  padding: 13px 28px;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 24px;
  background: #FFD700;
  color: #14647A;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.16s;
  cursor: pointer;
  border: none;
  margin-top: 14px;
}
.cta.primary {
  background: #14647A;
  color: #FFF;
}
.cta:hover, .cta:focus {
  background: #ffefa6;
  color: #7e660a;
  transform: translateY(-1.5px) scale(1.01);
  box-shadow: 0 4px 16px rgba(255,215,0,.18);
}
.cta.primary:hover, .cta.primary:focus {
  background: #FFD700;
  color: #14647A;
}

/* --------------------------------------------------------------------------
   LISTS, TABLES, CARDS, BLOG LISTS
----------------------------------------------------------------------------*/
table {
  width: 100%;
  border-spacing: 0;
  margin: 22px 0 24px 0;
  background: #FFF;
  border-radius: 15px;
  box-shadow: 0 2px 12px var(--color-shadow);
  overflow: hidden;
}
thead th {
  background: #E4F2F6;
  color: #14647A;
  font-family: 'Montserrat';
  font-weight: 700;
  font-size: 1.08rem;
  padding: 14px 8px;
}
tbody td {
  font-size: 1rem;
  color: #344043;
  padding: 11px 8px;
  border-bottom: 1px solid #EFEFEF;
}
tbody tr:last-child td {
  border-bottom: none;
}
ul {
  margin-left: 0px;
  padding-left: 18px;
}
li {
  margin-bottom: 6px;
  font-size: 1rem;
  color: #23303A;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 12px;
}
.blog-list li {
  background: #FFF8E1;
  border-radius: 17px;
  box-shadow: 0 1.5px 7px #ffe28c2e;
  padding: 18px 16px 17px;
  color: #23303A;
  margin: 0;
  transition: box-shadow 0.15s, transform 0.13s;
}
.blog-list li:hover, .blog-list li:focus-within {
  box-shadow: 0 4px 20px #ffe28c6e;
  transform: scale(1.01);
}
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.search-bar input {
  border-radius: 20px;
  border: 1px solid #E4F2F6;
  padding: 10px 14px;
  font-size: 1.03rem;
}
.search-bar button {
  border-radius: 20px;
  background: #FFD700;
  color: #14647A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 10px 22px;
  box-shadow: 0 1.8px 7px rgba(255,215,0,.05);
}
.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 20px;
}
.category-links a {
  padding: 9px 22px;
  border-radius: 16px;
  background: #E4F2F6;
  color: #14647A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: .98rem;
  font-weight: 500;
  transition: background .14s, color .15s;
}
.category-links a:hover, .category-links a:focus {
  background: #FFD700;
  color: #4C3F10;
}

/* Case Studies / References Cards */
.case-study {
  background: #FFF;
  border-radius: 19px;
  box-shadow: 0 3px 12px var(--color-shadow);
  padding: 18px 18px 20px 18px;
  margin-bottom: 20px;
  color: #23303A;
}
.case-study h3 {
  margin-bottom: 0.47em;
  color: #c98c00;
  font-size: 1.16rem;
}

/* --------------------------------------------------------------------------
   CONTACT & FOOTER
----------------------------------------------------------------------------*/
.contact-details, .opening-hours, .map-snippet {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
}
.contact-details img,
.opening-hours img,
.map-snippet img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  align-items: center;
  padding: 20px 0 5px 0;
}
.footer-nav a {
  color: #14647A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 7px 16px;
  border-radius: 14px;
  transition: background .15s, color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #FFD700;
  color: #4C3F10;
}
.footer-contact {
  text-align: center;
  color: #23303A;
  font-size: 0.94rem;
  padding-bottom: 24px;
  margin-top: 6px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   CTA Blocks (prominent call to action sections)
----------------------------------------------------------------------------*/
.cta-block {
  background: linear-gradient(90deg, #FFE9BB 15%, #E4F2F6 85%);
  border-radius: 28px;
  box-shadow: 0 4px 20px var(--color-shadow);
  padding: 44px 24px 38px 24px;
  margin-bottom: 50px;
}
.cta-block h2 {
  color: #14647A;
  font-size: 2rem;
}
.cta-block p {
  font-size: 1.17rem;
  color: #3b3932;
}

/* --------------------------------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
----------------------------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FFFDE7;
  color: #23303A;
  border-top: 4px solid #FFD700;
  box-shadow: 0 -2px 18px #bfa31427;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 14px 18px 14px;
  z-index: 5000;
  gap: 14px;
  animation: cookie-banner-in .6s cubic-bezier(.41,1.12,.49,.99);
}
@keyframes cookie-banner-in {
  0% { transform: translateY(100%); opacity: 0.85;}
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 16px;
  background: var(--color-primary);
  color: #FFF;
  padding: 9px 19px;
  margin: 0;
  border: none;
  cursor: pointer;
  transition: background .18s, color .14s, box-shadow .11s;
  box-shadow: 0 1px 7px #0001;
}
.cookie-banner button.settings {
  background: #FFD700;
  color: #14647A;
}
.cookie-banner button.reject {
  background: #c6b173;
  color: #443312;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #FFD700;
  color: #14647A;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 37, 10, .38);
  z-index: 5050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s cubic-bezier(.12,1.23,.42,.96);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #FFFDE7;
  color: #21221B;
  border-radius: 22px;
  box-shadow: 0 7px 40px rgba(70,52,18,0.18);
  padding: 38px 22px 28px 22px;
  max-width: 425px;
  width: 95%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-pop-in .44s cubic-bezier(.6,1,.46,1.1);
  position: relative;
}
@keyframes modal-pop-in {
  0% { transform: scale(1.1) translateY(60px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  color: #14647A;
  margin-bottom: 0.6em;
  font-size: 1.24rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.03rem;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #403d35;
  font-weight: 500;
  cursor: pointer;
}
.cookie-toggle {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: #E4F2F6;
  position: relative;
  margin-right: 2px;
  margin-left: 0;
  cursor: pointer;
  transition: background .15s;
  border: 1.5px solid #FFD700;
  flex-shrink: 0;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #FFD700;
  border-radius: 50%;
  transition: left .13s cubic-bezier(.65,.05,.36,1), background .18s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 20px;
  background: #14647A;
}
.cookie-btns {
  display: flex;
  gap: 13px;
  margin-top: 23px;
  justify-content: flex-end;
}
.cookie-modal .close-btn {
  position: absolute;
  top: 12px;
  right: 11px;
  font-size: 1.6rem;
  background: #FFD700;
  color: #14647A;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: none;
  cursor: pointer;
}
.cookie-modal .close-btn:hover, .cookie-modal .close-btn:focus {
  background: #f4ca21;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
----------------------------------------------------------------------------*/
@media (max-width: 1000px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
}
@media (max-width: 820px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .hero .content-wrapper,
  .content-wrapper {
    gap: 10px;
  }
  .section {
    padding: 28px 8px;
  }
  .cta-block {
    padding: 28px 9px 22px 9px;
  }
  .feature-grid > div {
    min-width: unset;
    width: 97%;
  }
  .footer-nav {
    flex-direction: column;
    gap: 9px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
  }
  .main-nav {
    display: none !important;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  .hero {
    min-height: 140px;
    padding: 18px 0;
  }
  .footer-contact {
    font-size: 0.89rem;
    padding-bottom: 12px;
  }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY FOCUS
----------------------------------------------------------------------------*/
a, button, input, .cta {
  outline: none;
}
a:focus, .cta:focus, button:focus, input:focus {
  outline: 2.5px solid #FFD700;
  outline-offset: 1.5px;
}

/* --------------------------------------------------------------------------
   PRINT OPTIMIZATION
----------------------------------------------------------------------------*/
@media print {
  .main-nav, .footer-nav, .cta, .cta-block, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  .container { max-width: unset; padding: 0; }
}
