/* ==== CSS RESET & BASE STYLES ==== */
/* Box sizing reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #fff;
  color: #1a1a1a;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  background: #fff;
  color: #232B3A;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', 'Georgia', serif;
  color: #10131C;
  font-weight: 700;
  margin-top: 0;
}
h1 { font-size: 2.5rem; letter-spacing: -0.01em; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }
p, ul, ol { margin-top: 0; margin-bottom: 16px; }
ul, ol { padding-left: 1.5em; }
strong { font-weight: bold; }
em { font-style: italic; }
a { color: #232b3a; text-decoration: underline; transition: color 0.15s ease; }
a:hover, a:focus { color: #111; }

/* Headings visual hierarchy */
main h1, main h2, main h3, main h4 {
  line-height: 1.25;
}

/* ==== LAYOUT CONTAINERS & SECTIONS ==== */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Feature and Article Grids (Flex ONLY) */
.feature-grid,
.testimonial-grid,
.latest-articles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(35,43,58,0.06);
  padding: 28px 20px;
  flex: 1 1 260px;
  min-width: 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.feature-item img {
  height: 48px;
  width: 48px;
  filter: grayscale(100%) contrast(1.15);
  opacity: 0.74;
  margin-bottom: 8px;
}
.feature-item:hover { box-shadow: 0 6px 22px rgba(35,43,58,.13); }

.article-item {
  background: #f6fafc;
  border-radius: 12px;
  padding: 22px 18px;
  flex: 1 1 300px;
  min-width: 240px;
  box-shadow: 0 1px 10px rgba(35,43,58,0.05);
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.article-item:hover {
  box-shadow: 0 4px 18px rgba(35,43,58,0.10);
}

/* === HERO AND HEADLINE STYLES === */
.hero {
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1.5px solid #edeef1;
  padding: 65px 0 40px 0;
  margin-bottom: 30px;
  min-height: 340px;
}
.hero .content-wrapper { align-items: flex-start; }
.hero h1 { font-size: 2.6rem; color: #232B3A; }
.hero .subheadline { font-size: 1.35rem; color: #5E6370; margin-bottom: 20px; line-height: 1.5; }
.hero a.cta-primary { margin-top: 18px; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 24px 0; min-height: 180px;}
  .hero h1 { font-size: 1.65rem; }
}

/* ==== CARDS AND FLEX CONTAINERS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(35,43,58,.06);
  padding: 32px 22px;
  flex: 1 1 300px;
  min-width: 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s;
}
.card:hover { box-shadow: 0 10px 34px rgba(35,43,58,0.18); }

.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;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 22px; }
}

/* === TESTIMONIAL STYLES === */
.testimonials,
.testimonial-snippet,
.expert-quotes {
  background: #F6FAFC;
  border-radius: 14px;
  margin-bottom: 60px;
  padding-top: 20px;
  padding-bottom: 24px;
}
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(50,50,50,.07);
  flex: 1 1 320px;
  min-width: 220px;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #16191F;
  font-size: 1.07rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-author {
  color: #50515a;
  font-size: 0.98rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
}

.rating-overview {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #232B3A;
  margin-top: 10px;
}
.rating-overview img {
  width: 23px;
  height: 23px;
}

/* ==== SERVICE LISTS ==== */
.service-list, .services ul, .services ol, .features ul {
  list-style-type: disc;
  margin: 0 0 18px 22px;
  color: #232B3A;
  font-size: 1.08rem;
  line-height: 1.6;
}
.service-list em, .services em {
  color: #10131C;
  font-style: normal;
  font-weight: 600;
}

/* ==== CTA BUTTONS & LINKS ==== */
.cta-primary, .cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: 26px;
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 600;
  font-size: 1.08rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 7px rgba(35,43,58,0.09);
}
.cta-primary {
  background: #232B3A;
  color: #fff;
  letter-spacing: 0.02em;
}
.cta-primary:hover, .cta-primary:focus {
  background: #11161d;
  box-shadow: 0 4px 14px rgba(21, 170, 191, 0.14);
  color: #fff !important;
}
.cta-secondary {
  background: #fff;
  color: #232B3A;
  border: 2px solid #232B3A;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #232B3A;
  color: #fff;
  border-color: #232B3A;
}

/* ==== PRIMARY NAVIGATION ==== */
header {
  background: #fff;
  border-bottom: 1px solid #E9EBF2;
  position: relative;
  box-shadow: 0 1px 12px rgba(35, 43, 58, 0.03);
  z-index: 102;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 20px;
}
.main-nav .logo {
  margin-right: 28px;
  min-width: 62px;
  display: flex;
}
.main-nav a {
  color: #232B3A;
  text-decoration: none;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.03rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.12s, background 0.12s;
  padding: 5px 10px;
  border-radius: 5px;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F6FAFC;
  color: #15AABF;
}
.main-nav .cta-primary {
  margin-left: auto;
}

@media (max-width: 1100px) {
  .main-nav { gap: 8px; }
}

@media (max-width:768px) {
  .main-nav {
    display: none;
  }
}

/* ==== MOBILE MENU BURGER ==== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 19px;
  z-index: 120;
  font-size: 2rem;
  color: #232B3A;
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F6FAFC;
  color: #15AABF;
}
@media (max-width:768px) {
  .mobile-menu-toggle { display: block; }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  position: fixed;
  top: 0;
  right: 0;
  width: 96vw;
  max-width: 370px;
  height: 100vh;
  box-shadow: -2px 0 22px rgba(35,43,58,0.10);
  z-index: 9999;
  padding: 24px 26px;
  transform: translateX(110%);
  transition: transform 0.32s cubic-bezier(.4,1.01,.68,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu nav { width: 100%; }

.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #232B3A;
  background: transparent;
  border: none;
  margin-bottom: 16px;
  cursor: pointer;
  transition: color 0.16s, background 0.16s;
  border-radius: 6px;
  padding: 5px 7px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F6FAFC;
  color: #15AABF;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav a {
  color: #232B3A;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 500;
  text-decoration: none;
  padding: 13px 7px;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F6FAFC;
  color: #15AABF;
}

@media (min-width:769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ==== FOOTER ==== */
footer {
  background: #10131C;
  color: #fff;
  padding: 48px 0 18px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
}
.footer-main-links,
.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-main-links a, .footer-legal-links a {
  color: #b8bac1;
  text-decoration: none;
  font-size: 1.02rem;
  padding-bottom: 2px;
  transition: color 0.17s;
  font-family: 'Roboto Slab', Georgia, serif;
}
.footer-main-links a:hover,
.footer-legal-links a:hover {
  color: #15AABF;
}
.footer-contact-info {
  color: #e9ebf2;
  font-size: 0.99rem;
  line-height: 1.55;
  margin-bottom: 10px;
  max-width: 250px;
}
.footer-contact-info a {
  color: #53cae0;
  text-decoration: underline;
}
.footer-social-icons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}
.footer-social-icons img {
  width: 30px;
  filter: grayscale(100%) brightness(2) contrast(1.25);
  opacity: 0.84;
  transition: opacity 0.18s, filter 0.15s;
}
.footer-social-icons a:hover img, .footer-social-icons a:focus img {
  opacity: 1;
  filter: grayscale(0%) brightness(1.1);
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 26px;
    align-items: stretch;
  }
  .footer-links {
    gap: 20px;
  }
}

/* ==== SECTION SPACING (MANDATORY) ==== */
.section, .features, .services, .contact-short, .news, .about, .location, .values, .legal, .confirmation, .contact-details {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ==== Accessibility FOCUS STYLES ==== */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: 2px solid #232B3A;
  outline-offset: 1px;
}

/* === Microinteractions & Animations === */
.cta-primary, .cta-secondary, .mobile-menu, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.22s;
}

section, .card, .feature-item, .testimonial-card, .article-item {
  transition: box-shadow 0.18s, background 0.18s;
}

/* ==== Responsive Grid Tweaks ==== */
@media (max-width: 900px) {
  .feature-grid, .testimonial-grid, .latest-articles-grid {
    flex-direction: column;
    gap: 16px;
  }
  .article-item, .testimonial-card, .feature-item {
    min-width: 0;
    width: 100%;
  }
}

/* ==== Section Specific Typography Scale ==== */
@media (max-width: 600px) {
  h1 { font-size: 1.30rem; }
  h2 { font-size: 1.10rem; }
  h3 { font-size: 1.07rem; }
  .cta-primary, .cta-secondary { font-size: 0.97rem; }
}

/* ==== Address Map Section Styling ==== */
.address-map-embed {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 22px 0;
  min-height: 90px;
  background: #f6fafc;
  border-radius: 10px;
  padding: 19px;
}
.address-map-embed img {
  width: 65px;
  filter: grayscale(90%) contrast(1.1);
  opacity: 0.72;
}

/* ==== Confirmation/Thank You Page NEXT STEPS ==== */
.next-steps ul {
  list-style: disc inside;
  color: #232B3A;
  margin-left: 0;
}
.next-steps li { margin-bottom: 8px; }

/* ==== COOKIE CONSENT ==== */
.cookie-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #232b3a;
  color: #fff;
  z-index: 99995;
  padding: 17px 24px;
  font-size: 1rem;
  box-shadow: 0 -4px 28px rgba(35,43,58,0.13);
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.28s, opacity 0.28s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button,
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: #232B3A;
  border: none;
  border-radius: 18px;
  padding: 9px 22px;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  transition: background 0.16s, color 0.12s, box-shadow 0.17s;
  box-shadow: 0 1px 6px rgba(35,43,58,0.06);
}
.cookie-banner button:hover, .cookie-banner .cookie-settings-btn:hover {
  background: #15AABF;
  color: #fff;
}

.cookie-banner .cookie-settings-btn {
  background: transparent;
  color: #F6FAFC;
  border: 1.5px solid #fff;
  margin-left: 5px;
}
.cookie-banner .cookie-settings-btn:hover {
  background: #fff;
  color: #232B3A;
}
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 8px; font-size: .98rem; }
  .cookie-banner .cookie-buttons { flex-wrap: wrap; gap: 7px; }
}

/* Cookie Modal Styles */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,43,58, 0.55);
  z-index: 100004;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.21s ease;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #232B3A;
  min-width: 320px;
  max-width: 93vw;
  border-radius: 14px;
  box-shadow: 0 8px 42px rgba(37,45,60,0.14);
  padding: 34px 26px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: slideUpModal 0.18s cubic-bezier(.53,1.32,.79,.94);
}
@keyframes slideUpModal {
  from {transform: translateY(30px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Roboto Slab', Georgia, serif;
  margin: 0 0 16px 0;
  font-size: 1.18rem;
}
.cookie-modal .cookie-category-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.cookie-modal label {
  flex: 1 1 auto;
  font-size: 1.07rem;
  color: #232B3A;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #15AABF;
  width: 21px;
  height: 21px;
  margin-right: 5px;
}
.cookie-modal .category-desc {
  font-size: 0.99rem;
  color: #5e6370;
  margin-left: 29px;
}
.cookie-modal .cookie-modal-buttons {
  display: flex;
  gap: 15px;
  margin-top: 17px;
  flex-wrap: wrap;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 17px;
  top: 12px;
  font-size: 1.48rem;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.17s, background 0.13s;
}
.cookie-modal .cookie-modal-close:hover {
  color: #15AABF;
  background: #f6fafc;
}
.cookie-modal button {
  background: #232B3A;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 10px 22px;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.01rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  transition: background 0.17s, color 0.12s;
  box-shadow: 0 1px 6px rgba(35,43,58,0.09);
}
.cookie-modal button:hover {
  background: #15AABF;
  color: #fff;
}
.cookie-modal .essential[toggled] {
  pointer-events: none;
  opacity: 0.5;
}

/* ==== ACCESSIBILITY: HIDE visually but available to screenreader ==== */
.sr-only {
  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;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==== UTILITY CLASSES ==== */
.hidden { display: none !important; }

/* ==== END OF MAIN CSS ==== */
