/* --- CSS RESET & BASE --- */
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;}
*, *:before, *:after {box-sizing: inherit;}
body {
  background: #FAFAF8;
  color: #222;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
}
img {max-width: 100%; height: auto; display: block;}
a { color: #163B5B; text-decoration: none; transition: color 0.2s;}
a:hover, a:focus { color: #B04B13; }
ul, ol {padding-left: 25px;}
strong { font-weight: bold; }

/* --- BRAND FONT STYLES (Elegant/Classic) --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #163B5B;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.15; margin-bottom: 18px; }
h3 { font-size: 1.35rem; line-height: 1.25; margin-bottom: 16px; }
h4, h5, h6 {font-size: 1.15rem; margin-bottom:12px;}
p { margin-bottom: 16px; }

/* --- LAYOUT: FLEXBOX UTILITY / SPACING / CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-start;
}
.text-section {
  align-items: flex-start;
}

/* --- HEADER --- */
header {
  background: #FFFFFF;
  border-bottom: 1px solid #DEE1E6;
  box-shadow: 0 2px 8px rgba(22,59,91,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: #163B5B;
  padding: 3px 7px;
  border-radius: 3px;
  transition: background 0.15s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #EAE3DB;
  color: #B04B13;
}
header img {
  height: 38px;
  margin-right: 18px;
}
.cta-btn-primary {
  font-family: 'Georgia', serif;
  font-size: 1.125rem;
  color: #fff;
  background: #163B5B;
  border: none;
  padding: 12px 32px;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(22,59,91,0.07);
  transition: background 0.18s, box-shadow 0.2s, transform 0.15s;
  font-weight: bold;
  letter-spacing: 0.025em;
  margin-left: 16px;
  cursor: pointer;
  outline: none;
  display: inline-block;
}
.cta-btn-primary:hover, .cta-btn-primary:focus {
  background: #B04B13;
  color: #fff;
  box-shadow: 0 4px 18px rgba(176,75,19,0.08);
  transform: translateY(-2px) scale(1.03);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #163B5B;
  cursor: pointer;
  margin-left: 10px;
  outline: none;
  z-index: 120;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover { color: #B04B13; }
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 32px rgba(22,59,91,0.14);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.65,0,0.35,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 24px 24px 32px;
  gap: 40px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: #163B5B;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2200;
  transition: background 0.16s, color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #EAE3DB;
  color: #B04B13;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: #163B5B;
  font-family: 'Georgia', serif;
  padding: 9px 0;
  font-weight: 600;
  border-bottom: 1px solid #EEEBD7;
  transition: color 0.17s, background 0.17s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus { color: #B04B13; background: #EEEBD7; }

@media (max-width: 1024px) {
  header .container nav, header .container .cta-btn-primary {
    display: none;
  }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle { display: none!important; }
}

/* --- MAIN: HERO & SECTION STYLES --- */
section { margin-bottom: 60px; padding: 40px 20px; background: none; }
@media (max-width:600px) {
  section { padding: 28px 8px; margin-bottom: 36px; }
}

/* --- CARDS & CONTENT --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border: 1px solid #E8E9EA;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(22,59,91,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.15s, transform 0.14s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px rgba(176,75,19,0.09);
  transform: translateY(-3px) scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  gap: 10px;
}

/* --- FEATURE GRID --- */
.feature-grid {  display: flex;  flex-wrap: wrap;  gap: 32px;  }
.feature-grid > div {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #EEE;
  padding: 24px 18px;
  flex-basis: calc(50% - 32px);
  min-width: 220px;
  box-shadow: 0 2px 10px rgba(22,59,91,0.07);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.17s, transform 0.13s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 20px rgba(176,75,19,0.12);
  transform: translateY(-2px) scale(1.025);
}
.feature-grid img {
  height: 38px;
}

@media (max-width: 980px) {
  .feature-grid { gap: 18px; }
  .feature-grid > div {
    min-width: 180px; flex-basis: calc(100% - 18px);
  }
}
@media (max-width: 599px) {
  .feature-grid {flex-direction: column;gap: 18px;}
  .feature-grid > div {min-width: 0; flex-basis: 100%; padding:16px 10px;}
}

/* --- TABLE --- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(22,59,91,0.04);
}
table th, table td {
  padding: 16px 12px;
  border-bottom: 1px solid #EEE;
  text-align: left;
}
table th {
  background: #F4F7FB;
  color: #163B5B;
  font-weight: bold;
}
table tr:last-child td { border-bottom: none; }

/* --- FLEX UTILITY CONTAINERS (from instructions) --- */
.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;
  background: #FFF;
  border: 1px solid #EDE8E1;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(22,59,91,0.06);
  padding: 20px;
  margin-bottom: 22px;
  font-family: 'Georgia', serif;
  color: #163B5B;
  transition: box-shadow 0.13s;
  min-height: 76px;
}
.testimonial-card p {
  font-size: 1.08rem;
  margin-bottom: 0;
}
.testimonial-card div {
  font-size: 0.98rem;
  color: #444;
  margin-left: 18px;
}
.testimonial-card img {
  height: 22px;
  width: 22px;
  display: inline-block;
}
.testimonial-card:hover {
  box-shadow: 0 4px 20px rgba(176,75,19,.09);
}

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

/* --- FAQ ACCORDION --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-accordion h3 {
  margin-bottom: 7px;
  font-size: 1.18rem;
  font-weight: 600;
  cursor: pointer;
}
.faq-accordion p {
  margin-bottom: 0;
}

/* --- FOOTER --- */
footer {
  background: #163B5B;
  color: #fff;
  padding: 40px 0 16px 0;
  margin-top: 60px;
  font-size: 1rem;
  border-top: 3px solid #B04B13;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 5px;
  justify-content: center;
}
footer nav a {
  color: #fff;
  opacity: 0.93;
  font-family: 'Georgia', serif;
  text-decoration: underline;
  transition: color 0.15s, opacity 0.15s;
}
footer nav a:hover {
  color: #B04B13;
  opacity: 1;
}
footer small {font-size: 0.96rem; margin-top: 8px;opacity:0.8;}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff9f3;
  color: #1B2838;
  box-shadow: 0 -2px 14px rgba(22,59,91,0.07);
  border-top: 2px solid #B04B13;
  z-index: 18000;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 18px 26px;
  min-height: 56px;
  font-size: 1rem;
  font-family: 'Georgia', serif;
  transition: transform 0.32s cubic-bezier(0.6,0,0.65,1), opacity 0.22s;
}
.cookie-banner.hide { transform: translateY(120%); opacity: 0; pointer-events: none; }
.cookie-banner button, .cookie-banner .cookie-btn {
  font-size: 1rem;
  font-family: 'Georgia', serif;
  background: #163B5B;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  margin-left: 8px;
  margin-right: 1px;
  cursor: pointer;
  transition: background 0.16s, transform 0.13s;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(22,59,91,0.05);
  outline: none;
}
.cookie-banner .cookie-btn.settings {
  background: #B04B13;
}
.cookie-banner button:hover, .cookie-banner .cookie-btn:hover { background: #B04B13; transform: translateY(-1.5px) scale(1.03); }

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 45%;
  max-width: 99vw;
  width: 370px;
  z-index: 18050;
  transform: translate(-50%, -50%) scale(0.97);
  background: #fffdfa;
  color: #163B5B;
  border-radius: 13px;
  box-shadow: 0 6px 42px rgba(22,59,91,.15), 0 1.5px 5px rgba(176,75,19,.07);
  padding: 24px 22px 32px 22px;
  opacity: 1;
  transition: opacity 0.2s, transform 0.2s;
  display: flex; flex-direction: column; gap:14px;
}
.cookie-modal.hide { opacity: 0; pointer-events: none; transform: translate(-50%,-45%) scale(0.93);}
.cookie-modal h2, .cookie-modal h3 {
  margin-bottom: 8px;
}
.cookie-modal ul {
  margin-bottom: 18px;
  list-style: disc;
  padding-left: 22px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.07rem;
  font-family: 'Georgia', serif;
}
.cookie-cat input[type=checkbox] {
  accent-color: #163B5B;
  width: 20px;
  height: 20px;
}
.cookie-cat .label {
  font-weight: 500;
}
.cookie-cat.essential input[type=checkbox] {
  accent-color: #6E6E6E;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal button {
  padding: 6px 22px;
  font-size: 1.08rem;
  font-family: 'Georgia', serif;
  border-radius: 20px;
  background: #163B5B;
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.17s, transform 0.12s;
}
.cookie-modal button.settings {background: #B04B13;}
.cookie-modal button:hover { background: #B04B13; transform: translateY(-1.5px) scale(1.03);}

/* --- RESPONSIVE & FLEX-DIRECTION --- */
@media (max-width: 768px) {
  .container { padding: 0 8px; }
  .content-grid,
  .card-container,
  .feature-grid,
  .text-image-section,
  .testimonial-card,
  .faq-accordion {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper { gap: 18px; }
  table th, table td {padding:10px 6px;}
  .section { padding: 28px 4px; margin-bottom: 30px;}
  header .container { padding-top: 8px; padding-bottom: 8px; }
  footer { padding: 22px 0 8px 0;}
}

/* --- BUTTONS, FORMS, INTERACTIONS --- */
button, .cta-btn-primary, input[type=submit] {
  cursor: pointer;
  outline: none;
}
button:focus, .cta-btn-primary:focus, input[type=submit]:focus { box-shadow: 0 0 0 2px #B04B13; }
input, textarea, select {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  padding: 10px 11px;
  font-size: 1rem;
  margin-bottom: 16px;
  min-width: 70px;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus { border: 1.5px solid #B04B13; }

/* --- ICONS IN LISTS --- */
ul li, ol li {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
ul li img, ol li img {
  height: 20px;
  width: 20px;
  margin-right: 8px;
  margin-top: 2px;
}

/* --- VISUAL ELEMENTS: SHADOWS, BORDERS (ELEGANT) --- */
.card, .feature-grid > div, .testimonial-card, .cookie-modal {
  box-shadow: 0 2px 10px rgba(22,59,91,0.06);
}
.card, .feature-grid > div, .testimonial-card, .cookie-modal {
  border-radius: 13px;
}

/* --- MICRO-INTERACTIONS --- */
a, button, .cta-btn-primary, .card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.18s, color 0.18s, background 0.17s, transform 0.13s;
}

/* --- TYPOGRAPHY SCALE --- */
@media (max-width: 639px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.06rem; }
  body { font-size: 15px; }
}

/* --- SELECTED CLASS OVERRIDES FROM HTML STRUCTURE --- */
.text-section h1, .text-section h2 { margin-bottom: 10px; }
.text-section ul { margin-bottom: 18px; }
.text-section ul li {margin-bottom: 4px;}

/* --- MISC --- */
::-webkit-input-placeholder { color: #B8B8B8; }
::-moz-placeholder { color: #B8B8B8; }
:-ms-input-placeholder { color: #B8B8B8; }
::placeholder { color: #B8B8B8; }

[tabindex]:focus { outline: 2px solid #B04B13; outline-offset: 2px; }

/* SCROLLBAR (Elegant, Classic) */
body::-webkit-scrollbar {width: 10px;}
body::-webkit-scrollbar-thumb {background:#D5C7BA;border-radius:8px;}

/* --- OVERRIDES TO PREVENT OVERLAPPING --- */
.card, .feature-grid > div, .testimonial-card {margin-bottom: 20px;}
.content-wrapper > *:not(:last-child) {margin-bottom: 12px;}

/* --- Z-INDEX LAYERING for menus and modals --- */
header,
.mobile-menu, .cookie-banner, .cookie-modal {
  z-index: 2100;
}
.mobile-menu {z-index: 3000;}
.cookie-banner {z-index: 3100;}
.cookie-modal {z-index: 3200;}

/* --- ACCESSIBILITY: FOCUS-VISIBLE FOR ALL BUTTON-LIKE ITEMS --- */
button:focus-visible, .cta-btn-primary:focus-visible, a:focus-visible {
  outline: 2px solid #B04B13;
  outline-offset: 2px;
}

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