/* ---------------- 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* ---------------- VARIABLES (with fallback) ---------------- */
:root {
  --primary: #163846;
  --secondary: #F6B21A;
  --accent: #E8F0ED;
  --accent-bright: #eaff49; /* Electric highlight */
  --accent-1: #12E8B2;
  --accent-2: #FF4A57;
  --card-shadow: 0 4px 20px 0 rgba(22,56,70,0.09);
  --border-radius: 18px;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: var(--primary);
  min-height: 100vh;
  font-size: 1rem;
  letter-spacing: 0.02em;
  /* energetic background option for sections (see .accent-bg) */
}

/* DISPLAY FONTS */
h1, h2, h3, h4, .footer-tagline {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
}

/* ---------------- BASIC TYPOGRAPHY SCALE ---------------- */
h1 {
  font-size: 2.6rem;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--secondary);
  text-shadow: 0 2px 18px rgba(246,178,26,0.07);
}
h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
h3 {
  font-size: 1.4rem;
  color: var(--secondary);
  letter-spacing: 0.01em;
  line-height: 1.3;
}
h4 {
  font-size: 1.15rem;
  color: var(--accent-2);
  letter-spacing: 0.01em;
}
p {
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  font-weight: bold;
}

.footer-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 16px;
  text-align: center;
  text-shadow: 0 2px 12px #fff;
}

/* ------ Layout Containers with Flexbox (MANDATORY PATTERNS) ------ */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.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;
}

/* --------------- FLEX LAYOUTS FOR SPECIFIC BLOCKS -------------- */
.feature-grid, .service-list, .testimonial-list, .faq-pairs, .process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature, .service-teaser, .faq-item, .step {
  flex: 1 1 240px;
  min-width: 256px;
  max-width: 100%;
  padding: 28px 22px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  border: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .24s, transform .24s;
  position: relative;
}
.feature:hover, .service-teaser:hover, .faq-item:hover, .step:hover {
  box-shadow: 0 8px 32px 0 rgba(246,178,26,0.13);
  transform: translateY(-4px) scale(1.03);
}

.service-list {
  flex-wrap: wrap;
  gap: 28px;
}

/* ------ Buttons, CTAs ------ */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 38px;
  min-width: 160px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 32px;
  border: 0;
  background: var(--secondary);
  color: #163846;
  box-shadow: 0 6px 18px 0 rgba(246,178,26,0.08);
  text-shadow: 0 2px 10px #fff;
  letter-spacing: .08em;
  transition: background .15s, color .15s, transform .18s, box-shadow .18s;
  cursor: pointer;
  margin: 10px 0 0 0;
}
.cta.primary {
  background: var(--secondary);
  color: #163846;
}
.cta.secondary {
  background: var(--primary);
  color: #fff;
}
.cta:hover, .cta:focus {
  background: var(--accent-1);
  color: #163846;
  transform: scale(1.035);
  box-shadow: 0 6px 24px 0 rgba(18,232,178,0.16), 0 2px 12px #fff;
  outline: none;
}

/* ------- Accent/Electric backgrounds for high energy ---------- */
.accent-bg {
  background: var(--accent);
}
.section.accent-bg, .accent-bg {
  border-radius: var(--border-radius);
  box-shadow: 0 4px 14px 0 rgba(22,56,70,0.05);
}

/* ------------------- HEADER STYLES ------------------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(246,178,26,0.06);
  padding: 0;
  z-index: 1000;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 24px;
}
.logo img {
  height: 52px;
  width: auto;
  margin-right: 8px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 24px;
  transition: background 0.16s, color 0.16s;
}
header nav a:hover {
  background: var(--accent-1);
  color: var(--primary);
  text-decoration: none;
}
header nav a.cta {
  font-weight: 700;
  box-shadow: 0 6px 20px 0 rgba(246,178,26,0.09);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.15rem;
  color: var(--secondary);
  background: none;
  border: none;
  z-index: 1202;
  margin-left: 12px;
  padding: 6px 14px;
}

/* --------------- MOBILE/NAV OVERLAY ------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(22,56,70,0.96);
  z-index: 1201;
  transform: translateX(-100vw);
  transition: transform .35s cubic-bezier(.7,.2,.3,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px 24px 0 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--secondary);
  background: none;
  border: none;
  align-self: flex-end;
  margin-bottom: 34px;
  z-index: 1202;
  transition: color .18s;
}
.mobile-menu-close:hover {
  color: var(--accent-1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 30px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid rgba(232,240,237,0.13);
  transition: color .16s, background .16s;
  border-radius: 3px;
}
.mobile-nav a:hover {
  background: var(--accent-1);
  color: var(--primary);
}

/* --------------------- HERO SECTIONS --------------------- */
.hero, .about-hero, .services-hero, .contact-hero, .process-hero, .thank-you-message {
  background: linear-gradient(90deg, var(--accent) 0%, #fff 80%, var(--accent-bright) 100%);
  padding: 60px 0 38px 0;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 32px 0 rgba(246,178,26,0.11), 0 2px 18px #fff;
}
.hero .content-wrapper, 
.about-hero .content-wrapper, 
.services-hero .content-wrapper, 
.contact-hero .content-wrapper, 
.process-hero .content-wrapper,
.thank-you-message .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1, .about-hero h1, .services-hero h1, .contact-hero h1, .process-hero h1, .thank-you-message h1 {
  color: var(--secondary);
  text-shadow: 0 2px 18px #fff;
  font-size: 2.4rem;
  margin-bottom: 6px;
}
.hero p, .about-hero p, .services-hero p, .contact-hero p, .process-hero p, .thank-you-message p {
  color: var(--primary);
  font-size: 1.12rem;
  margin-bottom: 14px;
  max-width: 610px;
}

/* ------------------- CTA BANNER -------------------- */
.cta-banner {
  padding: 48px 0;
  background: var(--accent);
  border-radius: 24px;
  box-shadow: 0 2px 18px #fff, 0 6px 18px 0 rgba(22,56,70,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}
.cta-banner h2 {
  color: var(--accent-2);
}

/* ------------------ FEATURES BLOCK ------------------ */
.features {
  padding: 44px 0;
}
.feature img {
  height: 44px;
  width: 44px;
  margin-bottom: 10px;
  margin-left: 0;
}
.feature h3 {
  color: var(--secondary);
}

/* ------------------ SERVICE LIST BLOCKS ------------------ */
.service-teaser {
  background: var(--accent-1);
  color: var(--primary);
  border-radius: var(--border-radius);
  padding: 28px 20px;
  box-shadow: var(--card-shadow);
  transition: box-shadow .18s, transform .2s;
}
.service-teaser:hover {
  box-shadow: 0 6px 24px 0 rgba(18,232,178,0.15);
  transform: scale(1.04);
}

/* ------------------- TESTIMONIALS ------------------- */
.testimonials {
  background: #fff;
  padding: 48px 0;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  background: var(--accent);
  color: #222;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 16px 0 rgba(22,56,70,0.05);
  padding: 34px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 260px;
  max-width: 340px;
  position: relative;
  border-left: 6px solid var(--accent-2);
  transition: box-shadow .19s, transform .18s;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #222;
  font-size: 1.07rem;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-footer {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}
.star-rating {
  color: var(--accent-2);
  font-size: 1.05em;
}
.client-name {
  color: var(--primary);
  font-weight: 700;
  margin-right: 2px;
}
.client-location {
  color: var(--secondary);
}

/* ------------------- FAQ STYLES ------------------- */
.faq-categories {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.faq-categories button {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--accent-1);
  color: var(--primary);
  font-weight: 700;
  padding: 8px 24px;
  border: 0;
  border-radius: 22px;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s;
}
.faq-categories button:hover, .faq-categories button.active {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 3px 12px 0 rgba(246,178,26,0.11);
}
.faq-pairs {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.faq-item {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  border-left: 6px solid var(--accent-1);
  padding: 22px 16px;
  min-width: 250px;
  max-width: 420px;
  transition: box-shadow .19s, transform .18s;
  margin-bottom: 20px;
}
.faq-item h3 {
  color: var(--accent-2);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

/* -------------- FOOTER -------------- */
footer {
  background: var(--primary);
  color: #fff;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 23px;
}
footer img {
  height: 44px;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
footer nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: color .13s;
}
footer nav a:hover {
  color: var(--accent-1);
}
.footer-contact {
  font-size: 1rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #fff;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* -------------- POLICY & TERMS SECTIONS -------------- */
.policy-intro, .gdpr-intro, .cookies-intro, .terms-intro {
  background: var(--accent);
  border-radius: 18px 18px 0 0;
  margin-bottom: 0;
}
.policy-details, .gdpr-rights, .cookies-details, .terms-details {
  background: #fff;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 2px 12px 0 rgba(246,178,26,0.07);
  margin-bottom: 36px;
}
.policy-details ul, .gdpr-rights ul, .cookies-details ul, .terms-details ul {
  margin-left: 18px;
  list-style: disc outside;
}
.policy-details li, .gdpr-rights li, .cookies-details li, .terms-details li {
  margin-bottom: 9px;
  font-size: 1.01rem;
}

/* --------------------- COOKIE BANNER --------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -2px 16px 0 rgba(22,56,70,0.13);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
  z-index: 1500;
  gap: 18px;
  font-size: 1.08rem;
}
.cookie-banner .cookie-banner-text {
  flex: 2 1 270px;
  min-width: 160px;
}
.cookie-banner .cookie-banner-btns {
  display: flex;
  gap: 14px;
  flex: 1 1 auto;
}
.cookie-banner .cta, .cookie-banner .cookie-settings-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 21px;
  font-size: 1rem;
  padding: 9px 22px;
  transition: background .15s, color .15s;
}
.cookie-banner .cta.primary { background: var(--secondary); color: var(--primary); }
.cookie-banner .cta.secondary { background: var(--primary); color: #fff; }
.cookie-banner .cta.primary:hover { background: var(--accent-1); color: var(--primary); }
.cookie-banner .cta.secondary:hover { background: var(--accent-2); color: #fff; }
.cookie-settings-btn { background: var(--accent-1); color: var(--primary); border: none; }
.cookie-settings-btn:hover { background: var(--secondary); color: var(--primary); }

/* ----- Cookie Modal Popup ----- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(22,56,70,0.85);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .29s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-dialog {
  background: #fff;
  color: var(--primary);
  border-radius: 18px;
  padding: 36px 28px 24px 28px;
  box-shadow: 0 6px 24px 0 rgba(22,56,70,0.22);
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 96vw;
  max-width: 420px;
  position: relative;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--accent-2);
  position: absolute;
  top: 20px;
  right: 26px;
  cursor: pointer;
  transition: color .17s;
}
.cookie-modal-close:hover {
  color: var(--accent-1);
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 13px;
  margin-bottom: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.03rem;
  padding: 7px 0;
}
.cookie-switch {
  width: 36px;
  height: 20px;
  border-radius: 18px;
  background: var(--accent);
  position: relative;
  margin-right: 6px;
  transition: background .18s;
}
.cookie-switch input {
  opacity: 0;
  width: 36px;
  height: 20px;
  position: absolute;
  left: 0; top: 0;
  z-index: 2;
  cursor: pointer;
}
.cookie-switch .slider {
  position: absolute;
  left: 0; top: 0;
  width: 36px;
  height: 20px;
  border-radius: 18px;
  background: var(--accent-1);
  transition: background .22s;
}
.cookie-switch input:checked + .slider {
  background: var(--secondary);
}
/* Slider knob */
.cookie-switch .slider:after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-switch input:checked + .slider:after {
  transform: translateX(16px);
  background: var(--accent-2);
}
.cookie-category[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-category small {
  color: #446;
  font-size: .93em;
  margin-left: 7px;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal-actions .cta {
  font-size: 1rem;
  padding: 9px 18px;
}

/* ---------------------- UTILITIES/HELPERS ---------------------- */
.mt-1 { margin-top: 8px; }
.mb-2 { margin-bottom: 16px; }
.text-center { text-align: center; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }

/* ---------------------- RESPONSIVE QUERIES ---------------------- */
@media (max-width: 1150px) {
  .container { max-width: 980px; }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .feature, .service-teaser, .faq-item, .step {
    min-width: 180px;
    padding: 20px 12px;
  }
}
@media (max-width: 768px) {
  /* Re-stack nav and show burger */
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  /* HERO, section, footer adjustments */
  .hero, .about-hero, .services-hero, .contact-hero, .process-hero, .thank-you-message, .cta-banner {
    padding: 36px 0 28px 0;
    border-radius: 0 0 14px 14px;
  }
  .content-wrapper { gap: 20px; }
  .section, .accent-bg {
    padding: 30px 7px;
    margin-bottom: 34px;
  }
  .footer-contact {
    font-size: 0.97rem;
  }
}
@media (max-width: 690px) {
  .feature-grid, .service-list, .testimonial-list, .faq-pairs, .process-steps {
    flex-direction: column;
    gap: 18px;
  }
  .container {
    padding: 0 7px;
  }
}
@media (max-width: 550px) {
  .logo img, footer img {
    height: 36px;
  }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.28rem; }
  h3 { font-size: 1.02rem; }
  .card, .feature, .service-teaser, .step, .faq-item {
    min-width: 60vw;
    padding: 13px 5px;
  }
  .mobile-nav a {
    font-size: 1.07rem;
    padding: 12px 0;
  }
  .cta {
    font-size: .98rem;
    padding: 12px 24px;
  }
}

/* ------------------- END OF CSS ------------------- */
