/* =========================
   RESET & BASE TYPOGRAPHY
   ========================= */

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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Georgia, 'Times New Roman', Times, serif;
  color: #2A3142;
  background: #F6F8FA;
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: #d13a150f;
}
:root {
  --primary: #183054;
  --secondary: #F6F8FA;
  --accent: #D13A15;
  --gray-light: #e4e8ee;
  --gray: #b2bacd;
  --shadow: 0 2px 16px 0 rgba(24,48,84,0.07);
  --radius: 12px;
  --serif-head: 'Montserrat', Georgia, serif;
  --serif-body: 'Open Sans', Georgia, serif;
}
img {
  max-width: 100%;
  vertical-align: middle;
  border-style: none;
}
a {
  color: var(--primary);
  text-underline-position: under;
  transition: color .20s;
  text-decoration-thickness: 1px;
}
a:hover, a:focus {
  color: var(--accent);
  outline: none;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1.2em;
}
ul li, ol li {
  margin-bottom: 0.4em;
}

small {
  font-size: 85%;
  color: var(--gray);
}

/* ===============
   TYPOGRAPHY
   =============== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif-head);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.75rem; /* 44px */
  line-height: 1.15;
}
h2 {
  font-size: 2rem; /* 32px */
  line-height: 1.18;
}
h3 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 10px;
}
h4 {
  font-size: 1.25rem;
}
p {
  font-size: 1rem; /* 16px */
  margin-bottom: 18px;
  color: #2A3142;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* =====================
   CONTAINER & LAYOUTS
   ===================== */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 40px;
  }
}

/* =======================
   HEADER & NAVIGATION
   ======================= */
header {
  background: #fff;
  border-bottom: 1px solid #ECEFF3;
  box-shadow: 0 2px 10px 0 rgba(24,48,84,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  min-height: 72px;
  justify-content: flex-start;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
header nav a {
  font-family: var(--serif-body);
  font-size: 1rem;
  color: var(--primary);
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--accent);
  outline: none;
}
.cta {
  display: inline-block;
  font-family: var(--serif-head);
  background: var(--accent);
  color: #fff !important;
  padding: 12px 30px;
  font-size: 1.12rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 24px;
  box-shadow: 0 2px 8px 0 rgba(209,58,21,0.07);
  letter-spacing: 0.02em;
  transition: background .18s, box-shadow .22s;
  margin-left: auto;
  margin-right: 8px;
  border: none;
  cursor: pointer;
}
.cta:hover, .cta:focus {
  background: #a62c11;
  color: #fff;
  box-shadow: 0 6px 16px 0 rgba(209,58,21,0.14);
  outline: none;
}
.mobile-menu-toggle {
  display: none;
}
/* ============= Mobile Nav ============ */
@media (max-width: 1024px) {
  header .container {
    gap: 12px;
  }
}
@media (max-width: 960px) {
  header nav {
    display: none;
  }
  .cta {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
    font-size: 2rem;
    color: var(--primary);
    background: transparent;
    border: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 44px;
    height: 44px;
    margin-left: 12px;
    transition: background .2s;
    border-radius: 10px;
  }
  .mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    background: var(--secondary);
    color: var(--accent);
    outline: none;
  }
}

/* ======= MOBILE MENU OVERLAY ========= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 32px 0 rgba(24,48,84,0.16);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.6,.01,.4,1);
  display: flex;
  flex-direction: column;
  padding: 40px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  z-index: 120;
  transition: color .16s;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
  background: #f0e7e5;
  border-radius: 50%;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 60px;
  align-items: center;
}
.mobile-nav a {
  font-family: var(--serif-head);
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
  padding: 12px 34px;
  border-radius: 24px;
  transition: background .17s, color .21s;
  text-align: center;
  min-width: 220px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: #fff;
  outline: none;
}
@media (min-width: 961px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Overlay when menu open */
.mobile-menu::before {
  content: '';
  display: none;
}
.mobile-menu.open {
  box-shadow: 0 2px 24px 0 rgba(24,48,84,0.21);
}

/* =========================
   HERO / MAIN SECTIONS
   ========================= */
.hero {
  background: var(--secondary);
  padding: 64px 0 32px 0;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -1.3px;
  margin-bottom: 6px;
}
.hero p {
  font-size: 1.18rem;
  color: #475177;
}
@media (max-width: 768px) {
  .hero {
    padding: 40px 0 10px 0;
    min-height: 180px;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* =========================
     CARD & FLEX LAYOUTS
   ========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  min-width: 260px;
  transition: box-shadow .19s, transform .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 22px 0 rgba(24,48,84,0.15);
  transform: translateY(-3px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

/* =========================
     TESTIMONIALS CARD
   ========================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px 28px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px 0 rgba(24,48,84,0.07);
  margin-bottom: 24px;
  position: relative;
  min-width: 260px;
  border-left: 5px solid var(--accent);
  font-size: 1.1rem;
  transition: box-shadow .17s, background .17s;
  color: #222e3e;
}
.testimonial-card p {
  color: #222e3e;
  font-style: italic;
  margin: 0 0 4px 0;
}
.testimonial-card span {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  margin-left: 8px;
  font-family: var(--serif-head);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(24,48,84,0.17);
  background: #f6f8fa;
}

@media (max-width: 620px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 14px;
    gap: 8px;
  }
}

/* =========================
    FEATURES, UL, CTA SEC
   ========================= */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.cta-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  .cta-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

ul {
  list-style: disc outside;
  padding-left: 24px;
}
ul li {
  font-size: 1rem;
  margin-bottom: 10px;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: #fff;
  border-top: 1px solid #ECEFF3;
  padding: 40px 0 30px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  font-size: 0.99rem;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--primary);
}
footer nav a {
  color: var(--primary);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 1rem;
  transition: background .17s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
  background: #f6f8fa;
  outline: none;
}
footer address {
  font-style: normal;
  color: #475177;
  font-size: 0.98rem;
}
footer img {
  height: 36px;
  margin-bottom: 4px;
}
@media (max-width: 650px) {
  footer {
    padding: 24px 0 18px 0;
  }
  footer .container {
    gap: 14px;
    font-size: 0.93rem;
  }
}

/* =====================
   FORMS & ELEMENTS
   ===================== */
input, select, textarea {
  font-family: var(--serif-body);
  font-size: 1rem;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 9px 12px;
  outline: none;
  box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #D13A1526;
}
button {
  font-family: var(--serif-head);
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 990;
  background: #fff;
  border-top: 1px solid #ECEFF3;
  color: #2A3142;
  box-shadow: 0 -3px 24px 0 rgba(24,48,84,0.11);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 28px 34px 25px 34px;
  gap: 24px;
  transition: transform .42s cubic-bezier(.8,0,.18,1);
}
.cookie-banner.hide {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner__text {
  flex: 1;
  font-size: 1rem;
  color: #2A3142;
  margin-right: 32px;
  font-family: var(--serif-body);
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  font-family: var(--serif-head);
  padding: 10px 28px;
  margin: 0 2px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent);
  color: #fff;
  outline: none;
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--gray);
  transition: background .18s, color .16s, border .13s;
}
.cookie-btn.settings:hover {
  background: #ECEFF3;
  color: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 10px 18px 10px;
    gap: 13px;
  }
  .cookie-banner__text {
    margin-right: 0;
    margin-bottom: 8px;
  }
  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

/* =====================
   COOKIE MODAL
   ===================== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(24,48,84,0.40);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 10px 40px 0 rgba(24,48,84,0.24);
  padding: 40px 33px 32px 33px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform .35s;
  transform: translateY(32px) scale(0.98);
}
.cookie-modal-overlay.active .cookie-modal {
  transform: translateY(0) scale(1);
}
.cookie-modal__title {
  font-family: var(--serif-head);
  font-size: 1.43rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
}
.cookie-modal__group {
  margin-bottom: 0;
  padding-bottom: 0;
}
.cookie-modal__row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-modal label {
  font-family: var(--serif-body);
  font-size: 1.09rem;
  flex: 1;
}
.cookie-toggle {
  appearance: none;
  width: 46px; height: 26px;
  border-radius: 16px;
  background: #e4e8ee;
  position: relative;
  transition: background .22s;
  outline: none;
  cursor: pointer;
  margin-left: 8px;
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px 0 rgba(24,48,84,0.07);
  transition: left .18s;
}
.cookie-toggle:checked::after {
  left: 24px;
}
.cookie-modal__actions {
  display: flex;
  gap: 17px;
  margin-top: 20px;
  justify-content: flex-end;
}
.cookie-modal__close {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 1.7rem;
  color: var(--primary);
  border: none; background: none;
  cursor: pointer;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: var(--accent);
}
@media (max-width: 520px) {
  .cookie-modal {
    padding: 20px 7vw 18px 7vw;
    min-width: 0;
  }
}

/* =========================
   SPACING & FLEX UTILITIES
   ========================= */
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }

/* ===========================
   MICRO-ANIMATIONS & EFFECTS
   =========================== */
.card, .feature-item, .testimonial-card, .cta, .cookie-btn {
  transition: box-shadow .18s, background .15s, color .18s, transform .15s, border .13s;
}
.card:active, .cta:active, .feature-item:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* =======================
   ACCESSIBILITY & MISC
   ======================= */
:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

::-webkit-input-placeholder { color: #8a90a3; opacity: 1; }
::-moz-placeholder { color: #8a90a3; opacity: 1; }
:-ms-input-placeholder { color: #8a90a3; opacity: 1; }
::placeholder { color: #8a90a3; opacity: 1; }

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.28rem;
  }
}

/* ===========================
   BRAND/ELEGANT CLASSIC EXTRAS
   =========================== */
body, .cookie-modal, .card, .feature-item, .testimonial-card, .section {
  font-family: var(--serif-body);
}
.card, .testimonial-card, .feature-item {
  border: 1px solid #eceff399;
}
.section > .container > .content-wrapper > h2 {
  font-family: var(--serif-head);
  font-size: 2rem;
  margin-bottom: 14px;
  color: var(--primary);
}

/* News-specific accent for classic style */
.card .card-title, .feature-item strong, .testimonial-card strong {
  color: var(--accent);
}

/* Lists in .content-wrapper */
.content-wrapper ul {
  list-style: none;
  padding-left: 0;
}
.content-wrapper ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
}
.content-wrapper ul li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.1em;
}
@media (max-width: 600px) {
  .content-wrapper ul li {
    padding-left: 18px;
    margin-bottom: 9px;
  }
  .content-wrapper ul li::before {
    left: 0.5px;
  }
}

/* ================
   HIGHLIGHTS
   ================ */
.mark, mark {
  background: #ffd6ca!important;
  color: #a62c11;
  border-radius: 3px;
  padding: 0 2px;
}

/* ===============
   ICONS IN LISTS
   =============== */
.content-wrapper ul li img {
  vertical-align: middle;
  width: 20px;
  margin-right: 5px;
}

/* =====================
   SPECIAL PAGES
   ===================== */
.hero + section {
  margin-top: 0;
}

/* ====================
   THANK YOU PAGE CTA
   ==================== */
.thank-you-cta {
  margin-top: 24px;
  font-size: 1.18rem;
}

/* ================
   SCROLLBAR
   ================ */
body {
  scrollbar-color: #b2bacd #F6F8FA;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 10px;
  background: #F6F8FA;
}
::-webkit-scrollbar-thumb {
  background: #b2bacd4c;
  border-radius: 10px;
}
/* ====================
   PRINT SETTINGS
   ==================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner {
    display: none !important;
  }
  body, .container, .section {
    background: #fff !important;
    color: #181818 !important;
  }
}
