/* ================================================================== */
/* CSS RESET & NORMALIZATION                                          */
/* ================================================================== */
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 {
  line-height: 1.5;
  background: #F7F7F9;
  font-family: 'Roboto', Arial, sans-serif;
  color: #22292f;
  min-height: 100vh;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style-position: inside;
}
img, svg {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  background: none;
  border: none;
  color: inherit;
}

/* ================================================================== */
/* VARIABLES                                                         */
/* ================================================================== */
:root {
  --color-primary: #234B6D;
  --color-secondary: #E8EAF1;
  --color-bg: #F7F7F9;
  --color-accent: #FFA100;
  --color-gold: #D4AF37;
  --color-gold-dark: #AF8B25;
  --color-premium-dark: #181B23;
  --color-premium-contrast: #FFFDF8;
  --color-silver: #B8B6B3;
  --color-shadow: rgba(35,75,109,0.06);
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-lg: 0 8px 32px rgba(35,75,109,0.12);
  --shadow-sm: 0 3px 8px rgba(35,75,109,0.09);
  --font-display: 'Montserrat', 'Roboto', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ================================================================== */
/* TYPOGRAPHY                                                        */
/* ================================================================== */
body {
  font-size: 16px;
  line-height: 1.7;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  background-color: var(--color-bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-premium-dark);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.32rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
}
p, ul, ol, address, blockquote {
  font-size: 1rem;
  color: #22292f;
  margin-bottom: 16px;
}
ul, ol {
  margin-bottom: 16px;
  padding-left: 22px;
}
li {
  margin-bottom: 7px;
}
strong {
  color: var(--color-primary);
  font-weight: bold;
}
blockquote {
  font-size: 1.2rem;
  font-style: italic;
  background: var(--color-secondary);
  color: var(--color-premium-dark);
  border-left: 4px solid var(--color-gold);
  margin-bottom: 10px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
cite {
  font-size: 0.95rem;
  color: var(--color-gold-dark);
  margin-left: 10px;
}

/* ================================================================== */
/* CONTAINER & LAYOUT CLASSES                                        */
/* ================================================================== */
.container {
  width: 100%;
  max-width: 1270px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* Vertical stacking by default */
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  max-width: 900px;
}
.section,
main > section {
  background: var(--color-premium-contrast);
  border-radius: var(--radius);
  box-shadow: 0 4px 22px var(--color-shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.text-section {
  padding: 0 0 16px 0;
}

/* Cards, Card Containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FCFCFD;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--color-silver);
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

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

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

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFFDF8;
  border: 1.5px solid var(--color-gold);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 20px;
  max-width: 680px;
  font-family: var(--font-body);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 0;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ================================================================== */
/* NAVIGATION HEADER (DESKTOP)                                       */
/* ================================================================== */
header {
  background: var(--color-premium-contrast);
  border-bottom: 2px solid var(--color-gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 16px var(--color-shadow);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--color-primary);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: var(--color-gold);
  background: var(--color-secondary);
}
header a.button-primary {
  margin-left: 24px;
}

/* ================================================================== */
/* HERO SECTION                                                      */
/* ================================================================== */
.hero {
  padding: 60px 0 40px 0;
  background: linear-gradient(to right, var(--color-premium-contrast) 65%, var(--color-secondary) 100%);
  border-bottom: 3px solid var(--color-gold);
  margin-bottom: 40px;
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  max-width: 800px;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.35rem;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.22rem;
  color: var(--color-premium-dark);
  margin-bottom: 28px;
}

/* ================================================================== */
/* BUTTONS                                                           */
/* ================================================================== */
.button-primary, .button-secondary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 11px 32px;
  border-radius: var(--radius-sm);
  border: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
  margin-top: 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 12px var(--color-shadow);
}
.button-primary {
  background: linear-gradient(90deg, var(--color-gold) 86%, var(--color-gold-dark) 100%);
  color: var(--color-primary);
  border: 2px solid var(--color-gold);
  letter-spacing: 0.04em;
}
.button-primary:hover, .button-primary:focus {
  background: var(--color-primary);
  color: var(--color-gold);
  border-color: var(--color-primary);
}
.button-secondary {
  background: #fafbfc;
  color: var(--color-primary);
  border: 2px solid var(--color-gold);
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--color-gold);
  color: var(--color-premium-dark);
}

/* ================================================================== */
/* FEATURES GRIDS, SERVICE CARDS ETC.                                */
/* ================================================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.feature-grid > div {
  background: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 28px 22px 22px 22px;
  flex: 1 1 210px;
  min-width: 230px;
  border: 1.5px solid var(--color-secondary);
  text-align: left;
  transition: box-shadow 0.19s, border-color 0.19s;
}
.feature-grid > div:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-lg);
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
}
.service-cards > div {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1.2px solid var(--color-secondary);
  flex: 1 1 210px;
  min-width: 250px;
  padding: 26px 20px 20px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: box-shadow 0.19s, border-color 0.19s;
}
.service-cards > div:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-lg);
}
.service-cards .price {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.14rem;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-list > div {
  flex: 1 1 210px;
  min-width: 260px;
  background: #fff;
  border: 1.2px solid var(--color-silver);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 20px 18px 20px;
  margin-bottom: 20px;
  transition: border-color 0.19s, box-shadow 0.19s;
}
.service-list > div:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-lg);
}
.service-list .price {
  color: var(--color-gold);
  font-weight: bold;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.team-grid > div {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-secondary);
  flex: 1 1 200px;
  min-width: 200px;
  padding: 24px 14px 18px 18px;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}
.icon.expert {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: url('../assets/icons/expert.svg') center/contain no-repeat;
  margin-bottom: 11px;
}


/* ================================================================== */
/* TESTIMONIALS                                                      */
/* ================================================================== */
.testimonial-card {
  background: #FFFDF8;
  color: #181B23;
  font-size: 1.05rem;
  font-style: normal;
  border-left: 6px solid var(--color-gold);
  margin-bottom: 20px;
  transition: box-shadow 0.16s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}

/* FAQ LIST */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 22px 18px;
  margin-bottom: 8px;
  border-left: 4px solid var(--color-gold);
}
.faq-item h2 {
  margin-bottom: 9px;
  font-size: 1.17rem;
  color: var(--color-primary);
}

/* ================================================================== */
/* TABLES & PRICING COMPARISON                                       */
/* ================================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 20px 0 26px 0;
  box-shadow: var(--shadow-sm);
}
thead th {
  font-family: var(--font-display);
  background: var(--color-primary);
  color: #fff;
  padding: 14px 15px;
  text-align: left;
  font-size: 1.05rem;
}
tbody td, tbody th {
  padding: 13px 15px;
  font-size: 0.98rem;
  border-bottom: 1px solid var(--color-secondary);
  color: #23262F;
}
tbody tr:last-child td {
  border-bottom: none;
}
thead th:first-child, tbody td:first-child {
  font-weight: bold;
}
tbody tr:nth-child(even) {
  background: #F7F7F9;
}

/* ================================================================== */
/* ADDRESS ETC.                                                      */
address {
  font-style: normal;
  color: #6A7280;
  margin-top: 12px;
  font-size: 0.96rem;
  line-height: 1.45;
}

/* ================================================================== */
/* FOOTER                                                            */
/* ================================================================== */
footer {
  background: var(--color-premium-dark);
  color: #eee;
  padding: 38px 0 18px 0;
  box-shadow: 0 -2px 16px var(--color-shadow);
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  gap: 34px;
  align-items: flex-start;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1rem;
}
footer nav a {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-weight: 600;
  transition: color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.21rem;
  font-family: var(--font-display);
  color: #fff;
}
footer address {
  color: #B8B6B3;
  margin-top: 2px;
  margin-bottom: 2px;
}

/* ================================================================== */
/* MOBILE FIRST RESPONSIVE LAYOUTS                                   */
/* ================================================================== */
@media (max-width: 991px) {
  .container, .footer .container {
    max-width: 98%;
  }
  .feature-grid, .service-cards, .service-list, .team-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .feature-grid > div, .service-cards > div, .service-list > div, .team-grid > div {
    min-width: 0;
  }
  .footer-brand {
    margin-top: 16px;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
  }
  .hero .container {
    padding: 0 14px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .content-wrapper, .hero .content-wrapper {
    max-width: 99%;
    padding: 0;
  }
  .hero {
    padding: 32px 0 24px 0;
  }
  h1 {
    font-size: 2.1rem;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 1.4rem;
  }
  .section, main > section {
    padding: 26px 4px;
    margin-bottom: 36px;
  }
  /* Stacked layout for .text-image-section */
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .team-grid {
    gap: 14px;
  }
  .service-cards, .feature-grid, .service-list {
    gap: 14px;
  }
}

/* ================================================================== */
/* MOBILE NAVIGATION (BURGER MENU)                                   */
/* ================================================================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 201;
  background: var(--color-gold);
  color: var(--color-premium-dark);
  border-radius: 50%;
  border: none;
  padding: 11px 17px;
  font-size: 1.88rem;
  box-shadow: 0 2px 12px var(--color-shadow);
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: var(--color-gold);
}
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block;
  }
  header nav, header a.button-primary {
    display: none !important;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(22,22,31,0.87);
  backdrop-filter: blur(3px);
  z-index: 202;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: flex-end;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(0.68,0.09,0.32,0.93), opacity 0.26s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--color-gold);
  color: var(--color-premium-dark);
  border: none;
  border-radius: 50%;
  font-size: 2.15rem;
  margin: 20px 30px 7px 0;
  cursor: pointer;
  padding: 8px 16px;
  align-self: flex-end;
  box-shadow: 0 2px 16px var(--color-shadow);
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: var(--color-gold);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
  margin: 34px 36px 0 0;
  font-size: 1.15rem;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: #fff;
  background: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  margin: 0;
  transition: background 0.18s, color 0.18s;
  display: inline-block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-gold);
  color: var(--color-premium-dark);
}

/* ================================================================== */
/* COOKIE CONSENT BANNER & POPUP                                     */
/* ================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbe7;
  color: #222;
  box-shadow: 0 -3px 16px var(--color-shadow);
  z-index: 210;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 14px 16px;
  gap: 14px;
  font-size: 1.01rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.22s, transform 0.29s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .button-primary, .cookie-banner .button-secondary {
  padding: 9px 20px;
  margin: 0 8px;
  font-size: 1rem;
  box-shadow: none;
}
.cookie-banner .button-secondary {
  border: 2px solid var(--color-gold);
  background: #ECE9DC;
  color: var(--color-primary);
  margin-right: 0;
}
/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) scale(0.95);
  min-width: 80vw;
  max-width: 420px;
  background: #fffbe7;
  border-radius: var(--radius);
  box-shadow: 0 10px 48px rgba(35,75,109,0.25);
  padding: 32px 22px 30px 22px;
  z-index: 220;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.19s, transform 0.29s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--color-primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  flex: 1;
  font-size: 1rem;
}
.cookie-category input[type=checkbox] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-gold);
  border-radius: 4px;
}
.cookie-modal .button-primary, .cookie-modal .button-secondary {
  margin: 0 10px 0 0;
  padding: 8px 20px;
  font-size: 1rem;
}
.cookie-modal .button-secondary {
  border: 2px solid var(--color-gold);
  background: #ECE9DC;
  color: var(--color-primary);
}
.cookie-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 17px;
  font-size: 1.55rem;
  background: none;
  border: none;
  color: var(--color-gold);
  cursor: pointer;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 18px 8px 10px 8px;
    font-size: 0.99rem;
  }
  .cookie-modal {
    min-width: 95vw;
    padding: 24px 7px 21px 7px;
    max-width: 99vw;
  }
}

/* ================================================================== */
/* TRANSITIONS, HOVER, MICRO-INTERACTIONS                            */
/* ================================================================== */
a, .button-primary, .button-secondary, .mobile-menu-toggle, .mobile-menu-close {
  transition: color 0.20s, background 0.18s, box-shadow 0.15s;
}
.card, .feature-grid > div, .service-cards > div, .testimonial-card, .faq-item {
  transition: box-shadow 0.19s, border-color 0.19s;
}
.card:hover, .feature-grid > div:hover, .service-cards > div:hover, .testimonial-card:hover, .faq-item:hover {
  box-shadow: var(--shadow-lg);
}

/* ================================================================== */
/* UTILITY CLASSES                                                   */
/* ================================================================== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }

/* Remove blue input highlight on mobile */
input, textarea, select {
  outline: none;
  box-shadow: none;
}

/* Accessibility: Focus styles */
:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Icon Standardization */
img[alt*="icon"], .icon {
  vertical-align: middle;
  max-height: 48px;
  margin-bottom: 7px;
}

/* Hide scrollbars for menu overlays on iOS */
.mobile-menu, .cookie-modal {
  -webkit-overflow-scrolling: touch;
}

/* ================================================================== */
/* FIXED SPACING BETWEEN ALL CARDS/SECTIONS (MANDATORY)              */
/* ================================================================== */
main > section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .feature-grid, .service-cards, .service-list, .team-grid {
  gap: 24px;
}
.card, .faq-item, .testimonial-card, .service-cards > div, .feature-grid > div, .service-list > div, .team-grid > div {
  margin-bottom: 20px;
}
.content-grid, .text-image-section {
  gap: 20px;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
}
.feature-item {
  gap: 15px;
}

/* Ensure no elements overlap and white space is applied throughout */
.section, .card, .content-wrapper, .team-grid > div, .feature-grid > div, .service-cards > div, .service-list > div, .testimonial-card {
  margin-top: 0;
  margin-bottom: 20px;
}

/* END CSS */
