/* ===================================================================
  CSS RESET & NORMALIZE - Reset margins, paddings and 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, menu, 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, 
main, 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAFAFA;
  color: #1B2430;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
}

/* =====================================================
  FONT FACE - Brand Display (Montserrat) & Body (Open Sans)
====================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

:root {
  /* Brand colors (monochrome plus accent) */
  --primary: #1B2430;
  --secondary: #2F4B5A;
  --accent: #F2C66E;
  --white: #FFFFFF;
  --black: #111214;
  --grey-dark: #23262a;
  --grey: #888D94;
  --grey-light: #F3F4F6;
  --box-shadow: 0 2px 24px rgba(27,36,48,0.07), 0 1.5px 8px rgba(35,38,42,0.03);
  --border-radius: 12px;
  --transition: all .25s cubic-bezier(.4,0,.2,1);
  --header-height: 70px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ============================
   LAYOUT CONTAINERS
============================*/
.container {
  width: 100%;
  max-width: 1150px;
  padding: 0 20px;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--grey-light);
  color: var(--primary);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.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;
  padding: 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  color: #23262a;
  margin-bottom: 20px;
  min-width: 240px;
  flex: 1 1 290px;
  flex-direction: column;
  justify-content: center;
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================
    GLOBAL TYPOGRAPHY
============================*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--black);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.125rem;
}
p, ul, ol, li, small, em {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
strong {
  font-weight: 700;
  color: var(--secondary);
}
small {
  font-size: .925rem;
  color: var(--grey);
}
em {
  color: var(--black);
  font-style: italic;
}

/* =========================
  HEADER & NAV STYLES
=========================*/
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  z-index: 1001;
  box-shadow: 0 2px 12px rgba(27,36,48,0.06);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-height);
  justify-content: flex-start;
  padding: 0 0 0 8px;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 10px;
  border-radius: 7px;
  transition: var(--transition);
  position: relative;
}
.main-nav a.active,
.main-nav a:hover,
.main-nav a:focus {
  color: var(--accent);
  background: var(--primary);
}

header img {
  height: 42px;
  width: auto;
  margin-right: 15px;
}

/* =============================
    BURGER MENU MOBILE
=============================*/
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 7px;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  cursor: pointer;
  transition: background .18s;
  z-index: 1201;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27,36,48,0.97);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-100vw);
  transition: all .35s cubic-bezier(.73,.2,.14,1.62);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 0 16px 24px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1300;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 90vw;
  margin: 0 0 0 24px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  background: transparent;
  padding: 10px 0;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color .18s, background .18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--white);
  background: var(--accent);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 10px;
    font-size: .98rem;
  }
  .main-nav a {
    padding-left: 4px;
    padding-right: 4px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 5px;
    font-size: .96rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* =====================
    SECTION LAYOUTS
======================*/
section {
  margin-bottom: 60px;
  padding: 40px 0 40px;
  background: transparent;
  border: none;
  box-shadow: none;
}
section > .container {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 0 0 0 0;
}

@media (max-width: 600px) {
  .section {
    padding: 24px 6px;
    margin-bottom: 36px;
  }
}

/* =====================
    HERO & CALL TO ACTION
======================*/
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  background: var(--secondary);
  padding: 15px 36px;
  border-radius: 26px;
  border: none;
  box-shadow: 0 3px 12px rgba(27,36,48,.06);
  transition: background .18s, color .22s, box-shadow .18s, transform .13s;
  cursor: pointer;
  letter-spacing: 0.02em;
  margin-top: 20px;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 5px 20px rgba(27,36,48,.17);
  outline: none;
  transform: translateY(-2px) scale(1.03);
}

/* ==========================
    FEATURE/ICON LIST STYLES
==========================*/
.content-wrapper ul,
.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 0;
  margin-left: 0;
}

.content-wrapper li,
.text-section li {
  font-size: 1.075rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  line-height: 1.45;
  color: var(--primary);
}
.content-wrapper li img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 6px;
}

/* =====================
     TESTIMONIALS
======================*/
.testimonial-card {
  background: var(--white);
  color: var(--primary);
  border-radius: 15px;
  box-shadow: 0 4px 26px 1px rgba(35,38,42,.08);
  margin-bottom: 20px;
  padding: 24px 18px;
  min-width: 230px;
  flex: 1 1 290px;
  max-width: 330px;
  position: relative;
}
.testimonial-card p {
  font-size: 1.04rem;
  color: var(--primary);
  margin-bottom: 14px;
}
.testimonial-card strong {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1rem;
}

/* =====================
   ALERTS
==================== */
.alert {
  padding: 18px 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(27,36,48,0.03);
  margin: 10px 0 6px;
  background: #F5F7FA;
  border-left: 4px solid var(--secondary);
  color: var(--black);
}
.alert.info {
  border-left-color: var(--accent);
}

/* =====================
     FORMS, INPUTS
======================*/
input[type="text"],
select, textarea {
  background: var(--grey-light);
  color: var(--primary);
  padding: 13px 16px;
  border-radius: 7px;
  border: 1px solid #DDD;
  font-size: 1rem;
  margin-right: 10px;
  margin-bottom: 16px;
  outline: none;
  transition: border .15s, box-shadow .14s;
}
input[type="text"]:focus,
select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 3px 12px rgba(27,36,48,0.06);
}

/* =============================
   FOOTER
=============================*/
footer {
  background: var(--primary);
  color: var(--white);
  padding: 0;
  margin: 0;
}
footer .container {
  background: var(--primary);
  box-shadow: none;
  padding: 32px 20px 28px 20px;
  border-radius: 0;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
footer nav,
footer .content-wrapper > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.01rem;
}
footer nav a {
  color: var(--white);
  font-weight: 600;
  border-radius: 2px;
  transition: color .14s, background .15s;
  padding: 4px 6px;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--accent);
  background: var(--primary);
}
footer .text-section {
  color: var(--grey-light);
  font-size: .975rem;
  gap: 6px;
}
footer strong {
  color: var(--white);
}

footer img {
  width: 40px;
  height: auto;
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  footer .content-wrapper {
    gap: 10px;
  }
  footer nav {
    gap: 5px;
    font-size: .98rem;
  }
}

/* ==========================
 COOKIE CONSENT BANNER/MODAL
========================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: rgba(27,36,48,0.98);
  color: var(--white);
  z-index: 1999;
  box-shadow: 0 -2px 16px rgba(27,36,48,0.13);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 26px;
  padding: 22px 16px;
  font-size: 1.05rem;
  transition: transform .32s cubic-bezier(.67,.12,.2,1.17), opacity .27s ease;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner button {
  background: var(--grey-light);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin-left: 8px;
  padding: 11px 22px;
  cursor: pointer;
  transition: background .15s, color .13s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(27,36,48,0.02);
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(27,36,48,0.11);
}

.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 94vw;
  max-width: 430px;
  background: var(--white);
  color: var(--primary);
  z-index: 2000;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 36px 6px rgba(27,36,48,0.16);
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 30px 24px 22px 24px;
  transition: opacity .25s, transform .23s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -40%) scale(.94);
}
.cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 5px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 12px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--secondary);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal button,
.cookie-modal .modal-actions button {
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 10px 20px;
  font-weight: 600;
  margin: 0 0 0 10px;
  transition: background .14s, color .11s;
  cursor: pointer;
}
.cookie-modal button:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Category toggles - always checked for essential */
.cookie-modal label[disabled],
.cookie-modal input[disabled],
.cookie-modal label[aria-disabled="true"] {
  opacity: .56;
  pointer-events: none;
}

/* Modal overlay background */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(27,36,48,.51);
  z-index: 1999;
  opacity: 1;
  transition: opacity .19s;
  pointer-events: none;
}
.cookie-modal.show + .cookie-modal-backdrop {
  pointer-events: all;
}
.cookie-modal.hide + .cookie-modal-backdrop {
  opacity: 0;
  pointer-events: none;
}

/* =====================
   RESPONSIVE STYLES
======================*/
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .container { padding: 0 10px; }
  .testimonial-card { max-width: 100vw; }
}
@media (max-width: 768px) {
  .content-grid, .text-image-section, .card-container {
    flex-direction: column !important;
    gap: 18px !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
  }
  .testimonial-card {
    min-width: unset;
    max-width: 98vw;
    width: 100%;
  }
  .card {
    min-width: unset;
    width: 100%;
  }
  .text-image-section {
    align-items: flex-start;
    gap: 18px;
  }
  .section {
    padding: 24px 4px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.275rem; }
  h2 { font-size: 1.05rem; }
  .cta-btn {
    font-size: 1rem;
    padding: 13px 10px;
  }
  header img, footer img { height: 34px; }
  .mobile-nav a { font-size: 1.03rem; }
}

@media (max-width: 390px) {
  .cookie-banner {
    font-size: .9rem;
    gap: 9px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===============================
    FOCUS STATES & ACCESSIBILITY
===============================*/
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 2.5px var(--accent) inset !important;
}

/* ==========================  
   MICRO-INTERACTIONS, EFFECTS
=============================*/
.card, .testimonial-card, .cta-btn, .cookie-banner button, .mobile-menu {
  will-change: transform, box-shadow;
}
.card {
  transition: box-shadow .18s, transform .19s;
}
.card:hover {
  box-shadow: 0 10px 32px 0 rgba(27,36,48,0.14);
  transform: translateY(-2px) scale(1.012);
}

.testimonial-card:hover {
  background: #F0F1F5;
  box-shadow: 0 9px 24px 1px rgba(27,36,48,0.14);
  transform: translateY(-2px) scale(1.01);
}

input[type="text"]:hover, select:hover {
  border-color: var(--secondary);
}

/* =============================
  PRINT FRIENDLY
=============================*/
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, .container, .content-wrapper {
    box-shadow: none !important;
    background: #fff !important;
  }
}
