/* ---- 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, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #F7F7F9;
  color: #23405C;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: 1.2;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 700;
  color: #23405C;
  margin-bottom: 16px;
  line-height: 1.12;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 13px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 11px; }
strong, b { font-weight: 700; }
p { margin-bottom: 16px; }
small { font-size: 0.9em; }

/* --------------- BASE CONTAINERS --------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* -------------- HEADER & NAVIGATION -------------- */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(255, 186, 8, 0.06);
  z-index: 30;
  position: sticky;
  top: 0;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
}
.main-nav a {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #23405C;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.17s, color 0.16s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #FFBA08;
  color: #23405C;
}
.main-nav .cta {
  background: #FFBA08;
  color: #23405C;
  font-weight: bold;
  border-radius: 24px;
  padding: 10px 28px;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(255,186,8,0.09);
  transition: background 0.18s, color 0.16s, box-shadow 0.2s;
}
.main-nav .cta:hover, .main-nav .cta:focus {
  background: #23405C;
  color: #fff;
  box-shadow: 0 2px 12px rgba(35,64,92,0.16);
}
.main-nav img {
  height: 36px;
  width: auto;
  border-radius: 0;
  margin-right: 10px;
}

/* ------ MOBILE NAVIGATION ------ */
.mobile-menu-toggle {
  display: none;
  background: #FFBA08;
  color: #23405C;
  border: none;
  border-radius: 12px;
  font-size: 2rem;
  padding: 7px 16px;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 101;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #23405C;
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(247,247,249,0.97);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.79,.14,.15,.86);
  box-shadow: 4px 0 36px rgba(35,64,92,0.12);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #23405C;
  padding: 8px 18px;
  margin: 16px 0 0 16px;
  align-self: flex-end;
  line-height: 1;
  cursor: pointer;
  z-index: 202;
  border-radius: 8px;
  transition: background 0.17s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFE7AB;
  color: #D49400;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 17px;
  width: 100%;
  margin: 36px 0 0 34px;
}
.mobile-nav a {
  padding: 14px 0;
  font-size: 1.25rem;
  border-radius: 10px;
  color: #23405C;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.16s, color 0.14s;
  min-width: 180px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFBA08;
  color: #23405C;
}

@media (max-width: 1024px) {
  .main-nav .cta {
    margin-left: 0;
  }
}
@media (max-width: 800px) {
  .main-nav {
    gap: 10px;
    padding: 13px 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ------------- SECTIONS & CARDS LAYOUTS ------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 18px rgba(255,186,8, 0.16);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px 24px 18px;
  transition: box-shadow 0.18s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 28px rgba(35,64,92,0.17);
}
.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;
}

/* Cards/Items Examples */
.feature-grid, .service-grid, .device-types-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}

.feature-item, .service-item, .device-type {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(255,186,8,0.10);
  padding: 24px 20px 20px 20px;
  min-width: 200px;
  max-width: 310px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.19s;
}
.feature-item img, .service-item img, .device-type img {
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
}
.feature-item:hover, .service-item:hover, .device-type:hover {
  box-shadow: 0 8px 22px rgba(35, 64, 92, 0.15);
  transform: translateY(-6px) scale(1.016);
}

@media (max-width: 920px) {
  .feature-item, .service-item, .device-type {
    flex: 1 1 45%;
    max-width: calc(50% - 28px);
  }
}
@media (max-width: 600px) {
  .feature-item, .service-item, .device-type {
    max-width: 100%;
    min-width: 0;
    flex: 1 1 100%;
    padding: 20px 14px 16px 14px;
  }
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(90deg, #FFE7AB 0%, #FFBA08 99%);
  padding: 60px 0 48px 0;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
}
.hero h1 {
  font-size: 2.5rem;
  color: #23405C;
  font-family: 'Oswald', Arial, sans-serif;
  letter-spacing: .01em;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.25rem;
  color: #586B83;
  margin-bottom: 26px;
  max-width: 540px;
}
.hero .cta {
  background: #23405C;
  color: #fff;
}

/* ------------- CTA BUTTONS -------------- */
.cta, a.cta {
  background: #FFBA08;
  color: #23405C;
  border: none;
  border-radius: 30px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 14px 38px;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 2px 10px rgba(255,186,8,0.08);
  margin-top: 10px;
  margin-bottom: 4px;
  transition: background 0.18s, color 0.16s, box-shadow 0.19s, transform 0.11s;
}
.cta:hover, .cta:focus {
  background: #23405C;
  color: #fff;
  box-shadow: 0 6px 18px rgba(35,64,92,0.18);
  transform: translateY(-2px) scale(1.03);
}

/* ------------- LISTS, TABLES & TYPOGRAPHY ------------- */
ul li, ol li {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.9;
  color: #546176;
  display: flex;
  align-items: center;
  gap: 10px;
}
table {
  width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(255,186,8,0.10);
  border-collapse: collapse;
  margin-bottom: 24px;
  overflow: hidden;
}
thead tr {
  background: #FFBA08;
}
th, td {
  padding: 15px 20px;
  text-align: left;
}
th {
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 700;
  color: #23405C;
  font-size: 1.15em;
}
tbody tr {
  border-bottom: 1px solid #F7F7F9;
}
tbody tr:last-child {
  border-bottom: 0;
}
tbody td {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1em;
  color: #23405C;
}

/* ------------- TESTIMONIALS -------------- */
.testimonials-section, .testimonial-snippet {
  background: #FDF7EA;
  border-radius: 20px;
  padding: 36px 0 26px 0;
  margin-bottom: 60px;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  padding: 20px 22px 18px 22px;
  border-radius: 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(255,186,8, 0.13);
  max-width: 400px;
  min-width: 240px;
  flex: 1 1 340px;
  transition: box-shadow 0.22s, transform 0.14s;
}
.testimonial-card p {
  color: #23405C;
  font-size: 1.1rem;
}
.testimonial-card span {
  color: #B47C00;
  font-weight: 500;
  font-size: 1em;
  opacity: 0.82;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(35,64,92,0.14);
  transform: scale(1.022);
}

.star-rating-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: #FFE7AB;
  border-radius: 16px;
  padding: 8px 18px 8px 14px;
  color: #B47C00;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08em;
  box-shadow: 0 2px 10px rgba(255,186,8,0.10);
}
.star-rating-summary img {
  width: 24px;
  height: 24px;
  border-radius: 0;
}
.star-rating-summary span {
  margin-left: 8px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #927000;
}

/* ------------- FOOTER ------------- */
footer {
  background: #23405C;
  color: #fff;
  padding: 30px 0 14px 0;
  border-top: 4px solid #FFBA08;
  margin-top: 70px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
  justify-content: center;
}
.footer-nav a {
  color: #FFE7AB;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #23405C;
  background: #FFBA08;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  font-size: 1.1em;
}
.footer-contact p {
  margin-bottom: 4px;
  color: #FFFEF9;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.98em;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  border-radius: 0;
  vertical-align: middle;
}

/* ------------- SCOPED SECTIONS & SPECIALS ------------- */
.about-section, .team-section, .why-us, .services-section, .process-section, .repair-types-section, .diagnostics-section, .business-info, .contact-section, .thank-you-section, .legal-section, .pricing-section, .services-teaser {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 24px rgba(255,186,8,0.14);
  margin-bottom: 60px;
  padding: 40px 0 36px 0;
}
.trust-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FDF7EA;
  border-radius: 14px;
  padding: 9px 22px;
  margin-top: 13px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: bold;
  color: #B47C00;
  font-size: 1.05em;
  box-shadow: 0 1px 7px rgba(255,186,8,0.10);
}
.trust-badges img {
  width: 28px;
  height: 28px;
}
.text-section, .map-embed {
  margin-bottom: 18px;
}

/* ---- Cookie Consent Banner ---- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff7e0;
  color: #23405C;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 999;
  box-shadow: 0 -2px 16px rgba(35, 64, 92, 0.08);
  padding: 20px 12px 20px 12px;
  border-top: 2px solid #FFBA08;
  animation: cookie-banner-in 0.5s cubic-bezier(.61,0,.46,1.44);
}
@keyframes cookie-banner-in {
  0% { transform: translateY(100%) scale(0.98); opacity: .4; }
  80% { opacity: .98; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cookie-consent-banner button {
  padding: 10px 24px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 22px;
  background: #FFBA08;
  color: #23405C;
  font-weight: 600;
  margin-right: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.12s, transform 0.14s;
  box-shadow: 0 2px 8px rgba(255,186,8,0.08);
}
.cookie-consent-banner button.accept:hover,
.cookie-consent-banner button.accept:focus {
  background: #23405C;
  color: #FFF7E0;
  transform: scale(1.05);
}
.cookie-consent-banner button.reject {
  background: #ffecca;
  color: #B47C00;
}
.cookie-consent-banner button.reject:hover,
.cookie-consent-banner button.reject:focus {
  background: #FFBA08;
  color: #23405C;
}
.cookie-consent-banner button.settings {
  background: #fff;
  color: #23405C;
  border: 1px solid #FFBA08;
}
.cookie-consent-banner button.settings:hover,
.cookie-consent-banner button.settings:focus {
  background: #FFBA08;
  color: #23405C;
}

/* ---- Cookie Preferences Modal ---- */
.cookie-consent-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(35,64,92,0.38);
  z-index: 1999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fadein 0.3s cubic-bezier(.61,0,.46,1.34);
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-consent-modal {
  background: #fff;
  padding: 42px 28px 24px 28px;
  border-radius: 24px;
  box-shadow: 0 8px 42px rgba(35,64,92,0.18);
  max-width: 370px;
  width: 96vw;
  animation: cookie-modal-in 0.36s cubic-bezier(.68,0,.28,1.19);
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #23405C;
}
@keyframes cookie-modal-in {
  from { transform: translateY(60px) scale(.96); opacity: .5; }
  to { transform: none; opacity: 1; }
}
.cookie-consent-modal h2 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.46rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  background: #fff7e0;
  padding: 10px 17px;
  border-radius: 13px;
  font-size: 1.035rem;
}
.cookie-category input[type=checkbox] {
  accent-color: #FFBA08;
  width: 20px;
  height: 20px;
  border-radius: 6px;
}
.cookie-category.essential {
  font-weight: 600;
  color: #927000;
}
.cookie-category.essential input[type=checkbox] {
  opacity: 0.75;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  border-radius: 18px;
  border: none;
  padding: 9px 18px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1em;
  font-weight: 600;
}
.cookie-modal-actions .accept {
  background: #FFBA08;
  color: #23405C;
}
.cookie-modal-actions .save {
  background: #23405C;
  color: #fff;
}
.cookie-modal-actions .close {
  background: #fff;
  color: #23405C;
  border:1px solid #FFBA08;
}
.cookie-modal-actions button:hover,
.cookie-modal-actions button:focus {
  filter: brightness(1.08);
  transform: scale(1.035);
}

/* ------------- RESPONSIVE MEDIA QUERIES -------------- */
@media (max-width: 1024px) {
  .container {
    max-width: 97vw;
    padding: 0 13px;
  }
  .feature-item, .service-item, .device-type, .testimonial-card {
    max-width: 48%;
    min-width: 220px;
  }
}
@media (max-width: 800px) {
  .feature-grid, .service-grid, .device-types-grid, .testimonial-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .container {
    max-width: 99vw;
    padding: 0 7px;
  }
  .hero {
    padding: 34px 0 22px 0;
    margin-bottom: 34px;
  }
  .section, .about-section, .team-section, .why-us, .services-section, .process-section, .repair-types-section, .diagnostics-section, .business-info, .contact-section, .thank-you-section, .legal-section, .pricing-section, .services-teaser {
    padding: 28px 0 20px 0;
    margin-bottom: 34px;
    border-radius: 15px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .content-grid,
  .feature-grid,
  .service-grid,
  .device-types-grid,
  .testimonial-list {
    flex-direction: column;
    gap: 12px;
  }
  .feature-item, .service-item, .device-type, .testimonial-card {
    min-width: 0;
    max-width: 100%;
    padding: 17px 8px;
  }
  .testimonial-card {
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav {
    gap: 12px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.06rem; }
  .card, .testimonial-card, .feature-item, .service-item, .device-type {
    padding: 12px 6px 14px 10px;
    border-radius: 12px;
  }
}

/* --------------- ANIMATIONS, INTERACTIONS ---------------- */
.card, .feature-item, .service-item, .device-type, .testimonial-card, .cta, .cookie-consent-banner button, .mobile-menu-toggle, .mobile-menu-close {
  transition-property: background, color, box-shadow, transform, border, opacity;
  transition-duration: 0.18s;
  transition-timing-function: cubic-bezier(.48,.06,.36,1.02);
}

@media (hover: hover) {
  .main-nav a:not(.cta):hover {
    background: #FFE7AB;
  }
  .footer-nav a:hover {
    background: #FFBA08;
    color: #23405C;
  }
}

/* -------------- SCROLLBAR FRIENDLY --------------- */
::-webkit-scrollbar {
  width: 8px;
  background: #FDF7EA;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb {
  background: #FFBA08;
  border-radius: 6px;
}

/* Hide placeholder for non-existent map embed, keep breathing room on text block */
.map-embed {
  background: #FFE7AB;
  border-radius: 16px;
  padding: 16px 14px;
  color: #23405C;
  font-size: 0.99em;
  box-shadow: 0 1px 7px rgba(255,186,8,0.10);
}

/* Ensure compliance with minimum card/section spacing requirements */
.section, .about-section, .team-section, .why-us, .services-section, .process-section, .repair-types-section, .diagnostics-section, .business-info, .contact-section, .thank-you-section, .legal-section, .pricing-section, .services-teaser, .testimonial-snippet, .testimonials-section {
  margin-bottom: 60px !important;
  padding: 40px 20px;
}

/* ---- Extra: Miscellaneous styles for warmth & friendliness ---- */
html {
  background: #F7F7F9;
}
::selection {
  background: #FFBA08;
  color: #23405C;
}
a:active {
  opacity: 0.74;
}

/* Input focus styles (if any forms present) */
input:focus, textarea:focus, select:focus {
  border-color: #FFBA08 !important;
  outline: 2px solid #FFBA08 !important;
  transition: outline 0.16s;
}

/* Utility for accessibility: visually hidden class */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}
