/* ==== 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;
}
html { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.6;
  background: #F7F7F2;
  color: #20232A;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; height: auto; border: 0; }
ul, ol { padding-left: 24px; }
a { color: #4B6783; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #1E2633; }
strong { font-weight: 600; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1E2633;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

/* ============= GLOBAL UTILITY CLASSES ============= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ================== HEADER & NAVIGATION ================== */
header {
  background: linear-gradient(90deg, #F7F7F2 60%, #D4DBE8 100%);
  box-shadow: 0 2px 16px rgba(78,103,131,0.05);
  position: sticky;
  top: 0;
  z-index: 1100;
}
.main-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  padding: 20px 0 12px 0;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  color: #1E2633;
  transition: background 0.18s, color 0.18s;
}
.main-nav a.cta-btn {
  background: linear-gradient(90deg, #4B6783 30%, #1E2633 110%);
  color: #F7F7F2;
  padding: 8px 22px;
  font-weight: 700;
  border-radius: 999px;
  margin-left: auto;
  box-shadow: 0 4px 16px 0 rgba(78,103,131,0.11);
  transition: background 0.2s, box-shadow 0.2s;
}
.main-nav a.cta-btn:hover, 
.main-nav a.cta-btn:focus {
  background: linear-gradient(90deg, #35506d 30%, #1E2633 100%);
  box-shadow: 0 6px 22px 0 rgba(30,38,51,0.16);
}
.main-nav a:hover:not(.cta-btn), .main-nav a:focus:not(.cta-btn) {
  background: #e4e9ee;
  color: #4B6783;
}
.main-nav img {
  height: 38px;
  width: auto;
  margin-right: 14px;
  margin-left: 0;
}

/* ======= MOBILE MENU STYLES ======= */
.mobile-menu-toggle {
  display: flex;
  position: absolute;
  right: 24px;
  top: 16px;
  background: none;
  border: none;
  color: #1E2633;
  font-size: 2.2rem;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.16s;
  z-index: 1201;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: rgba(220,220,233,0.25);
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(140deg, #F7F7F2 70%, #4B6783 130%);
  box-shadow: 0 0 90px 0 rgba(30,38,51,0.10);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.75,.01,.21,.99);
  will-change: transform;
  padding-top: 42px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #1E2633;
  font-size: 2.0rem;
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 1505;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.13s;
  cursor: pointer;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #e3e8f1;
  color: #4B6783;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px 28px 0 28px;
}
.mobile-nav a {
  font-size: 1.1rem;
  padding: 10px 0;
  border-radius: 6px;
  color: #1E2633;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: background 0.16s,color 0.12s;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #E1E5EE;
  color: #4B6783;
}

@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  header {
    min-height: 50px;
  }
}

/* ================= SECTION SPACING/CONTAINERS ================= */
.hero {
  padding: 44px 0 44px 0;
  background: linear-gradient(120deg, #F7F7F2 60%, #E1EBFD 100%);
  border-bottom: 1.5px solid #e6eaf2;
}
.features, .services, .about, .contact-section, .legal-section, .thankyou-section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section, .features, .services, .about, .contact-section, .legal-section, .thankyou-section {
    padding: 24px 0;
    margin-bottom: 38px;
  }
  .container {
    padding: 0 8px;
  }
}

/* =================== FLEXBOX LAYOUT COMPONENTS =================== */
.feature-grid, .service-grid, .product-list, .team-list, .feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
}
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(78,103,131,0.04);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
  transition: box-shadow 0.2s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 5px 26px rgba(78,103,131,0.10);
  transform: translateY(-2px) scale(1.012);
  z-index: 1;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #F7F7F2;
  border: 1.5px solid #E0E4EA;
  box-shadow: 0 4px 22px 0 rgba(30,38,51,0.06);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1.04rem;
  position: relative;
  min-width: 205px;
  color: #20232A;
  transition: box-shadow 0.2s;
}
.testimonial-card .stars {
  font-size: 1.14em;
  color: #4B6783;
  letter-spacing: 2px;
}
.testimonial-card span {
  font-size: 0.93rem;
  color: #4B6783;
  font-style: italic;
  margin-top: 0;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px 0 rgba(78,103,131,0.10);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive: column stacking for flex items on mobile */
@media (max-width: 820px) {
  .feature-grid, .service-grid, .product-list, .team-list, .feature-icons,
  .content-grid, .card-container, .card-grid {
    flex-direction: column;
    gap: 24px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 600px) {
  .testimonial-card {
    font-size: 0.98rem;
    padding: 14px;
  }
}

/* =================== GENERAL ELEMENT & TYPOGRAPHY =================== */
p, li, address {
  font-size: 1.03em;
  color: #272C35;
  margin-bottom: 8px;
  line-height: 1.7;
  font-family: 'Roboto', Arial, sans-serif;
}
address {
  font-style: normal;
  font-size: 0.98em;
  color: #3A4761;
  margin-top: 7px;
}

ul {
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 3px;
}

/* Hide list marker for icon lists (if needed later) */
.feature-grid li, .feature-icons li {
  list-style: none;
}

/* =============== BUTTONS & CTAS =============== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #4B6783 0%, #1E2633 97%);
  color: #F7F7F2 !important;
  border: none;
  outline: none;
  padding: 12px 32px;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 7px;
  cursor: pointer;
  box-shadow: 0 4px 18px 0 rgba(78,103,131,0.11);
  transition: background 0.2s, transform 0.17s, box-shadow 0.2s;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #304056 10%, #1E2633 100%);
  transform: translateY(-1.5px) scale(1.021);
  box-shadow: 0 6px 28px 0 rgba(30,38,51,0.16);
  outline: none;
}

/* ============== HERO, HEADERS, and SECTIONS ============== */
.hero h1 {
  font-size: 2.4rem;
  letter-spacing: 0.03em;
  color: #1E2633;
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.18em;
  color: #3A4761;
  margin-bottom: 18px;
}
.hero {
  box-shadow: 0 2.5px 16px 0 rgba(78,103,131,0.08);
}
.features h2, .services h2, .about h2, .team h2, .contact-section h2, .legal-section h1, .thankyou-section h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* Feature/grid images */
.feature-grid img, .feature-icons img, .feature-icons svg {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

.certifications {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  margin-bottom: 12px;
}
.certifications img {
  width: 32px;
  height: 32px;
}
.certifications span {
  font-size: 1em;
  color: #4B6783;
}

.map-location, .opening-hours, .text-section {
  margin: 16px 0;
  background: #F7F7F2;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 2px 10px 0 rgba(78,103,131,0.035);
}

/* Cards, Key Features, Blog highlights, Step Guides */
.key-features, .product-categories, .step-guides, .blog-highlights {
  margin-top: 24px;
  background: #F7F7F2;
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: 0 2px 10px 0 rgba(78,103,131,0.035);
}
.key-features h4, .product-categories h4, .step-guides h4, .blog-highlights h4 {
  color: #4B6783;
  font-size: 1.08rem;
  margin-bottom: 8px;
}

/* =============== TEAM LIST =============== */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-list > div {
  background: #fff;
  padding: 22px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(78,103,131,0.06);
  width: calc(50% - 24px);
  min-width: 220px;
  margin-bottom: 20px;
}
.team-list h3 {
  font-size: 1.11rem;
}
.team-list span {
  color: #4B6783;
  font-size: 0.98em;
}
@media (max-width: 820px) {
  .team-list > div {
    width: 100%;
  }
}

/* ============ FOOTER ============ */
footer {
  background: #1E2633;
  color: #F7F7F2;
  padding: 42px 0 28px 0;
  border-top: 2px solid #4B6783;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
footer img {
  max-width: 48px;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #F7F7F2;
  font-size: 1em;
  opacity: 0.94;
  transition: color 0.13s, opacity 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #A6B6C6;
  text-decoration: underline;
  opacity: 1;
}
footer address {
  color: #b5c2ce;
  font-size: 0.98rem;
  margin-top: 5px;
  line-height: 1.6;
}
footer address img {
  display: inline;
  vertical-align: middle;
  margin-right: 6px;
  width: 16px;
  height: 16px;
  margin-bottom: 3px;
}
@media (max-width: 750px) {
  footer .container {
    gap: 15px;
  }
}

/* =========== COOKIE CONSENT BANNER & MODAL =========== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, #1E2633 75%, #4B6783 100%);
  color: #fff;
  z-index: 2500;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 25px 28px;
  box-shadow: 0 -2px 18px 0 rgba(30,38,51,0.12);
  font-size: 1.06em;
  transition: transform 0.36s cubic-bezier(.4,.7,.23,1);
}
#cookie-banner.hide {
  transform: translateY(100%);
}
#cookie-banner p {
  color: #fff;
  margin: 0 22px 0 0;
  font-family: 'Roboto', Arial,sans-serif;
  font-size: 1.03em;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 7px;
  font-size: 1em;
  padding: 8px 22px;
  outline: none;
  border: none;
  cursor: pointer;
  background: #fff;
  color: #1E2633;
  font-weight: 600;
  transition: background 0.19s, color 0.19s, box-shadow 0.14s;
  box-shadow: 0 1px 5px 0 rgba(78,103,131,0.12);
}
.cookie-btn.accept {
  background: #4B6783;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #1E2633;
  border: 1.5px solid #4B6783;
}
.cookie-btn.settings {
  background: #212632;
  color: #fff;
  border: 1px solid #eee;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #E1E5EE;
  color: #1E2633;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #35506d;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e4ecfa;
}

@media (max-width: 850px) {
  #cookie-banner { flex-direction: column; align-items: flex-start; padding: 17px 8px 17px 15px; gap: 10px; }
  .cookie-actions {
    gap: 8px;
    margin-top: 6px;
  }
}

/* ==== Cookie Modal Overlay ==== */
#cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2600;
  background: rgba(20,30,47,0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.26s cubic-bezier(.8,.1,.21,.99);
}
#cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px 0 rgba(30,38,51,0.19);
  padding: 36px 30px 30px 30px;
  min-width: 280px; max-width: 390px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #1E2633;
}
.cookie-modal-content h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2em;
  color: #1E2633;
  margin-bottom: 7px;
}
.cookie-preference-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-preference {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #1E2633;
}
.cookie-preference label {
  font-size: 1em;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-toggle {
  width: 38px; height: 22px;
  border-radius: 14px;
  background: #ddd;
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-toggle.enabled {
  background: #4B6783;
}
.cookie-toggle.disabled {
  background: #dbe4ef;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px; top: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1.5px 6px rgba(30,38,51,0.07);
  transition: left 0.13s, background 0.13s;
}
.cookie-toggle.enabled::before {
  left: 17px;
  background: #f1f6fc;
}
/* Modal footer btns */
.cookie-modal-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-btn {
  min-width: 94px;
}
@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 20px 8px 18px 8px;
    min-width: 0;
    width: 97vw;
  }
}

/* ========== MISC ELEMENTS ========== */
hr {
  border: none;
  border-bottom: 1px solid #e6eaf1;
  margin: 32px 0;
}
::-webkit-scrollbar {
  width: 9px;
  background: #e7ecf6;
}
::-webkit-scrollbar-thumb {
  background: #d5dbe9;
  border-radius: 88px;
}

/* ============== RESPONSIVE TYPOGRAPHY ============== */
@media (max-width: 600px) {
  h1 { font-size: 1.52rem; }
  h2 { font-size: 1.22rem; }
  .hero h1 { font-size: 1.32rem; }
  .hero p { font-size: 1em; }
  .section, .features, .services, .about, .contact-section, .legal-section, .thankyou-section {
    padding: 12px 0;
  }
  .content-wrapper { gap: 13px; }
}

/* ============== MICRO-INTERACTIONS & ANIMATION ============== */
.cta-btn, .card, .testimonial-card, .cookie-btn, .mobile-menu, .main-nav a {
  transition: all 0.22s cubic-bezier(.7,.01,.23,.99);
}
.card:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* ========== ACCESSIBILITY FOCUS STATES ========== */
a, .cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  outline: none;
}
a:focus-visible, .cta-btn:focus-visible, .cookie-btn:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible {
  box-shadow: 0 0 0 3px #C3DCF7;
  outline: none;
}

/* ============== BRAND-LEVEL OVERRIDES (FOR SPECIFIC ELEMENTS/CLASSES IF ANY) ============== */
/* --- none necessary since all classes are handled above --- */

/* ============== PRINT STYLES (OPTIONAL) ============== */
@media print {
  header, footer, #cookie-banner, #cookie-modal, .mobile-menu { display: none !important; }
  body, .container { background: #fff !important; color: #000 !important; }
}
