/* --- CSS RESET + BASE NORMALIZER --- */
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;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f3f6f9 0%, #eaf1fa 48%, #d6eafd 100%);
  font-family: "Roboto", Arial, sans-serif;
  color: #083146;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-attachment: fixed;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #083146;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F7B32B;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
button, input[type="button"], input[type="submit"] {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* --- FONT LOADING (fallbacks included) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  color: #083146;
  margin-bottom: 16px;
  line-height: 1.13;
}
h1 { font-size: 2.6rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 10px; }
p, li, label {
  font-size: 1rem;
  margin-bottom: 12px;
}
strong { font-weight: 700; }

/* --- LAYOUT CONTAINERS / FLEXBOX RULES --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 32px;
  }
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 32px 0 rgba(8,49,70,0.08);
  transition: box-shadow 0.3s;
}
.section:hover {
  box-shadow: 0 8px 40px 0 rgba(8,49,70,0.18);
}

/* --- HERO SECTIONS STYLE --- */
.hero {
  background: linear-gradient(135deg, #f7b32b 0%, #f3f6f9 67%);
  padding: 56px 0 40px 0;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}
.hero h1 {
  color: #083146;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -2px;
}
.hero p {
  font-size: 1.2rem;
  color: #2a3547;
}
@media (max-width: 650px) {
  .hero {
    padding: 36px 0 22px 0;
  }
}

/* --- MAIN NAV STYLING --- */
header {
  background: #ffffffee;
  box-shadow: 0 2px 6px 0 rgba(8,49,70,0.07);
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px;
  position: relative;
  z-index: 2;
}
.main-nav > a img {
  height: 38px;
  vertical-align: middle;
}
.main-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.main-nav ul li a {
  font-size: 1rem;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 500;
  color: #083146;
  padding: 8px 2px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  color: #f7b32b;
  background: #f3f6f9;
}
.cta-btn {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(90deg, #083146 20%, #326985 80%);
  color: #fff;
  padding: 12px 28px;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(18,56,82,.08);
  transition: background 0.25s, box-shadow 0.21s, transform 0.13s;
  outline: none;
  border: none;
  margin-left: 20px;
  letter-spacing: 0.02em;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #f7b32b 0%, #326985 100%);
  color: #083146;
  box-shadow: 0 4px 20px rgba(8,49,70,0.12);
  transform: translateY(-1px) scale(1.03);
}

@media (max-width: 1020px) {
  .main-nav ul {
    gap: 14px;
  }
  .cta-btn { margin-left: 10px; }
}
@media (max-width: 950px) {
  .main-nav ul {
    display: none;
  }
  .cta-btn {
    display: none;
  }
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: #f7b32b;
  color: #083146;
  border: none;
  border-radius: 7px;
  padding: 7px 16px;
  margin-left: auto;
  margin-right: 10px;
  position: relative;
  z-index: 22;
  transition: background 0.18s, color 0.15s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #083146;
  color: #f7b32b;
}
@media (max-width: 950px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #083146e0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 90;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.5,.78,.31,1.17);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.3rem;
  background: #f7b32b;
  color: #083146;
  border-radius: 10px;
  margin: 22px 30px 0 0;
  padding: 2px 14px;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ebaf3e;
  color: #1e2d3e;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: 36px;
  margin-right: 38px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #fff;
  padding: 9px 0;
  border-radius: 6px;
  width: 220px;
  display: block;
  transition: background 0.17s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f7b32b;
  color: #083146;
}
@media (min-width: 951px) {
  .mobile-menu,
  .mobile-menu-toggle { display: none !important; }
}

/* --- FEATURES SECTION & CARDS --- */
.features, .feature-list, .feature-grid {
  width: 100%;
}
.feature-grid, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.feature-grid > li, .feature-grid > div, .feature-list > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #f3f6f9;
  border-radius: 18px;
  box-shadow: 0 1px 8px 0 rgba(8,49,70,0.04);
  padding: 28px 24px 24px 24px;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 220px;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow .21s, background .18s;
}
.feature-grid > li:hover, .feature-grid > div:hover, .feature-list > li:hover {
  box-shadow: 0 4px 24px 2px rgba(8,49,70,0.07);
  background: #fff8ef;
}
.feature-grid img, .feature-list img {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}
.feature-grid h3, .feature-list strong {
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: #093b5a;
}
.feature-grid p, .feature-list p {
  color: #2a344c;
  font-size: 1rem;
}

@media (max-width: 850px) {
  .feature-grid, .feature-list {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f3f6f9;
  border-radius: 18px;
  padding: 22px 18px;
}

/* --- SERVICES/SERVICE-LIST --- */
.services {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #f3f6f9;
  border-radius: 18px;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.service-list li {
  padding: 18px 18px 10px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 7px rgba(8,49,70,0.04);
  margin-bottom: 20px;
  transition: box-shadow .19s;
}
.service-list li:hover {
  box-shadow: 0 4px 22px 2px rgba(8,49,70,0.07);
}

/* --- TEAM BIO SECTION --- */
.team {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
}
.team-bio {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f3f6f9;
  border-radius: 14px;
  padding: 18px 24px 14px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px 0 rgba(8,49,70,0.03);
  transition: box-shadow 0.18s;
}
.team-bio:hover {
  box-shadow: 0 4px 18px 2px rgba(8,49,70,0.06);
}

/* --- TESTIMONIALS --- */
.testimonials {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 26px 20px 26px;
  margin-bottom: 20px;
  background: #f3f6f9;
  border: 2px solid #f7b32b;
  border-radius: 15px;
  box-shadow: 0 2px 18px 0 rgba(8,49,70,0.08);
  color: #083146;
  transition: box-shadow .21s, border .13s;
  font-size: 1.16rem;
  line-height: 1.42;
}
.testimonial-card strong {
  margin-top: 7px;
  font-size: 1rem;
  color: #083146;
  font-family: "Montserrat", Arial, sans-serif;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px 0 rgba(235,175,62,0.11);
  border: 2px solid #083146;
  background: #fff8ef;
}

/* --- CTA SECTION --- */
.cta {
  margin-bottom: 60px;
  padding: 46px 20px;
  background: linear-gradient(101deg, #f7b32b 0%, #f3f6f9 80%);
  border-radius: 26px;
  text-align: center;
  box-shadow: 0 4px 40px 0 rgba(8,49,70,0.08);
}
.cta h2 {
  color: #083146;
  font-size: 2.1rem;
}

/* --- LEGAL/CONTENT SECTIONS --- */
.legal, .about-intro, .newsletter-pricing, .trade-in-benefits, .consultation-process {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 14px 0 rgba(8,49,70,0.10);
}
@media (max-width: 700px) {
  .section, .services, .testimonials, .cta, .legal, .about-intro, .newsletter-pricing, .trade-in-benefits, .consultation-process, .team {
    padding: 24px 7px;
    border-radius: 12px;
  }
}

/* --- FLEXBOX-REQUIRED SPACING LAYOUTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(8,49,70,0.04);
  padding: 25px 19px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .2s;
}
.card:hover {
  box-shadow: 0 4px 20px 2px rgba(8,49,70,0.12);
}
.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;
}
.text-image-section > * {
  flex: 1 1 0;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid, .feature-list {
    flex-direction: column;
    gap: 20px;
  }
}

/* --- FOOTER STYLES --- */
footer {
  background: #083146;
  color: #fff;
  padding: 38px 0 22px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 1rem;
}
.footer-nav a {
  color: #fff;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 5px 2px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #f3f6f9;
  color: #083146;
}
.footer-contact {
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer-contact a { color: #f7b32b; }
.footer-contact a:hover { text-decoration: underline; }
.footer-brand {
  font-family: "Montserrat", Arial, sans-serif;
  color: #f7b32b;
  margin-top: 10px;
  font-size: 1rem;
}
@media (max-width: 700px) {
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- BUTTONS & INTERACTIONS --- */
button, .cta-btn {
  transition: background 0.21s, color 0.18s, box-shadow 0.21s, transform 0.13s;
}
button:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid #f7b32b;
  outline-offset: 2px;
}

/* --- MODAL, OVERLAYS (for cookie banner) --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: #083146;
  color: #fff;
  width: 100vw;
  box-shadow: 0 -2px 28px 0 rgba(8,49,70,0.20);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.cookie-banner-content {
  font-size: 1rem;
  margin-bottom: 7px;
  line-height: 1.48;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner .accept-btn, .cookie-banner .reject-btn, .cookie-banner .settings-btn {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 18px;
  min-width: 110px;
  background: #f7b32b;
  color: #083146;
  border: none;
  transition: background 0.19s;
}
.cookie-banner .reject-btn {
  background: #f3f6f9;
  color: #083146;
}
.cookie-banner .settings-btn {
  background: transparent;
  border: 2px solid #f7b32b;
  color: #f7b32b;
}
.cookie-banner .accept-btn:hover, .cookie-banner .accept-btn:focus {
  background: #083146;
  color: #fff;
}
.cookie-banner .reject-btn:hover, .cookie-banner .reject-btn:focus {
  background: #d6eafd;
}
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: #f7b32b;
  color: #083146;
}
/* Hide banner when not active */
.cookie-banner.hide {
  display: none;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 94vw;
  max-width: 400px;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 6px 36px 0 rgba(8,49,70,0.26);
  transform: translate(-50%,-50%) scale(0.8);
  z-index: 100;
  padding: 28px 21px 24px 21px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s, transform 0.23s;
}
.cookie-modal.active {
  pointer-events: all;
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  color: #083146;
  margin-bottom: 6px;
  font-size: 1.2rem;
  font-family: "Montserrat", Arial, sans-serif;
}
.cookie-modal .modal-section {
  margin-bottom: 10px;
}
.cookie-modal .modal-section label {
  font-weight: 500;
  color: #245574;
}
.cookie-modal .toggle-switch {
  margin-left: 18px;
  position: relative;
  display: inline-block;
  width: 45px;
  height: 26px;
  vertical-align: middle;
}
.cookie-modal .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #d6eafd;
  transition: .4s;
  border-radius: 26px;
}
.cookie-modal .toggle-switch input:checked + .slider {
  background: #f7b32b;
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .4s;
}
.cookie-modal .toggle-switch input:checked + .slider:before {
  transform: translateX(18px);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 10px;
}
.cookie-modal .modal-save, .cookie-modal .modal-cancel {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 7px 22px;
  background: #f7b32b;
  color: #083146;
  border: none;
  border-radius: 18px;
  transition: background 0.18s;
}
.cookie-modal .modal-cancel {
  background: #eaf1fa;
  color: #093b5a;
}
.cookie-modal .modal-save:hover, .cookie-modal .modal-save:focus {
  background: #083146;
  color: #fff;
}
.cookie-modal .modal-cancel:hover, .cookie-modal .modal-cancel:focus {
  background: #f3f6f9;
}

/* --- FORM ELEMENTS --- */
input, select, textarea {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #d6eafd;
  padding: 7px 9px;
  margin-bottom: 12px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid #f7b32b;
  border-color: #f7b32b;
}
label { display: block; margin-bottom: 5px; }

/* --- MISCELLANEOUS --- */
::-webkit-scrollbar {
  width: 9px;
  background: #f3f6f9;
}
::-webkit-scrollbar-thumb {
  background: #eaf1fa;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f7b32b;
}

/* --- RESPONSIVE UTILITIES --- */
@media (max-width: 768px) {
  body, html { font-size: 15px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .cta h2 { font-size: 1.23rem; }
}
@media (max-width: 500px) {
  .container { padding-left: 5px; padding-right: 5px; }
  h1 { font-size: 1.23rem; }
  h2 { font-size: 1.1rem; }
  .cta h2 { font-size: 1rem; }
  .cookie-modal { padding: 18px 5px 16px 5px; }
}

/* --- END --- */
