/* =====================================================
   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, input, button, textarea {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
body {
  line-height: 1.5;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, textarea, select {
  font: inherit;
  outline: none;
  background: none;
  border: none;
}

/* =====================================================
   BRAND & GENERAL VARIABLES (with fallbacks)
===================================================== */
:root {
  --brand-primary: #203043;
  --brand-secondary: #F6C744;
  --brand-accent: #FFFFFF;
  --brand-bg: #FAF8F4;
  --brand-bg-alt: #F0ECE7;
  --gray-100: #f8f7f6;
  --gray-200: #ebe7e2;
  --gray-300: #dedad4;
  --gray-900: #191b20;
  --brand-font-display: 'Montserrat', 'Georgia', serif;
  --brand-font-body: 'Open Sans', 'Georgia', serif;
}

body {
  font-family: var(--brand-font-body);
  background: var(--brand-bg);
  color: var(--brand-primary);
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1110px;
  margin: 0 auto;
  padding: 0 24px;
}

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

main {
  padding-bottom: 54px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px 0 20px;
}

.text-section {
  max-width: 760px;
  margin: 0 auto 0 0;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--brand-font-display);
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 40px;
  line-height: 1.1;
}
h2 {
  font-size: 28px;
  line-height: 1.2;
  margin-top: 20px;
}
h3 {
  font-size: 20px;
  margin-top: 8px;
  line-height: 1.25;
}
h4, h5, h6 {
  font-size: 16px;
}

p, ul, li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--brand-primary);
}
strong {
  font-weight: 700;
  color: var(--brand-primary);
}
em {
  font-style: italic;
}

/* Hierarchy overriding for hero */
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.08;
}
.hero p {
  font-size: 20px;
  color: var(--brand-primary);
  margin-bottom: 32px;
}

/* =====================================================
   HEADER & NAVIGATION
===================================================== */
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--brand-accent);
  box-shadow: 0 2px 12px 0 rgba(32, 48, 67, 0.05);
  z-index: 100;
  position: relative;
}
header > a img {
  height: 42px;
  width: auto;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}
header nav a {
  font-family: var(--brand-font-body);
  font-size: 16px;
  padding: 8px 2px;
  color: var(--brand-primary);
  position: relative;
  transition: color 0.2s, border-bottom 0.2s;
}
header nav a:hover,
header nav a:focus {
  color: var(--brand-secondary);
  border-bottom: 2px solid var(--brand-secondary);
}
header .cta {
  margin-left: 32px;
}

/* Hamburger (mobile) */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-size: 30px;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  position: absolute;
  right: 16px;
  top: 24px;
  z-index: 201;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--brand-primary);
  color: var(--brand-accent);
}

@media (max-width: 1023px) {
  header nav {
    display: none;
  }
  header .cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =====================================================
   MOBILE MENU OVERLAY
===================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--brand-primary);
  color: var(--brand-accent);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.76,.01,.61,.98);
  box-shadow: 0 2px 16px 0 rgba(32,48,67,0.10);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  color: var(--brand-accent);
  font-size: 34px;
  align-self: flex-end;
  margin: 34px 24px 22px 0;
  cursor: pointer;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-left: 40px;
}
.mobile-nav a {
  font-family: var(--brand-font-body);
  font-size: 22px;
  color: var(--brand-accent);
  padding: 10px 0;
  transition: color 0.2s, border-bottom 0.2s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--brand-secondary);
  border-bottom: 2px solid var(--brand-secondary);
}

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

/* =====================================================
   HERO SECTION
===================================================== */
.hero {
  background: var(--brand-bg-alt);
  padding: 56px 0 40px 0;
  margin-bottom: 60px;
}
.hero .container > .content-wrapper {
  align-items: flex-start;
  gap: 24px;
}
.hero .cta {
  margin-top: 16px;
}

/* =====================================================
   CTA BUTTON STYLES
===================================================== */
.cta {
  display: inline-block;
  font-size: 18px;
  font-family: var(--brand-font-display);
  font-weight: 700;
  color: var(--brand-accent);
  background: var(--brand-secondary);
  padding: 13px 36px;
  border-radius: 100px;
  box-shadow: 0 3px 16px 0 rgba(246,199,68, .05);
  outline: none;
  border: none;
  text-align: center;
  letter-spacing: 0.02em;
  transition: background 0.16s, color 0.16s, box-shadow 0.2s;
  margin-top: 20px;
  cursor: pointer;
}
.cta:focus,
.cta:hover {
  background: var(--brand-primary);
  color: var(--brand-secondary);
  box-shadow: 0 5px 18px 0 rgba(32,48,67,0.09);
}

/* =====================================================
   FLEX CONTAINER PATTERNS (MANDATORY)
===================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--brand-accent);
  border-radius: 20px;
  box-shadow: 0 3px 16px 0 rgba(32,48,67,0.07);
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 10px 32px 0 rgba(32,48,67,0.16);
  transform: translateY(-3px) scale(1.01);
}
.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: 16px;
  padding: 28px 32px;
  background: var(--gray-100);
  border-radius: 18px;
  margin-bottom: 24px;
  box-shadow: 0 3px 16px 0 rgba(32,48,67,0.05);
  color: var(--brand-primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 0 0 24px 0;
}
.feature-grid > li {
  background: var(--brand-accent);
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(32,48,67,0.06);
  padding: 28px 20px 22px 20px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 240px;
  gap: 16px;
  margin-bottom: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > li:hover {
  box-shadow: 0 8px 22px 0 rgba(32,48,67,0.13);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
}

/* SERVICES-LIST (OFFER WIDGET) */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 36px 0 0 0;
}
.services-list > li {
  background: var(--brand-accent);
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(32,48,67,0.06);
  flex: 1 1 280px;
  padding: 30px 24px 28px 24px;
  margin-bottom: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.services-list > li:hover {
  box-shadow: 0 9px 28px 0 rgba(32,48,67,0.13);
  transform: translateY(-2px) scale(1.012);
}
.services-list h3, .services-list h2 {
  font-size: 20px;
  font-family: var(--brand-font-display);
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 0;
}
.services-list p {
  font-size: 16px;
  color: var(--brand-primary);
}

@media (max-width: 900px) {
  .services-list, .feature-grid {
    flex-direction: column;
  }
  .services-list > li, .feature-grid > li {
    width: 100%;
  }
}

/* General lists with icons */
ul > li img {
  margin-right: 12px;
  width: 28px;
  height: 28px;
  vertical-align: middle;
  display: inline-block;
}
ul > li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  line-height: 1.68;
}

/* Hide last margin */
ul > li:last-child,
.feature-grid > li:last-child {
  margin-bottom: 0;
}

/* =====================================================
   FORMS & INPUTS
===================================================== */
form {
  width: 100%;
  max-width: 570px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 16px 0;
}
form > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
label {
  font-size: 15px;
  color: var(--brand-primary);
  margin-bottom: 2px;
}
input, textarea {
  padding: 14px 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  background: var(--gray-100);
  color: var(--brand-primary);
  transition: border-color 0.18s, background 0.18s;
}
input:focus, textarea:focus {
  border-color: var(--brand-secondary);
  background: #fffefb;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
button[type=submit].cta {
  width: fit-content;
  align-self: flex-start;
  margin-top: 12px;
}

/* =====================================================
   TESTIMONIALS
===================================================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 32px;
  background: var(--gray-100);
  border-radius: 18px;
  margin-bottom: 24px;
  box-shadow: 0 5px 22px 0 rgba(32,48,67,0.08);
  color: var(--brand-primary);
}
.testimonial-card p {
  font-size: 18px;
  color: var(--brand-primary);
  font-style: italic;
}
.testimonial-card strong {
  font-size: 16px;
  color: var(--brand-primary);
  margin-top: 4px;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  background: var(--brand-primary);
  color: var(--brand-accent);
  padding: 36px 0 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
footer a {
  color: var(--brand-accent);
  font-size: 16px;
  font-family: var(--brand-font-body);
  margin-right: 24px;
  transition: color 0.16s, border-bottom 0.16s;
}
footer nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
footer a:hover, footer a:focus {
  color: var(--brand-secondary);
  border-bottom: 2px solid var(--brand-secondary);
}
footer img {
  width: 54px;
  height: auto;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--brand-accent);
  opacity: 0.95;
}

@media (max-width: 900px) {
  footer nav {
    flex-direction: column;
    gap: 10px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 3px;
    align-items: center;
  }
}

/* =====================================================
   MISCELLANEOUS UI
===================================================== */
.cta-section {
  margin: 60px 0 0 0;
  text-align: center;
  padding: 48px 0 20px 0;
  background: var(--brand-bg-alt);
  border-radius: 20px;
  box-shadow: 0 3px 16px 0 rgba(32,48,67,0.07);
}
.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-section .content-wrapper {
  align-items: center;
}

/* General links */
a {
  transition: color 0.18s;
}
a:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* Strong and Emph */
strong {
  color: var(--brand-primary);
}

/* Responsive Typography */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 17px;
  }
  .section {
    margin-bottom: 36px;
    padding: 28px 10px 0 10px;
  }
}

/* Content gap on smaller screens */
@media (max-width: 600px) {
  .content-wrapper {
    gap: 14px;
  }
  .feature-grid, .services-list, .card-container {
    gap: 12px;
  }
}

/* Responsive layout stacks */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card {
    width: 100%;
    padding: 22px 16px;
  }
  .section {
    padding: 22px 8px 0 8px;
  }
  .testimonial-card {
    padding: 17px 14px;
  }
}

/* Utility: visually-distinctive link / focus helper */
:focus-visible {
  outline: 2px dashed var(--brand-secondary);
}

/* =====================================================
   COOKIE CONSENT BANNER
===================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 10050;
  background: var(--gray-200);
  color: var(--brand-primary);
  box-shadow: 0 -2px 16px 0 rgba(32,48,67,0.05);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 26px 30px;
  font-size: 16px;
  animation: cookieBannerAppear 0.38s cubic-bezier(.61,.01,.53,.98);
}
@keyframes cookieBannerAppear {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 0;
  color: var(--brand-primary);
  font-family: var(--brand-font-body);
}
.cookie-banner .cookie-btn {
  font-family: var(--brand-font-display);
  font-size: 16px;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border-radius: 8px;
  border: none;
  padding: 9px 24px;
  margin-right: 7px;
  margin-left: 0;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s, border 0.16s;
  box-shadow: 0 1px 8px 0 rgba(246,199,68, .07);
}
.cookie-banner .cookie-btn:focus,
.cookie-banner .cookie-btn:hover {
  background: var(--brand-primary);
  color: var(--brand-secondary);
}
.cookie-banner .cookie-btn.cookie-btn-settings {
  background: var(--brand-primary);
  color: var(--brand-accent);
  border: 1.5px solid var(--brand-secondary);
  padding: 9px 18px;
  margin-right: 0;
}
.cookie-banner .cookie-btn.cookie-btn-settings:focus,
.cookie-banner .cookie-btn.cookie-btn-settings:hover {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 18px 8px;
    font-size: 14px;
  }
  .cookie-banner .cookie-btn {
    margin-bottom: 6px;
    width: 98%;
  }
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32,48,67,0.22);
  z-index: 10060;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s cubic-bezier(.6,.09,.54,.98);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: var(--brand-accent);
  border-radius: 18px;
  box-shadow: 0 8px 44px 0 rgba(32,48,67,0.15);
  min-width: 340px;
  max-width: 92vw;
  padding: 36px 32px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  animation: cookieModalAppear 0.44s cubic-bezier(.68,.13,.61,.98);
}
@keyframes cookieModalAppear {
  from { transform: translateY(44px) scale(.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-title {
  font-family: var(--brand-font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}
.cookie-modal-close {
  position: absolute;
  top: 22px;
  right: 30px;
  background: none;
  color: var(--brand-primary);
  font-size: 34px;
  cursor: pointer;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}
.cookie-modal-close:focus,
.cookie-modal-close:hover {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 0 0;
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.cookie-modal-category input[type=checkbox] {
  width: 22px;
  height: 22px;
  accent-color: var(--brand-secondary);
  cursor: pointer;
}
.cookie-modal-category label {
  font-size: 16px;
  font-family: var(--brand-font-body);
}
.cookie-modal-category .cookie-always-on {
  color: #aaa;
  font-size: 14px;
  margin-left: 0.6em;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 26px;
}
.cookie-modal .cookie-btn {
  min-width: 110px;
}
@media (max-width: 500px) {
  .cookie-modal-dialog {
    min-width: 99vw;
    padding: 16px 2vw 16px 2vw;
    border-radius: 10px;
  }
}

/* =====================================================
   ANIMATIONS & MICRO-INTERACTIONS
===================================================== */
.card, .feature-grid > li, .services-list > li {
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .feature-grid > li:hover, .services-list > li:hover {
  box-shadow: 0 10px 32px 0 rgba(32,48,67,0.14);
  transform: translateY(-4px) scale(1.01);
}
.cta, .cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.cta:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* =====================================================
   PRINTING SUPPORT
===================================================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
}

/* ================================================
   END OF STYLE.CSS (Glitter Mist)
================================================ */
