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

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
}
menu, ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  border-style: none;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  margin: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
}


/* ====== BRAND FONTS & VARIABLES ====== */
:root {
  --primary: #12345B;
  --secondary: #239087;
  --accent: #F4F6FB;
  --text-main: #222;
  --text-light: #555;
  --bg-main: #FFFFFF;
  --bg-section: #F4F6FB;
  --border-color: #D5D9E4;
  --shadow-main: 0 2px 12px rgba(18,52,91,0.06);
  --shadow-card: 0 4px 16px rgba(18,52,91,0.11);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 6px;
}
body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 110px; /* For the cookie banner on mobile */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.16;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

h1 { font-size: 2.25rem; margin-bottom: 18px; }
h2 { font-size: 1.6rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.08rem; }

p, ul li, ol li, .service-price {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
strong, b {
  font-weight: 700;
  color: var(--primary);
}

/* ====== CONTAINER & LAYOUT ====== */
.container {
  width: 100%;
  max-width: 1080px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* Section spacing: CRITICAL pattern */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
  transition: box-shadow .32s;
}
section:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  section {
    padding: 28px 8px;
    margin-bottom: 34px;
    border-radius: var(--radius-md);
  }
  .container {
    padding: 0 10px;
  }
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--bg-main);
  padding: 0;
  box-shadow: 0 4px 14px 0 rgba(18,52,91,0.07);
  z-index: 20;
  width: 100%;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  position: relative;
}

header img {
  height: 44px;
  width: auto;
  margin-right: 20px;
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom .22s, color .22s;
  letter-spacing: 0.04em;
  margin-right: 0;
}
.main-nav a:hover, .main-nav a:focus {
  border-bottom: 2px solid var(--secondary);
  color: var(--secondary);
  outline: none;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  background: var(--primary);
  color: #fff;
  font-family: 'Georgia', serif;
  font-size: 1.12rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(18,52,91,0.08);
  font-weight: 700;
  letter-spacing: 0.045em;
  border: none;
  outline: none;
  transition: background .21s, box-shadow .22s, color .22s;
  margin-left: 16px;
  margin-right: 0;
}
.cta-button:hover, .cta-button:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 18px rgba(35,144,135,0.14);
  outline: none;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: var(--primary);
  border: none;
  padding: 5px 12px;
  margin-left: 18px;
  transition: color .18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--secondary);
}

/* ======= MOBILE NAVIGATION ======= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,52,91,0.96);
  color: #fff;
  z-index: 2500;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.57,.07,.44,1.08);
  display: flex;
  flex-direction: column;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 24px 0 0;
  font-size: 2.6rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.86;
  transition: color 0.25s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
  opacity: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 42px;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
  padding-left: 32px;
  font-family: 'Georgia', serif;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: #fff;
  padding: 10px 8px 10px 0;
  border-radius: var(--radius-md);
  transition: background .16s, color .2s;
  letter-spacing: 0.045em;
  margin-right: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(35, 144, 135, 0.22);
  color: var(--accent);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 6px;
  }
  .main-nav {
    gap: 9px;
  }
  .cta-button {
    margin-left: 8px;
  }
}
@media (max-width: 820px) {
  .main-nav { gap: 5px; }
}
@media (max-width: 768px) {
  .main-nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    position: relative;
    z-index: 3;
  }
  header .container {
    min-height: 58px;
    gap: 7px;
  }
  .mobile-menu {
    display: flex;
  }
  .container {
    padding: 0 2vw;
  }
}


/* ===== MAIN STYLES ===== */
main {
  margin-top: 28px;
  margin-bottom: 60px;
  min-height: 65vh;
}

/* ==== CARDS & FLEX GRIDS (MANDATORY SPACING) ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 12px;
}
.feature {
  flex: 1 1 230px;
  min-width: 210px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px 20px 20px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: transform .18s, box-shadow .23s;
  border: 1px solid var(--border-color);
}
.feature img {
  width: 38px;
  height: 38px;
  margin-bottom: 5px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px #23908724);
}
.feature span, .feature strong, .feature h3 {
  color: var(--primary);
  font-family: 'Georgia', serif;
  font-size: 1.07rem;
}
.feature-grid .feature:hover,
.feature-grid .feature:focus {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 32px rgba(18,52,91,0.14);
  border-color: var(--secondary);
}

@media (max-width: 1100px) {
  .feature-grid {
    gap: 16px;
  }
  .feature { min-width: 175px; }
}
@media (max-width: 700px) {
  .feature-grid {
    flex-direction: column;
    gap: 22px;
  }
  .feature {
    width: 100%;
    min-width: unset;
    padding: 20px 14px 18px 14px;
  }
}

.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 18px 20px;
  transition: box-shadow .2s, transform .16s;
  border: 1px solid var(--border-color);
}
.card:hover,.card:focus {
  box-shadow: 0 10px 32px rgba(18,52,91,0.13);
  transform: translateY(-7px);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 15px;
  }
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0px;
}

/****** Service List Table Style ******/
.service-list {
  padding: 0;
  margin-top: 18px;
  margin-bottom: 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.service-list li {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 18px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-main);
  border-left: 5px solid var(--secondary);
  line-height: 1.55;
  position: relative;
  transition: box-shadow 0.28s, border-color 0.28s;
}
.service-list li span {
  font-size: 0.98rem;
  color: var(--secondary);
  font-family: 'Georgia', serif;
  margin-top: 4px;
}
.service-list li a {
  color: var(--primary);
  font-family: 'Georgia', serif;
  font-size: .97rem;
  border-bottom: 1px dashed var(--secondary);
  transition: color .2s, border .2s;
  margin-top: 4px;
  width: fit-content;
}
.service-list li a:hover, .service-list li a:focus {
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
  outline: none;
}

/******* Testimonial Cards ******/
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 6px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: var(--shadow-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  max-width: 415px;
  flex: 1 1 275px;
  min-width: 230px;
  position: relative;
  transition: box-shadow .19s;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.4;
}
.testimonial-card strong {
  color: var(--secondary);
  font-size: 1rem;
  font-family: 'Georgia', serif;
  letter-spacing: 0.01em;
  margin-top: 2px;
}
.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 8px; left: 16px;
  color: var(--primary);
  font-size: 2.6em;
  opacity: 0.09;
  pointer-events: none;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 28px rgba(35, 144, 135, 0.09);
}
@media (max-width: 820px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    min-width: unset;
    max-width: unset;
    width: 100%;
    padding: 16px 12px 16px 18px;
  }
}

/******* Feature Item (for value lists, etc.) *******/
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/****** For values, text-section, small *******/
.text-section {
  margin-top: 9px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section ul, .text-section ol {
  padding-left: 22px;
  margin-bottom: 13px;
}
.text-section li {
  margin-bottom: 7px;
}
.text-section .tagline {
  color: var(--secondary);
  font-family: 'Georgia', serif;
  font-size: 1.13rem;
  margin-top: 9px;
  margin-bottom: 0;
  letter-spacing: 0.035em;
}
small {
  color: #757b87;
  font-size: 0.98rem;
}

/****** Pricing badge ******/
.service-price {
  margin-top: 9px;
  background: var(--accent);
  padding: 7px 15px;
  border-radius: var(--radius-sm);
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.08rem;
  width: fit-content;
  display: inline-block;
}

/******* Footer ******/
footer {
  background: var(--primary);
  color: #fff;
  padding: 42px 0 22px 0;
  box-shadow: 0 -6px 28px rgba(18,52,91,0.08);
}
footer .container {
  flex-direction: row;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.footer-brand img {
  width: 38px;
  height: auto;
  margin-bottom: 4px;
}
.footer-brand p {
  color: #e6e6ef;
  font-size: 15px;
  font-family: 'Georgia', serif;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}
.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links nav a {
  color: #f6fcfc;
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  opacity: .87;
  transition: color .2s, opacity .2s;
  border-bottom: 1px dashed transparent;
}
.footer-links nav a:hover, .footer-links nav a:focus {
  color: var(--secondary);
  opacity: 1;
  border-bottom: 1px dashed var(--secondary);
}
.footer-contact p {
  font-size: 1rem;
  color: #dbe5f8;
  margin-bottom: 7px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

/********* Buttons, Links, Micro-interactions *********/
button, .cta-button {
  transition: background .2s, color .2s, box-shadow .2s, transform .18s;
}
a {
  transition: color .2s, border .2s;
}
::-webkit-input-placeholder { color:#858ab3; }
::-moz-placeholder { color:#858ab3; }
:-ms-input-placeholder { color:#858ab3; }
::placeholder { color:#858ab3; }

/********* Animations, subtle fade-in for main content *********/
main, section, .card, .feature, .testimonial-card {
  opacity: 0;
  animation: fadeIn 0.85s 0.07s cubic-bezier(.36,0,.17,1) forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: none; }
}

/*********** Cookie Consent Banner ***********/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -3px 18px rgba(18,52,91,0.10);
  padding: 24px 12px 22px 12px;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  font-family: 'Georgia', serif;
  border-top: 2px solid var(--secondary);
  animation: cookieFadeIn .38s cubic-bezier(.57,.07,.44,1.08);
}
@keyframes cookieFadeIn {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-banner__text {
  flex: 1;
  font-size: 1.06em;
  color: var(--primary);
  margin-right: 14px;
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-btn {
  padding: 7px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--secondary);
  color: #fff;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 6px rgba(35,144,135,0.08);
  transition: background .17s, color .16s, border .16s;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}
.cookie-btn.cookie-reject {
  background: #fff;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}
.cookie-btn.cookie-reject:hover,
.cookie-btn.cookie-reject:focus {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-btn.cookie-settings {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--border-color);
}
.cookie-btn.cookie-settings:hover,
.cookie-btn.cookie-settings:focus {
  background: var(--secondary);
  color: #fff;
  border: 1px solid var(--secondary);
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 17px 10px 14px 10px;
  }
  .cookie-banner__buttons {
    flex-direction: row;
    gap: 8px;
  }
}

/*********** Cookie Modal *************/
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,52,91,0.74);
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn .32s cubic-bezier(.57,.07,.44,1.08);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 58px rgba(18,52,91,0.19);
  padding: 32px 30px 22px 30px;
  max-width: 410px;
  width: 90vw;
  font-family: 'Georgia', serif;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: fadeIn .39s cubic-bezier(.57,.07,.44,1.08);
}
.cookie-modal__header {
  font-size: 1.26em;
  margin-bottom: 8px;
  font-weight: 700;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-modal__category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 20px;
  height: 20px;
}
.cookie-modal__desc {
  font-size: 1em;
}
.cookie-modal__close {
  align-self: flex-end;
  background: none;
  color: var(--secondary);
  border: none;
  font-size: 1.65em;
  margin-bottom: 10px;
  cursor: pointer;
  opacity: 0.68;
  transition: color .18s, opacity .22s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: var(--primary);
  opacity: 1;
}
.cookie-modal__footer {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
@media (max-width: 440px) {
  .cookie-modal {
    padding: 18px 5vw 12px 5vw;
    max-width: 99vw;
  }
}

/* ========== UTILITIES & ACCESSIBILITY ========== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
[tabindex="0"]:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 0.5px;
}
[role="button"], button, .cta-button {
  -webkit-tap-highlight-color: rgba(18,52,91,0.07);
}

/********** DOCUMENT HEADINGS, SMALL PAGES, ETC. *********/
main h1, main > .container > .content-wrapper > h1 {
  margin-top: 0;
  margin-bottom: 23px;
  font-size: 2.25rem;
  color: var(--primary);
  font-family: 'Georgia', serif;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 6px #f4f6fb34;
}
main h2 {
  margin-top: 0;
}
main h3, main h4 {
  color: var(--secondary);
}

/********* SUCCESS PAGE / THANK YOU ******/
.thank-you {
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 26px rgba(18,52,91,0.11);
  padding: 36px 22px;
  max-width: 600px;
  margin: 32px auto;
  text-align: center;
}

/***** Forms & Inputs (if added in future) *****/
input, textarea, select {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 9px 13px;
  font-size: 1rem;
  font-family: 'Georgia', serif;
  color: var(--primary);
  margin-bottom: 12px;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--secondary);
  border-color: var(--secondary);
}

/**** Miscellaneous adjustments ****/
a[target="_blank"]:after {
  content: ' ↗';
  font-size: 0.94em;
  vertical-align: super;
  color: var(--secondary);
  opacity: 0.45;
}

/**** Media Queries for wider content balance ****/
@media (max-width: 470px) {
  .feature-grid, .testimonial-slider, .card-container {
    gap: 13px;
  }
  section {
    padding: 12px 3vw;
  }
}

/* == END CSS == */
