/* RESET & NORMALIZATION */
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;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F4F7FA;
  color: #25243a;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s, background 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

/* BRAND & PLAYFUL DYNAMIC VARIABLES (with fallbacks) */
:root {
  --primary: #18446C;
  --secondary: #FFFFFF;
  --background: #F4F7FA;
  --accent: #128671;
  --accent-dark: #137150;
  --bright1: #FFD966;
  --bright2: #FF6F91;
  --bright3: #4AC3FC;
  --bright4: #A5DB20;
  --shadow: rgba(24,68,108,0.09);
  --shadow-deep: rgba(24,68,108,0.15);
  --radius: 18px;
  --radius-xs: 8px;
  --header-font: 'Montserrat', Arial, sans-serif;
  --body-font: 'Open Sans', Arial, sans-serif;
}

/* FONT LOAD (only system font fallback because no webfont link in provided HTML) */

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--shadow);
}

@media (max-width: 900px) {
  .section {
    padding: 32px 8px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 8px var(--shadow);
  padding: 24px;
  transition: box-shadow 0.22s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 18px var(--shadow-deep);
  transform: translateY(-2px) scale(1.025);
}

.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: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 20px;
  flex-direction: column;
  min-width: 270px;
  max-width: 420px;
  color: #232323;
  position: relative;
  transition: box-shadow 0.18s, transform 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 5px 20px var(--shadow-deep);
  transform: translateY(-2px) scale(1.012);
}
.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--bright3);
  background: linear-gradient(90deg, var(--bright3) 60%, var(--secondary) 100%);
  border-radius: var(--radius-xs);
  box-shadow: 0 1px 10px rgba(18,134,113,0.09);
  padding: 22px 16px 16px 16px;
  min-width: 235px;
  flex: 1 1 250px;
  transition: background 0.22s, box-shadow 0.2s, transform 0.1s;
  position: relative;
}
.feature-item:nth-child(2n) {
  background: linear-gradient(90deg, var(--bright2) 48%, var(--secondary) 100%);
}
.feature-item:nth-child(3n) {
  background: linear-gradient(90deg, var(--bright1) 50%, var(--secondary) 100%);
}
.feature-item:nth-child(4n) {
  background: linear-gradient(90deg, var(--bright4) 60%, var(--secondary) 100%);
}
.feature-item img {
  width: 42px;
  height: 42px;
  margin-bottom: 0.3em;
}
.feature-item h3 {
  margin-bottom: 0.1em;
  font-size: 20px;
  font-family: var(--header-font);
  color: var(--primary);
}
.feature-item p {
  font-size: 16px;
  color: #292929;
}
.feature-item:hover {
  box-shadow: 0 8px 24px var(--shadow);
  background: var(--accent);
  color: #fff !important;
  transform: translateY(-2px) scale(1.012);
}
.feature-item:hover h3,
.feature-item:hover p {
  color: #fff !important;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.trust-badges {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.trust-badges img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 4px #f4f7fa);
  transition: transform 0.18s;
}
.trust-badges img:hover {
  transform: scale(1.15) rotate(-7deg);
}

/**** HEADINGS & TYPOGRAPHY ****/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--header-font);
  color: var(--primary);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 { font-size: 38px; margin-bottom: 12px;}
h2 { font-size: 30px; margin-bottom: 10px; }
h3 { font-size: 20px; margin-bottom: 6px; font-weight: 700;}
h4, h5, h6 { font-size: 18px; }
@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
}
p, ul, ol, li, span, label {
  font-family: var(--body-font);
  font-size: 16px;
  color: #292929;
}
ul, ol {
  margin-left: 18px;
  margin-bottom: 8px;
}
li {
  margin-bottom: 8px;
  padding-left: 9px;
}

/**** BUTTONS ****/
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-family: var(--header-font);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: none;
  box-shadow: 0 1px 10px var(--shadow);
  margin-top: 14px;
  margin-bottom: 10px;
  transition: background 0.16s, color 0.18s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  outline: none;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px) scale(1.03) rotate(-1deg);
  box-shadow: 0 2px 18px var(--shadow-deep);
}

/* Links in main copy */
.content-wrapper a:not(.btn-primary) {
  color: var(--bright2);
  font-weight: bold;
  transition: color 0.15s;
  border-bottom: 1.5px dotted var(--bright2);
}
.content-wrapper a:not(.btn-primary):hover {
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent);
}

/***** HEADER & NAVIGATION *****/
header {
  width: 100%;
  background: var(--primary);
  box-shadow: 0 1px 8px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 12px 20px;
}
header img[alt="Crisp Chassis Legal"] {
  height: 51px;
  margin-right: 35px;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 16px;
  color: #fff;
  font-family: var(--header-font);
  font-size: 16px;
  font-weight: 700;
  transition: background 0.14s, color 0.15s;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--accent);
  color: var(--bright1);
}

.mobile-menu-toggle {
  display: none;
  font-size: 32px;
  background: none;
  color: var(--bright2);
  padding: 6px 18px;
  border-radius: 100px;
  border: none;
  margin-left: 20px;
  transition: background 0.2s, color 0.2s;
  z-index: 51;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--bright2);
  color: #fff;
}

/* Mobile Navigation Styles */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  background: var(--secondary);
  top: 0; left: 0; bottom: 0; right: 0;
  height: 100vh;
  width: 100%;
  z-index: 1000;
  padding: 38px 24px 24px 24px;
  transform: translateX(-110vw);
  transition: transform 0.36s cubic-bezier(.42,-0.19,.63,1.3);
  box-shadow: 2px 0 36px rgba(0,0,0,0.12);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 36px;
  background: var(--bright1);
  color: var(--primary);
  border-radius: 50%;
  padding: 6px 16px;
  margin-bottom: 14px;
  border: 2px solid var(--primary);
  transition: background 0.18s;
}
.mobile-menu-close:hover {
  background: var(--accent);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 30px;
}
.mobile-nav a {
  padding: 14px 8px 14px 24px;
  border-radius: 99px;
  color: var(--primary);
  font-weight: 700;
  font-size: 20px;
  font-family: var(--header-font);
  background: none;
  transition: background 0.18s, color 0.14s;
  margin-right: 0;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--bright1);
  color: var(--accent);
}

@media (max-width: 1000px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .btn-primary {
    font-size: 16px;
    padding: 11px 22px;
  }
}

/***** HERO, CARDS, GRIDS, FLEX SECTIONS *****/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 700px) {
  section {
    padding: 26px 8px;
    margin-bottom: 38px;
  }
  .card, .testimonial-card, .feature-item {
    min-width: unset;
    max-width: 100%;
  }
  .section, .content-wrapper {
    padding: 0 !important;
  }
}

@media(max-width: 900px) {
  .feature-grid, .testimonial-slider, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .feature-item {
    min-width: 0;
  }
}
@media(max-width: 768px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

/***** ACCORDION FAQ *****/
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fffbe9;
  border-radius: var(--radius-xs);
  box-shadow: 0 1px 8px var(--shadow);
  overflow: hidden;
  position: relative;
  padding: 0;
  transition: box-shadow 0.15s, transform 0.14s;
}
.faq-item:hover {
  box-shadow: 0 3px 14px var(--bright1);
  transform: scale(1.008) rotate(-1deg);
}
.faq-item h3 {
  padding: 17px 28px 17px 20px;
  font-size: 18px;
  background: none;
  margin: 0;
  cursor: pointer;
  font-family: var(--header-font);
  color: var(--accent);
  position: relative;
}
.faq-content {
  padding: 0 24px 18px 24px;
  font-size: 16px;
  display: block; /* By default, show, JS can toggle */
}

/***** FOOTER *****/
footer {
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  padding: 35px 0 8px 0;
  box-shadow: 0 -3px 18px var(--shadow);
  margin-top: 36px;
}
footer .container {
  gap: 16px;
  flex-direction: column;
}
.footer-nav {
  display: flex;
  gap: 21px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: #fff;
  font-weight: 600;
  opacity: 0.89;
  font-size: 15px;
  border-radius: 10px;
  padding: 4px 10px;
}
.footer-nav a:hover {
  background: var(--accent);
  color: var(--bright1);
}
.footer-contact {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 15px;
}
.footer-contact img {
  margin-right: 6px;
  vertical-align: middle;
  width: 20px;
  height: 20px;
}
.footer-copy {
  text-align: center;
  font-size: 13px;
  opacity: 0.72;
  margin-top: 13px;
}

/***** COOKIE CONSENT BANNER & MODAL *****/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 24px var(--shadow);
  z-index: 5000;
  padding: 22px 14px 18px 14px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 15px;
  border-radius: 16px 16px 0 0;
  animation: cookieSlideIn 0.6s cubic-bezier(.42,-0.19,.63,1.3) 1;
}
@keyframes cookieSlideIn {
  0% { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  max-width: 350px;
  font-size: 15px;
  line-height: 1.45;
  color: #222;
}
.cookie-banner button {
  margin-left: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--header-font);
  font-weight: 700;
  font-size: 15px;
  transition: background 0.13s, color 0.13s, transform 0.13s;
  border: none;
  cursor: pointer;
}
.cookie-banner button.cookie-settings {
  background: var(--bright2);
  color: #fff;
  margin-right: 4px;
}
.cookie-banner button.cookie-settings:hover {
  background: var(--accent);
  color: #fff;
}
.cookie-banner button.cookie-reject {
  background: var(--primary);
  color: #fff;
}
.cookie-banner button.cookie-reject:hover {
  background: #232323;
}

/* Cookie modal overlay */
.cookie-modal-backdrop {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: fixed;
  left: 0; top: 0; bottom: 0; right: 0;
  background: rgba(24,68,108,0.35);
  z-index: 6000;
  animation: fadeInCookieModal 0.22s;
}
@keyframes fadeInCookieModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  width: 96vw;
  max-width: 420px;
  background: #fff;
  padding: 30px 24px 24px 24px;
  border-radius: 16px 16px 0px 0px;
  box-shadow: 0 2px 30px var(--shadow-deep);
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
  animation: cookieModalIn 0.35s;
}
@keyframes cookieModalIn {
  0% { transform: translateY(70px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 21px;
  color: var(--primary);
  margin-bottom: 2px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 16px;
}
.cookie-category input[type=checkbox] {
  width: 21px;
  height: 21px;
  accent-color: var(--bright2);
}
.cookie-category input[disabled] {
  opacity: 0.55;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
}
.cookie-modal button {
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--header-font);
  font-weight: 700;
  font-size: 15px;
  background: var(--accent);
  color: #fff;
  border: none;
  transition: background 0.12s, color 0.13s;
  margin-right: 0;
}
.cookie-modal button.cookie-cancel {
  background: var(--bright2);
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  right: 18px; top: 16px;
  font-size: 26px;
  background: transparent;
  border: none;
  color: var(--primary);
}
.cookie-modal .close-cookie-modal:hover {
  color: var(--accent);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 14px;
    padding: 18px 8px 14px 8px;
  }
  .cookie-modal {
    padding: 21px 8px 15px 8px;
    width: 98vw;
  }
}

/***** MICRO-INTERACTIONS & EFFECTS *****/
.feature-item, .btn-primary, .testimonial-card, .card, .faq-item { transition: box-shadow 0.22s, background 0.19s, color 0.18s, transform 0.14s; }
.feature-item:hover, .testimonial-card:hover, .btn-primary:hover { transform: scale(1.022); }
.testimonial-card:after {
  content: '';
  display: block;
  position: absolute;
  right: 21px;
  bottom: 17px;
  width: 32px;
  height: 32px;
  background: url('assets/icons/icon-quote.svg') no-repeat center/contain;
  opacity: 0.08;
  pointer-events: none;
}

/***** UTILITIES *****/
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }

/***** QUICK LINKS ON FAQ PAGE *****/
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 0 0;
  padding: 0;
}
.quick-links li {
  margin-bottom: 0;
}
.quick-links a {
  padding: 8px 18px;
  background: var(--bright3);
  color: var(--primary);
  font-weight: 700;
  border-radius: 20px;
  transition: background 0.18s, color 0.15s;
}
.quick-links a:hover {
  background: var(--accent);
  color: #fff;
}

/***** DISTINCTIVE HIERARCHY *****/
h2:not(:first-child) {
  margin-top: 28px;
}
h3:not(:first-child) {
  margin-top: 18px;
}

/***** RESPONSIVE SPACING & FLEX *****/
@media (max-width:650px) {
  .footer-contact, .footer-nav { gap: 10px; }
  .footer-contact { font-size: 13.5px; }
  .footer-copy { font-size: 12px; }
}
@media (max-width: 512px) {
  .container { padding-left: 4px; padding-right: 4px; }
  .feature-item, .testimonial-card, .faq-item { padding-left: 10px; padding-right: 10px; }
  .btn-primary { font-size: 14px; padding: 8px 15px; }
}

/***** PLAYFUL DYNAMIC TOUCHES (CONFETTI, SHADOWS) *****/
/* Decorative floating confetti (optional, purely cosmetic) */
.confetti {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.26;
  width: 15vw; height: 36px;
  left: 5vw; top: -22px;
  background: url('assets/confetti.svg') no-repeat center/cover;
}
/* You can add .confetti to sections for extra energy. */

/***** GENERAL OVERRIDES FOR BRAND CONSISTENCY *****/
::-webkit-scrollbar { width: 10px; background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

/* END CSS */
