/* ====================== 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
html {
  line-height: 1.15;
}
body {
  line-height: 1.5;
  background: #FFF;
  color: #28303D;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}  

/* ==================== CSS VARIABLES (STATIC FALLBACKS) ================== */
:root {
  --clr-primary: #28303D;
  --clr-secondary: #C3B7A6;
  --clr-accent: #23517D;
  --clr-bg: #FFFFFF;
  --clr-muted: #F8F9FB;
  --clr-border: #EBEBEB;
  --font-display: 'Merriweather', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ======================== LAYOUT CONTAINERS ============================ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.section, 
.hero, 
.features, 
.about, 
.services, 
.contact-info, 
.legal, 
.cta {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (min-width: 768px) {
  .section, 
  .hero, 
  .features, 
  .about, 
  .services, 
  .contact-info, 
  .legal, 
  .cta {
    padding: 60px 0;
  }
}

/* ======================== TYPOGRAPHY =============================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--clr-primary);
  font-weight: 700;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.1;
  margin-bottom: 0.3em;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.6em;
}
h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 0.2em;
}
p, li {
  font-family: var(--font-body);
  color: #28303D;
  font-size: 1rem;
  line-height: 1.7;
}
strong {
  font-weight: 700;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.brand-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ======================= HEADER & NAVIGATION ======================== */
header {
  width: 100%;
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
  margin-right: 8px;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1rem;
}

.main-nav a {
  color: var(--clr-primary);
  padding: 6px 0;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--clr-accent);
}
.main-nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background: var(--clr-accent);
  transition: width 0.24s;
  position: absolute;
  left: 0; bottom: 0;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}

.cta-btn {
  padding: 8px 28px;
  background: var(--clr-accent);
  color: #fff;
  border-radius: 24px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 10px 0 rgba(40, 48, 61, 0.08);
  border: none;
  transition: background 0.18s, box-shadow 0.24s, transform 0.14s;
  display: inline-block;
  margin-left: 12px;
  margin-right: 0;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #1c3d5a;
  box-shadow: 0 6px 24px -2px rgba(40, 48, 61, 0.13);
  transform: translateY(-2px) scale(1.03);
}

.mobile-menu-toggle {
  display: block;
  font-size: 2rem;
  color: var(--clr-accent);
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 16px;
  transition: color 0.18s;
  z-index: 50;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #1c3d5a;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
  .mobile-menu-toggle {
    display: none;
  }
}
@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: auto;
  }
}

/* =================== MOBILE NAVIGATION SLIDE MENU =================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.79, .03, .16, .97);
  box-shadow: 0 6px 32px -10px rgba(40, 48, 61, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 28px 8px 0;
  font-size: 1.8rem;
  color: var(--clr-accent);
  background: none;
  border: none;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #1c3d5a;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 32px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--clr-primary);
  padding: 10px 0 6px 0;
  width: 100%;
  border-radius: 5px;
  font-family: var(--font-body);
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--clr-accent);
  background: var(--clr-muted);
  padding-left: 6px;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }
}

/* ================== HERO AND MAJOR SECTIONS STYLES ==================== */
.hero {
  background: var(--clr-muted);
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 50px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
  max-width: 700px;
}
.hero h1 {
  color: var(--clr-primary);
  font-size: 2.1rem;
}
.hero h2 {
  color: var(--clr-accent);
  font-weight: 400;
  font-size: 1.3rem;
}
@media (min-width: 768px) {
  .hero {
    padding: 70px 0 60px 0;
  }
  .hero h1 {
    font-size: 2.75rem;
  }
  .hero .content-wrapper {
    max-width: 900px;
  }
}

.section, .about, .features, .services, .contact-info, .cta, .legal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(40, 48, 61, 0.04);
}

/* =================== FEATURES & SERVICES GRIDS ==================== */
.features ul, .services ul, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-left: 0;
}
.features ul li, .services ul li, .feature-grid li {
  background: var(--clr-muted);
  border-radius: 12px;
  box-shadow: 0 1px 7px 0 rgba(40,48,61,.05);
  padding: 24px 20px 20px 20px;
  flex: 1 1 230px;
  min-width: 180px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}
.feature-grid li img {
  height: 38px;
  width: 38px;
  margin-bottom: 12px;
}
.features h3, .feature-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
  color: var(--clr-accent);
  font-family: var(--font-display);
  font-weight: 700;
}

@media (max-width: 767px) {
  .features ul, .services ul, .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .features ul li, .services ul li, .feature-grid li {
    width: 100%;
    min-width: unset;
  }
}

/* ===================== TESTIMONIALS =========================== */
.testimonials .content-wrapper {
  gap: 28px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #FAFAFA;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(40,48,61,0.07);
  color: #1c2330;
  /* Always dark text on light background */
  max-width: 540px;
  font-size: 1rem;
}
.testimonial-card p {
  color: #1c2330;
  font-size: 1.05rem;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--clr-accent);
  font-weight: 700;
}
.testimonial-card div {
  color: #43484f;
  font-size: .98rem;
  opacity: .89;
}
@media (min-width: 768px) {
  .testimonials .content-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
  }
  .testimonial-card {
    min-width: 350px;
    flex: 1 1 380px;
  }
}

/* ================ CONTENTS & INFO SECTION STYLES ================== */
.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;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 7px 0 rgba(40,48,61,0.06);
  padding: 30px 20px 22px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ================= CTA, ABOUT, LEGAL SECTIONS STYLES ================= */
.cta {
  background: var(--clr-muted);
  border-radius: 14px;
  box-shadow: 0 1px 12px 0 rgba(40, 48, 61, 0.06);
  text-align: left;
  margin-bottom: 0;
}
.cta .cta-btn {
  margin-top: 24px;
}

.about, .services, .contact-info, .legal {
  border-radius: 14px;
  background: #fff;
}

.legal h1, .legal h2 {
  color: var(--clr-accent);
  margin-bottom: 16px;
}
.legal ul, .legal ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

/* ================== FOOTER ============================== */
footer {
  width: 100%;
  background: var(--clr-muted);
  border-top: 1px solid var(--clr-border);
  padding: 38px 0 24px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.footer-branding img {
  height: 34px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 18px 0 5px 0;
  font-family: var(--font-body);
  font-size: 1rem;
}
.footer-nav a {
  color: var(--clr-primary);
  opacity: 0.8;
  font-weight: 400;
  transition: color 0.16s, opacity 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--clr-accent);
  opacity: 1;
}
.footer-contact p, .footer-contact a {
  color: #596578;
  font-size: 0.98rem;
  opacity: 0.95;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: var(--clr-accent);
}
@media (min-width: 768px) {
  footer .container {
    flex-direction: row;
    gap: 48px;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/* ================ BUTTONS & LINK STATES =============== */
button, .cta-btn, input[type="submit"] {
  transition: background 0.18s, color 0.16s, box-shadow 0.18s, transform 0.13s;
}
button:focus, .cta-btn:focus, input[type="submit"]:focus {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--clr-accent);
  border-radius: 2px;
}

/* ============= UTILITIES: WHITE-SPACE, BORDERS, GAPS =============== */
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ======================== COOKIE CONSENT =============================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-top: 1px solid var(--clr-border);
  box-shadow: 0 -2px 16px -6px rgba(40, 48, 61, 0.11);
  padding: 18px 12px 18px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(.58, .04, .46, .94);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-banner__text {
  color: var(--clr-primary);
  font-size: 1rem;
  max-width: 550px;
  margin-right: 32px;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  padding: 7px 22px;
  border-radius: 18px;
  font-size: 1rem;
  border: none;
  background: var(--clr-accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 8px 0 rgba(40,48,61,.07);
  transition: background 0.16s, box-shadow 0.17s, transform 0.12s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #1c3d5a;
  transform: translateY(-1px) scale(1.04);
}
.cookie-btn--reject {
  background: #C3B7A6;
  color: #28303D;
}
.cookie-btn--reject:hover, .cookie-btn--reject:focus {
  background: #b5a996;
  color: #1c2330;
}
.cookie-btn--settings {
  background: #f6f6f6;
  color: var(--clr-accent);
  border: 1px solid #e0e0e0;
}
.cookie-btn--settings:hover, .cookie-btn--settings:focus {
  background: #eaeaea;
}

/* COOKIE SETTINGS MODAL (fixed, centered, accessible) */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  justify-content: center;
  align-items: center;
  background-color: rgba(40, 48, 61, 0.32);
  transition: background 0.25s;
}
#cookie-modal.open {
  display: flex;
}
.cookie-modal__content {
  background: #fff;
  padding: 38px 22px 24px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 30px 0 rgba(40,48,61,0.24);
  min-width: 320px;
  max-width: 95vw;
  width: 460px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: fadeInModal 0.28s ease-in;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.cookie-modal__title {
  font-size: 1.32rem;
  color: var(--clr-accent);
  font-family: var(--font-display);
  font-weight: 700;
}
.cookie-modal__close {
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--clr-accent);
  transition: color 0.13s;
}
.cookie-modal__close:focus, .cookie-modal__close:hover {
  color: #1c3d5a;
}
.cookie-modal__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  color: var(--clr-primary);
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-category input[type=checkbox],
.cookie-category input[type=radio] {
  accent-color: var(--clr-accent);
  width: 1.1em;
  height: 1.1em;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 400;
  color: var(--clr-primary);
}
.cookie-modal__footer {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 560px) {
  .cookie-modal__content {
    max-width: 97vw;
    min-width: 0;
    padding: 20px 8px 18px 8px;
  }
  .cookie-banner__text {
    margin-right: 12px;
    font-size: .98rem;
  }
}

/* ======================== MEDIA QUERIES =========================== */
@media (max-width: 1023px) {
  header .container {
    flex-wrap: wrap;
    gap: 14px;
    min-height: 50px;
  }
  .footer-branding {
    margin-bottom: 18px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  h1 {
    font-size: 1.47rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .hero, .section, .features, .about, .services, .testimonials, .contact-info, .legal, .cta {
    padding: 28px 0 26px 0;
    margin-bottom: 40px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .footer-nav, .footer-contact, .footer-branding {
    align-items: flex-start;
  }
  .cta-btn {
    font-size: 0.97rem;
    padding: 8px 19px;
  }
}

/* ======================= MISC/HELPER ======================= */
::-webkit-input-placeholder { color: #A5AEB8; }
::-moz-placeholder { color: #A5AEB8; }
:-ms-input-placeholder { color: #A5AEB8; }
::placeholder { color: #A5AEB8; }

hr {
  height: 1px;
  border: none;
  background: var(--clr-border);
  margin: 32px 0;
}

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