/* ==== CSS RESET & NORMALIZATION ==== */
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;
  vertical-align: baseline;
  font: inherit;
  background: transparent;
  box-sizing: border-box;
}
html {
  line-height: 1.15; /* fix for normalizing line-height */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  background: #F8FBFE;
  color: #233043;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
article, aside, footer, header, nav, section, main {
  display: block;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 24px;
}
strong, b { font-weight: 700; }

a {
  color: #233043;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #7A4E19;
}
button, input, select, textarea {
  font: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

/* ==== BRAND FONTS ==== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400|Open+Sans:400,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #233043;
}
h1 { font-size: 2.5rem; line-height: 1.14; margin-bottom: 24px; }
h2 { font-size: 2rem;   line-height: 1.18; margin-bottom: 20px; }
h3 { font-size: 1.30rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol, li { font-family: 'Open Sans', Arial, Helvetica, sans-serif; font-size: 1rem; color: #273750; line-height: 1.6; }

/* ==== COLOR VARIABLES ==== */
:root {
  --color-primary: #233043;
  --color-primary-dark: #1a2534;
  --color-secondary: #7A4E19;
  --color-secondary-dark: #593818;
  --color-accent: #F3E9DA;
  --color-bg: #F8FBFE;
  --color-border: #D7DEE8;
  --color-text-dark: #18202A;
  --color-text: #233043;
  --color-text-light: #F9FAFB;
  --color-shadow: rgba(35,48,67,0.10);
}

/* ==== CONTAINERS & STRUCTURE ==== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
}
.text-section {
  max-width: 720px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 28px 8px;
  }
  .text-section {
    max-width: 100%;
  }
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: #fff;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 0;
  width: 100%;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}
header a img {
  height: 48px;
  width: auto;
  margin-right: 16px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  text-decoration: none;
  color: #233043;
  font-weight: 500;
  padding: 9px 10px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
nav.main-nav a:hover,
nav.main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
nav.main-nav .button-primary {
  margin-left: 14px;
}

/* ==== BUTTONS ==== */
.button-primary {
  background: var(--color-primary);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 11px 26px;
  border: none;
  border-radius: 5px;
  box-shadow: 0 2px 8px var(--color-shadow);
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s;
  outline: none;
}
.button-primary:hover,
.button-primary:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 4px 20px var(--color-shadow);
}
.button-secondary {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 22px;
  border: 1px solid var(--color-secondary);
  border-radius: 4px;
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.button-secondary:hover,
.button-secondary:focus {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary-dark);
}

/* ==== FLEXBOX LAYOUT PATTERNS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 16px var(--color-shadow);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 20px;
  transition: box-shadow 0.2s;
  flex: 1 1 300px;
}
.card:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: #f8fbfe;
  border-radius: 9px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 20px;
  max-width: 700px;
  transition: box-shadow 0.18s, background 0.16s;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #233043;
  line-height: 1.5;
  margin-bottom: 0px;
}
.testimonial-card strong {
  color: var(--color-primary);
}
.testimonial-card:hover {
  background: #F3E9DA;
  box-shadow: 0 8px 20px var(--color-shadow);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== FEATURE, SERVICE, FAQ GRIDS ==== */
.feature-grid, .service-list, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 20px 0;
}
.feature-grid > div, .service-list > div, .faq-list > div {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 24px 18px 18px 18px;
  flex: 1 1 220px;
  min-width: 230px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, background 0.2s;
}
.feature-grid > div:hover,
.service-list > div:hover,
.faq-list > div:hover {
  background: var(--color-accent);
  box-shadow: 0 8px 28px var(--color-shadow);
}
.feature-grid img { height: 44px; margin-bottom: 10px; }

/* ==== STEP-BY-STEP / TIMELINE ==== */
.step-by-step-process ol {
  list-style-type: decimal;
  margin-left: 17px;
  margin-bottom: 20px;
  color: #233043;
}
.step-by-step-process li {
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.timeline ul {
  margin-left: 17px;
  color: #233043;
}
.timeline li {
  margin-bottom: 7px;
  font-size: 1rem;
}
.faq-highlight {
  background: #F3E9DA;
  border-left: 6px solid var(--color-secondary);
  border-radius: 8px;
  padding: 18px 18px 14px 18px;
  margin-top: 22px;
}

/* ==== LEGAL SECTION ==== */
.legal-section {
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 12px var(--color-shadow);
  border-radius: 10px;
  padding: 32px 22px 14px 22px;
  margin-top: 36px;
}

/* ===== CONTACT DETAILS ==== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}
.contact-details img {
  height: 20px;
  width: 20px;
  margin-right: 8px;
  vertical-align: middle;
}
.contact-details p {
  font-size: 1rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
}
.contact-details strong {
  min-width: 73px;
  display: inline-block;
}

/* ==== FOOTER ==== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 36px 0 0 0;
  border-top: 3px solid var(--color-secondary);
}
footer .container {
  flex-direction: column;
  gap: 18px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  text-decoration: underline;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: color 0.15s, opacity 0.18s;
}
.footer-nav a:hover {
  color: var(--color-accent);
  opacity: 1;
}
.footer-contact {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 22px;
}
.footer-contact a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ==== MOBILE BURGER MENU ==== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  transition: background 0.2s;
  z-index: 102;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 94vw;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 32px rgba(35,48,67,0.16);
  z-index: 9999;
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.53,0.14,0.13,0.93);
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: all;
  opacity: 1;
  transition: transform 0.32s cubic-bezier(0.53,0.14,0.13,0.93), opacity 0.20s;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #233043;
  font-size: 2rem;
  margin: 18px 18px 10px 0;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 32px 24px 32px;
}
.mobile-nav a {
  color: #233043;
  font-size: 1.19rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-decoration: none;
  padding: 13px 6px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: var(--color-accent);
}

/* ===== RESPONSIVE HEADER & MENU ===== */
@media (max-width: 991px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  header .container {
    flex-wrap: wrap;
    gap: 0;
  }
}
@media (min-width: 992px) {
  .mobile-menu, .mobile-menu-toggle { display: none; }
}

/* ==== RESPONSIVENESS & MOBILE-ADJUSTED LAYOUTS ==== */
@media (max-width: 990px) {
  .feature-grid, .service-list, .faq-list {
    gap: 18px;
  }
  .feature-grid > div, .service-list > div, .faq-list > div {
    min-width: 120px;
    flex: 1 1 180px;
    padding: 19px 13px 13px 13px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .service-list, .faq-list {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    gap: 10px;
  }
  footer .container {
    padding: 0 6px;
  }
  header a img {
    height: 34px;
    margin-right: 7px;
  }
}
@media (max-width: 520px) {
  .footer-nav {
    gap: 10px;
    font-size: 0.87rem;
    flex-wrap: wrap;
  }
  .footer-contact { font-size: 0.92rem; }
  .testimonial-card { padding: 14px 8px; }
  footer { padding: 22px 0 0 0; }
  .legal-section { padding: 20px 6px; }
}

/* ===== HERO SECTION CUSTOMS ===== */
section:first-of-type {
  background: linear-gradient(93deg, #F3E9DA 0%, #F8FBFE 65%);
  border-top: 4px solid var(--color-secondary);
}

/* ====== INTERACTIVE STATES & MICRO-INTERACTIONS ====== */
.button-primary, .button-secondary {
  transition: background 0.18s, color 0.16s, box-shadow 0.22s;
}
.feature-grid > div, .service-list > div, .faq-list > div, .testimonial-card {
  transition: box-shadow 0.18s, background 0.17s;
}
.card:hover, .feature-grid > div:hover, .service-list > div:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
}

/* ==== COOKIE CONSENT BANNER & MODAL ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: #233043;
  border-top: 2px solid var(--color-secondary);
  box-shadow: 0 -2px 20px rgba(35,48,67,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 22px 16px;
  z-index: 99999;
  font-size: 1rem;
  transition: transform 0.28s ease, opacity 0.18s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 1 1 340px;
  max-width: 660px;
  color: #233043;
  line-height: 1.4;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.03rem;
  padding: 8px 20px;
  border-radius: 5px;
  border: 1px solid var(--color-secondary);
  transition: background 0.14s, color 0.15s, border 0.14s;
  margin-right: 4px;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-secondary);
}
.cookie-btn.reject:hover {
  background: #F3E9DA;
  color: var(--color-secondary);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}
.cookie-btn.settings:hover {
  background: #fff;
  color: var(--color-secondary);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 8px;
    font-size: 0.96rem;
  }
  .cookie-banner .cookie-actions {
    flex-direction: row;
    width: 100%;
    gap: 7px;
  }
}

/* ==== COOKIE PREFERENCE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,48,67,0.28);
  z-index: 100001;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open { display: flex; }
.cookie-modal {
  background: #fff;
  border-radius: 13px;
  max-width: 390px;
  width: 95vw;
  box-shadow: 0 8px 48px rgba(35,48,67,0.15);
  border: 2px solid var(--color-secondary);
  padding: 32px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.26s;
}
@keyframes modalFadeIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 { font-size: 1.3rem; margin-bottom: 18px; }
.cookie-modal ul {
  margin-bottom: 22px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  color: #233043;
}
.cookie-modal .toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px; height: 22px;
}
.cookie-modal .toggle-switch input {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #DFE6ED;
  border-radius: 18px;
  transition: background 0.12s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  background: var(--color-secondary);
}
.cookie-modal .slider:before {
  position: absolute;
  content: '';
  height: 18px; width: 18px;
  left: 2px; bottom: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(35,48,67,0.11);
  transition: transform 0.16s;
}
.cookie-modal .toggle-switch input:checked + .slider:before {
  transform: translateX(22px);
}
.cookie-modal .essential {
  color: #233043;
  opacity: 0.52;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px; right: 21px;
  font-size: 1.5rem;
  background: none;
  color: #233043;
  border: none;
  cursor: pointer;
  padding: 2px 7px;
  z-index: 1022;
}
.cookie-modal .close-modal:hover {
  color: var(--color-secondary);
}

/* ==== UTILITIES ==== */
.mt-24 { margin-top: 24px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.gap-20 { gap: 20px; }

/* ==== ACCESSIBILITY FOCUS RING ==== */
a, button, input, select, textarea {
  outline: none;
}
a:focus, button:focus, .button-primary:focus, .button-secondary:focus {
  box-shadow: 0 0 0 3px var(--color-accent), 0 2px 8px var(--color-shadow);
}

/* ==== Z-INDEX MANAGEMENT ==== */
header { z-index: 1000; position: relative; }
.mobile-menu { z-index: 9999; }
.cookie-banner { z-index: 10011; }
.cookie-modal-overlay { z-index: 10022; }

/* STYLING LISTS (ul/ol) INSIDE .text-section/CONTENT */
.text-section ul, .text-section ol {
  margin-bottom: 18px;
  font-size: 1rem;
  color: #233043;
  padding-left: 24px;
}

/* EMPHASIS FOR CALLS TO ACTION */
.text-section .button-primary {
  margin-top: 18px;
}

/* ===== OTHER FINE TUNES ===== */
hr {
  border-top: 1px solid var(--color-border);
  margin: 34px 0;
}

/* ===== PRINT FRIENDLY ==== */
@media print {
  * { color: #233043 !important; background: #fff !important; box-shadow: none !important; }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
