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

html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #FAFAFA;
  color: #263041;
}
a {
  color: #184878;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #4DAC67;
  text-decoration: underline;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
  padding-left: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- 2. Font Load (Serif for Elegant Classic) --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Roboto:ital,wght@0,400;0,500;1,400&display=swap');

body {
  font-family: 'Roboto', Georgia, serif;
  font-size: 1rem;
  background: #F7F8FA;
  color: #222;
}
h1, h2, h3, .logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: #184878;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
  line-height: 1.18;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  line-height: 1.25;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #29425F;
}
p, li, span {
  font-size: 1rem;
  line-height: 1.65;
  color: #263041;
}
strong {
  font-weight: 500;
}

/* --- 3. Containers and Layouts (Flexbox Only) --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 9px rgba(24, 72, 120, 0.09);
  padding: 32px 24px;
  transition: box-shadow .22s, transform .22s;
}
.card:hover, .feature-card:hover, .service-card:hover {
  box-shadow: 0 6px 24px rgba(24, 72, 120, 0.13);
  transform: translateY(-4px) scale(1.03);
}
.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;
}

/* --- 4. Header & Navigation --- */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(24, 72, 120, .04);
  position: relative;
  z-index: 50;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: #184878;
  padding: 8px 0 8px 0;
  letter-spacing: .02em;
  border: none;
  background: none;
  position: relative;
  transition: color .18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #4DAC67;
}
.main-nav .cta-primary {
  margin-left: 16px;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  padding: 8px 12px;
  color: #184878;
  transition: background .15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #EAF0F5;
  border-radius: 8px;
}

/* --- 5. Mobile Navigation --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: rgba(24, 72, 120, 0.96);
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.77,0,.18,1);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
  width: 100vw;
  gap: 24px;
  box-sizing: border-box;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  margin-bottom: 20px;
  align-self: flex-end;
  transition: color .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #4DAC67;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  border-radius: 6px;
  padding: 14px 0 14px 8px;
  transition: background .18s, color .12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #4DAC67;
  color: #fff;
}
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- 6. Hero Section --- */
.hero {
  background: #EAF0F5;
  min-height: 320px;
  padding: 60px 0 40px 0;
  display: flex;
  align-items: center;
  margin-bottom: 48px;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 650px;
  gap: 18px;
}
.hero h1 {
  font-size: 2.8rem;
  color: #184878;
}
.hero-subheadline {
  font-size: 1.25rem;
  color: #295389;
  margin-bottom: 10px;
  font-family: 'Roboto', serif;
}

/* --- 7. Buttons/Cta --- */
.cta-primary, .cta .cta-primary, .main-nav .cta-primary {
  display: inline-block;
  background: #184878;
  color: #fff !important;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.10rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 26px;
  margin-top: 5px;
  letter-spacing: 0.01em;
  transition: background .18s, color .18s, box-shadow .18s, transform .13s;
  box-shadow: 0 2px 10px rgba(24, 72, 120, 0.11);
  border: none;
  cursor: pointer;
  text-align: center;
  margin-bottom: 0;
}
.cta-primary:hover, .cta-primary:focus {
  background: #4DAC67;
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(76,172,103,0.13);
  transform: translateY(-3px);
}

/* --- 8. Feature Cards, Grids, Service Cards --- */
.features-grid, .services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 30px 0;
  justify-content: flex-start;
}
.feature-card, .service-card {
  flex: 1 0 260px;
  max-width: 340px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(32,64,128, .08);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow .22s;
  border: 1px solid #EAF0F5;
}
.feature-card img, .service-card img {
  width: 44px;
  height: 44px;
}
.service-card h2, .feature-card h3 {
  font-size: 1.2rem;
  font-family: 'Playfair Display', Georgia, serif;
  color: #184878;
  margin-bottom: 5px;
}
.service-card .service-price {
  color: #4DAC67;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 5px;
}

/* --- 9. Lists, USPs --- */
.usp-list {
  margin: 24px 0 0 0;
  padding-left: 0;
  list-style: none;
}
.usp-list li {
  margin-bottom: 10px;
  padding-left: 0;
  position: relative;
  font-size: 1.04rem;
  color: #184878;
}
.usp-list li strong {
  color: #4DAC67;
}
.feature-list {
  padding-left: 0;
  margin-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.feature-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 26px;
  font-size: 1rem;
  color: #263041;
}
.feature-list li:before {
  content: "✔";
  color: #4DAC67;
  position: absolute;
  left: 0; top: 0;
  font-size: 1rem;
  font-weight: bold;
}

/* --- 10. Testimonials & Review Cards --- */
.testimonials {
  background: #F7F8FA;
  margin-bottom: 64px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 24px 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 26px;
  min-width: 220px;
  max-width: 340px;
  box-shadow: 0 2px 15px rgba(24, 72, 120, 0.06);
  color: #263041;
  font-size: 1.03rem;
}
.testimonial-card p {
  margin-bottom: 2px;
  color: #263041;
  font-style: italic;
}
.testimonial-card span {
  font-size: 1rem;
  color: #4DAC67;
  font-family: 'Playfair Display', Georgia, serif;
}
.rating-summary {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: #184878;
  margin: 18px 0;
  letter-spacing: .03em;
  font-weight: 700;
}
.success-story {
  background: #EAF0F5;
  border-radius: 14px;
  padding: 20px 22px;
  margin-top: 22px;
  color: #184878;
  font-family: 'Roboto', Georgia, serif;
  box-shadow: 0 2px 10px rgba(76,172,103,0.03);
}
.success-story h3 {
  color: #184878;
  margin-bottom: 7px;
  font-size: 1.1rem;
}

/* --- 11. About/Philosophy/Contact Special Sections --- */
.text-section {
  margin-bottom: 24px;
}
.text-section h2, .text-section h3 {
  margin-bottom: 6px;
}
.text-section ul {
  padding-left: 0;
}
.contact-section .contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-section .contact-details .text-section {
  flex: 1 1 320px;
  min-width: 220px;
}
.contact-section .contact-info {
  margin-top: 24px;
}
.contact-details ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 1rem;
}
.contact-details ul img {
  width: 22px;
  height: 22px;
}

/* --- 12. Footer --- */
footer {
  background: #184878;
  color: #fff;
  padding: 50px 0 24px 0;
  font-size: .97rem;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 330px;
  color: #fff;
}
.footer-brand img {
  width: 44px;
  margin-bottom: 6px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  flex: 0 0 150px;
  gap: 16px;
}
.footer-nav a {
  color: #EAF0F5;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #4DAC67;
  text-decoration: underline;
}

/* --- 13. Cookie Consent Banner and Modal --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(24, 72, 120, 0.11);
  color: #222;
  z-index: 9990;
  padding: 24px 16px 16px 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: cookieBannerFadeIn 0.7s cubic-bezier(.71,.02,.4,1);
}
@keyframes cookieBannerFadeIn {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #263041;
  font-size: 1rem;
  margin-bottom: 0;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-banner button {
  background: #184878;
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: 'Playfair Display', Georgia, serif;
  transition: background .2s;
}
.cookie-btn.reject {
  background: #263041;
}
.cookie-btn.settings {
  background: #4DAC67;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #4DAC67;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #184878;
  color: #fff;
}
@media (max-width: 500px) {
  .cookie-buttons {
    flex-direction: column;
    gap: 9px;
    width: 100%;
  }
  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}

.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #fff;
  color: #263041;
  z-index: 10050;
  border-radius: 20px;
  padding: 30px 26px 24px 26px;
  max-width: 90vw;
  width: 410px;
  box-shadow: 0 2px 30px rgba(24,72,120,0.16);
  display: none;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalIn .34s cubic-bezier(.66,.01,.22,1);
}
.cookie-modal.open {
  display: flex;
}
@keyframes cookieModalIn {
  from { transform: translate(-50%,20%) scale(0.95); opacity: 0.4; }
  to { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}
.cookie-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cookie-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #184878;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 7px;
  transition: color .2s, background .2s;
}
.cookie-close-btn:hover, .cookie-close-btn:focus {
  color: #fff;
  background: #4DAC67;
}
.cookie-modal h2 {
  font-size: 1.22rem;
  margin-bottom: 7px;
  color: #184878;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
}
.cookie-modal .cookie-category label {
  flex: 1 1 auto;
  font-size: 1rem;
  color: #184878;
}
.cookie-modal .cookie-category input[type=checkbox] {
  accent-color: #4DAC67;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  margin-right: 4px;
}
.cookie-modal .cookie-category.essential label {
  color: #184878;
  font-weight: bold;
}
.cookie-modal .cookie-category.essential input[type=checkbox] {
  accent-color: #184878;
}
.cookie-category .category-desc {
  font-size: 0.97rem;
  color: #263041;
  margin-left: 7px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 120px;
}

/* --- 14. Thank You Page --- */
.thank-you-section {
  padding: 80px 0 60px 0;
  background: #EAF0F5;
  text-align: center;
}
.thank-you-section h1 {
  color: #184878;
  margin-bottom: 20px;
}

/* --- 15. Terms & Policy Section Styling --- */
.terms-section, .privacy-section {
  padding: 48px 0 32px 0;
  background: #fff;
}
.terms-section h1, .privacy-section h1 {
  color: #184878;
  font-size: 2rem;
  margin-bottom: 18px;
}
.terms-section h2, .privacy-section h2 {
  color: #29425F;
  font-size: 1.08rem;
  margin-top: 18px;
  margin-bottom: 9px;
  font-family: 'Playfair Display', Georgia, serif;
}
.terms-section ul, .privacy-section ul {
  margin-left: 0;
  padding-left: 18px;
  margin-bottom: 12px;
}

/* --- 16. Content Spacing Utilities & Patterns --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- 17. Blockquote, Citations --- */
blockquote {
  border-left: 4px solid #4DAC67;
  padding-left: 16px;
  margin: 20px 0 18px 0;
  color: #263041;
  font-style: italic;
  background: #EAF0F5;
  border-radius: 8px;
  padding-top: 10px;
  padding-bottom: 8px;
}
cite {
  color: #4DAC67;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
}

/* --- 18. Responsive Design (Mobile-First) --- */
@media (max-width: 1024px) {
  .features-grid, .services-grid {
    gap: 18px;
  }
  .footer-flex {
    gap: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 850px) {
  .hero h1 {
    font-size: 2.1rem;
  }
  .features-grid, .services-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-card, .service-card {
    max-width: 100%;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .section {
    margin-bottom: 34px;
    padding: 24px 0 24px 0;
  }
  .hero { padding: 38px 0 24px 0; min-height: 190px; }
  .hero h1 {
    font-size: 1.4rem;
    margin-bottom: 11px;
  }
  .hero .content-wrapper {
    gap: 11px;
    max-width: 100vw;
  }
  .footer-flex {
    flex-direction: column;
    gap: 22px;
  }
  .contact-section .contact-details {
    flex-direction: column;
    gap: 22px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .feature-list li:before { font-size: 1rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.23rem; }
  h2 { font-size: 1.01rem; }
  .footer-brand {
    max-width: 100%;
  }
  .testimonial-card {
    padding: 13px 9px;
    min-width: unset;
    max-width: 99vw;
  }
  .cookie-modal {
    width: 95vw;
    min-width: 0;
    padding: 16px 7px 13px 11px;
  }
}

/* --- 19. Small Utility Classes --- */
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mt-2 { margin-top: 14px !important; }
.mt-3 { margin-top: 22px !important; }
.gap-1 { gap: 8px !important; }
.gap-2 { gap: 16px !important; }
.gap-3 { gap: 24px !important; }

/* --- 20. Micro-interactions & Focus --- */
button:focus, a:focus {
  outline: 2px solid #4DAC67;
  outline-offset: 2px;
}
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid #D0D6DD;
  margin-bottom: 12px;
  background: #fff;
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #4DAC67;
  outline: none;
}

/* --- 21. Hide visually for modal overlay (if implemented in JS) --- */
.modal-overlay {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(24, 72, 120, 0.21);
  z-index: 10000;
  display: none;
  animation: modalOverlayFadeIn .5s;
}
@keyframes modalOverlayFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-overlay.open { display: block; }

/* --- END CSS --- */
