/* -------------------------------------------------------
   1. CSS RESET & BASE TYPOGRAPHY
---------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-size: 16px;
  background: #F2F4F7;
  color: #173246;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  line-height: 1.18;
  font-weight: 700;
  color: #173246;
  margin-bottom: 16px;
}
h1 {
  font-size: 2rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
ul li, ol li {
  margin-bottom: 8px;
  margin-left: 22px;
}
ul, ol {
  padding-left: 18px;
  margin-bottom: 16px;
}
p {
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
  color: #1f425f;
}
a {
  color: #173246;
  text-decoration: underline;
  transition: color 0.2s;
  cursor: pointer;
}
a:hover, a:focus {
  color: #F6A824;
  text-decoration: none;
  outline: none;
}
address {
  font-style: normal;
  color: #173246;
}

/* -------------------------------------------------------
    2. BRANDING VARIABLES
---------------------------------------------------------- */
:root {
  --ac-primary: #173246;
  --ac-secondary: #F6A824;
  --ac-accent: #F2F4F7;
  --ac-white: #ffffff;
  --ac-text: #173246;
  --ac-text-secondary: #435b77;
  --ac-border: #d0dae2;
  --ac-shadow: 0 2px 12px 0 rgba(27,41,65,0.05);
  --ac-radius: 12px;
  --ac-radius-sm: 6px;
}

/* -------------------------------------------------------
    3. LAYOUT CONTAINERS & SPACING
---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--ac-white);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--ac-white);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow);
  padding: 32px 24px;
  min-width: 290px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.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(--ac-accent);
  border-radius: var(--ac-radius);
  margin-bottom: 20px;
  color: var(--ac-text);
  box-shadow: var(--ac-shadow);
  font-size: 1rem;
  position: relative;
  min-width: 270px;
  flex: 1 1 320px;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px 0 rgba(22,50,70,0.16);
  transform: translateY(-4px);
}
.feature-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.feature {
  background: var(--ac-accent);
  border-radius: var(--ac-radius-sm);
  box-shadow: var(--ac-shadow);
  padding: 28px 20px;
  flex: 1 1 260px;
  min-width: 210px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 20px;
}
.feature img {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
}
.feature:hover {
  box-shadow: 0 6px 28px 0 rgba(22,50,70,0.13);
  transform: translateY(-4px);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Responsive content wrappers */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 40px;
  }
  .text-image-section,
  .content-wrapper,
  .content-grid,
  .feature-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .card,
  .feature {
    min-width: 0;
    width: 100%;
  }
  .testimonial-card {
    min-width: 0;
    width: 100%;
    align-items: flex-start;
    font-size: 1rem;
  }
}


/* -------------------------------------------------------
    4. HEADER & NAVIGATION
---------------------------------------------------------- */
header {
  background: var(--ac-primary);
  padding: 0;
  box-shadow: 0 2px 12px 0 rgba(23,50,70,0.06);
  position: relative;
  z-index: 1010;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}
.logo img {
  height: 46px;
  width: auto;
  display: inline-block;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--ac-white);
  font-weight: 600;
  text-decoration: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--ac-secondary);
}
.btn-primary {
  background: var(--ac-secondary);
  color: var(--ac-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--ac-radius-sm);
  padding: 12px 28px;
  box-shadow: var(--ac-shadow);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s, color 0.16s, box-shadow 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #ffd276;
  color: var(--ac-primary);
  box-shadow: 0 8px 36px rgba(246,168,36,0.21);
  outline: none;
  transform: translateY(-2px);
}
/* Hamburger button - hidden on desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--ac-secondary);
  font-size: 2.1rem;
  border: none;
  margin-left: 20px;
  cursor: pointer;
  z-index: 1102;
  transition: color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #ffd276;
  outline: none;
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .btn-primary {
    display: none;
  }
}

/* -------------------------------------------------------
    5. MOBILE MENU STYLES
---------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--ac-primary);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.5,1.6,.4,1), box-shadow 0.2s;
  box-shadow: 0 6px 36px 0 rgba(23,50,70,0.18);
  width: 100vw;
  min-height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--ac-secondary);
  font-size: 2.3rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  margin: 24px 24px 4px 0;
  transition: color 0.16s;
  z-index: 1210;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #ffd276;
  outline: none;
}
.mobile-nav {
  padding: 36px 32px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: var(--ac-white);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.16rem;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 0 8px 0;
  border-bottom: 1px solid rgba(246,168,36,0.06);
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--ac-secondary);
  background: rgba(246,168,36,0.03);
  outline: none;
  border-radius: var(--ac-radius-sm);
}

@media (max-width: 1024px) {
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none;
  }
}

/* Prevent body scroll when mobile menu is open (toggle in JS) */
body.mobile-menu-open {
  overflow: hidden;
}

/* -------------------------------------------------------
    6. HERO & CALL TO ACTION
---------------------------------------------------------- */
.hero {
  background: linear-gradient(115deg, #e3eaf1 0%, #F2F4F7 100%);
  padding: 0 0 36px 0;
  box-shadow: 0 1px 16px 0 rgba(23,50,70,0.11);
  border-bottom-left-radius: var(--ac-radius);
  border-bottom-right-radius: var(--ac-radius);
}
.hero .container {
  padding-top: 36px;
  padding-bottom: 36px;
}
.hero h1 {
  color: var(--ac-primary);
  font-size: 2.3rem;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.2rem;
  color: var(--ac-text-secondary);
}
.hero .btn-primary {
  margin-top: 26px;
}
.cta {
  background: var(--ac-secondary);
  border-radius: var(--ac-radius);
  color: var(--ac-primary);
  text-align: center;
  margin-bottom: 60px;
}
.cta h2,
.cta p {
  color: var(--ac-primary);
}
.cta .btn-primary {
  background: var(--ac-primary);
  color: var(--ac-secondary);
  margin-top: 16px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cta .btn-primary:hover, .cta .btn-primary:focus {
  background: #254d6d;
  color: #ffd276;
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.5rem;
  }
}

/* -------------------------------------------------------
    7. ABOUT, FAQ, LEGAL SECTIONS
---------------------------------------------------------- */
.about, .services, .faq, .legal, .contact, .map {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--ac-white);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow);
}

@media (max-width: 600px) {
  .about, .services, .faq, .legal, .contact, .map {
    padding: 24px 8px;
    margin-bottom: 28px;
  }
}

/* -------------------------------------------------------
    8. FOOTER
---------------------------------------------------------- */
footer {
  background: #1f425f;
  color: var(--ac-white);
  font-size: 1rem;
  padding: 44px 0 12px;
  box-shadow: 0 -2px 10px 0 rgba(27,41,65,0.06);
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  max-width: 1200px;
}
footer img {
  width: 44px;
  height: auto;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #b7c8db;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--ac-secondary);
  text-decoration: underline;
  outline: none;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
}
footer address {
  color: #b7c8db;
}
footer > .container > div:last-child {
  margin-top: 16px;
  font-size: 0.92rem;
  color: #a4b2c0;
  flex-basis: 100%;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* -------------------------------------------------------
    9. BUTTON STYLES (Primary above)
---------------------------------------------------------- */
.btn-secondary {
  background: var(--ac-white);
  color: var(--ac-primary);
  border: 2px solid var(--ac-secondary);
  border-radius: var(--ac-radius-sm);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 26px;
  cursor: pointer;
  box-shadow: var(--ac-shadow);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--ac-accent);
  color: var(--ac-primary);
  border-color: var(--ac-primary);
  outline: none;
}

/* -------------------------------------------------------
    10. COOKIE CONSENT BANNER & MODAL
---------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 2000;
  background: var(--ac-white);
  border-top: 1px solid var(--ac-border);
  box-shadow: 0 -2px 22px 0 rgba(23,50,70,.13);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 14px;
  gap: 24px;
  animation: fadeInBanner 0.5s ease;
}
@keyframes fadeInBanner {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__msg {
  color: var(--ac-text);
  font-size: 1rem;
  max-width: 600px;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 9px 18px;
  border: none;
  box-shadow: var(--ac-shadow);
  cursor: pointer;
  margin-left: 0;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner .accept {
  background: var(--ac-secondary);
  color: var(--ac-primary);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #ffd276;
}
.cookie-banner .reject {
  background: var(--ac-accent);
  color: var(--ac-primary);
  border: 1.5px solid var(--ac-border);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #dedede;
}
.cookie-banner .settings {
  background: var(--ac-white);
  color: var(--ac-secondary);
  border: 1.5px solid var(--ac-secondary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--ac-secondary);
  color: var(--ac-primary);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  z-index: 2200;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(23,50,70,0.41);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.23s ease;
}
@keyframes fadeInModal {
  from { opacity:0; }
  to   { opacity:1; }
}
.cookie-modal__dialog {
  background: var(--ac-white);
  border-radius: var(--ac-radius);
  box-shadow: 0 7px 44px 0 rgba(23,50,70,.18);
  padding: 32px 24px;
  width: 95vw;
  max-width: 434px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal__header h2 {
  margin-bottom: 0;
  font-size: 1.24rem;
  color: var(--ac-primary);
}
.cookie-modal__close {
  background: none;
  border: none;
  color: var(--ac-secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: #ffd276;
  outline: none;
}
.cookie-modal__categories {
  margin-top: 15px;
  margin-bottom: 16px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ac-border);
  padding: 9px 0;
  font-size: 1rem;
}
.cookie-modal__category input[type="checkbox"] {
  accent-color: var(--ac-secondary);
  width: 19px;
  height: 19px;
  margin-right: 0;
}
.cookie-modal__desc {
  font-size: 0.98rem;
  color: var(--ac-text-secondary);
  margin-bottom: 8px;
}
.cookie-modal__footer {
  display: flex;
  gap: 15px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal button {
  min-width: 116px;
  padding: 10px 0;
}
.cookie-modal input[disabled] {
  opacity: 0.59;
  pointer-events: none;
}
@media (max-width: 600px) {
  .cookie-modal__dialog {
    padding: 16px 8px;
    width: 99vw;
    max-width: 99vw;
  }
}

/* Hide banner/modal by default */
.cookie-banner, .cookie-modal {
  display: none;
}
.cookie-banner.active, .cookie-modal.active {
  display: flex;
}

/* -------------------------------------------------------
    11. FORMS & MISCELLANEOUS
---------------------------------------------------------- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1.5px solid var(--ac-border);
  border-radius: var(--ac-radius-sm);
  transition: border-color 0.18s, box-shadow 0.18s;
  background: var(--ac-accent);
  color: var(--ac-primary);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--ac-secondary);
  outline: none;
}
label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--ac-text);
}
textarea {
  min-height: 80px;
  resize: vertical;
}
::placeholder {
  color: #7c8ea3;
  opacity: 1;
}

/* List style in text-section, feature etc. */
.text-section ul,
.text-section ol,
.feature ul,
.about ul {
  margin-bottom: 0;
}
.text-section li {
  color: var(--ac-text-secondary);
  font-size: 1rem;
  margin-bottom: 7px;
}

/* -------------------------------------------------------
    12. UTILITIES & MISC
---------------------------------------------------------- */
.rounded {
  border-radius: var(--ac-radius);
}
.shadow {
  box-shadow: var(--ac-shadow);
}
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-20 { margin-top: 20px !important; }
.gap-24 { gap: 24px !important; }
.mt-32 { margin-top: 32px !important; }

.no-select {
  user-select: none;
}

/* -------------------------------------------------------
    13. ANIMATION CLASSES
---------------------------------------------------------- */
.slide-fade-in {
  animation: slideFadeIn 0.34s cubic-bezier(.42,0,1,.88) both;
}
@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* -------------------------------------------------------
    14. PRINT FRIENDLINESS
---------------------------------------------------------- */
@media print {
  header, nav, .mobile-menu, .cookie-banner, .cookie-modal, footer {
    display: none !important;
  }
  .section, .hero, .about, .services, .legal, .text-section, .map {
    box-shadow: none !important;
    background: #FFF !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* -------------------------------------------------------
    15. HIGH CONTRAST (WCAG AA)
---------------------------------------------------------- */
.testimonials, .testimonial-card {
  background: none;
  color: var(--ac-primary);
}
.testimonial-card {
  background: var(--ac-accent);
  color: var(--ac-primary);
  border-left: 5px solid var(--ac-secondary);
}
.testimonial-card strong {
  font-size: 1rem;
  color: var(--ac-primary);
  margin-top: 12px;
  font-weight: 700;
}

/* -------------------------------------------------------
    16. FINE-TUNE SPACING FOR FLEX ITEMS
---------------------------------------------------------- */
.features, .feature-grid {
  gap: 24px;
}
@media (max-width:560px) {
  .feature-grid {
    gap: 14px;
  }
}
.card-container, .content-grid, .text-image-section {
  gap: 20px;
}
.card {
  margin-bottom: 20px;
}

/* Always ensure minimum vertical margin between sections */
.section, .about, .faq, .cta, .services, .legal, .contact, .map {
  margin-bottom: 60px;
}
@media (max-width:600px) {
  .section, .about, .faq, .cta, .services, .legal, .contact, .map {
    margin-bottom: 32px;
  }
}

/* -------------------------------------------------------
    17. FOCUS CHECKS/ACCESSIBILITY
---------------------------------------------------------- */
*:focus-visible {
  outline: 2.5px solid var(--ac-secondary);
  outline-offset: 2px;
}

/* -------------------------------------------------------
    END OF FILE
---------------------------------------------------------- */
