/* DriftFender Automation – Geometric Structured Flexbox CSS */

/* =====================
   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,
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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F7FAFC;
  color: #003057;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #00A6D6;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #003057;
  text-decoration: underline;
}
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
:focus {
  outline: 2px solid #00A6D6;
  outline-offset: 2px;
}

/* ================
   TYPOGRAPHY SCALE
   ================ */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #003057;
  font-size: 2.5rem;
  letter-spacing: -0.01em;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #003057;
  font-size: 2rem;
  letter-spacing: -0.01em;
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 20px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #003057;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  margin-bottom: 10px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #003057;
  font-size: 1rem;
  font-weight: 500;
}
p, li {
  font-size: 1rem;
  color: #003057;
}
b, strong {
  font-weight: 700;
}

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

/* ==================
   SECTIONS & SPACING
   ================== */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  position: relative;
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section, .section {
    margin-bottom: 32px;
    padding: 24px 0;
  }
}

/* ===============================
   GEOMETRIC STRUCTURED COMPONENTS
   =============================== */

/* CARD CONTAINER FLEX PATTERN */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 -12px;
}
.card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,48,87,0.06), 0 0.5px 2px rgba(0,166,214,0.02);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.16s cubic-bezier(.4,0,.2,1), box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  min-width: 270px;
  flex: 1 1 240px;
}
.card:hover, .card:focus-within {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 7px 32px rgba(0,48,87,0.14), 0 1px 6px rgba(0,166,214,0.08);
}

.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;
}

/* TESTIMONIALS CARD FLEX */
.testimonial-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.testimonial-card {
  background: #fff;
  color: #003057;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,48,87,0.12);
  padding: 20px;
  min-width: 250px;
  max-width: 380px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  position: relative;
  transition: box-shadow 0.15s, transform 0.14s;
}
.testimonial-card p {
  font-size: 1rem;
  margin-bottom: 12px;
}
.testimonial-card span {
  font-size: 0.95rem;
  color: #003057;
  opacity: 0.85;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 10px 35px rgba(0,166,214,.13);
  transform: translateY(-3px);
}

/* FEATURE ITEM FLEX */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* CARDS / GRIDS FOR SOLUTIONS, INDUSTRIES, ETC */
.feature-grid, .solution-list, .benefit-list, .usp-list ul, .service-list, .industry-list, .industry-grid, .industry-snippets, .resource-list ul, .case-list, .step-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  list-style: none;
}
.feature-grid > div, .solution-list > li, .benefit-list > li, .usp-list ul > li, .industry-list > li, .industry-grid > div, .industry-snippets > div, .resource-list ul > li, .case-list > .case-item, .step-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,48,87,0.07);
  padding: 28px 22px;
  flex: 1 1 min(200px, 48%);
  min-width: 220px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-grid > div img,
.industry-snippets > div img,
.industry-list > li img,
.solution-list > li img,
.benefit-list > li img,
.usp-list ul > li img,
.case-list > .case-item img,
.step-grid > div img {
  margin-bottom: 14px;
  width: 40px;
  height: 40px;
}

/* ==================================
   HERO SECTION & CTA BANNERS
   ================================== */
section:first-child, .cta-banner {
  background: #fff;
  border-radius: 0 0 80px 0;
  box-shadow: 0 5px 32px rgba(0,166,214,0.06);
  margin-top: 0;
  margin-bottom: 60px;
}
.cta-banner {
  background: #00A6D6;
  color: #fff;
  border-radius: 22px;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==================
   BUTTONS & CTAs
   ================== */
.cta, .button, button, input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 7px;
  padding: 12px 32px;
  min-width: 128px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background 0.18s, color 0.18s, box-shadow 0.17s, transform 0.12s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(0,48,87,0.08);
  background: #fff;
  color: #003057;
  margin: 12px 12px 12px 0;
  position: relative;
}
.cta.primary {
  background: #003057;
  color: #fff;
}
.cta.secondary {
  background: #00A6D6;
  color: #fff;
}
.cta:hover, .button:hover, .cta:focus, .button:focus,
input[type='submit']:hover, input[type='submit']:focus {
  filter: brightness(1.07);
  box-shadow: 0 8px 24px rgba(0,166,214,0.14);
  transform: translateY(-1px) scale(1.03);
}
.cta.primary:hover, .cta.primary:focus {
  background: #00A6D6;
  color: #003057;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #003057;
  color: #00A6D6;
}

/* Link-style buttons (e.g. Download) */
.resource-list ul li a {
  background: #00A6D6;
  color: #fff;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 0.97rem;
  margin-left: 14px;
  font-weight: 600;
  transition: background 0.16s, color 0.16s;
}
.resource-list ul li a:hover {
  background: #003057;
  color: #D6F0FF;
}

/* ======
   NAVBAR
   ====== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0,48,87,0.04);
  position: sticky;
  top: 0;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.main-nav > a img {
  height: 40px;
  width: auto;
}
.main-nav ul {
  display: flex;
  flex-direction: row;
  gap: 28px;
  list-style: none;
  align-items: center;
  margin-left: 36px;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #003057;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.17s, background 0.17s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: #D6F0FF;
  color: #00A6D6;
}
.main-nav .cta.primary {
  margin-left: 36px;
}

/* ---------------------
   MOBILE MENU & BURGER
  --------------------- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  color: #003057;
  background: transparent;
  z-index: 100;
  margin-left: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #D6F0FF;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 80vw;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0,48,87,0.16);
  z-index: 9000;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.4,0,.2,1);
  padding: 32px 16px 32px 28px;
  flex-direction: column;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 2.1rem;
  color: #003057;
  background: #D6F0FF;
  border-radius: 8px;
  padding: 3px 8px;
  border: none;
  cursor: pointer;
  z-index: 9002;
  transition: background 0.19s, color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #00A6D6;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 46px;
  padding-left: 4px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.16rem;
  color: #003057;
  padding: 14px 6px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #D6F0FF;
  color: #00A6D6;
}

@media (max-width: 1024px) {
  .main-nav ul,
  .main-nav .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (max-width: 768px) {
  .main-nav {
    padding: 10px 0;
  }
}

/* Overlay for mobile menu */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  z-index: 8000;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,48,87,0.28);
}
.mobile-menu.open ~ .mobile-menu-overlay {
  display: block;
}

/* ==============
   FOOTER STYLES
   ============== */
footer {
  width: 100%;
  background: #003057;
  color: #D6F0FF;
  font-size: 1rem;
  padding-top: 32px;
  padding-bottom: 18px;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}
.footer-nav a {
  color: #D6F0FF;
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 8px 10px;
  border-radius: 5px;
  opacity: 0.88;
  transition: background 0.15s, color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #00A6D6;
  color: #fff;
  opacity: 1;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.footer-brand img {
  width: 40px;
  height: 40px;
}
.footer-brand p {
  color: #D6F0FF;
  font-size: 0.97rem;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

/* ================
   TEXT SECTIONS
   ================ */
.text-section {
  margin-bottom: 24px;
}
.text-section ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.text-section li {
  margin-bottom: 12px;
  list-style-type: square;
}

/* FAQ STYLES */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1px 10px rgba(0,48,87,0.055);
  padding: 18px 22px;
  position: relative;
  transition: box-shadow 0.15s, border 0.14s;
  margin-bottom: 12px;
}
.faq-item h3 {
  font-size: 1.18rem;
  margin-bottom: 7px;
  color: #003057;
}
.faq-answer {
  color: #003057;
  font-size: 1rem;
  line-height: 1.6;
}
.faq-item:hover, .faq-item:focus-within {
  box-shadow: 0 6px 18px rgba(0,166,214,0.13);
}

/* ================
   RESPONSIVE RULES
   ================ */
@media (max-width: 1024px) {
  .container {
    max-width: 97vw;
  }
  .feature-grid, .industry-snippets, .industry-list, .industry-grid, .case-list, .step-grid {
    gap: 16px;
  }
  .content-wrapper {
    padding: 0 0;
  }
}
@media (max-width: 900px) {
  .feature-grid > div,
  .industry-snippets > div,
  .industry-list > li,
  .industry-grid > div,
  .case-list > .case-item,
  .step-grid > div {
    min-width: 180px;
    flex: 1 1 46%;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 1.7rem; }
  h2, .h2 { font-size: 1.4rem; }
  h3, .h3 { font-size: 1.06rem; }

  .card, .feature-grid > div, .case-list > .case-item, .step-grid > div {
    padding: 18px 13px;
    min-width: 90vw;
    max-width: 100vw;
  }
  .content-grid {
    flex-direction: column;
  }
  .feature-grid, .industry-snippets, .industry-list, .industry-grid, .case-list, .step-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card-container {
    flex-direction: column;
    gap: 14px;
    margin: 0;
  }
  .testimonial-list {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .main-nav {
    padding: 8px 0;
  }
}

/* Ensure all features/industries lists have consistent vertical spacing */
.feature-grid > div, .industry-snippets > div, .solution-list > li, .industry-list > li {
  margin-bottom: 20px;
}

/* Ensure all list items have at least 20px margin between them */
.service-list > li, .benefit-list > li, .usp-list ul > li {
  margin-bottom: 20px;
}

/* ================
   GEOMETRIC SHAPES
   ================ */
/* SVG and backgrounds are in assets, but let's add some geometric accents via pseudo-elements where needed. */
section::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: -35px;
  width: 56px;
  height: 56px;
  background: #D6F0FF;
  border-radius: 0 22px 0 0;
  opacity: 0.22;
  z-index: 0;
}
section:last-child::before { display: none; }
@media (max-width: 768px) {
  section::before {
    width: 32px; height: 32px; left: -12px;
  }
}
section > .container, section > .content-wrapper { position: relative; z-index: 1; }

/* ================
   COOKIE BANNER
   ================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #003057;
  color: #fff;
  z-index: 40000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 -2px 24px rgba(0,48,87,0.16);
  padding: 18px 14px 22px 14px;
  animation: slideInCookie 0.48s cubic-bezier(.7,0,.2,1);
}
@keyframes slideInCookie {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #D6F0FF;
  font-size: 1rem;
  margin-bottom: 6px;
  text-align: center;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-banner .cookie-btn, .cookie-banner button {
  background: #00A6D6;
  color: #fff;
  border-radius: 6px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 9px 22px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 2px;
  transition: background 0.16s, color 0.15s;
}
.cookie-banner .cookie-btn.reject {
  background: #D6F0FF;
  color: #003057;
  border: 1.5px solid #003057;
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  color: #00A6D6;
  border: 1.5px solid #00A6D6;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #003057;
  color: #D6F0FF;
  border-color: #00A6D6;
}

/* COOKIE CONSENT MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  justify-content: center;
  align-items: center;
  background: rgba(0,48,87,0.17);
  z-index: 40100;
  animation: fadeInCookieModal 0.33s cubic-bezier(.7,0,.1,1);
}
@keyframes fadeInCookieModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal-box {
  background: #fff;
  color: #003057;
  border-radius: 14px;
  box-shadow: 0 8px 44px rgba(0,48,87,0.21);
  padding: 36px 30px 26px 30px;
  min-width: 320px;
  max-width: 95vw;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 1.5rem;
  color: #003057;
  background: #D6F0FF;
  border: none;
  border-radius: 5px;
  padding: 1px 8px;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #00A6D6;
  color: #fff;
}
.cookie-modal-box h2 {
  margin-bottom: 19px;
  font-size: 1.28rem;
  font-weight: 600;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
  width: 100%;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F7FAFC;
  padding: 10px 13px;
  border-radius: 7px;
}
.cookie-category label {
  font-weight: 600;
  color: #003057;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-category input[type="checkbox"] {
  accent-color: #00A6D6;
  width: 18px; height: 18px;
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: #003057;
}
.cookie-category.essential {
  background: #E6ECF2;
  opacity: 1;
}
.cookie-category.essential label {
  color: #888;
  font-weight: 500;
}
.cookie-category.essential [type='checkbox'] {
  pointer-events: none;
}
/* Cookie modal actions */
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-btn {
  min-width: 100px;
}

@media (max-width: 480px) {
  .cookie-modal-box {
    padding: 19px 7vw 18px 7vw;
    min-width: 0;
    max-width: 97vw;
  }
}

/* ======================
   UTILITY/HELPER CLASSES
   ====================== */
.hide {
  display: none !important;
}
.flex {
  display: flex !important;
}
.flex-col {
  flex-direction: column !important;
}
.flex-center {
  align-items: center !important;
  justify-content: center !important;
}

/* Spacing helpers */
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.pb-20 { padding-bottom: 20px; }
.pt-20 { padding-top: 20px; }

/* Highlighted text */
.highlight {
  background: #D6F0FF;
  padding: 0.1em 0.45em;
  border-radius: 5px;
  color: #003057;
}

/* Thank you panel info */
.thank-you-message {
  font-size: 1.24rem;
  color: #00A6D6;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.follow-up-information p {
  color: #003057;
  opacity: 0.81;
}

/* ===========
   ANIMATIONS
   =========== */
@media (prefers-reduced-motion: no-preference) {
  a, .cta, button, .card, .testimonial-card, .feature-grid > div, .industry-grid > div {
    transition: filter 0.18s, box-shadow 0.2s, transform 0.17s, background 0.13s, color 0.13s, outline 0.08s;
  }
}

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

/* END DriftFender Automation Geometric Structured Flexbox CSS */
