/* --- 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FAFAF8;
  color: #253D5B;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}


/* --- Brand Typography (Elegant Classic) --- */
:root {
  --color-primary: #253D5B;
  --color-secondary: #86BBD8;
  --color-accent: #F6AE2D;
  --color-bg: #FAFAF8;
  --color-bg-muted: #F2F2F0;
  --color-border: #E4E3DF;
  --color-text: #29374D;
  --color-muted-text: #606B80;
  --color-light-text: #ADC2D0;
  --shadow-card: 0 2px 20px 0 rgba(37,61,91,0.08);
  --shadow-hover: 0 6px 24px 0 rgba(37,61,91,0.15);
  --radius: 14px;
}
body {
  font-family: 'Merriweather', 'Georgia', serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Merriweather', 'Georgia', serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.12;
  margin-bottom: 24px;
  margin-top: 0;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
p, ul, ol {
  color: var(--color-text);
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1rem;
  margin-bottom: 18px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
}

/* --- Layout: Container, Section, Wrappers --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* --- Main Navigation --- */
header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 10px 0 rgba(37,61,91,0.04);
  position: sticky;
  top: 0;
  z-index: 1100;
}
.main-nav {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-start;
  padding: 0 20px;
  font-size: 1rem;
}
.main-nav img {
  height: 42px;
  margin-right: 32px;
}
.main-nav a {
  color: var(--color-primary);
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 6px;
  padding: 7px 18px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:not(.cta):hover,
.main-nav a:focus {
  background: var(--color-bg-muted);
}
.main-nav .cta {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px 0 rgba(253,180,29,0.10);
  border-radius: 8px;
  margin-left: 32px;
  transition: background 0.22s, box-shadow 0.22s;
}
.main-nav .cta:hover,
.main-nav .cta:focus {
  background: #e99e0a;
  box-shadow: 0 4px 16px 0 rgba(246,174,45,0.13);
}

/* --- Mobile Navigation --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  padding: 7px 12px;
  color: var(--color-primary);
  background: none;
  border-radius: 8px;
  transition: background 0.16s;
  position: absolute;
  right: 22px;
  top: 14px;
  z-index: 1111;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-bg-muted);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: rgba(40,54,91,0.86);
  transform: translateX(-100%);
  transition: transform 0.40s cubic-bezier(.77,.06,.25,1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 32px 12px 0;
  font-size: 2.25rem;
  color: #fff;
  background: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  transition: background 0.16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(255,255,255,0.17);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 20px;
  padding: 0 36px;
}
.mobile-nav a {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1.35rem;
  color: #fff;
  padding: 16px 0 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.11);
  transition: color 0.15s, background 0.16s;
  border-radius: 0;
  font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: rgba(255,255,255,0.09);
}

@media (max-width: 1000px) {
  .main-nav a {
    padding: 7px 10px;
    font-size: 0.98rem;
  }
  .main-nav .cta {
    margin-left: 12px;
  }
}
@media (max-width: 900px) {
  .container { padding: 0 12px; }
}
@media (max-width: 820px) {
  .main-nav a { font-size: 0.92rem; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #FAFAF8 66%, #E7EDF7 100%);
  padding: 60px 0 48px 0;
  display: flex;
  align-items: center;
  min-height: 340px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 670px;
  gap: 18px;
}
.hero h1 {
  color: var(--color-primary);
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.18rem;
  color: var(--color-muted-text);
  margin-bottom: 12px;
}
@media (max-width: 600px) {
  .hero { padding: 38px 0 30px 0; min-height: unset; }
  .hero h1 { font-size: 2rem; }
  .hero .content-wrapper { max-width: 100%; }
}

/* --- Feature Grid (with Flexbox layouts only) --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  margin-top: 8px;
}
.feature-grid > div {
  flex: 1 1 240px;
  min-width: 220px;
  background: var(--color-bg-muted);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.19s, transform 0.19s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.024);
}
.feature-grid img {
  width: 32px; height: 32px;
  margin-bottom: 6px;
  filter: grayscale(15%) brightness(1.01);
}
.feature-grid h3 {
  font-size: 1.13rem;
  color: var(--color-primary);
  margin-bottom: 5px;
}
.feature-grid p {
  color: var(--color-muted-text);
  font-size: 1rem;
}
@media (max-width: 900px) {
  .feature-grid { gap: 18px; }
  .feature-grid > div { padding: 24px 16px; min-width: 140px; }
}
@media (max-width: 640px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div { width: 100%; padding: 18px 11px; }
}


/* --- Testimonials --- */
.testimonials {
  margin-bottom: 60px;
}
.testimonials .content-wrapper {
  gap: 28px;
  align-items: flex-start;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  background: #fff;
  box-shadow: 0 2px 24px 0 rgba(40,61,91,0.11);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  min-width: 200px;
  max-width: 660px;
  border-left: 6px solid var(--color-accent);
  font-family: 'Merriweather', 'Georgia', serif;
  color: var(--color-primary);
}
.testimonial-card p {
  font-size: 1.08rem;
  color: var(--color-text);
  flex: 1 1 auto;
  margin-bottom: 0;
}
.testimonial-card span, .testimonial-card div span {
  font-size: 0.98rem;
  color: var(--color-secondary);
  font-style: italic;
}
@media (max-width: 900px) {
  .testimonials .content-wrapper { gap: 18px; }
  .testimonial-card { padding: 18px 10px; }
}
@media (max-width: 650px) {
  .testimonial-card { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* --- Trust Pillars (ul-based) --- */
.trust-pillars ul {
  padding-left: 22px;
  margin-bottom: 0;
}
.trust-pillars li {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 10px;
  list-style: disc;
}

/* --- Card & List Containers (with Flexbox) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px 24px;
}
.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) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Contact Details (About/Contact Pages) --- */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.contact-block div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.04rem;
  color: var(--color-text);
}
.contact-block img {
  width: 23px;
  height: 23px;
}

/* --- Buttons & CTA links [Elegant & Classic] --- */
.cta, .content-wrapper .cta, .text-section .cta {
  background: var(--color-accent);
  color: #fff !important;
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.18rem;
  padding: 13px 34px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 12px;
  box-shadow: 0 2px 10px 0 rgba(246,174,45,0.09);
  transition: background 0.19s, box-shadow 0.22s, transform 0.13s;
  text-align: center;
  letter-spacing: 0.015em;
  border: 0;
}
.cta:hover, .cta:focus {
  background: #f7b63b;
  box-shadow: 0 4px 20px 0 rgba(246,174,45,0.18);
  transform: scale(1.033);
  color: #fff;
}

/* General button styles for forms/cookie/settings */
.button, .cookie-btn, .cookie-modal-btn {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 7px;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px 0 rgba(134,187,216,0.09);
  margin-right: 14px;
  margin-bottom: 6px;
  transition: background 0.16s, box-shadow 0.17s, transform 0.13s;
  font-weight: 600;
}
.button:hover, .button:focus,
.cookie-btn:hover, .cookie-btn:focus,
.cookie-modal-btn:hover, .cookie-modal-btn:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 3px 16px 0 rgba(133,187,216,0.16);
  transform: scale(1.025);
}
.cookie-btn.reject {
  background: #b0b5ba;
  color: #fff;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #76818F;
}

/* --- Footer --- */
footer {
  background: #242C35;
  color: #fff;
  padding: 36px 0 12px 0;
  margin-top: 88px;
  border-top: 1.5px solid var(--color-border);
  font-family: 'Merriweather', 'Georgia', serif;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 21px;
  justify-content: center;
}
.footer-nav a {
  color: #e4e5ea;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  transition: color 0.13s;
  padding: 4px 12px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}
.footer-contact {
  text-align: center;
  font-size: 0.97rem;
  color: #d2d7e0;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
footer p {
  text-align: center;
  font-size: 0.95rem;
  color: #b9c2cc;
}
@media (max-width: 640px) {
  footer { padding: 26px 0 8px 0; }
  .footer-contact { font-size: 0.90rem; }
  .footer-nav { gap: 8px; }
}

/* --- Cookie Consent Banner (fixed bottom) --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--color-bg);
  box-shadow: 0 -4px 24px 0 rgba(37,61,91,0.09);
  border-top: 1.5px solid var(--color-border);
  z-index: 2100;
  padding: 24px 20px 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  opacity: 1;
  transition: opacity 0.28s, transform 0.33s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(44px);
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--color-text);
  flex: 1 1 auto;
  margin-bottom: 0;
  margin-right: 18px;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 18px 8px 14px 8px;
  }
  .cookie-banner p { margin-right: 0; margin-bottom: 10px; }
  .cookie-banner-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(37,61,91,0.41);
  z-index: 2200;
  align-items: center;
  justify-content: center;
  transition: opacity 0.32s;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 40px 0 rgba(37,61,91,0.17);
  padding: 32px 28px 26px 28px;
  min-width: 320px;
  max-width: 95vw;
  color: var(--color-primary);
  position: relative;
}
.cookie-modal-content h3 {
  margin-bottom: 13px;
  font-size: 1.23rem;
}
.cookie-modal-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
  padding: 8px 0;
}
.cookie-modal-category label {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1rem;
  color: var(--color-muted-text);
}
.cookie-switch {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #eee;
  border-radius: 14px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-switch:checked {
  background: var(--color-accent);
}
.cookie-switch::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.17s;
  box-shadow: 0 1px 4px rgba(37,61,91,0.14);
}
.cookie-switch:checked::before {
  left: 20px;
}
.cookie-modal-btn.close {
  position: absolute;
  top: 11px;
  right: 14px;
  background: none;
  color: var(--color-accent);
  font-size: 1.12rem;
  padding: 0;
  margin-right: 0;
  border-radius: 50%;
  transition: background 0.07s;
}
.cookie-modal-btn.close:hover { background: #FFF1DC; }

/* --- Spacing Utility Classes --- */
.mt-24 { margin-top: 24px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }

/* --- Responsive Utilities (Mobile First) --- */
@media (max-width: 1100px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.3rem; }
}
@media (max-width: 600px) {
  .section { margin-bottom: 44px; padding: 24px 4px; }
  h1 { font-size: 1.55rem; margin-bottom: 14px; }
  h2 { font-size: 1.12rem; }
}

/* --- Transitions / Microinteractions --- */
a, button, .cta, .main-nav a, .feature-grid > div, .button, .cookie-btn, .cookie-modal-btn {
  transition: background 0.18s, box-shadow 0.16s, color 0.18s, transform 0.13s;
}

/* --- Selection --- */
::selection {
  background: var(--color-secondary);
  color: #fff;
}

/* --- Scrollbar Styles (Elegant, Subtle) --- */
::-webkit-scrollbar {
  width: 9px;
  background: #e6edf2;
}
::-webkit-scrollbar-thumb {
  background: #d0dbec;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b8c9dd;
}


/* --- End of CSS --- */