/* ====================
   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;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8FAFB;
  color: #183152;
  font-family: 'Roboto', serif;
  font-size: 16px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #2176AE;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #183152;
}
ul, ol {
  padding-left: 20px;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 14px 22px;
  text-align: left;
  font-size: 16px;
}
th {
  background: #E6F2FB;
  font-weight: bold;
  font-family: 'Montserrat', serif;
  color: #183152;
}
tr:nth-child(even) {
  background: #F3F7FA;
}
tr:nth-child(odd) {
  background: #FFF;
}

/* ========================
   ROOT VARIABLES
====================== */
:root {
  --color-primary: #2176AE;
  --color-primary-dark: #184F74;
  --color-secondary: #183152;
  --color-accent: #E6F2FB;
  --color-bg: #F8FAFB;
  --color-white: #fff;
  --color-gray: #7D91A0;
  --color-muted: #D9E3EB;
  --font-display: 'Montserrat', 'Georgia', serif;
  --font-body: 'Roboto', 'Georgia', serif;
  --shadow-soft: 0 2px 8px 0 rgba(24,49,82,0.09);
  --shadow-card: 0 4px 16px 0 rgba(24,49,82,0.13);
  --radius: 12px;
  --radius-sm: 7px;
  --transition: all 0.18s cubic-bezier(.4,.17,.4,1);
  --section-spacing: 60px;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--color-secondary);
  letter-spacing: 0.02em;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 22px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
h5 {
  font-size: 1rem;
  margin-bottom: 6px;
}
p {
  margin-bottom: 14px;
  font-size: 1.125rem;
}
strong, b {
  font-weight: 700;
}

.section ul, .section ol, .content-wrapper ul, .content-wrapper ol {
  margin-bottom: 16px;
  padding-left: 24px;
  font-size: 1rem;
}
.section ul li, .section ol li, .content-wrapper ul li, .content-wrapper ol li {
  margin-bottom: 7px;
}

blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 18px;
  font-style: italic;
  color: #4D6478;
  margin-bottom: 18px;
}

dl, dt, dd {
  margin-bottom: 8px;
  font-size: 1rem;
}
dt {
  font-weight: bold;
  margin-top: 10px;
}

dd {
  margin-left: 0;
}

/* =======================
   CONTAINER & LAYOUTS
======================= */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 18px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
}
.card:hover {
  box-shadow: 0 8px 24px 0 rgba(24,49,82,0.16);
  transform: translateY(-3px);
}

.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;
  background: var(--color-accent);
  color: var(--color-secondary);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 360px;
  flex: 1 1 300px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(24,49,82,0.14);
  transform: translateY(-3px) scale(1.03);
}
.testimonial-card .star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 2px;
}
.testimonial-card p {
  color: var(--color-secondary);
  margin: 0 0 10px;
  font-style: italic;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--color-primary-dark);
  font-family: var(--font-display);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* For testimonials section (row layout with gap) */
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-card {
  background: var(--color-accent);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-sm);
  padding: 26px 20px 23px 20px;
  min-width: 240px;
  max-width: 330px;
  flex: 1 1 280px;
  transition: box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}
.feature-card img {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
}
.feature-card:hover {
  box-shadow: 0 12px 32px 0 rgba(24,49,82,0.13);
  transform: translateY(-2px);
}

.about-snippet, .about-section, .values-section, .team-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ===================
   HERO SECTION
=================== */
.hero {
  padding: 50px 0 35px 0;
  margin-bottom: 50px;
  background: var(--color-accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 5px 22px 0 rgba(24,49,82,0.04);
}
.hero .content-wrapper {
  gap: 12px;
}
.hero h1 {
  color: var(--color-primary-dark);
}
.hero p {
  color: var(--color-secondary);
  font-size: 1.20rem;
}

/* ===============
   CTA BUTTONS
================ */
.cta-btn {
  font-family: var(--font-display);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 13px 34px;
  border-radius: 36px;
  font-size: 1.10rem;
  font-weight: 500;
  margin-top: 8px;
  box-shadow: 0 2px 12px 0 rgba(33,118,174,0.08);
  border: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.21s, box-shadow 0.23s, color 0.17s, transform 0.12s;
  letter-spacing: 0.03em;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 6px 24px 0 rgba(33,118,174,0.15);
  transform: translateY(-1.5px) scale(1.021);
}

/* ==========================
   HEADER & NAVIGATION
========================== */
header {
  background: var(--color-white);
  box-shadow: 0 2px 9px 0 rgba(24,49,82,0.06);
  padding: 0;
  position: sticky;
  z-index: 101;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--color-secondary);
  padding: 8px 9px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1.05rem;
  transition: var(--transition);
  position: relative;
}
.main-nav a.cta-btn {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 13px 32px;
  margin-left: 16px;
  border-radius: 38px;
  font-size: 1.07rem;
  box-shadow: 0 2px 10px 0 rgba(33,118,174,0.07);
}
.main-nav a:not(.cta-btn):hover, .main-nav a:not(.cta-btn):focus {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.main-nav a.cta-btn:hover, .main-nav a.cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.16s;
  z-index: 203;
  padding: 0 12px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--color-secondary);
}

/* ========================================
   MOBILE MENU OVERLAY (Hamburger Nav)
======================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23, 42, 70, 0.95);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.75,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  overflow-y: auto;
  width: 100vw;
  height: 100vh;
  will-change: transform;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.4rem;
  margin: 24px 24px 12px 0;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.18s;
  z-index: 205;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  opacity: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 36px 0 0;
  align-items: flex-end;
}
.mobile-nav a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  background: none;
  border-radius: 7px;
  padding: 10px 16px;
  width: 100%;
  display: block;
  text-align: right;
  transition: background 0.13s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-primary);
  color: var(--color-white);
}

@media(max-width: 1080px) {
  .container {
    max-width: 960px;
  }
  .main-nav {
    gap: 14px;
  }
  .feature-card, .testimonial-card {
    min-width: 200px;
  }
}

/* =====================
   FOOTER
==================== */
footer {
  background: var(--color-accent);
  color: var(--color-secondary);
  font-size: 1rem;
  margin-top: 50px;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -2px 10px 0 rgba(24,49,82,0.03);
}
footer .container {
  padding-top: 34px;
  padding-bottom: 18px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}
.footer-logo img {
  width: 88px;
  height: auto;
  margin-bottom: 11px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  transition: color 0.14s;
  font-size: 1rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-primary);
}
.footer-contact {
  font-size: 0.98rem;
  color: var(--color-secondary);
  margin-bottom: 2px;
}
.footer-contact a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  transition: color 0.13s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
}
.footer-social a img {
  width: 32px;
  height: 32px;
  filter: grayscale(56%);
  opacity: 0.85;
  transition: filter 0.14s, opacity 0.13s;
}
.footer-social a:hover img {
  filter: grayscale(0%) brightness(115%);
  opacity: 1;
}
.footer-bottom {
  text-align: center;
  padding: 8px 0;
  font-size: 0.93rem;
  color: var(--color-gray);
  border-top: 1px solid #d8e4ef;
  letter-spacing: 0.01em;
}

/* =============
 CTA SECTIONS
============== */
.cta-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.cta-section h2, .cta-section h3 {
  color: var(--color-white);
}
.cta-section p, .cta-section li {
  color: #e7eff9;
}
.cta-section .cta-btn {
  margin-top: 13px;
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 2px 12px 0 rgba(255,255,255,0.10);
}
.cta-section .cta-btn:hover, .cta-section .cta-btn:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* ==============
   CONTACT PAGE
=============== */
.address-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-accent);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
}
.address-card img {
  width: 28px;
  height: 28px;
  display: block;
}
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 38px;
  margin-bottom: 10px;
}
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-details img {
  width: 22px;
  height: 22px;
}
.opening-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 11px 0 13px 0;
}
.opening-hours img {
  width: 22px;
  height: 22px;
}
.map-link {
  margin-top: 14px;
}
.map-link a {
  font-size: 1.06rem;
  color: var(--color-primary);
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--color-accent);
  transition: background 0.15s, color 0.14s;
}
.map-link a:hover, .map-link a:focus {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ================
  PRICING TABLE
================ */
.pricing table {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 30px;
}
.pricing th, .pricing td {
  border: none;
}
.pricing tr td {
  color: var(--color-secondary);
}

/* ================
 LEGAL SECTIONS
================ */
.legal-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  color: var(--color-secondary);
}
.legal-section h2 {
  margin-top: 18px;
}
.legal-section h3 {
  margin-top: 11px;
  font-size: 1.15rem;
}

/* ===============
   THANK YOU PAGE
================ */
.thank-you-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  color: var(--color-secondary);
}
.thank-you-section .cta-btn {
  background: var(--color-primary);
  color: #FFF;
}
.thank-you-section .cta-btn:hover, .thank-you-section .cta-btn:focus {
  background: #183152;
}

/* ========================
   COOKIE CONSENT BANNER
======================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  background: var(--color-white);
  border-top: 1px solid #cfd8df;
  box-shadow: 0 -2px 24px 0 rgba(24,49,82,0.14);
  padding: 28px 16px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 90px;
  font-size: 1.09rem;
  transition: transform 0.25s cubic-bezier(.55,.08,.52,1), opacity 0.18s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  color: var(--color-secondary);
  font-size: 1rem;
  max-width: 670px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.cookie-btn {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 30px;
  padding: 9px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, box-shadow 0.13s;
  margin-left: 0;
  outline: none;
}
.cookie-btn.secondary {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: 1px solid var(--color-primary);
}
.cookie-btn.settings {
  background: var(--color-white);
  color: var(--color-primary-dark);
  border: 1px solid #C4DBE9;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--color-primary);
  color: var(--color-white);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ------------------
Cookie Popup Modal
------------------- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 5001;
  inset: 0;
  background: rgba(24,49,82,0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 8px 54px 0 rgba(24,49,82,0.16);
  max-width: 420px;
  width: 94vw;
  padding: 32px 28px 20px 28px;
  color: var(--color-secondary);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  animation: fadeIn 0.36s cubic-bezier(.44,.22,.44,1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97) translateY(24px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  color: var(--color-primary-dark);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.62;
  transition: opacity 0.13s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  opacity: 1;
}
.cookie-modal h2 {
  margin-bottom: 15px;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--color-primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0 9px 0;
  border-bottom: 1px solid #e7ecf2;
  font-size: 1.02rem;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal .cookie-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cookie-modal .cookie-toggle input[type="checkbox"]:disabled + label {
  opacity: 0.50;
  font-style: italic;
}
.cookie-modal .cookie-actions-modal {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

/* =========================
   MEDIA QUERIES
========================= */

@media (max-width: 1024px) {
  .container {
    max-width: 91vw;
  }
  .footer-main {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 7px;
    padding: 0 8px;
  }
  .footer-main {
    flex-wrap: wrap;
    gap: 18px;
  }
  .content-grid, .testimonials .content-wrapper, .features .feature-grid, .card-container {
    flex-wrap: wrap;
  }
}

@media (max-width: 850px) {
  .container {
    max-width: 97vw;
    padding: 0 6px;
  }
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-card, .testimonial-card {
    min-width: 98vw;
    max-width: 98vw;
  }
  .section, .about-snippet, .about-section, .values-section, .team-section, .legal-section, .thank-you-section, .cta-section {
    padding: 24px 5vw;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
    margin-bottom: 8px;
  }
}

@media (max-width: 700px) {
  .testimonials .content-wrapper, .features .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .address-card, .contact-details, .opening-hours {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

@media (max-width: 645px) {
  h1 { font-size: 2.09rem; }
  h2 { font-size: 1.44rem; }
  .hero {
    padding: 28px 0 22px 0;
  }
  .container {
    padding: 0 5px;
  }
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  body, th, td {
    font-size: 0.96rem;
  }
  .section, .about-snippet, .about-section, .values-section, .team-section, .legal-section, .thank-you-section, .cta-section {
    padding: 12px 2vw;
  }
  h1 { font-size: 1.27rem; }
  h2 { font-size: 1.03rem; }
  .footer-contact, .footer-bottom, .footer-nav {
    font-size: 0.94rem;
  }
  .mobile-menu {
    font-size: 1.017rem;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    text-align: left;
    padding: 17px 8px;
    font-size: 0.96rem;
  }
  .cookie-modal {
    width: 98vw;
    padding: 18px 7px 11px 7px;
  }
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
