/* ===== 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,
main, 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 {
  line-height: 1.5;
  background: #F9FAFB;
  color: #1C3F58;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

*, *:before, *:after {
  box-sizing: border-box;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

/* ===== FONT FACE (Google Fonts CDN recommended in HTML, fallback here) ===== */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@500;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --color-primary: #1C3F58;
  --color-secondary: #89A6C6;
  --color-accent: #F2EEDA;
  --color-bg: #F9FAFB;
  --color-white: #fff;
  --color-dark: #202935;
  --color-grey: #E5E9F3;
  --color-shadow: rgba(28,63,88,0.08);
  --color-nav: #eaf1f4;
  --radius-base: 10px;
  --radius-card: 20px;
  --shadow-md: 0 6px 24px var(--color-shadow);
  --shadow-btn: 0 4px 12px rgba(28,63,88,0.10);
  --transition: 0.24s cubic-bezier(.33,1,.68,1);
}

/* ===== CONTAINER & SECTION STRUCTURE ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 32px 8px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: .01em;
  text-align: left;
}
h1 {
  font-size: 2.75rem; /* 44px */
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 18px;
}
h3 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem; /* 18px */
}

p, li, .subheadline, .service-price {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-dark);
}

.subheadline {
  font-size: 1.25rem;
  color: var(--color-secondary);
  font-weight: 600;
}

strong {
  font-weight: 600;
}

/* Typography scale adjustment for mobile */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(136,167,196,.06);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 9px 8px;
  border-radius: 8px;
  transition: background .16s, box-shadow .15s;
  position: relative;
}
.main-nav a:hover:not(.cta-nav), .footer-nav a:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.main-nav .cta-nav {
  background: var(--color-secondary);
  color: var(--color-white);
  font-weight: 700;
  padding: 10px 26px;
  margin-left: 18px;
  border-radius: 15px;
  box-shadow: var(--shadow-btn);
  letter-spacing: 0.01em;
  transition: background .16s, box-shadow .18s, color .16s;
  border: 2.5px solid var(--color-secondary);
}
.main-nav .cta-nav:hover,
.main-nav .cta-nav:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-primary);
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 2rem;
  border-radius: 10px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 51;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
}

@media (max-width: 1000px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ==== MOBILE MENU OVERLAY ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--color-primary);
  box-shadow: 0 8px 30px rgba(28,63,88,.17);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: var(--color-white);
  font-size: 2.1rem;
  position: absolute;
  top: 20px;
  right: 26px;
  z-index: 110;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 90px;
  padding: 38px 30px 0 38px;
}
.mobile-nav a {
  font-family: 'Roboto Slab', serif;
  font-size: 1.3rem;
  color: var(--color-accent);
  font-weight: 700;
  padding: 12px 8px;
  border-radius: 12px;
  transition: background .22s, color .2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
@media (max-width: 600px) {
  .mobile-nav {
    padding-left: 18px;
    padding-right: 10px;
    font-size: 1.1rem;
    gap: 24px;
  }
  .mobile-menu-close {
    top: 10px; right: 10px;
    width: 40px; height: 40px;
    font-size: 1.6rem;
  }
}

/* ===== HERO / CTA BUTTONS ===== */
.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  text-align: center;
  padding: 12px 34px;
  border-radius: 16px;
  margin-top: 18px;
  font-size: 1.15rem;
  transition: background .18s, color .16s, box-shadow .15s, border .16s;
  cursor: pointer;
  letter-spacing: 0.02em;
  border: 2.5px solid transparent;
  box-shadow: var(--shadow-btn);
  outline: none;
}
.cta-primary {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-primary);
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}
.cta-secondary {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}
.cta-secondary:hover,
.cta-secondary:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* ======= CARD & FLEX PATTERNS ======= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  flex: 1 1 280px;
  min-width: 260px;
  transition: box-shadow 0.18s, transform 0.17s;
  border: 1.5px solid var(--color-grey);
}
.card:hover,
.card:focus-within {
  box-shadow: 0 12px 36px rgba(28,63,88,.14);
  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;
}
@media (max-width: 768px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

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

.testimonial-card {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  border: 1.7px solid var(--color-secondary);
  min-width: 250px;
  max-width: 440px;
  flex: 1 1 280px;
  font-size: 1.08rem;
  position: relative;
  transition: box-shadow .20s, transform .15s;
}
.testimonial-card span {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: .98rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-top: 3px;
  align-self: flex-end;
}
.testimonial-card .star-rating {
  display: flex;
  gap: 3px;
  align-items: center;
  margin-bottom: 8px;
}
.testimonial-card:hover {
  box-shadow: 0 14px 36px rgba(28,63,88,.16);
  transform: translateY(-4px) scale(1.012);
}

.benefits-grid, .service-comparison-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.benefits-grid > div, .service-comparison-highlights > div {
  background: var(--color-accent);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  padding: 18px 22px;
  flex: 1 1 240px;
  border: 1.5px solid var(--color-grey);
}
@media (max-width: 860px) {
  .benefits-grid, .service-comparison-highlights {
    flex-direction: column;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  font-size: 1.1rem;
}

/* ======= FEATURE LISTS ======= */
.feature-grid,
.services-list,
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 24px;
  margin: 24px 0 0 0;
  padding: 0;
}
.feature-grid li,
.services-list li,
.faq-list li {
  background: var(--color-white);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--color-grey);
  padding: 24px 18px 17px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 250px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  transition: box-shadow .18s, transform .14s;
}
.feature-grid li:hover,
.services-list li:hover,
.faq-list li:hover {
  box-shadow: 0 15px 36px rgba(28,63,88,.20);
  transform: translateY(-5px) scale(1.013);
}
.feature-grid img, .services-list img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--color-accent);
  border: 1.5px solid var(--color-secondary);
  padding: 4px;
}
.service-price {
  color: var(--color-primary);
  background: var(--color-accent);
  border-radius: 8px;
  padding: 7px 17px;
  font-weight: bold;
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 1.08rem;
  border: 1px solid var(--color-secondary);
}

@media (max-width: 860px) {
  .feature-grid,
  .services-list,
  .faq-list {
    flex-direction: column;
    gap: 20px 0;
  }
}

/* ===== PRICING TABLE ===== */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 9px;
  margin: 14px 0 28px 0;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 1px 9px rgba(136,167,196,0.06);
  text-align: left;
  font-size: 1.07rem;
}
.pricing-table th, .pricing-table td {
  padding: 16px 24px 16px 18px;
  background: var(--color-white);
}
.pricing-table th {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-accent);
  border-radius: 8px 8px 0 0;
  font-size: 1.15rem;
}
.pricing-table tbody tr {
  border-bottom: 1px solid var(--color-grey);
}
.pricing-table td {
  border-top: 0;
}
.pricing-table tr:last-child td {
  border-radius: 0 0 8px 8px;
}

.disclaimer-note {
  color: var(--color-secondary);
  font-size: 0.98rem;
  margin-top: 10px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 32px 0 18px 0;
  margin-top: 54px;
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
footer img {
  min-width: 54px;
  height: 54px;
  margin-right: 16px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a {
  color: var(--color-accent);
  font-size: 1rem;
  opacity: .9;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .15s, color .16s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
footer p {
  font-size: .98rem;
  opacity: .88;
  flex: 1 1 100%;
  margin-top: 18px;
}
@media (max-width: 860px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  footer nav {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===== PAGE UTILITY CLASSES ===== */
.step-by-step-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 0;
}
.step-by-step-timeline ol {
  list-style: decimal;
  padding-left: 25px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.step-by-step-timeline p {
  color: var(--color-secondary);
  font-size: 1.1rem;
  margin-top: 9px;
}

/* ====== TABLES, LISTS, MISC ===== */
.text-section ul, .text-section ol, .content-wrapper ul, .faq-list ul, .services-list ul, .content-wrapper ol {
  margin-left: 16px;
  margin-bottom: 7px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section ul {
  list-style: disc inside;
}

/* ===== ACCESSIBILITY ===== */
:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ======= COOKIE CONSENT ======= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 -2px 18px rgba(28,63,88,.13);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  gap: 28px;
  font-size: 1rem;
  flex-wrap: wrap;
  transition: transform .36s var(--transition);
}
.cookie-banner[hidden] {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0;
  display: flex;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  background: var(--color-accent);
  border: 2px solid var(--color-secondary);
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-primary);
  border-radius: 12px;
  padding: 7px 22px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-btn);
  margin-right: 4px;
  transition: background .17s, color .17s, border .15s;
}
.cookie-btn--accept {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 2px solid var(--color-primary);
}
.cookie-btn--accept:hover, .cookie-btn--accept:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
  border-color: var(--color-secondary);
}
.cookie-btn--reject {
  background: var(--color-secondary);
  color: var(--color-white);
  border: 2px solid var(--color-secondary);
}
.cookie-btn--reject:hover, .cookie-btn--reject:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}
.cookie-btn--settings {
  background: var(--color-accent);
}
.cookie-btn--settings:hover,
.cookie-btn--settings:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    font-size: 0.97rem;
    padding: 18px 8px;
    align-items: flex-start;
  }
  .cookie-banner__actions {
    gap: 12px;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3500;
  background: rgba(28,63,88,0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity .22s ease;
}
.cookie-modal[hidden] {
  pointer-events: none;
  opacity: 0;
  display: flex;
}

.cookie-modal__content {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 24px;
  box-shadow: 0 14px 44px rgba(28,63,88,0.13);
  max-width: 420px;
  width: 96%;
  padding: 38px 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1.04rem;
  min-width: 260px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  color: var(--color-secondary);
  font-size: 2.0rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center; justify-content: center;
  transition: background .13s, color .12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-modal__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.cookie-modal__toggle label {
  font-family: 'Open Sans', Arial, sans-serif;
  cursor: pointer;
}
/* Toggle switch for cookies */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  margin-right: 7px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--color-grey);
  border-radius: 34px;
  transition: background .18s;
}
.switch-slider:before {
  position: absolute;
  content: '';
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: var(--color-secondary);
  border-radius: 50%;
  transition: transform .18s, background .17s;
}
.switch input:checked + .switch-slider {
  background: var(--color-secondary);
}
.switch input:checked + .switch-slider:before {
  transform: translateX(18px);
  background: var(--color-primary);
}

.cookie-modal__actions {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}
@media (max-width: 480px) {
  .cookie-modal__content {
    padding: 22px 8px 18px;
  }
}

/* ======== GEOMETRIC VISUAL ELEMENTS ======= */
/* Subtle diagonal geometric accent for visual hierarchy (decorative only) */
.hero-geoshape {
  position: absolute;
  right: -100px;
  top: -60px;
  width: 340px;
  height: 190px;
  background: var(--color-secondary);
  border-radius: 120px 40px 110px 35px/100px 75px 40px 90px;
  opacity: 0.09;
  pointer-events: none;
  z-index: 1;
  filter: blur(2px);
}

/* ====== ANIMATION & INTERACTIONS ====== */
.cta-primary, .cta-secondary,
.card, .testimonial-card, .feature-grid li, .services-list li, .faq-list li, .cookie-banner, .cookie-modal__content {
  transition: box-shadow .2s, background .22s, color .18s, transform .16s;
}

a, .cta-primary, .cta-secondary, .main-nav a, .cookie-btn, .mobile-nav a {
  transition: background .16s, color .15s, box-shadow .15s;
}

/* Subtle card hover animation handled above in .card:focus, .card:hover */

/* ===== ACCESSIBLE HIDE FOR JS, MODALS, BANNERS ===== */
[hidden] { display: none !important; }

/* ======= MEDIA QUERIES FOR RESPONSIVENESS ======= */
@media (max-width: 1000px) {
  .container {
    max-width: 98vw;
  }
  .main-nav {
    display: none;
  }
  .footer-nav {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .hero-geoshape { width: 160px; height: 80px; right: -40px; top: -30px; }
  .content-wrapper { gap: 22px; }
}
@media (max-width: 520px) {
  .footer-nav { gap: 8.5px; }
  .footer-nav a { font-size: 14px; }
  .card, .testimonial-card, .benefits-grid > div { min-width: 0; }
}

/* ======= GEOMETRIC ANGULAR FONTS & BUTTONS ======= */
.cta-primary, .cta-secondary, .card, .testimonial-card, .feature-grid li, .services-list li {
  border-radius: 18px 5px;
}
h1, h2, h3, .card h2, .feature-grid h3, .testimonial-card p, .cta-primary, .card h2, .feature-grid h3, .main-nav a, .mobile-nav a {
  font-family: 'Roboto Slab', serif;
  font-feature-settings: 'ss02' on, 'zero' on, 'tnum';
}

/* ===== SPECIAL CLASSES (from HTML structure) ===== */
.contact-info {
  background: var(--color-accent);
  border-radius: 14px;
  padding: 18px 26px;
  font-size: 1.1rem;
  border: 1.5px solid var(--color-secondary);
  box-shadow: 0 3px 18px rgba(28,63,88,.04);
  margin-bottom: 20px;
}
.contact-info ul { gap: 7px; margin-top: 10px; }

/* ====== EXTRAS: Accessibility focus for all buttons/links ====== */
a:focus, button:focus, .cookie-btn:focus, .mobile-menu-close:focus {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ===== MISC UTILITIES ===== */
.text-center {
  text-align: center;
}

/* Hide scroll for mobile menu when open */
body.mobile-menu-open {
  overflow: hidden;
  height: 100vh;
}
