/* --- CSS RESET & NORMALIZE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #FAFAF8;
  color: #222C33;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.2em; }
a { color: inherit; text-decoration: none; transition: color .2s; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 8px 12px; text-align: left; }
th { background: #F0F2F6; font-weight: 600; }
tr:nth-child(even) { background: #F9FAFB; }

/* --- BRAND COLORS & FONTS --- */
:root {
  --primary: #003366;
  --primary-90: #204771;
  --secondary: #F9B233;
  --secondary-90: #E2A12E;
  --accent: #FFFFFF;
  --grey-light: #F6F8F9;
  --grey: #E9EEF2;
  --grey-mid: #CCD4DB;
  --grey-dark: #87929F;
  --shadow: rgba(27, 44, 69, 0.05);
  --radius: 13px;
  --radius-card: 18px;
  --shadow-card: 0 2px 8px var(--shadow), 0 1.5px 4px var(--shadow);
  --shadow-popup: 0 7px 24px rgba(0,0,0,0.13);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* --- GLOBAL CONTAINER --- */
.container {
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 1200px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.18;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4 { font-size: 1.125rem; }

.section h2, .section h1, .content-wrapper > h2, .content-wrapper > h1 {
  margin-top: 0;
  margin-bottom: 24px;
}

p, ul, ol, table, .text-section {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #302C26;
  margin-bottom: 18px;
}

strong { font-weight: 600; }
ul, ol { margin-bottom: 22px; }
li { margin-bottom: 8px; }

/* --- SECTION SPACING --- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: transparent;
}
.content-wrapper {
  max-width: 920px;
  margin: 0 auto;
}

/* --- NAV HEADER --- */
header {
  border-bottom: 1px solid var(--grey);
  background: var(--accent);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

header .nav-header a img {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.main-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .01em;
  padding: 6px 0;
  border-bottom: 2.5px solid transparent;
  transition: border-color .16s, color .17s;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--secondary);
  border-bottom: 2.5px solid var(--secondary);
  outline: none;
}

header .btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  box-shadow: 0 1.5px 8px var(--shadow);
  border: none;
  padding: 12px 32px;
  margin-left: 20px;
  cursor: pointer;
  transition: background .15s, color .1s, box-shadow .15s;
}
header .btn-primary:hover,
header .btn-primary:focus {
  background: var(--primary);
  color: var(--accent);
}

/* --- MOBILE NAV --- */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  padding: 4px 12px;
  border-radius: 50%;
  transition: background .15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--grey-light);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-popup);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .36s cubic-bezier(.65, .05, .36, 1), opacity .25s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.15rem;
  color: var(--primary-90);
  align-self: flex-end;
  margin: 30px 35px 15px 0;
  cursor: pointer;
  transition: color .12s, background .12s;
  outline: none;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
  background: #f6f6f6;
  border-radius: 50%;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  padding: 0 40px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--primary-90);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .01em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, background .2s;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--secondary);
  background: var(--grey-light);
  border-bottom: 2px solid var(--secondary-90);
  outline: none;
}

/* ---- HERO/SECTION LAYOUTS ---- */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container, .feature-grid, .service-list, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid { gap: 32px; }
.service-list { gap: 22px; }

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section, .text-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section { flex-direction: column; gap: 10px; }

.card, .service-card {
  background: var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 30px 26px;
  position: relative;
  min-width: 248px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow .19s, transform .13s;
}
.card:hover, .service-card:hover {
  box-shadow: 0 6px 22px rgba(0, 51, 102, 0.08);
  transform: translateY(-4px) scale(1.018);
}

/* --- FEATURES --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 210px;
  max-width: 280px;
  background: var(--grey-light);
  border-radius: var(--radius);
  box-shadow: 0 1.5px 7px var(--shadow);
  padding: 22px 20px;
  transition: box-shadow .15s;
}
.feature-item img {
  height: 43px;
  width: 43px;
  object-fit: contain;
  margin-bottom: 2px;
}
.feature-item h3 {
  font-size: 1.11rem;
  margin-bottom: 5px;
}
.feature-item p {
  font-size: .98rem;
  color: #50575F;
}

/* --- TESTIMONIALS --- */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 2.5px 9px var(--shadow);
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 400px;
  flex: 1 1 270px;
  border-left: 4px solid var(--secondary);
  transition: box-shadow .16s, border .16s;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #253041;
  font-style: italic;
}
.testimonial-card .testimonial-name {
  color: var(--grey-dark);
  font-size: .93rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 3px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(22,38,60,0.09);
  border-left: 4px solid var(--primary);
}

/* --- SERVICE CARD --- */
.service-card {
  background: #FFF;
  border-radius: var(--radius-card);
  box-shadow: 0 1.5px 7px var(--shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  flex: 1 1 230px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 1.5px solid var(--grey-mid);
}
.service-card h3 {
  font-size: 1.14rem;
  color: var(--primary-90);
}
.service-card p {
  color: #435065;
}
.service-price {
  margin-top: 12px;
  color: var(--secondary-90);
  font-size: 1.03rem;
  font-weight: 700;
  font-family: var(--font-display);
}

/* --- CTA Buttons --- */
.btn-primary {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  border-radius: var(--radius);
  border: none;
  padding: 14px 42px;
  margin: 18px 0 0 0;
  text-align: center;
  cursor: pointer;
  letter-spacing: 0.015em;
  box-shadow: 0 1.5px 8px var(--shadow);
  transition: background .14s, color .11s, box-shadow .14s;
  display: inline-block;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 6px 22px rgba(0, 51, 102, 0.10);
}

/* --- FOOTER --- */
footer {
  background: #FAFAF9;
  border-top: 1px solid var(--grey);
  padding: 0;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 38px 10px 24px 10px;
  gap: 30px;
}
.footer-content img {
  width: 85px;
  margin-bottom: 15px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1rem;
}
.footer-menu a {
  color: var(--primary);
  transition: color .18s;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .97rem;
  color: #3B404B;
}
.footer-contact img { width: 21px; vertical-align: middle; margin-right: 6px; }
.footer-note {
  font-size: .95rem;
  color: #9EA4AA;
  margin-top: 32px;
  width: 100%;
  text-align: center;
}

/* --- TABLES --- */
table { margin: 18px 0 24px 0; border-radius: var(--radius); overflow: hidden; }
th, td { border-bottom: 1px solid var(--grey-mid); }

/* --- MAP SECTION --- */
.map {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0 4px 0;
  padding: 16px 10px;
  background: var(--grey-light);
  border-radius: var(--radius);
  font-size: 1rem;
}
.map img { width: 40px; }

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: var(--grey-light);
  color: #272E35;
  box-shadow: 0 -1.5px 14px rgba(29,51,77,.09);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 26px;
  z-index: 3000;
  padding: 22px 20px 18px 20px;
  font-size: 1.04rem;
  transition: transform .37s cubic-bezier(.69, .17, .13, .91), opacity .22s;
}
.cookie-banner.hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-cookie {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  border-radius: var(--radius);
  border: none;
  padding: 10px 26px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .13s, color .13s;
}
.btn-cookie:focus,
.btn-cookie:hover {
  background: var(--primary);
  color: var(--accent);
}
.btn-cookie-settings {
  background: var(--grey-mid);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius);
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  margin-left: 4px;
  transition: background .1s;
}
.btn-cookie-settings:hover,
.btn-cookie-settings:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-popup);
  z-index: 4000;
  min-width: 340px;
  max-width: 94vw;
  width: 460px;
  padding: 38px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .22s cubic-bezier(.59, .1, .3, 1.17), opacity .2s;
  opacity: 1;
}
.cookie-modal.hidden {
  transform: translate(-50%, -50%) scale(0.89);
  opacity: 0;
  pointer-events: none;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 18px;
  color: var(--primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  font-size: 1.02rem;
}
.cookie-category input[type="checkbox"] {
  appearance: none;
  width: 19px; height: 19px;
  border: 2.5px solid var(--secondary);
  border-radius: 50%;
  background: #fff;
  margin-right: 7px;
  transition: border .12s, background .11s;
}
.cookie-category input[type='checkbox']:checked {
  background: var(--secondary);
  border-color: var(--primary);
}
.cookie-category label {
  font-weight: 600;
  color: var(--primary);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  justify-content: flex-end;
}
.cookie-modal .btn-cookie { padding: 10px 22px; }
.cookie-modal .btn-cookie-settings { padding: 10px 18px; }
.cookie-modal .close-modal {
  position: absolute;
  top: 13px; right: 19px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--grey-dark);
  cursor: pointer;
  transition: color .12s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus { color: var(--secondary); }

.cookie-category input[disabled],
.cookie-category input[readonly] {
  border: 2.5px solid #C4C4C4 !important;
  background: #F5F5F5 !important;
}

/* --- FORMS, INPUT, BUTTONS GENERAL --- */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px;
  border-radius: var(--radius);
  border: 1.4px solid var(--grey-mid);
  margin-bottom: 14px;
  background: #fff;
  color: #31343A;
  outline: none;
  transition: border .15s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
}

button { font-family: var(--font-display); }

/* --- MEDIA QUERIES --- */
@media (max-width: 1200px) {
  .container { max-width: 99vw; }
}
@media (max-width: 992px) {
  .feature-grid, .service-list, .testimonial-list, .footer-content {
    gap: 20px;
  }
  .footer-content { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-menu { flex-direction: row; gap: 22px; flex-wrap: wrap; }
}
@media (max-width: 850px) {
  .main-nav { gap: 14px; }
  .footer-menu { gap: 15px; }
}

@media (max-width: 768px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .nav-header {
    gap: 6px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle { display: block; }
  header .btn-primary { margin-left: 0; }

  .content-wrapper {
    max-width: 98vw;
  }
  .section, section { padding: 32px 5px; margin-bottom: 36px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }

  .feature-grid, .card-container, .service-list, .testimonial-list {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid { flex-direction: column; gap: 12px; }

  .text-image-section, .text-section {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
  .card, .service-card, .feature-item, .testimonial-card { min-width: unset; max-width: 100%; padding: 22px 14px; }
  .testimonial-list .testimonial-card { min-width: unset; }
  .footer-content img { width: 60px; }
  .footer-contact img { width: 16px; }
  .map img { width: 28px; }
  .cookie-modal { min-width: 90vw; padding: 28px 8px 24px 15px; }
  .mobile-nav { padding: 0 20px; }
}

@media (max-width: 540px) {
  html { font-size: 15px; }
  .container { padding-left: 2px; padding-right: 2px; }
  .footer-note { margin-top: 18px; }
}

/* --- MICRO-INTERACTIONS --- */
a, .btn-primary, .btn-cookie, .btn-cookie-settings, .feature-item, .card, .service-card {
  transition: box-shadow .14s, background .13s, color .13s, border .13s, transform .13s;
}

/* --- ENSURE NO OVERLAPS --- */
section, .section, .content-wrapper, .card, .service-card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}

/* --- SCROLLBAR (subtle, minimalist) --- */
::-webkit-scrollbar { width: 6px; background: var(--grey-light); }
::-webkit-scrollbar-thumb { background: var(--grey-mid); border-radius: 6px; }

/* --- ACCESSIBILITY & FOCUS --- */
a:focus, button:focus, input:focus, .btn-primary:focus { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* --- Z-INDEX FOR POPUPS --- */
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 3000; }
.cookie-modal { z-index: 4000; }

/* --- PREVENT ABSOLUTE OVERLAPS FOR CONTENT --- */
.card, .service-card, .testimonial-card, .feature-item, .content-wrapper { position: relative; }

/* --- END STYLE.CSS --- */
