/* ---------------------------
   CSS RESET & BASE
----------------------------*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #242945;
  background: #F5F6FB;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style-position: inside; margin-top: 12px; margin-bottom: 12px; }
a { color: #10A389; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #FFD561; outline: none; }
strong, b { font-weight: 700; }
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #242945;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 18px; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
}

/* Typography hierarchy for luxury */
p, li, label { font-size: 1rem; color: #272B4D; }
small, .meta { font-size: 0.95rem; color: #7E84A3; }

/* Containers */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section { max-width: 720px; }

/* --------------------------------------------------
   HEADER (luxury layout, full flexbox, mobile nav)
--------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 6px 22px -10px rgba(36,41,69,0.07);
  position: sticky;
  top: 0; z-index: 30;
  padding-top: 0; padding-bottom: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
header img { height: 38px; width: auto; margin-right: 30px; }
header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #242945;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
}
header nav a:hover,
header nav a.active {
  color: #10A389;
  border-bottom: 2px solid #FFD561;
}
.button.primary {
  background: #242945;
  color: #FFD561;
  border: 1.5px solid #FFD561;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 30px;
  border-radius: 32px;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 28px -10px rgba(36,41,69,0.14);
  cursor: pointer;
  letter-spacing: 0.02em;
}
.button.primary:hover, .button.primary:focus {
  background: #FFD561;
  color: #242945;
  border: 1.5px solid #242945;
  box-shadow: 0 12px 40px -10px rgba(36,41,69,0.19);
}
.button.secondary {
  background: #FFD561;
  color: #242945;
  border: 1.5px solid #FFD561;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 28px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px -6px rgba(36,41,69,0.10);
  cursor: pointer;
}
.button.secondary:hover, .button.secondary:focus {
  background: #10A389;
  border: 1.5px solid #10A389;
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(16,163,137,0.20);
}
header .button.primary { margin-left: 24px; }

/* ---------------------------
   MOBILE MENU & BURGER
----------------------------*/
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #242945;
  margin-left: 16px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 50%;
  transition: background 0.17s;
  z-index: 202;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #FFD561;
  color: #242945;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: #242945;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.62,-0.21,.38,1.33);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 36px 28px 20px;
  box-shadow: 16px 0 39px -12px rgba(36,41,69,0.33);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  border: none;
  color: #FFD561;
  cursor: pointer;
  margin-bottom: 24px;
  padding: 8px 10px;
  border-radius: 50%;
  transition: background 0.14s, color 0.17s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #FFD561;
  color: #242945;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: #FFD561;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  line-height: 2;
  padding: 6px 0 6px 8px;
  border-radius: 8px;
  transition: background 0.19s, color 0.21s;
  margin-left: 0;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #FFD561;
  color: #242945;
}
@media (max-width: 990px) {
  header nav, header .button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ----------------------------------------------------
   HERO SECTION, FLEX GRID, LUXURY CARD VISUALS
-----------------------------------------------------*/
.hero, .blog-hero, .contact-hero {
  background: #242945;
  color: #FFD561;
  padding: 70px 0 50px 0;
  margin-bottom: 60px;
}
.hero .container, .blog-hero .container, .contact-hero .container {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.hero .content-wrapper,
.blog-hero .content-wrapper,
.contact-hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.hero h1, .blog-hero h1, .contact-hero h1 {
  color: #FFD561;
}
.hero p, .blog-hero p, .contact-hero p {
  color: #FFD561;
}
.hero .button.primary, .blog-hero .button.primary, .contact-hero .button.primary {
  background: #FFD561;
  color: #242945;
  border-color: #FFD561;
  margin-top: 20px;
}
.hero .button.primary:hover {
  background: #10A389;
  color: #fff;
  border-color: #FFD561;
}

/* Feature Cards + Flexbox Grid */
.features .feature-grid,
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 34px -14px rgba(36,41,69,0.13);
  padding: 34px 28px 30px;
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 325px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid #f1efe0;
  transition: box-shadow 0.23s, transform 0.17s;
}
.feature:hover {
  box-shadow: 0 18px 45px -14px #FFD56150;
  transform: translateY(-6px) scale(1.025);
  border: 1.5px solid #FFD561;
  z-index: 3;
}
.feature img {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  filter: drop-shadow(0 1px 4px #FFD56120);
}
.feature h3 {
  font-size: 1.15rem;
  color: #10A389;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.feature p {
  color: #242945;
  font-size: 1rem;
  margin-bottom: 0;
}

/* Service detail cards (services.html) */
.service-detail-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 7px 32px -14px rgba(36,41,69,0.108);
  border: 1px solid #e5e3d7;
  padding: 36px 30px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.service-detail-card h3 { color: #242945; font-family: 'Montserrat'; font-size: 1.18rem; }
.service-detail-card .service-price {
  color: #FFD561;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 700;
  font-size: 1.17rem;
  margin-top: 9px;
}

/* Comparison Table (services.html) */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  margin: 26px 0;
  font-size: 0.98rem;
  box-shadow: 0 6px 20px -10px rgba(36,41,69,0.08);
}
.comparison-table th, .comparison-table td {
  border-bottom: 1px solid #ededed;
  padding: 16px 12px;
  text-align: left;
}
.comparison-table th {
  background: #f6f5ef;
  color: #242945;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table td:first-child {
  font-weight: 600;
  width: 34%;
  color: #10A389;
}
.comparison-table td {
  color: #242945;
}

/* Cards & tiles for Case Studies and Blog Posts */
.case-tile, .blog-post-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 7px 32px -14px rgba(36,41,69,0.115);
  border: 1px solid #e7e0c8;
  padding: 32px 25px 21px;
  margin-bottom: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.19s, transform 0.14s;
}
.case-tile:hover, .blog-post-card:hover {
  box-shadow: 0 14px 38px -10px #FFD56133;
  transform: translateY(-6px) scale(1.0125);
  border: 1.5px solid #FFD561;
  z-index: 2;
}
.blog-post-card .button.secondary {
  margin-top: 12px;
}

/* Spacing utilities (MANDATORY) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 28px -14px rgba(36,41,69,0.08);
  padding: 32px 26px;
  min-width: 260px;
  max-width: 360px;
  flex: 1 1 260px;
  border: 1px solid #f6eacb;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 15px 44px -14px #FFD56122;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #242945;
  border-left: 5px solid #FFD561;
  box-shadow: 0 8px 32px -14px rgba(36,41,69,0.12);
  border-radius: 14px;
  padding: 24px 30px;
  margin-bottom: 20px;
  margin-top: 18px;
  position: relative;
}
.testimonial-card p {
  color: #242945;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.6;
}
.testimonial-author {
  font-weight: 600;
  font-family: 'Montserrat';
  color: #10A389;
}
.star-rating {
  color: #FFD561;
  letter-spacing: 2px;
  font-size: 1.22em;
  margin-left: 0.5em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* About Snippet, CTA, Subscribe */
.about-snippet .button,
.cta .button,
.subscribe .button {
  margin-top: 18px;
}
.cta, .subscribe {
  background: #242945;
  color: #FFD561;
  margin-bottom: 0;
  padding: 50px 0;
}
.subscribe p, .subscribe li {
  color: white;
}
.cta .button.primary,
.subscribe .button.primary {
  background: #FFD561;
  color: #242945;
  margin-top: 24px;
  border: none;
}
.cta h2, .subscribe h2 { color: #FFD561; font-size: 2rem; }

/* Legal (Privacy/GDPR/Terms) */
.legal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 20px -8px rgba(36,41,69,0.06);
  padding: 40px 30px 36px;
  margin-bottom: 40px;
  margin-top: 36px;
}

/* Contact Info Section */
.contact-info p {
  margin-bottom: 14px;
}

/* Confirmation (thank-you) */
.confirmation {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 26px -12px #FFD56137;
  padding: 40px 32px 36px;
  margin-top: 50px;
}

/* -----------------------------------------
   FOOTER — Sophisticated with gold accents
------------------------------------------*/
footer {
  background: #242945;
  color: #FFD561;
  padding: 44px 0 24px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}
.footer-logo-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.footer-logo-section img {
  width: 38px; height: 38px;
}
.footer-logo-section span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #FFD561;
  font-weight: 600;
}
.footer-menu {
  display: flex;
  gap: 28px;
  margin-bottom: 12px;
}
.footer-menu a {
  color: #FFD561;
  font-family: 'Montserrat';
  font-size: 1rem;
  opacity: 0.88;
  transition: color 0.18s, opacity 0.19s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #10A389;
  text-decoration: underline;
  opacity: 1;
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFD561;
  font-size: 1rem;
  line-height: 1.6;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-contact a {
  color: #10A389;
  font-weight: 500;
  text-decoration: underline;
}

/* -----------------------------------------
   COOKIE CONSENT BANNER & MODAL
------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #242945;
  box-shadow: 0 -4px 32px -8px rgba(36,41,69,0.13);
  padding: 24px 20px 22px 20px;
  z-index: 4900;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 22px;
  font-size: 1rem;
  opacity: 1;  /* toggled by JS for animation */
  transform: translateY(0);
  transition: opacity 0.32s, transform 0.46s cubic-bezier(.42,-0.15,.32,1.28);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.button.cookie-accept {
  background: #10A389;
  color: #fff;
  padding: 11px 25px;
  border-radius: 19px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.18s, color 0.15s;
  margin-right: 3px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 11px -4px #10A38924;
  cursor: pointer;
}
.button.cookie-accept:hover {
  background: #088169;
}
.button.cookie-reject {
  background: transparent;
  color: #242945;
  border: 1.5px solid #242945;
  padding: 11px 17px;
  border-radius: 19px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.14s, color 0.14s, border 0.15s;
  font-size: 1rem;
  cursor: pointer;
}
.button.cookie-reject:hover {
  background: #ffd56144;
  color: #10A389;
  border-color: #10A389;
}
.button.cookie-settings {
  background: #FFD561;
  color: #242945;
  padding: 9px 21px;
  border: none;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 7px;
  transition: background 0.19s, color 0.17s;
  cursor: pointer;
}
.button.cookie-settings:hover {
  background: #242945;
  color: #FFD561;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,41,69,0.51);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.31s, background 0.29s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 44px -8px #FFD56144;
  padding: 32px 28px 21px 34px;
  max-width: 420px;
  width: 96vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: pop-in-cookie-modal 0.5s cubic-bezier(.62,-0.21,.35,1.28);
}
@keyframes pop-in-cookie-modal {
  from {opacity: 0; transform: scale(0.93) translateY(36px);}
  to   {opacity: 1; transform: scale(1) translateY(0);}
}
.cookie-modal-content h2 {
  color: #242945;
  font-size: 1.3rem;
  font-family: 'Montserrat';
  font-weight: 700;
  margin-bottom: 9px;
}
.cookie-category {
  margin-bottom: 13px;
  display: flex; flex-direction: row; align-items: center; gap: 10px;
}
.cookie-category label {
  flex: 1;
  font-size: 1.06rem;
}
.toggle-switch {
  width: 45px; height: 24px;
  background: #F1F2F5;
  border-radius: 24px;
  position: relative;
  cursor: pointer;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}
.toggle-switch input[type="checkbox"] {
  display: none;
}
.toggle-switch .slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #e8e3d0;
  transition: left 0.15s, background 0.22s;
  box-shadow: 0 2px 5px #FFD56118;
}
.toggle-switch input:checked + .slider {
  left: 23px; background: #FFD561;
  box-shadow: 0 1px 5px #FFD56144;
}
.toggle-switch input:disabled + .slider {
  background: #deddd9;
  cursor: not-allowed;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* ------------ Responsive Breakpoints ------------- */
@media (max-width: 990px) {
  header .container {
    height: auto;
    flex-direction: row;
    gap: 14px;
    padding-top: 8px; padding-bottom: 8px;
  }
  .hero, .blog-hero, .contact-hero, .cta, .subscribe {
    padding: 45px 0 35px 0;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px; padding-right: 10px;
  }
  .hero .container, .blog-hero .container, .contact-hero .container { flex-direction: column; }
  .section {margin-bottom: 42px; padding: 25px 7px;}
  .features .feature-grid, .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 23px;
  }
  .feature, .card, .case-tile, .blog-post-card {
    max-width: 99%;
    min-width: 70vw;
    align-self: stretch;
  }
  .testimonials .content-wrapper,
  .about-snippet .content-wrapper,
  .cta .content-wrapper,
  .subscribe .content-wrapper {
    padding: 0;
    gap: 18px;
  }
  .service-detail-card, .legal, .confirmation {
    padding: 25px 10px 18px 10px;
  }
  footer .container {
    align-items: flex-start;
    font-size: 0.95rem;
  }
  .footer-menu {
    flex-direction: column;
    gap: 11px;
    align-items: flex-start;
    margin-bottom: 7px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
  }
  .mobile-menu {
    padding: 20px 12px 20px 12px;
  }
  .cookie-modal-content {
    max-width: 99vw;
    padding: 25px 8px 13px 8px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.05rem; }
  .hero, .blog-hero, .contact-hero, .cta, .subscribe { padding: 28px 0 12px 0; }
  .button.primary, .button.secondary, .cookie-banner .button, .button.cookie-settings, .button.cookie-reject { font-size: 0.98rem; padding: 10px 15px; }
  .testimonial-card, .feature, .card, .case-tile, .blog-post-card { padding: 15px 10px; }
}

/* ----------------- Micro-Interactions --------------- */
.button, .button.primary, .button.secondary {
  transition: background 0.18s, color 0.12s, border 0.19s, box-shadow 0.22s, transform 0.13s;
}
.button:active, .button.primary:active, .button.secondary:active {
  transform: scale(0.98);
}
.feature:hover, .case-tile:hover, .blog-post-card:hover {
  outline: 0;
  transform: translateY(-5px) scale(1.015);
  z-index: 3;
  box-shadow: 0 15px 38px -12px #FFD56133;
}

/* ------------- Selection styling -------------- */
::selection {
  background: #FFD561BB;
  color: #242945;
}

/* -------------------- Fonts -------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* ------ Hide cookie modal/banner by default (JS will show as appropriate) ----- */
.cookie-modal, .cookie-banner { display: none; }
.cookie-modal.show, .cookie-banner.show { display: flex; }

/* -------------------------------
   End Luxury Premium CSS
------------------------------- */
