/* Drift Systems – WARM_FRIENDLY, FLEXBOX-ONLY, ACCESSIBILITY-FOCUSED STYLE CSS */
/* ========================================================================
   RESET & BASE STYLES
   ======================================================================== */
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 {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F7F8FA;
}
body {
  min-height: 100vh;
  background: #F7F8FA;
  color: #203452;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}
*, *::before, *::after {
  box-sizing: inherit;
}
:focus {
  outline: 2px solid #7CC0D8;
  outline-offset: 2px;
}

/* ========================================================================
   COLORS & CUSTOM PROPERTIES (with fallbacks for old browsers)
   ======================================================================== */
:root {
  --brand-primary: #203452;
  --brand-secondary: #7CC0D8;
  --brand-accent: #F7F8FA;
  --brand-warm1: #FFF7F0;
  --brand-warm2: #FFE2CC;
  --brand-orange: #F5A55B;
  --brand-yellow: #FCD07F;
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  --shadow-soft: 0 2px 16px rgba(240, 174, 75, 0.11);
  --shadow-card: 0 4px 32px rgba(32, 52, 82, 0.08);
  --shadow-hover: 0 6px 20px rgba(246, 167, 75, 0.20);
}

/* ========================================================================
   TYPOGRAPHY
   ======================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #203452;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.25rem; /* 36px */
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #6d4836;
}
p, ul, ol {
  margin-bottom: 16px;
}
p {
  font-size: 1.05rem;
}
strong, b {
  font-weight: 700;
}
a {
  color: #F5A55B;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #FC8447;
  text-decoration: underline;
}
ul {
  list-style: disc inside;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ========================================================================
   LAYOUT CONTAINERS & PADDING
   ======================================================================== */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: none;
  position: relative;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF7F0;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .23s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFE2CC;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  padding: 20px 28px;
  margin-bottom: 20px;
  color: #222;
  font-size: 1.05rem;
  transition: box-shadow .24s, transform .14s;
  border-left: 6px solid #F5A55B;
}
.testimonial-card span {
  font-size: 1rem;
  color: #203452;
  font-weight: 600;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px 0 rgba(245,165,91,0.12);
  transform: translateY(-4px) scale(1.02);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.technology-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}
.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

/* ========================================================================
   HEADER & NAVIGATION (INCLUDING MOBILE MENU)
   ======================================================================== */
header {
  background: #FFF7F0;
  padding: 0;
  box-shadow: 0 2px 12px 0 rgba(32,52,82,0.03);
  border-bottom: 1px solid #FFE2CC;
  margin-bottom: 0;
  position: relative;
  z-index: 1020;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 18px 20px;
}
header img {
  height: 38px;
  width: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
nav a {
  padding: 8px 10px;
  border-radius: 8px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.07rem;
  color: #203452;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .2s, color .16s;
}
nav a:hover, nav a:focus {
  background: #FCD07F;
  color: #CA7707;
  text-decoration: none;
}
header .cta.primary {
  display: inline-block;
  margin-left: 6px;
  padding: 12px 26px;
  font-size: 1.13rem;
}

header .mobile-menu-toggle {
  display: none;
  background: #F5A55B;
  color: #fff;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  margin-left: 16px;
  align-self: center;
  transition: background .22s;
  z-index: 2010;
}
header .mobile-menu-toggle:hover,
header .mobile-menu-toggle:focus {
  background: #FC8447;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: #FFF7F0;
  box-shadow: 0 3px 30px 0 rgba(32,52,82,0.18);
  z-index: 2050;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
  transform: translateX(-110vw);
  transition: transform .36s cubic-bezier(.62,.05,.42,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #F5A55B;
  font-size: 2.1rem;
  align-self: flex-end;
  padding: 8px;
  margin-bottom: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .13s, color .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFE2CC;
  color: #203452;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 22px;
}
.mobile-nav a {
  padding: 12px 12px;
  border-radius: 10px;
  font-size: 1.18rem;
  background: none;
  color: #203452;
  font-weight: 700;
  transition: background .17s, color .13s;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F5A55B;
  color: #fff;
}

/* Hide main nav and CTA on mobile */
@media (max-width: 1024px) {
  header .container nav,
  header .container .cta.primary {
    display: none;
  }
  header .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========================================================================
   CTA BUTTONS
   ======================================================================== */
.cta, .cta.primary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #F5A55B;
  color: #203452;
  font-weight: 700;
  border: none;
  border-radius: 13px;
  padding: 12px 28px;
  font-size: 1.13rem;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(245,165,91,0.08);
  margin: 8px 0 0 0;
  display: inline-block;
  text-align: center;
  letter-spacing: .04em;
  transition: background .16s, color .13s, box-shadow .16s, transform .13s;
  text-decoration: none;
}
.cta.primary {
  background: #203452;
  color: #fff;
  box-shadow: 0 2px 16px 0 rgba(32,52,82,0.13);
}
.cta:hover, .cta:focus {
  background: #FC8447;
  color: #ffffff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 20px 0 rgba(246,167,75,0.19);
  text-decoration: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: #7CC0D8;
  color: #203452;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
footer {
  background: #203452;
  color: #FFF7F0;
  padding: 40px 0 24px 0;
  border-top: 4px solid #F5A55B;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
footer img {
  height: 38px;
  width: auto;
}
footer nav {
  flex-wrap: wrap;
  gap: 18px;
}
footer nav a {
  color: #FCD07F;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .13s, color .18s;
}
footer nav a:hover, footer nav a:focus {
  background: #F5A55B;
  color: #fff;
  text-decoration: none;
}
footer .text-section {
  color: #FFE2CC;
  font-size: 0.97rem;
  align-items: flex-end;
}

/* ========================================================================
   MAP PLACEHOLDER
   ======================================================================== */
.map-placeholder {
  padding: 18px;
  background: #FFF7F0;
  border: 2px dashed #FFE2CC;
  border-radius: var(--border-radius-md);
  color: #7E6442;
  font-size: 1rem;
  margin-top: 12px;
}

/* ========================================================================
   LISTS & ACCENT ELEMENTS
   ======================================================================== */
ul li > strong {
  color: #CA7707;
}
ul li span {
  font-size: 0.98em;
  color: #7E6442;
  font-weight: 500;
}

/* ========================================================================
   RESPONSIVE & FLEXBOX RULES
   ======================================================================== */
@media (max-width: 1024px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 12px;
  }
  section {
    padding: 34px 0;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  section, .section {
    padding: 28px 0;
    margin-bottom: 34px;
  }
  .content-wrapper, .card-container, .card-grid, .content-grid, .values-grid {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.12rem;
  }
  .cta, .cta.primary {
    font-size: 0.97rem;
    padding: 10px 18px;
  }
  nav a {
    font-size: 0.99rem;
    padding: 8px 5px;
  }
}

/* ========================================================================
   MICROIINTERACTIONS
   ======================================================================== */
.card, .testimonial-card, .feature-item {
  transition: box-shadow .22s, transform .13s, background .14s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 4px 30px 0 rgba(246,167,75,0.10);
  transform: scale(1.012);
}

/* ========================================================================
   COOKIE CONSENT BANNER & MODAL
   ======================================================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: #203452;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 24px 5vw 20px 5vw;
  box-shadow: 0 -2px 32px rgba(32, 52, 82, 0.12);
  gap: 26px;
  font-size: 1.05rem;
  border-radius: 24px 24px 0 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .35s, transform .35s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-consent-banner .cookie-message {
  max-width: 440px;
  padding-right: 16px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn, .cookie-btn-primary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px 30px;
  margin: 0 0 0 0;
  transition: background .15s, color .12s, transform .13s;
  cursor: pointer;
}
.cookie-btn {
  background: #FFE2CC;
  color: #203452;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #F5A55B;
  color: #fff;
}
.cookie-btn-primary {
  background: #F5A55B;
  color: #fff;
  margin-left: 8px;
}
.cookie-btn-primary:hover, .cookie-btn-primary:focus {
  background: #203452;
  color: #fff;
}
.cookie-btn-settings {
  background: #7CC0D8;
  color: #203452;
  margin-left: 8px;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #7ae7f7;
}

@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 6vw 18px 6vw;
  }
  .cookie-consent-banner .cookie-actions {
    flex-direction: column;
    gap: 8px;
  }
}

.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 4010;
  background: rgba(32,52,82,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .32s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #FFF7F0;
  color: #203452;
  border-radius: 24px;
  padding: 38px 36px 26px 36px;
  max-width: 400px;
  min-width: 90vw;
  box-shadow: 0 12px 48px 0 rgba(32,52,82,0.28);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (min-width: 445px) {
  .cookie-modal-content {
    min-width: 370px;
  }
}
.cookie-modal-content h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  gap: 20px;
}
.cookie-toggle {
  width: 36px;
  height: 22px;
  border-radius: 12px;
  background: #FFE2CC;
  border: 1px solid #F5A55B;
  position: relative;
  display: inline-block;
  transition: background .14s;
}
.cookie-toggle[aria-checked="true"] {
  background: #F5A55B;
}
.cookie-toggle[aria-checked="true"]::before {
  right: 4px;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(32,52,82,0.12);
  transition: right .16s, left .16s;
}
.cookie-toggle[aria-checked="true"]::before {
  left: auto; right: 4px;
}
.cookie-modal-content .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal-content .cookie-modal-close {
  position: absolute;
  top: 17px; right: 21px;
  background: none;
  border: none;
  color: #F5A55B;
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 100px;
  padding: 4px 8px;
  transition: background .14s;
}
.cookie-modal-content .cookie-modal-close:hover, .cookie-modal-content .cookie-modal-close:focus {
  background: #FFE2CC;
  color: #203452;
}
/* ENSURE NO ELEMENTS OVERLAP ANYWHERE */

/* ========================================================================
   NARROW TEXT ALIGN FOR MOBILE
   ======================================================================== */
@media (max-width: 512px) {
  h1, h2, h3, h4, h5, h6, p, .text-section, .content-wrapper {
    text-align: left !important;
  }
}

/* ========================================================================
   MISCELLANEOUS
   ======================================================================== */
::-webkit-scrollbar {
  width: 10px;
  background: #FFE2CC;
}
::-webkit-scrollbar-thumb {
  background: #F5A55B;
  border-radius: 6px;
}
::selection {
  background: #FFE2CC;
}

/* ========================================================================
   END
   ======================================================================== */
