/* --- 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 { scroll-behavior: smooth; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F7F9FA;
  color: #1a2632;
  font-family: 'Georgia', Times, 'Times New Roman', serif;
  font-size: 16px;
  min-height: 100vh;
}

/* --- Font Imports & Fallbacks --- */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Merriweather:400,700&display=swap');

:root {
  --color-primary: #19324A;
  --color-secondary: #E6EEF5;
  --color-accent: #EAA541;
  --color-bg: #F7F9FA;
  --color-card: #fff;
  --color-text: #252525;
  --color-muted: #8191A3;
  --font-display: 'Playfair Display', 'Merriweather', Georgia, serif;
  --font-body: 'Georgia', Times, 'Times New Roman', serif;
  --font-sans: 'Montserrat', 'Open Sans', Arial, sans-serif;
  --radius: 8px;
  --shadow-light: 0 2px 12px 0 rgba(25, 50, 74, 0.06);
  --shadow-card: 0 4px 24px 0 rgba(25,50,74,0.08);
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

/* --- Body Typography --- */
body, p, ul, li, a, span, label {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-top: 32px; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-top: 24px; margin-bottom: 16px; }
h4, h5, h6 { font-size: 1.1rem; }

strong {
  color: var(--color-primary);
  font-weight: 700;
  font-family: var(--font-display);
}

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

.section {
  background: none;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  background: none;
}

.text-section {
  max-width: 800px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  min-width: 280px;
  flex: 1 1 300px;
  transition: box-shadow var(--transition); 
}
.card:hover {
  box-shadow: 0 8px 36px 0 rgba(25,50,74,0.12);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  padding: 20px 32px 20px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  border-left: 6px solid var(--color-accent);
  color: var(--color-primary);
  font-size: 1.08rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--color-muted);
  font-style: italic;
  font-family: var(--font-body);
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px 0 rgba(25,50,74,0.14);
  border-left-color: var(--color-primary);
}

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

ul {
  padding-left: 24px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

/* --- Header & Navigation --- */
header {
  background: #fff;
  box-shadow: 0 2px 6px 0 rgba(25,50,74,0.06);
  position: sticky;
  top: 0;
  z-index: 300;
}
header > nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 19px 0 17px 0;
  justify-content: flex-start;
}
header img {
  height: 44px;
  margin-right: 12px;
  vertical-align: middle;
}
header a {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color var(--transition);
  padding: 8px 4px;
  border-radius: 4px;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-accent);
  outline: none;
  background: rgba(234, 165, 65, 0.11);
}
.cta-primary {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 30px;
  border-radius: 24px;
  font-size: 1.07rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-left: 16px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 7px 0 rgba(25,50,74,0.08);
  border: none;
  cursor: pointer;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-accent);
  color: #fff !important;
  box-shadow: 0 6px 22px 0 rgba(25,50,74,0.16);
}
.cta-secondary {
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 9px 28px;
  border-radius: 24px;
  font-size: 1.04rem;
  font-family: var(--font-display);
  font-weight: 700;
  align-self: flex-start;
  border: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 7px 0 rgba(234,165,65,0.14);
  cursor: pointer;
  margin-top: 18px;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 16px 0 rgba(25,50,74,0.12);
}

/* --- Burger Menu --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--color-primary);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  padding: 4px 12px 4px 12px;
  margin-left: auto;
  transition: background var(--transition);
  z-index: 1001;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: rgba(25,50,74,0.07);
  border-radius: 8px;
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: 100%;
  width: 100vw;
  background: #fff;
  z-index: 2020;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  box-shadow: -2px 0 25px 0 rgba(25,50,74,0.09);
  transition: transform 0.38s cubic-bezier(.4,0,.2,1), left 0s 0.38s;
  transform: translateX(0);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  left: 0;
  transform: translateX(0%);
  opacity: 1;
  pointer-events: all;
  transition: transform 0.36s cubic-bezier(.4,0,.2,1), opacity 0.32s cubic-bezier(.4,0,.2,1);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 20px 20px 10px 18px;
  align-self: flex-end;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  padding: 30px 45px 40px 45px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-primary);
  padding: 13px 0 13px 2px;
  border-bottom: 1px solid #e6eef5;
  text-decoration: none;
  border-radius: 0;
  width: 100%;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus{
  color: var(--color-accent);
  background: rgba(26,38,50,0.07);
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 950px) {
  header > nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 14px;
    top: 10px;
  }
}
@media (min-width: 951px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- Section Styling / Spacing (Classic Elegant) --- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 560px) {
  section {
    padding: 28px 0;
    margin-bottom: 38px;
  }
}

/* --- Main Buttons & Interactions --- */
a.button, button, .cta-primary, .cta-secondary {
  cursor: pointer;
  transition: var(--transition);
}
a.button:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* --- Footer --- */
footer {
  background: #fff;
  border-top: 1px solid #e9e9e9;
  padding: 36px 0 16px 0;
  margin-top: 40px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 1.02rem;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--color-muted);
  text-decoration: underline dotted;
  font-family: var(--font-body);
  font-size: .97rem;
  transition: color var(--transition);
}
footer nav a:hover,footer nav a:focus {
  color: var(--color-primary);
}
footer p {
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* --- Cookies Consent Banner --- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 -2px 16px 0 rgba(25,50,74,0.10);
  padding: 22px 18px 16px 18px;
  border-top: 1.5px solid #e6eef5;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  z-index: 3000;
  font-size: 1.03rem;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s cubic-bezier(.4,0,.2,1);
  opacity: 1;
  transform: translateY(0%);
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(160%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.25s cubic-bezier(.4,0,.2,1);
}
.cookie-actions {
  display: flex;
  gap: 18px;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cookie-actions button {
  font-family: var(--font-sans);
  font-size: 1.03rem;
  padding: 8px 18px;
  border-radius: 22px;
  border: none;
  margin: 0 2px;
  cursor: pointer;
  box-shadow: 0 1px 7px 0 rgba(25,50,74,0.07);
  transition: background var(--transition), color var(--transition);
}
.cookie-actions .accept {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
}
.cookie-actions .accept:hover,.cookie-actions .accept:focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-actions .reject {
  background: #eee;
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-actions .reject:hover,.cookie-actions .reject:focus {
  background: var(--color-muted);
  color: #fff;
}
.cookie-actions .settings {
  background: none;
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 500;
}
.cookie-actions .settings:hover,.cookie-actions .settings:focus {
  color: var(--color-primary);
  text-decoration: underline dotted;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 48%;
  transform: translate(-50%,-52%) scale(1);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 36px 0 rgba(25,50,74,0.20);
  padding: 46px 34px 36px 34px;
  min-width: 330px;
  max-width: 95vw;
  z-index: 3100;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 1;
  transition: opacity 0.32s cubic-bezier(.4,0,.2,1), transform 0.32s cubic-bezier(.4,0,.2,1);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10%) scale(0.98);
  transition: opacity 0.24s cubic-bezier(.4,0,.2,1), transform 0.24s cubic-bezier(.4,0,.2,1);
}
.cookie-modal-title {
  font-size: 1.31rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 6px;
}
.cookie-pref-category {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 13px 0 13px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #e6eef5;
}
.cookie-pref-category:last-child {
  border-bottom: none;
}
.cookie-pref-label {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 1.04rem;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-switch {
  width: 36px;
  height: 20px;
  background: #e6eef5;
  border-radius: 10px;
  position: relative;
  transition: background var(--transition);
  cursor: pointer;
}
.cookie-switch input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  width: 36px;
  height: 20px;
  cursor: pointer;
}
.cookie-switch .slider {
  position: absolute;
  left: 3px; top: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  transition: left 0.22s, background 0.22s, border-color 0.22s;
}
.cookie-switch input[type='checkbox']:checked + .slider {
  left: 17px; background: var(--color-accent); border-color: var(--color-accent);
}

.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-modal-actions button {
  font-family: var(--font-sans);
  font-size: 1.01rem;
  border-radius: 20px;
  padding: 8px 14px;
  border: none;
  cursor: pointer;
}
.cookie-modal-actions .save {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  transition: background var(--transition);
}
.cookie-modal-actions .save:hover, .cookie-modal-actions .save:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-modal-actions .close {
  background: none;
  color: var(--color-muted);
  text-decoration: underline;
}
.cookie-modal-actions .close:hover, .cookie-modal-actions .close:focus {
  color: var(--color-primary);
}


/* --- Links and Interactions --- */
a {
  color: var(--color-accent);
  text-decoration: underline;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--color-primary);
  outline: none;
}

/* --- Tables (if any) --- */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 8px 10px;
  border: 1px solid #e6eef5;
  text-align: left;
}
th {
  background: var(--color-secondary);
  font-family: var(--font-display);
}

/* --- Forms (minimal) --- */
input, textarea, select {
  border: 1px solid #d0dae3;
  border-radius: 5px;
  padding: 8px 9px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 11px;
  background: #fff;
  color: var(--color-text);
  width: 90%;
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fffbe9;
}

button, input[type="submit"] {
  font-family: var(--font-body);
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 23px;
  font-weight: 600;
  font-size: 1.05rem;
}
button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* --- Misc & Utilities --- */
.muted {
  color: var(--color-muted) !important;
  font-style: italic;
}
.center {
  text-align: center !important;
}
.align-right {
  text-align: right !important;
}
.nowrap {
  white-space: nowrap;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .container { padding: 0 8px; }
  .section { padding: 32px 10px; margin-bottom: 34px; }
  .content-wrapper, .text-section, .card-container, .content-grid, .testimonial-card {
    gap: 18px;
    padding: 0;
    font-size: 1rem;
    flex-direction: column !important;
  }
  .card, .testimonial-card {
    min-width: unset;
    width: 100%;
    padding: 20px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  footer { padding: 30px 0 10px 0; }
}

/* Ensure no overlap & spacing for cards/sections */
.card, .testimonial-card, .feature-item, section, .cookie-consent-banner, .cookie-modal {
  margin-bottom: 20px;
}
@media (max-width:480px){
  h1{font-size:1.4rem;}
  h2{font-size:1.08rem;}
  .cookie-modal { min-width: 92vw; padding: 26px 5vw; }
}

/* --- Classic Shadows & Rounded Corners --- */
.card, .testimonial-card, .cookie-modal {
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
}

/* --- Subtle Animations for Microinteractions --- */
.cta-primary, .cta-secondary, .cookie-actions button, .card, .testimonial-card {
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition), transform 0.18s;
}
.cta-primary:active, .cta-secondary:active, button:active {
  transform: translateY(2px) scale(0.98);
}
.card:hover, .testimonial-card:hover {
  transform: translateY(-2px) scale(1.015);
}

/* --- Hide visually elements for accessibility --- */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}


/* --- Elegant Classic Aesthetic: muted backgrounds, classic serif, soft accent --- */
body {
  background: var(--color-bg);
}
section {
  background: var(--color-secondary);
  border-radius: var(--radius);
}
.content-wrapper {
  background: none;
}


/* --- Print stylesheet fallback --- */
@media print {
  body, html, section, .container, .content-wrapper {
    background: #fff !important;
    color: #111;
  }
}

/* --- Accessibility: high contrast for testimonials/reviews --- */
.testimonial-card p, .testimonial-card span {
  color: #1a2632 !important;
}
