/* ---------- CSS RESET & NORMALIZE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #FFFFFF;
  color: #1D3557;
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.6;
  webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  outline: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
}
ul, ol {
  list-style: none;
}

/* ---------- BRAND VARIABLES: FALLBACKS ---------- */
:root {
  --color-primary: #1D3557;
  --color-secondary: #F1FAEE;
  --color-white: #FFFFFF;
  --color-accent: #24507A;
  --color-accent-hover: #457B9D;
  --color-text: #1D3557;
  --color-bg-light: #F9FBFC;
  --shadow-card: 0 2px 12px rgba(29, 53, 87, 0.07);
  --radius: 12px;
}

/* ------------- GENERAL LAYOUT CONTAINERS ------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ------------- TYPOGRAPHY ------------- */
h1, h2, h3, h4, .cta-primary {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 16px;
  color: var(--color-primary);
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  color: var(--color-primary);
}
h3 {
  font-size: 1.2rem;
  color: var(--color-accent);
}
h4 {
  font-size: 1.05rem;
  color: var(--color-accent);
}
p, ul li, ol li, span, blockquote, .service-price, .testimonial-card blockquote {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-text);
}
strong, b {
  font-weight: 600;
}
.accent {
  color: var(--color-accent);
  font-weight: 700;
}

/* ------------- HEADER & NAVIGATION ------------- */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 2px 16px rgba(35, 80, 122, 0.04);
  z-index: 20;
  position: relative;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  min-height: 76px;
}
header img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  padding: 8px 0;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus, .footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent-hover);
  border-bottom: 2px solid var(--color-accent);
}

.cta-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 999px;
  padding: 13px 32px;
  font-size: 1.07rem;
  display: inline-block;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 12px rgba(36, 80, 122, 0.06);
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  cursor: pointer;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-accent-hover);
  color: #F1FAEE;
  box-shadow: 0 4px 20px rgba(36,80,122,0.10);
}

/* ------------- MOBILE NAVIGATION ------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2rem;
  line-height: 1;
  padding: 7px 18px;
  margin-left: 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
  position: fixed;
  z-index: 1002;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(29,53,87,0.96);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transition: transform 0.34s cubic-bezier(.77,0,.175,1), opacity 0.3s;
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #F1FAEE;
  background: none;
  border: none;
  padding: 20px 32px 0 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FFD166;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 34px;
  align-items: flex-start;
  margin: 46px 0 0 35px;
}
.mobile-nav a {
  color: #F1FAEE;
  font-size: 1.4rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFD166;
  border-bottom: 2px solid #FFD166;
}

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (max-width: 768px) {
  header .container {
    gap: 10px;
  }
  .cta-primary {
    padding: 12px 18px;
  }
}

/* ------------- HERO SECTIONS ------------- */
.hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  background: var(--color-bg-light);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 2px 18px rgba(29, 53, 87, 0.04);
  margin-bottom: 60px;
  padding: 30px 0 16px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
}
.hero h1 {
  font-size: 2.4rem;
}
.hero h2 {
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: 0.7em;
}
.hero a.cta-primary {
  margin-top: 26px;
}

/* ------------- CARDS, SERVICES, FLEX LAYOUTS ------------- */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-card {
  background: #FFFFFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  min-width: 210px;
  flex: 1 1 280px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 4px 24px rgba(36, 80, 122, 0.12);
  transform: translateY(-4px) scale(1.025);
  z-index: 2;
}
.service-card h3, .service-card h4 {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--color-primary);
  font-size: 1.13rem;
}
.service-card img {
  width: 28px;
  height: 28px;
  margin-right: 10px;
}
.service-price {
  margin-top: 16px;
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 700;
}

.benefits ul,
.services-grid ul,
.features ul,
.text-section ul,
.contact-details ul,
.policy ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 0 0;
}
.benefits ul li, .features ul li, .text-section ul li, .contact-details ul li, .policy ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--color-text);
  padding-bottom: 2px;
}
.benefits ul li img, .features ul li img, .text-section ul li img, .contact-details ul li img, .footer-contact div img {
  width: 20px;
  height: 20px;
  margin-right: 7px;
  display: inline-block;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFFFFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 170px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 3px 16px rgba(36,80,122,0.09);
  transform: translateY(-2px);
}

.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;
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  flex-direction: row;
  transition: box-shadow 0.18s, transform 0.12s;
  color: var(--color-text);
}
.testimonial-card blockquote {
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 500;
  color: var(--color-primary);
  margin-right: 18px;
}
.testimonial-card > div {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(36, 80, 122, 0.14);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------------- TEAM & BIOS ------------- */
.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.team-bios > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px 22px;
  min-width: 216px;
  flex: 1 1 200px;
  transition: box-shadow 0.16s;
  margin-bottom: 20px;
}
.team-bios > div:hover {
  box-shadow: 0 3px 18px rgba(29,53,87,0.08);
}
.certifications ul {
  gap: 8px;
}

/* ------------- CTA SECTION ------------- */
.cta {
  margin: 36px 0 0 0;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 3px 18px rgba(36,80,122,0.08);
  border-radius: var(--radius);
  padding: 40px 20px;
  min-height: 160px;
  display: flex;
  align-items: center;
}
.cta .content-wrapper {
  color: #fff;
}
.cta h2, .cta h3 {
  color: #fff;
}
.cta a.cta-primary {
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(36, 80, 122, 0.06);
}
.cta a.cta-primary:hover {
  background: var(--color-accent);
  color: #FFF;
}
.cta ul li {
  color: #fff;
}

/* ------------- FOOTER ------------- */
footer {
  background: var(--color-bg-light);
  padding: 44px 0 26px 0;
  color: var(--color-text);
  margin-top: 60px;
  border-top: 1px solid #EAEDF1;
  position: relative;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1.09rem;
  font-weight: 700;
  color: var(--color-primary);
}
.footer-brand img {
  width: 40px;
  height: 40px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 1rem;
}
.footer-nav a {  
  color: var(--color-accent);
  font-weight: 500;
  padding: 2px 0;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 1rem;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.footer-social a img {
  width: 26px;
  height: 26px;
  opacity: 0.75;
  transition: opacity 0.17s;
}
.footer-social a:hover img {
  opacity: 1;
}

/* ------------- POLICIES, THANK YOU, SIMPLE TEXT PAGES ------------- */
.policy, .thank-you {
  margin: 0 0 60px 0;
}
.policy .container, .thank-you .container {
  max-width: 770px;
}
.text-section ul {
  gap: 10px;
}
.quality-guarantees {
  margin-top: 20px;
  padding: 16px 28px;
  background: var(--color-secondary);
  border-radius: var(--radius);
  color: var(--color-primary);
  box-shadow: 0 1px 6px rgba(29,53,87,0.03);
  font-size: 1rem;
}
.team-highlight {
  background: var(--color-bg-light);
  padding: 14px 24px;
  border-radius: var(--radius);
  margin-top: 14px;
}

/* ------------- TIPS/BLOG LISTS ------------- */
.article-teaser, .project-description {
  background: #fff;
  padding: 26px 22px;
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(36,80,122,0.07);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.15s;
}
.article-teaser:hover, .project-description:hover {
  box-shadow: 0 5px 18px rgba(36,80,122,0.14);
}
.top-tips-summary, .step-by-step-guide, .checklists, .faq {
  background: var(--color-secondary);
  padding: 14px 26px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

/* ------------- RESPONSIVENESS ------------- */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
  .content-wrapper {
    gap: 18px;
  }
  .hero {
    padding: 19px 0 0 0;
    min-height: unset;
  }
  .hero h1 { font-size: 2.1rem; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .card-container, .services-grid, .team-bios {
    flex-direction: column;
    gap: 20px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
  .footer-contact {
    font-size: 0.98rem;
  }
  .container {
    max-width: 100vw;
    padding: 0 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .hero {
    flex-direction: column;
    border-radius: 0;
    margin-bottom: 36px;
    min-height: 0;
    padding: 20px 0 0 0;
  }
  .hero .content-wrapper {
    gap: 18px;
  }
  .cta {
    padding: 24px 12px;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 500px) {
  html { font-size: 14px; }
  .hero h1 { font-size: 1.28rem; }
  .cta {
    min-height: 86px;
    border-radius: var(--radius);
    margin-top: 18px;
  }
}
/* Extra-small tweaks */
@media (max-width: 370px) {
  html { font-size: 12px; }
  .footer-brand img { width: 26px; height: 26px; }
}

/* ------------- MICROINTERACTIONS / TRANSITIONS ------------- */
a, button, .cta-primary, .service-card, .testimonial-card, .mobile-menu, .mobile-menu-toggle, .mobile-menu-close {
  transition: all 0.19s cubic-bezier(.24,.6,.56,1);
}

/* ------------- COOKIE CONSENT BANNER ------------- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -4px 22px rgba(29,53,87,0.12);
  padding: 28px 14px 22px 14px;
  display: flex;
  flex-direction: row;
  gap: 24px;
  z-index: 3900;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  border-radius: 14px 14px 0 0;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.32s, opacity 0.22s;
}
#cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
#cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-actions button,
.cookie-actions .settings-btn {
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 4px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.97rem;
  transition: background 0.2s, color 0.2s;
}
.cookie-actions button.accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-actions button.accept:hover, .cookie-actions button.accept:focus {
  background: var(--color-accent-hover);
  color: #F1FAEE;
}
.cookie-actions .settings-btn {
  border: 1px solid var(--color-accent);
  background: #fff;
  color: var(--color-accent);
  font-weight: 400;
  padding: 10px 16px;
}
.cookie-actions .settings-btn:hover, .cookie-actions .settings-btn:focus {
  background: var(--color-accent);
  color: #fff;
}

@media (max-width: 768px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 8px 18px 8px;
  }
  #cookie-banner .cookie-actions {
    gap: 8px;
    flex-wrap: wrap;
  }
}

/* Cookie Modal Styles */
#cookie-modal {
  position: fixed;
  z-index: 4010;
  inset: 0;
  background: rgba(29,53,87,0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.32s;
}
#cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
#cookie-modal .modal-content {
  background: #fff;
  color: var(--color-primary);
  padding: 36px 26px 24px 26px;
  border-radius: 18px;
  max-width: 440px;
  min-width: 0;
  box-shadow: 0 6px 32px rgba(29,53,87,0.19);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
#cookie-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
#cookie-modal .modal-header h3 {
  font-size: 1.3rem;
  color: var(--color-accent);
  margin: 0;
}
#cookie-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--color-accent);
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
}
#cookie-modal .modal-close:hover, #cookie-modal .modal-close:focus {
  color: var(--color-primary);
}
#cookie-modal .modal-body p {
  margin-bottom: 8px;
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin: 8px 0 4px 0;
}
#cookie-modal .category-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Toggle switch */
.toggle-switch {
  width: 38px;
  height: 22px;
  background: #DEE7F1;
  border-radius: 999px;
  position: relative;
  transition: background 0.17s;
  cursor: pointer;
  margin-left: 10px;
}
.toggle-switch[aria-checked="true"] {
  background: var(--color-accent);
}
.toggle-knob {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(29,53,87,0.07);
  transition: left 0.18s;
}
.toggle-switch[aria-checked="true"] .toggle-knob {
  left: 17px;
}
.toggle-switch[aria-disabled="true"] {
  background: #DDE1E7;
  opacity: 0.65;
  pointer-events: none;
}
#cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}
#cookie-modal button {
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  background: var(--color-accent);
  color: #fff;
  transition: background 0.18s;
}
#cookie-modal button:hover, #cookie-modal button:focus {
  background: var(--color-accent-hover);
}

@media (max-width: 480px) {
  #cookie-modal .modal-content {
    width: 97vw;
    max-width: 97vw;
    min-width: 30vw;
    padding: 18px 6vw 18px 6vw;
  }
}

/* Hideers for accessibility, used for JS enable/disable. */
[hidden] {
  display: none !important;
}

/* ----------- END OF STYLES ----------- */
