/* --- CSS Reset and 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,
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; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  background: #FAFAF7;
  color: #222235;
  font-family: 'Libre Baskerville', Georgia, Times, serif;
  font-weight: 400;
  font-size: 16px;
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}
button { cursor: pointer; }

/* --- Font embedding & Elegant Classic Style --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Crimson+Text:wght@400;600&display=swap');

body {
  font-family: 'Crimson Text', Georgia, 'Times New Roman', Times, serif;
  font-size: 17px;
  color: #233149;
  background-color: #FAFAF7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
  color: #17304B;
  font-weight: 700;
}
h1 { font-size: 2.75rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.18; margin-bottom: 16px; }
h3 { font-size: 1.375rem; line-height: 1.18; margin-bottom: 8px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 6px; }
p, ul, ol { font-size: 1.05rem; margin-bottom: 14px; color: #2F3545; }
strong { font-weight: 600; color: #17304B; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.15rem; }
  body { font-size: 15px; }
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

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

/* --- Elegant Section and Spacing Patterns --- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: transparent;
}
.features-section, .testimonials-section, .cta-section, .legal-section, .confirmation-section, .hero-section, .services-overview {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 22px rgba(23, 48, 75, 0.08);
  margin-bottom: 60px;
  padding: 40px 0;
}

@media (max-width: 768px) {
  section, .section { padding: 28px 0 32px 0; }
  .features-section, .testimonials-section, .cta-section, .legal-section, .confirmation-section, .hero-section, .services-overview { padding: 20px 0; }
}

/* --- Header and Navigation --- */
header {
  background: #fff;
  box-shadow: 0 1px 10px rgba(23,48,75,0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
}
header img {
  height: 46px;
  margin-right: 32px;
}
.main-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.main-nav a {
  font-size: 1.09rem;
  color: #233149;
  padding: 8px 12px;
  transition: color .18s, background .18s;
  border-radius: 6px;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F1C93B33;
  color: #17304B;
  outline: none;
}
.cta-btn {
  padding: 10px 26px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  background: #17304B;
  color: #fff;
  border-radius: 22px;
  transition: background .19s, color .17s, box-shadow .22s;
  box-shadow: 0 2px 8px rgba(23,48,75,0.06);
  margin-left: 20px;
  letter-spacing: 0.01em;
  text-align: center;
  border: none;
  display: inline-block;
}
.cta-btn.primary, .cta-btn:active {
  background: #F1C93B;
  color: #17304B;
}
.cta-btn:hover, .cta-btn:focus {
  background: #F1C93B;
  color: #17304B;
  box-shadow: 0 4px 16px rgba(23,48,75,0.11);
}

/* --- Mobile Navigation --- */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: #17304B;
  font-size: 2.1rem;
  padding: 2px 10px 0 10px;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(23,48,75,0.06);
  margin-left: 12px;
  transition: background 0.15s;
  z-index: 1030;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F1C93B;
  color: #17304B;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  transform: translateX(100%);
  transition: transform .37s cubic-bezier(.77,.2,.05,1.0);
  z-index: 1200;
  padding: 38px 0 0 0;
  width: 100vw;
  height: 100vh;
  box-shadow: 0 8px 40px rgba(23,48,75,0.11);
}
.mobile-menu.active { transform: translateX(0); animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0;} to {opacity: 1;} }
.mobile-menu-close {
  align-self: flex-end;
  background: #F1C93B;
  color: #17304B;
  border-radius: 50%;
  font-size: 2rem;
  margin: 8px 18px 8px 0;
  padding: 4px 15px 4px 15px;
  box-shadow: 0 2px 10px rgba(23,48,75,0.08);
  transition: background .14s, color .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: #17304B; color: #F1C93B; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 32px;
  padding-left: 32px;
  padding-right: 18px;
}
.mobile-nav a {
  font-size: 1.23rem;
  color: #17304B;
  padding: 14px 0 14px 0;
  border-bottom: 1px solid #E7EAEF;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.01em;
  transition: color .14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F1C93B;
  background: none;
}

@media (max-width: 1023px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu-toggle, .mobile-menu { display: none !important; }
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(120deg, #F8F8F4 60%, #E7EAEF 100%);
  border-radius: 14px;
  box-shadow: 0 6px 32px rgba(23,48,75,0.09);
  margin-bottom: 48px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 22px;
  max-width: 620px;
  margin: 0 auto;
  padding-top: 32px;
  padding-bottom: 44px;
}
.hero-section h1 {
  font-size: 2.35rem;
  color: #17304B;
}
.hero-section p {
  font-size: 1.15rem;
  margin-bottom: 24px;
}

/* --- Features Section --- */
.features-section .features-grid, .features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-top: 18px;
  margin-bottom: 0;
}
.feature {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  background: #FAFAF7;
  border-radius: 14px;
  padding: 24px 18px 22px 18px;
  box-shadow: 0 2px 13px rgba(23,48,75,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  text-align: left;
}
.feature img {
  width: 44px; height: 44px; margin-bottom: 6px; }
.feature h3 { font-size: 1.11rem; font-family: 'Playfair Display', serif; }
.feature p { font-size: 1rem; }

@media (max-width: 1000px) {
  .features-section .features-grid, .features-grid { gap: 20px; }
  .feature { min-width: 164px; max-width: 99%; }
}
@media (max-width: 650px) {
  .features-section .features-grid, .features-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

/* --- Services Overview --- */
.services-overview .services-list {
  padding-left: 26px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.services-overview .services-list li {
  position: relative;
  font-size: 1.09rem;
  padding-left: 18px;
}
.services-overview .services-list li:before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: #F1C93B;
  font-weight: bold;
}

/* --- Testimonial Section Styles ---*/
.testimonials-section .testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #E7EAEF;
  border-radius: 12px;
  padding: 24px 22px;
  min-width: 230px;
  max-width: 420px;
  box-shadow: 0 2px 13px rgba(23,48,75,0.12);
  color: #223040;
  font-size: 1.07rem;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .18s, transform .14s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(23,48,75,0.13);
  transform: translateY(-6px) scale(1.01);
}
.testimonial-meta {
  font-size: .98rem;
  color: #17304B;
  margin-top: 10px;
  font-style: italic;
  letter-spacing: 0.01em;
  font-family: 'Crimson Text', serif;
}
@media (max-width: 900px) {
  .testimonials-section .testimonials-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .testimonial-card {
    min-width: unset;
    max-width: 100%;
  }
}

/* --- FAQ and Accordion --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #E7EAEF;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(23,48,75,0.041);
  padding: 18px 22px;
  transition: box-shadow .15s;
  margin-bottom: 0;
}
.faq-item h3 {
  font-size: 1.12rem;
  color: #17304B;
  cursor: pointer;
  margin-bottom: 8px;
  transition: color .16s;
}
.faq-item h3:hover,
.faq-item h3:focus { color: #F1C93B; }
.faq-item > div {
  color: #233149;
  font-size: 1rem;
  padding-left: 0;
  transition: max-height .20s;
}

/* --- Pricing Table --- */
.pricing-table {
  border-collapse: collapse;
  width: 100%;
  background: #FAFAF7;
  border-radius: 12px;
  margin: 18px 0 24px 0;
  font-size: 1.05rem;
}
.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 13px 18px;
  border-top: 1px solid #E7EAEF;
  font-family: 'Crimson Text', serif;
}
.pricing-table thead th {
  background: #E7EAEF;
  color: #17304B;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 0;
}
.pricing-table tbody tr:nth-child(even) {
  background: #F9F8F6;
}
.pricing-table tr:first-child th:first-child { border-top-left-radius: 12px; }
.pricing-table tr:first-child th:last-child { border-top-right-radius: 12px; }

@media (max-width: 700px) {
  .pricing-table th, .pricing-table td { padding: 9px 6px; font-size: .97rem; }
}

/* --- Cards & Card Container Pattern --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 15px rgba(23,48,75,0.09);
  padding: 28px 22px;
  transition: box-shadow .18s, transform .13s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 26px rgba(23,48,75,0.14);
  transform: translateY(-3px) scale(1.01);
}

/* --- Content Grid and Alignment Patterns --- */
.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 { flex-direction: column; gap: 12px; }
  .text-image-section { flex-direction: column; gap: 22px; }
}

.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- Buttons --- */
button, .cta-btn {
  transition: background .17s, color .17s, box-shadow .21s;
}
button:active, .cta-btn:active {
  position: relative;
  top: 1px;
}

/* --- Legal Section / About / Contact Pages --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 0;
}
.contact-info-block {
  background: #E7EAEF;
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 1.06rem;
  color: #17304B;
}
.contact-info-block img {
  vertical-align: middle;
  height: 22px;
  width: 22px;
  margin-right: 6px;
  display: inline-block;
}
.map-block {
  margin-top: 10px;
  padding-left: 8px;
}

/* --- Footer --- */
footer {
  background: #17304B;
  color: #f9f9f5;
  padding: 36px 0 26px 0;
  border-radius: 24px 24px 0 0;
  width: 100%;
  box-shadow: 0 -2px 18px rgba(23,48,75,0.09);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 0 20px;
}
footer img {
  height: 46px;
  margin-right: 38px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-right: 44px; 
}
.footer-nav a {
  color: #F1C93B;
  font-size: 1.05rem;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.009em;
  transition: color .14s;
}
.footer-nav a:hover { color: #fff; }
.footer-contact {
  font-size: 1.03rem;
  background-color: #F1C93B;
  line-height: 1.69;
}
.footer-contact a {
  color: #F1C93B;
  text-decoration: underline;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 14px;
    gap: 18px;
  }
  footer img { margin-bottom: 10px; }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #F9F9F3;
  box-shadow: 0 -4px 16px rgba(23,48,75,0.09);
  border-top: 2px solid #E7EAEF;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 22px 26px 22px 26px;
  z-index: 3000;
  transition: transform .34s;
  font-size: 1rem;
}
.cookie-banner.hide { transform: translateY(150%); opacity: 0; pointer-events: none; }
.cookie-banner p {
  flex: 1 1 410px;
  font-size: 1rem;
  color: #17304B;
}
.cookie-banner button {
  background: #17304B;
  color: #fff;
  border-radius: 20px;
  padding: 8px 22px;
  font-family: 'Playfair Display', Georgia, serif;
  border: none;
  font-size: 1.01rem;
  margin-left: 10px;
  margin-bottom: 0;
  margin-top: 0;
}
.cookie-banner .cookie-btn-settings {
  background: #E7EAEF;
  color: #17304B;
  border: 1px solid #E7EAEF;
  margin-left: 10px;
}
.cookie-banner .cookie-btn-accept { background: #F1C93B; color: #17304B; }
.cookie-banner .cookie-btn-reject { background: #17304B; color: #fff; }
.cookie-banner button:hover, .cookie-banner button:focus {
  opacity: 0.88;
  box-shadow: 0 6px 22px rgba(23,48,75,0.11);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    font-size: 0.95rem;
    padding: 14px 12px;
  }
  .cookie-banner p { font-size: .99rem; }
  .cookie-banner button { margin-left: 0; margin-bottom: 9px; margin-top: 0; }
}

/* --- Cookie Preferences Modal --- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23,48,75, 0.45);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn .27s;
}
@keyframes modalFadeIn { from{ opacity:0;} to{opacity:1;} }
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  padding: 32px 30px;
  max-width: 420px;
  width: 98vw;
  box-shadow: 0 8px 40px rgba(23,48,75,0.22);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popIn .24s;
}
@keyframes popIn {
  from{ transform: scale(.83); opacity:.3; }
  to { transform:none; opacity: 1; }
}
.cookie-modal h2 {
  margin: 0 0 5px 0;
  font-size: 1.45rem;
  color: #17304B;
}
.cookie-category {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.06rem;
}
.cookie-category label {
  flex: 1;
  color: #17304B;
  font-family: 'Crimson Text', serif;
}
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 23px;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #E7EAEF;
  border-radius: 12px;
  transition: .2s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: #F1C93B;
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 17px;
  width: 17px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 1px 8px rgba(23,48,75,0.09);
}
.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(19px);
}
.cookie-category[data-essential] .cookie-toggle {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  padding: 7px 18px;
  border-radius: 12px;
  border: none;
  font-size: 1.01rem;
  background: #17304B;
  color: #fff;
  font-family: 'Playfair Display', serif;
  transition: background .1s;
}
.cookie-modal-actions .cookie-btn-accept { background: #F1C93B; color: #17304B; }
.cookie-modal-actions .cookie-btn-cancel { background: #E7EAEF; color: #17304B; }
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus { opacity: 0.85; box-shadow: 0 3px 16px rgba(23,48,75,0.12); }

/* --- Utility: Show/hide (for JS) --- */
.hide { display: none!important; }

/* --- Responsive Spacing, Mobile-first tweaks --- */
@media (max-width: 768px) {
  .container { padding: 0 7px; }
  section, .section, .features-section, .testimonials-section, .cta-section, .legal-section, .confirmation-section {
    padding-left: 0; padding-right: 0;
  }
  .footer-contact { font-size: .97rem; }
}

/* --- Micro-interactions and Effects --- */
.card, .feature, .testimonial-card, .faq-item, .pricing-table, .cta-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button {
  transition: box-shadow .17s, transform .16s, background .17s, color .16s;
}
.cta-btn:active, .mobile-menu-toggle:active, .mobile-menu-close:active { transform: scale(0.98); }

/* --- Highlight Links inside body text --- */
.text-section a, .footer-contact a, .map-block a, .services-overview a {
  color: #17304B;
  text-decoration: underline;
  transition: color .14s;
}
.text-section a:hover, .footer-contact a:hover, .map-block a:hover {
  color: #F1C93B;
  text-decoration: none;
}

/* --- Confirmation section --- */
.confirmation-section {
  background: #fff8e1;
  border: 1px solid #E7EAEF;
  border-radius: 12px;
}
.confirmation-section h1 {
  color: #17304B;
}

/* --- Accessibility/Focus styles --- */
:focus-visible {
  outline: 2px solid #F1C93B !important;
  outline-offset: 3px;
}

/* --- Misc & Fixes for input fields, for future proof forms --- */
input[type="text"], input[type="email"], textarea {
  padding: 8px 13px;
  border-radius: 7px;
  border: 1px solid #E7EAEF;
  margin-bottom: 18px;
  background: #f5f5fa;
  font-size: 1.08rem;
  color: #17304B;
  font-family: 'Crimson Text', serif;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.8px solid #F1C93B;
  outline: none;
  background: #fffde9;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 10px; background: #E7EAEF; }
::-webkit-scrollbar-thumb { background: #C2CCD9; border-radius: 8px; }

/* ---- Print styles (prevent weird outline on print) ---- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer { display: none !important; }
}
