/* ==== CSS Reset & Normalize ==== */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html, body {
  min-height: 100%;
  width: 100%;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: #F1F6FA;
  color: #18324C;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #18324C;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.75rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; }

p { margin-bottom: 1em; }
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 1em;
}
ul li, ol li {
  margin-bottom: 8px;
}
a {
  color: #18324C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C59A53;
}

/* ==== Container & Section Layouts ==== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section,
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 2px 14px rgba(24,50,76,0.06);
}
main > section:last-child {
  margin-bottom: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  background: none;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

/* ==== Header & Navigation ==== */
header {
  background: linear-gradient(90deg, #18324C 65%, #315b7e 100%);
  color: #fff;
  box-shadow: 0 2px 14px rgba(24,50,76,0.10);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 4px 0;
  transition: color 0.20s, background 0.2s;
  position: relative;
}
.main-nav a:not(.cta-btn):hover::after {
  content: '';
  display: block;
  height: 2px;
  width: 100%;
  background: #C59A53;
  border-radius: 1px;
  position: absolute;
  left: 0; bottom: -3px;
}
.main-nav a.cta-btn {
  background: #C59A53;
  color: #18324C;
  border-radius: 22px;
  padding: 9px 26px;
  font-weight: 700;
  margin-left: 10px;
  box-shadow: 0 2px 6px rgba(197,154,83,0.13);
  transition: background 0.2s, color 0.2s, box-shadow 0.3s;
}
.main-nav a.cta-btn:hover,
.main-nav a.cta-btn:focus {
  background: #ddbb77;
  color: #18324C;
  box-shadow: 0 4px 14px rgba(197,154,83,0.25);
}

/* Hamburger for Mobile */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #fff;
  padding: 8px 14px;
  margin-left: 24px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  z-index: 1101;
}
.mobile-menu-toggle:focus {
  color: #C59A53;
  outline: none;
  background: rgba(197,154,83,0.10);
  border-radius: 50%;
}

/* ==== Mobile Menu Overlay ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,50,76, 0.98);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.67,1.21,0.51,0.97);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #fff;
  margin: 22px 32px 8px 0;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 9999;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #C59A53;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 14px;
  padding: 32px 38px;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  padding: 10px 0;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 2px;
  transition: color 0.18s, background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #C59A53;
  background: rgba(197,154,83,0.07);
}

/* ==== Hero Section ==== */
.hero {
  background: linear-gradient(100deg, #18324C 55%, #315b7e 98%);
  color: #fff;
  border-radius: 0 0 2rem 2rem;
  padding: 0;
  box-shadow: 0 1px 8px rgba(24,50,76,0.08);
  margin-bottom: 60px;
  min-height: 320px;
}
.hero .container, .hero .content-wrapper {
  min-height: 340px;
  justify-content: center;
  align-items: center;
  gap: 26px;
}
.hero h1 {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.4rem;
  margin-bottom: 18px;
}
.hero p {
  color: #F1F6FA;
  font-size: 1.15rem;
  margin-bottom: 20px;
}
.hero .cta-btn {
  margin-top: 8px;
}

/* ==== CTA Buttons ==== */
.cta-btn {
  display: inline-block;
  background: #C59A53;
  color: #18324C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.09rem;
  border: none;
  border-radius: 40px;
  padding: 11px 30px;
  margin-top: 6px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(197,154,83,0.13);
  text-align: center;
  transition: background 0.22s, color 0.16s, box-shadow 0.18s, transform 0.13s;
}
.cta-btn:focus,
.cta-btn:hover {
  background: #18324C;
  color: #fff;
  box-shadow: 0 6px 20px rgba(24,50,76,0.18);
  transform: translateY(-2px) scale(1.04);
}
.cta-final {
  background: linear-gradient(95deg, #18324C 72%, #315b7e 100%);
  color: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 2px 14px rgba(24,50,76,0.10);
}
.cta-final h2,
.cta-final p {
  color: #fff;
}

/* ==== Features Grid (Index) ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin: 24px 0 2px 0;
  list-style: none;
}
.feature-grid li {
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 2px 14px rgba(24,50,76,0.07);
  padding: 28px 22px 22px 22px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.18s, transform 0.17s;
  margin-bottom: 20px;
  border: 1px solid #f1f4f8;
}
.feature-grid li:hover {
  box-shadow: 0 6px 27px rgba(24,50,76,0.17);
  transform: translateY(-4px) scale(1.03);
}
.feature-grid img {
  height: 34px;
  width: 34px;
  margin-bottom: 6px;
}

/* ==== Service Listing (Index) ==== */
.service-listing {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 26px 0 22px 0;
  justify-content: flex-start;
}
.service-listing > div {
  flex: 1 1 220px;
  max-width: 260px;
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 2px 14px rgba(24,50,76,0.07);
  padding: 22px 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  margin-bottom: 20px;
  border: 1px solid #f1f4f8;
  transition: box-shadow 0.18s, transform 0.15s;
}
.service-listing > div:hover {
  box-shadow: 0 7px 29px rgba(24,50,76,0.17);
  transform: translateY(-4px) scale(1.03);
}
.service-listing h3 {
  font-size: 1.12rem;
  margin-bottom: 4px;
}
.service-listing .price {
  color: #C59A53;
  font-weight: 600;
  font-size: 1.06rem;
  margin-top: 6px;
}

/* ==== Testimonial Section ==== */
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 2px;
}
.testimonial-card {
  background: #F1F6FA;
  color: #18324C;
  flex: 1 1 300px;
  min-width: 255px;
  max-width: 410px;
  border-radius: 1.05rem;
  box-shadow: 0 2px 17px rgba(24,50,76,0.10);
  padding: 24px 20px 18px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-left: 5px solid #C59A53;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.19s, transform 0.13s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 6px 28px rgba(24,50,76,0.18);
  transform: translateY(-3px) scale(1.025);
}
.testimonial-card p {
  font-size: 1.06rem;
  color: #18324C;
  margin-bottom: 4px;
}
.testimonial-card strong {
  color: #18324C;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card div {
  font-size: 0.98rem;
  color: #315b7e;
  margin-top: 8px;
}

/* ==== Footer ==== */
footer {
  background: #18324C;
  color: #fff;
  padding: 0;
  box-shadow: 0 -2px 14px rgba(24,50,76,0.07);
  position: relative;
  z-index: 100;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  padding: 44px 20px 26px 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #C59A53;
  text-decoration: underline;
}
.footer-contact {
  font-size: 0.98rem;
  color: #F1F6FA;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 8px;
}
.footer-contact a {
  color: #C59A53;
  text-decoration: underline;
  transition: color 0.16s, background 0.2s;
}
.footer-contact a:hover { color: #fff; }
.footer-legal {
  font-size: 0.96rem;
  color: #AAB6C2;
  margin-top: 16px;
  margin-bottom: 0;
}

/* ==== General Card & Spacing Patterns ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 1.05rem;
  box-shadow: 0 2px 14px rgba(24,50,76,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 22px 18px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 6px 27px rgba(24,50,76,0.17);
  transform: translateY(-3px) scale(1.025);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card, .feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== Cookie Consent Banner & Modal ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #C59A53;
  box-shadow: 0 -4px 32px rgba(24,50,76,0.17);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 20px;
  z-index: 1200;
  font-size: 1rem;
  color: #18324C;
  animation: fadeInCookie 0.6s;
}
@keyframes fadeInCookie {
  0% { transform: translateY(100%); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-action-btn, .cookie-settings-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  cursor: pointer;
  margin-left: 2px;
  transition: background 0.16s, color 0.13s, box-shadow 0.15s;
}
.cookie-action-btn.accept {
  background: #C59A53;
  color: #18324C;
}
.cookie-action-btn.reject {
  background: #ECECEC;
  color: #18324C;
}
.cookie-action-btn.accept:hover,
.cookie-action-btn.accept:focus {
  background: #b88c44;
  color: #fff;
}
.cookie-action-btn.reject:hover,
.cookie-action-btn.reject:focus {
  background: #18324C;
  color: #fff;
}
.cookie-settings-btn {
  background: transparent;
  color: #18324C;
  border: 1.5px solid #C59A53;
}
.cookie-settings-btn:hover,
.cookie-settings-btn:focus {
  background: #f6f3ef;
  color: #C59A53;
}

/* Cookie Preferences Modal (Overlay) */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24,50,76,0.44);
  z-index: 1300;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 1.2rem;
  max-width: 396px;
  width: 92vw;
  padding: 30px 26px 20px 26px;
  box-shadow: 0 8px 38px rgba(24,50,76,0.22);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: fadeInModalCookie 0.29s cubic-bezier(0.59,0.02,0.41,0.97);
}
@keyframes fadeInModalCookie {
  from { transform: translateY(60px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: none;
  border: none;
  color: #18324C;
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 1;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #C59A53;
}
.cookie-modal h3 {
  margin: 0 0 13px 0;
  color: #18324C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 700;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-toggle {
  width: 44px;
  height: 26px;
  border-radius: 14px;
  background: #ECECEC;
  position: relative;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}
.cookie-toggle input {
  opacity: 0; width: 0; height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  background: #C59A53;
  border-radius: 50%;
  transition: transform 0.18s cubic-bezier(0.61,.72,.61,.95);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  transform: translateX(16px);
  background: #18324C;
}
.cookie-essential-label {
  color: #C59A53;
  font-weight: 600;
  margin-left: 8px;
  font-size: 0.97rem;
}

/* ==== Typography Scale ==== */
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.19rem; }
  h3 { font-size: 1.04rem; }
  body { font-size: 0.98rem; }
}

/* ==== Responsive Flexbox ==== */
@media (max-width: 1040px) {
  .container { padding: 0 8px; max-width: 99vw; }
  .feature-grid, .service-listing, .testimonial-grid { gap: 18px; }
  .footer-contact, .footer-legal { font-size: 0.96rem; }
}
@media (max-width: 900px) {
  .feature-grid li, .service-listing > div, .testimonial-card {
    min-width: 100%;
    max-width: 100%;
  }
  .feature-grid, .service-listing, .testimonial-grid {
    flex-direction: column;
    gap: 18px;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
    padding: 34px 12px 16px 12px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  header .container { flex-direction: row; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .hero { border-radius: 0 0 1rem 1rem; min-height: 200px; }
  .section, main > section { padding: 24px 6px; margin-bottom: 38px; }
  .content-wrapper { gap: 14px; }
  .feature-grid, .service-listing, .testimonial-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 14px;
    justify-content: flex-start;
  }
  .text-image-section, .footer-nav {
    flex-direction: column;
    gap: 11px;
    align-items: flex-start;
  }
}
@media (max-width: 490px) {
  .section, main > section {
    padding: 13px 2px;
  }
  .cookie-banner {
    padding: 13px 2px 14px 2px;
    font-size: 0.97rem;
    flex-direction: column;
    gap: 11px;
  }
  .cookie-modal { padding: 18px 5px 16px 5px; }
}

/* ==== Utility/Helpers ==== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* ==== Prevent Overlapping & Ensure Adequate Spacing ==== */
.feature-grid li:not(:last-child),
.service-listing > div:not(:last-child),
.testimonial-card:not(:last-child),
.card:not(:last-child) {
  margin-right: 0;
}

/* ==== Accessibility & Focus Styles ==== */
a, button, .cta-btn, .cookie-action-btn, .cookie-settings-btn {
  outline: none;
}
a:focus-visible, button:focus-visible, .cta-btn:focus-visible, .cookie-action-btn:focus-visible, .cookie-settings-btn:focus-visible {
  box-shadow: 0 0 0 3px #C59A5355, 0 0 2px #fff;
  outline: none;
  border-radius: 4px;
  z-index: 2;
}

/* ==== Custom Scrollbar ==== */
::-webkit-scrollbar { width: 9px; background: #f1f6fa; }
::-webkit-scrollbar-thumb { background: #e2e9f2; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #c0ccd9; }

/* ==== Hidden Class (for JavaScript toggles) ==== */
.hidden { display: none !important; }

/* ==== Print Styles ==== */
@media print {
  header, footer, .hero, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  main, .section { box-shadow: none !important; background: #fff !important; }
}
