/* 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,
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFFAF4;
  color: #2B2936;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.02em;
}
html {
  scroll-behavior: smooth;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
a {
  color: #16213E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #35A7FF;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  margin-left: 2em;
}
li {
  margin-bottom: 8px;
}
strong, b {
  font-weight: bold;
}
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* TYPOGRAPHY */
h1 {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 2.6rem;
  color: #16213E;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h2 {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  margin-bottom: 18px;
  color: #16213E;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h3 {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #CE7002;
  font-weight: 500;
}
p, .subheadline {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #443D35;
  margin-bottom: 14px;
  line-height: 1.7;
}
.subheadline {
  font-size: 1.1rem;
  color: #2B2936;
}

/* HEADERS & NAVIGATION */
header {
  background: #FFFAF4;
  box-shadow: 0 2px 14px rgba(22,33,62,0.07);
  width: 100%;
  position: relative;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.logo img {
  height: 48px;
  border-radius: 12px;
  background: #fffde6;
  box-shadow: 0 2px 6px rgba(255,203,5,0.2);
  padding: 2px 6px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #16213E;
  padding: 8px 0;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #FFCB05;
  color: #16213E;
  text-decoration: none;
}

.cta-primary {
  background: #FFCB05;
  color: #16213E;
  border-radius: 24px;
  padding: 11px 32px;
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 2px 18px 0 rgba(255,203,5,0.17);
  cursor: pointer;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #E3B400;
  color: #16213E;
  box-shadow: 0 4px 24px 0 rgba(22,33,62,0.14);
}

.cta-secondary {
  background: #16213E;
  color: #FFCB05;
  border-radius: 22px;
  padding: 10px 26px;
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  margin-top: 14px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 16px 0 rgba(54,167,255,0.13);
  cursor: pointer;
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #35A7FF;
  color: #16213E;
  box-shadow: 0 4px 24px 0 rgba(22,33,62,0.08);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  background: #FFCB05;
  color: #16213E;
  border: none;
  font-size: 2.2rem;
  border-radius: 16px;
  padding: 4px 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,203,5,0.18);
  display: none;
  margin-left: 18px;
  transition: background 0.15s;
  z-index: 21;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #35A7FF;
  outline-offset: 3px;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(255,250,244,0.98);
  box-shadow: 0 0 34px 0 rgba(54,167,255,0.07);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.57,.03,.47,1.37);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: #FFCB05;
  color: #16213E;
  border: none;
  font-size: 2rem;
  border-radius: 14px;
  padding: 6px 18px;
  margin: 22px 22px 0 16px;
  align-self: flex-end;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,203,5,0.11);
  transition: background 0.15s;
}
.mobile-menu-close:focus {
  outline: 2px solid #35A7FF;
  outline-offset: 3px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 24px;
  gap: 12px;
  padding: 0 32px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #16213E;
  padding: 16px 0;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
  font-family: 'Oswald',Arial,Helvetica,sans-serif;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFCB05;
  color: #16213E;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 16px;
  }
  .header .container, .container {
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  header .container {
    padding: 12px 10px;
    gap: 0;
  }
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 850px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* PAGE LAYOUT SECTIONS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.hero {
  align-items: flex-start;
  gap: 16px;
  min-height: 220px;
}
@media (min-width: 700px) {
  .content-wrapper.hero {
    min-height: 320px;
    align-items: flex-start;
    gap: 22px;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  margin-top: 8px;
  margin-bottom: 16px;
  padding: 0;
}
.service-list li {
  background: #FFF5D6;
  border-radius: 18px;
  padding: 22px 20px 16px 20px;
  box-shadow: 0 2px 15px 0 rgba(255,203,5,0.07), 0 1.5px 8px 0 rgba(54,167,255,0.045);
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.category {
  background: #35A7FF;
  color: #fff;
  border-radius: 8px;
  padding: 4px 12px;
  margin-left: 10px;
  font-size: 0.9rem;
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  letter-spacing: 0.02em;
}

/* FEATURES & CARDS  */
.features-grid, .team-profiles, .feature-list, .feature-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.features-grid {
  margin-top: 10px;
  gap: 24px;
}
.feature, .team-profiles > ul > li, .feature-checklist > li {
  background: #fff;
  border-radius: 18px;
  padding: 26px 20px 20px 22px;
  box-shadow: 0 2px 14px 0 rgba(22,33,62,0.05);
  min-width: 220px;
  max-width: 350px;
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.feature img {
  height: 38px;
  margin-bottom: 8px;
}
.feature:hover, .team-profiles > ul > li:hover, .feature-checklist > li:hover {
  box-shadow: 0 4px 32px 0 rgba(255,203,5,0.13);
  transform: translateY(-3px) scale(1.014);
}
.features-section ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.features-section li {
  background: #FFEAA7;
  border-radius: 15px;
  padding: 18px 14px 14px 16px;
  box-shadow: 0 2px 10px rgba(54,167,255,0.09);
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  margin-bottom: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.features-section li img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}

.feature-checklist > li {
  flex-direction: row;
  align-items: center;
  font-size: 1rem;
  background: #FFF;
  color: #16213E;
  margin-right: 12px;
}
.feature-checklist > li img {
  width: 25px;
  margin-right: 10px;
}

/* CARDS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFFAF4;
  border-radius: 18px;
  padding: 24px 16px 20px 16px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 14px 0 rgba(22,33,62,0.05);
  transition: box-shadow 0.2s, transform 0.16s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.card:hover {
  box-shadow: 0 4px 32px 0 rgba(54,167,255,0.09);
  transform: scale(1.02);
}

.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;
}
/* Ensure flex-direction: column for mobile */
@media (max-width: 768px) {
  .features-grid, .content-grid, .text-image-section, .features-section ul {
    flex-direction: column;
    gap: 16px;
  }
}

/* TEAM PROFILES */
.team-profiles {
  flex-direction: column;
  gap: 18px;
}
.team-profiles > ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.team-profiles > ul > li {
  background: #FFF5E0;
  min-width: 180px;
  max-width: 330px;
  flex: 1 1 200px;
  margin-bottom: 12px;
}

/* CTA BANNER */
.cta-banner {
  background: #35A7FF;
  color: #FFF;
  border-radius: 26px;
  padding: 34px 32px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 2px 18px rgba(35,167,255,0.13);
}
.cta-banner h2 {
  color: #FFF;
  margin-bottom: 10px;
  text-align: center;
}

/* TABLES (Offer page) */
table {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 2px 18px rgba(22,33,62,0.07);
  margin-bottom: 28px;
  overflow: hidden;
}
thead tr {
  background: #FFCB05;
}
th, td {
  font-size: 1rem;
  padding: 16px 12px;
  text-align: left;
}
thead th {
  color: #16213E;
  font-family: 'Oswald',Arial,Helvetica,sans-serif;
}
tbody tr { background: #fff; transition: background 0.15s; }
tbody tr:nth-child(even) { background: #FFF5D6; }
tbody tr:hover {
  background: #FFEAA7;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #fffde9;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(255,203,5,0.12);
  border: 1px solid #FFEAA7;
  transition: box-shadow 0.18s, transform 0.17s;
  max-width: 560px;
}
.testimonial-card p {
  color: #2B2936;
  font-size: 1.06rem;
  margin-bottom: 0;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.06rem;
}
.testimonial-meta span {
  color: #FFCB05;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}
.testimonial-meta strong {
  color: #16213E;
  font-family: 'Oswald',Arial,Helvetica,sans-serif;
}
.testimonial-card:hover {
  box-shadow: 0 6px 36px 0 rgba(255,203,5,0.23);
  transform: scale(1.018);
}

/* FOOTER */
footer {
  background: #16213E;
  color: #fff;
  padding: 42px 0 32px 0;
  margin-top: 20px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.footer-nav {
  display: flex;
  gap: 32px;
  margin-bottom: 14px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Oswald',Arial,Helvetica,sans-serif;
  border-radius: 6px;
  padding: 8px 12px;
  transition: background 0.18s, color 0.18s;
}
.footer-nav a:hover {
  background: #FFCB05;
  color: #16213E;
}
.contact-info {
  color: #FFEAAC;
  text-align: center;
  font-size: 0.98rem;
}
.contact-info a {
  color: #FFCB05;
}
.brand-tagline span {
  display: block;
  background: #35A7FF;
  color: #fff;
  font-family: 'Oswald',Arial,Helvetica,sans-serif;
  font-size: 1.12rem;
  border-radius: 16px;
  margin-top: 18px;
  padding: 12px 26px;
  box-shadow: 0 2px 10px rgba(54,167,255,0.14);
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbe6;
  border-top: 2px solid #FFCB05;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 18px 10px 18px 10px;
  box-shadow: 0 -2px 24px 0 rgba(22,33,62,0.09);
  z-index: 1500;
  font-size: 1rem;
  transition: transform 0.25s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-banner-text {
  color: #2B2936;
  max-width: 540px;
}
.cookie-banner .cookie-btn {
  background: #FFCB05;
  color: #16213E;
  border: none;
  border-radius: 20px;
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 8px;
  padding: 8px 24px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.15s;
  box-shadow: 0 1px 8px rgba(255,203,5,0.1);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #E3B400;
  color: #16213E;
}
.cookie-banner .cookie-btn.reject {
  background: #FFF;
  color: #16213E;
  border: 1.5px solid #FFCB05;
}
.cookie-banner .cookie-btn.reject:hover {
  background: #FFEAA7;
}
.cookie-banner .cookie-btn.settings {
  background: #FFF;
  color: #16213E;
  border: 1.5px solid #35A7FF;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #EFF7FE;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(22,33,62,0.25);
  display: flex; justify-content: center; align-items: center;
  z-index: 1600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fffbe6;
  border-radius: 20px;
  box-shadow: 0 2px 24px rgba(255,203,5,0.27);
  padding: 30px 32px 26px 32px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1650;
}
.cookie-modal h2 {
  margin-bottom: 4px;
  font-size: 1.3rem;
}
.cookie-modal-category {
  margin-bottom: 15px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-modal-category .switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}
.cookie-modal-category .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal-category .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0; right: 0; bottom: 0;
  background-color: #FFD921;
  border-radius: 24px;
  transition: background 0.2s;
}
.cookie-modal-category .switch input:checked + .slider {
  background: #35A7FF;
}
.cookie-modal-category .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.23s;
}
.cookie-modal-category .switch input:checked + .slider:before {
  transform: translateX(22px);
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 1.8rem;
  background: none;
  color: #16213E;
  border: none;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 10px;
  transition: background 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #FFEAA7;
  outline: none;
}
.cookie-modal .cookie-btn {
  margin: 8px 8px 0 0;
}

/* MISC */
.map-location {
  background: #FFFAF4;
  border-radius: 14px;
  padding: 14px;
  color: #16213E;
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 0.98rem;
  box-shadow: 0 2px 8px rgba(255,203,5,0.09);
}

/* KEY FLEX LAYOUT CLASSES FROM REQUIREMENTS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* SPACING FIXES FOR ALL PAGES */
section + section {
  margin-top: 0;
}
section:last-child {
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.35rem; }
  .cta-primary, .cta-secondary { font-size: 1rem; padding: 9px 16px; }
  .feature, .team-profiles > ul > li, .testimonials-card, .features-section li {
    min-width: unset;
    padding: 17px 12px 15px 13px;
  }
  section { padding: 28px 6px; }
  .cta-banner { padding: 22px 8px; }
  .card { padding: 14px 8px 12px 8px; }
  .testimonial-card { padding: 14px 8px; }
  .brand-tagline span { padding: 10px 8px; font-size: 0.97rem; }
  .cookie-modal { padding: 14px 8px; }
  .cookie-banner { padding: 12px 2px; }
}

/* SCROLLBAR STYLES */
::-webkit-scrollbar {
  width: 8px;
  background: #FFFBE6;
}
::-webkit-scrollbar-thumb {
  background: #FFEAA7;
  border-radius: 6px;
}

/* INTERACTIONS & TRANSITIONS */
a, button, .cta-primary, .cta-secondary, .cookie-btn {
  transition: background 0.18s, color 0.14s, box-shadow 0.13s, border 0.14s;
}
/* HIDE FOCUS OUTLINE EXCEPT FOR KEYBOARD USERS */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #35A7FF;
  outline-offset: 2px;
}

/* RESPONSIVE FIXES */
@media (max-width: 550px) {
  header .container { flex-direction: column; gap: 8px; }
  .logo img { height: 36px; }
  .cta-primary, .cta-secondary { font-size: 0.97rem; padding: 8px 10px; }
  .service-list li { padding: 14px 8px 8px 8px; }
  .brand-tagline span { padding: 8px 2px; font-size: 0.83rem; }
}

@media (max-width: 450px) {
  body { font-size: 14px; }
  h1, h2, h3 { font-size: inherit; }
}

/* Print: Remove header, footer, and cookie banner for print */
@media print {
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu { display: none !important; }
}
