/* ----------------------------------------------------
   RESET & NORMALIZE
---------------------------------------------------- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.4;
  background: #F8FAFC;
  color: #24231E;
}
ol, ul {
  list-style: none;
}
a { text-decoration: none; color: inherit; }
a:active, a:focus {
  outline: 2px solid #17435E;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}
button { cursor: pointer; }

/* ----------------------------------------------------
   ROOT VARIABLES & FONTS
---------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Crimson+Text:wght@400;700&family=Montserrat:wght@600;700&family=Roboto:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* Pale, muted backgrounds & classic blue/gold */
  --primary: #17435E;
  --primary-dark: #102C39;
  --secondary: #E2E8F0;
  --accent: #FCC419;
  --accent-dark: #C29B0B;
  --background: #F8FAFC;
  --surface: #F4F1ED;
  --surface-light: #fff;
  --border: #D7D6CA;
  --text-main: #24231E;
  --text-dark: #132022;
  --text-light: #767269;
  --shadow: 0 2px 18px rgba(23, 67, 94, 0.07);
  /* Typography */
  --font-display: 'Playfair Display', 'Crimson Text', Georgia, Times, 'Times New Roman', serif;
  --font-body: 'Roboto', 'Montserrat', Arial, Helvetica, sans-serif;
  /* Classic scale */
  --fs-xs: 14px;
  --fs-sm: 16px;
  --fs-md: 18px;
  --fs-lg: 24px;
  --fs-xl: 32px;
  --fs-xxl: 48px;
  /* Spacing */
  --space-xxs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 40px;
  --space-xxl: 60px;
  /* Border Radius */
  --radius-xs: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* ----------------------------------------------------
   BASE TYPOGRAPHY
---------------------------------------------------- */
html {
  font-size: 100%;
  font-family: var(--font-body);
  background: var(--background);
}
body {
  font-family: var(--font-body);
  color: var(--text-main);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -.5px;
}
h1 {
  font-size: var(--fs-xxl);
  margin-bottom: var(--space-md);
}
h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}
h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xs);
}
h4 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-xs);
}
h5 {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xs);
}
h6 {
  font-size: var(--fs-xs);
  margin-bottom: var(--space-xs);
}
p, ul, ol {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-md);
  color: var(--text-main);
  line-height: 1.7;
}
strong {
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
}
.subheadline {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  color: var(--text-light);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

a {
  color: var(--primary);
  transition: color .2s;
}
a:hover, a:focus {
  color: var(--accent-dark);
}

/* ----------------------------------------------------
   LAYOUT CONTAINERS
---------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
  box-sizing: border-box;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) var(--space-sm);
  background: var(--surface-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: var(--space-md);
  flex: 1 1 250px;
  transition: box-shadow .18s, transform .18s;
}
.card:hover {
  box-shadow: 0 6px 30px rgba(23, 67, 94, 0.18);
  transform: translateY(-3px) scale(1.02);
}
.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: var(--surface-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 450px;
  min-width: 260px;
  border-left: 5px solid var(--accent);
  transition: box-shadow .2s, border-color .2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 36px rgba(23, 67, 94, 0.13);
  border-left: 5px solid var(--primary);
}

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

.section:not(:last-child) {
  margin-bottom: var(--space-xxl);
}

/* ----------------------------------------------------
   HEADER & NAVIGATION
---------------------------------------------------- */
header {
  background: var(--surface-light);
  box-shadow: 0 2px 12px rgba(23, 67, 94, 0.05);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 90;
}
.main-nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-xs);
  color: var(--primary);
  transition: background .2s, color .2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--accent-dark);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-md);
  transition: background .16s, color .16s, box-shadow .16s;
  box-shadow: 0 2px 6px rgba(23, 67, 94, 0.07);
  border: none;
  cursor: pointer;
}
.cta-btn.primary {
  background: var(--primary);
  color: #fff;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 2px 12px rgba(252, 196, 25, 0.18);
}
.cta-btn.secondary {
  background: var(--accent);
  color: var(--primary-dark);
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: var(--primary);
  color: #fff;
}

/* ----------------------------------------------------
   HERO SECTION & HEADINGS
---------------------------------------------------- */
.hero {
  background: linear-gradient(120deg, var(--surface) 80%, var(--secondary));
  padding: var(--space-xl) 0 var(--space-lg) 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 600px;
}

/* ----------------------------------------------------
   FEATURE GRID
---------------------------------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: var(--space-md);
}
.feature {
  background: var(--surface-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-md);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .18s, transform .15s;
}
.feature img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: var(--space-xs);
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 6px 30px rgba(23, 67, 94, 0.13);
  transform: translateY(-4px) scale(1.025);
}
.feature h3 {
  font-size: var(--fs-lg);
}
.feature p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* ----------------------------------------------------
   SERVICE LISTS
---------------------------------------------------- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: var(--space-md);
}
.service-list li {
  display: flex;
  align-items: flex-start;
  font-size: var(--fs-sm);
  gap: var(--space-xs);
  padding: var(--space-xs) 0;
}
.service-list span {
  display: inline-flex;
  width: 32px;
  margin-right: 10px;
}

/* ----------------------------------------------------
   TEAM MEMBERS (about.html)
---------------------------------------------------- */
.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: var(--space-md);
}
.team-member {
  background: var(--surface-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 275px;
  padding: var(--space-md);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: box-shadow .18s, transform .15s;
}
.team-member img {
  width: 40px;
  margin-bottom: var(--space-xs);
}
.team-member:hover,
.team-member:focus-within {
  box-shadow: 0 8px 36px rgba(23,67,94,0.17);
  transform: translateY(-4px) scale(1.017);
}

/* ----------------------------------------------------
   TESTIMONIALS & REVIEWS
---------------------------------------------------- */
.testimonials {
  background: var(--surface);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}
.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
}
.testimonial-card p {
  color: var(--text-main);
  font-style: italic;
  font-size: var(--fs-sm);
}
.testimonial-card span {
  font-size: var(--fs-xs);
  color: var(--text-light);
}

/* Ensure strong text contrast in testimonials */
.testimonial-card, .testimonial-list, .references .testimonial-card {
  color: var(--text-dark);
  background: #fff;
}

/* ----------------------------------------------------
   CONTACT SECTION
---------------------------------------------------- */
.contact-section {
  gap: var(--space-lg);
  align-items: flex-start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: var(--fs-md);
}
.contact-info a {
  color: var(--primary);
  text-decoration: underline;
}
.contact-map {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--secondary);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: var(--fs-sm);
}

/* ----------------------------------------------------
   PRICING TABLE & USPs
---------------------------------------------------- */
.pricing-table {
  overflow-x: auto;
  background: var(--surface-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-md);
  padding: var(--space-md);
}
.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.pricing-table th, .pricing-table td {
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.pricing-table th {
  font-family: var(--font-display);
  color: var(--primary-dark);
  background: var(--secondary);
  font-size: var(--fs-md);
}
.pricing-table tr:last-child td {
  border-bottom: 0;
}
.pricing-table .disclaimer {
  margin-top: var(--space-xs);
  font-size: var(--fs-xs);
  color: var(--text-light);
}

.included-services, .usp-list, .client-benefits {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}
.included-services li, .usp-list li, .client-benefits li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text-main);
}
.included-services li:before, .usp-list li:before, .client-benefits li:before {
  content: '\2714';
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1em;
}

/* ----------------------------------------------------
   CTA SECTIONS & BUTTONS
---------------------------------------------------- */
.cta-section {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) var(--space-sm);
  box-shadow: var(--shadow);
}
.cta-section h2 { color: #fff; }
.cta-section .cta-btn.primary {
  background: var(--accent);
  color: var(--primary);
}
.cta-section .cta-btn.primary:hover {
  background: var(--primary);
  color: #fff;
}
 .cta-section .cta-btn.secondary {
  border: 2px solid #fff;
  color: #fff;
  background: none;
}
.cta-section .cta-btn.secondary:hover {
  background: #fff;
  color: var(--primary);
}
.quick-contact, .cta-phone, .whatsapp-contact, .secondary-contacts {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: row;
  gap: var(--space-md);
  align-items: center;
}
.cta-phone img, .whatsapp-contact img, .secondary-contacts img {
  width: 20px;
  margin-right: 10px;
}
.secondary-contacts {
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
footer {
  background: var(--primary-dark);
  color: #fff;
  font-size: var(--fs-sm);
  line-height: 1.4;
  padding: var(--space-lg) 0 0 0;
  border-top: 3px solid var(--accent);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.footer-nav a {
  color: #fff;
  opacity: 0.8;
  transition: color .18s, opacity .18s;
  padding: 3px 0;
  font-family: var(--font-body);
  border-radius: var(--radius-xs);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  opacity: 1;
  background: rgba(255,255,255,0.08);
}
.footer-branding {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--space-sm);
}
.footer-branding img {
  height: 32px;
  width: auto;
}
.footer-social {
  display: flex;
  gap: 16px;
  padding-bottom: var(--space-md);
}
.footer-social a {
  display: flex;
  align-items: center;
  opacity: 0.78;
  transition: opacity .2s, transform .2s;
}
.footer-social a:hover {
  opacity: 1;
  transform: scale(1.13);
}

/* ----------------------------------------------------
  PAGE SECTIONS - Common/Utility Classes
---------------------------------------------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.certifications {
  margin-top: var(--space-md);
  font-size: var(--fs-sm);
}
.certifications img {
  height: 28px;
  margin-right: var(--space-xs);
}
.quality-promise {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: var(--fs-md);
}
.process-overview {
  margin: var(--space-md) 0;
}
.process-overview ol, .work-steps ol {
  margin-left: 24px;
  list-style: decimal;
  font-size: var(--fs-sm);
  color: var(--text-main);
}
.work-steps {
  margin: var(--space-sm) 0;
}
.guarantees img {
  width: 32px;
  margin-right: 8px;
  vertical-align: middle;
}
.save-more, .fair-pricing {
  background: var(--secondary);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  margin-top: var(--space-sm);
}
.save-more h3, .fair-pricing h3 {
  margin-bottom: var(--space-xs);
}

/****************************************************
         RESPONSIVE DESIGN
****************************************************/
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding: 0 var(--space-xs);
  }
  .feature-grid, .team-members, .testimonial-list {
    gap: 18px;
  }
}
@media (max-width: 940px) {
  .footer-nav {
    gap: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-branding, .footer-social {
    margin-left: 8px;
  }
}
@media (max-width: 800px) {
  .main-nav {
    gap: var(--space-sm);
  }
  .feature-grid, .team-members, .testimonial-list {
    flex-direction: column;
    gap: 16px;
  }
  .feature, .team-member, .testimonial-card {
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .header-flex {
    flex-direction: row;
    gap: var(--space-xs);
  }
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    justify-content: center;
    align-items: center;
    align-self: flex-end;
    font-size: 2em;
    border: none;
    margin-right: 6px;
    box-shadow: 0 2px 8px rgba(23,67,94,0.17);
    transition: background .18s, color .18s;
    z-index: 122;
  }
  .footer-nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .hero .content-wrapper {
    max-width: none;
  }
  .feature-grid, .team-members, .testimonial-list {
    flex-direction: column;
    gap: 12px;
  }
  .content-wrapper {
    gap: var(--space-sm);
  }
  .section {
    padding: var(--space-lg) var(--space-xs);
    margin-bottom: var(--space-xl);
  }
  .cta-section {
    padding: var(--space-lg) var(--space-xs);
    margin-bottom: var(--space-xl);
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .quick-contact, .cta-phone, .secondary-contacts {
    flex-direction: column;
    gap: var(--space-xs);
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 2em; }
  h2 { font-size: 1.4em; }
  .container {
    padding: 0 5vw;
  }
  .section, .cta-section {
    padding: var(--space-md) var(--space-xs);
  }
}

/****************************************************
      MOBILE BURGER MENU & MOBILE NAV
****************************************************/
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 86vw;
  max-width: 340px;
  height: 100vh;
  background: var(--surface-light);
  box-shadow: -3px 0 16px 0 rgba(23, 67, 94, 0.15);
  transform: translateX(110%);
  z-index: 150;
  transition: transform 0.4s cubic-bezier(.7,.2,.17,1);
  padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-md);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.4em;
  position: absolute;
  right: var(--space-md);
  top: var(--space-md);
  cursor: pointer;
  z-index: 152;
  line-height: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}
.mobile-nav a {
  color: var(--primary);
  font-size: var(--fs-lg);
  font-family: var(--font-display);
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-md);
  background: none;
  transition: background .18s, color .18s;
  min-width: 160px;
  margin-bottom: 9px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent-dark);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/****************************************************
      COOKIE CONSENT BANNER & MODAL
****************************************************/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: #fff2ca;
  border-top: 1.5px solid var(--accent);
  box-shadow: 0 -6px 16px rgba(36,35,30,0.07);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-md) var(--space-md) var(--space-sm) var(--space-md);
  gap: var(--space-lg);
  transition: transform .35s cubic-bezier(.33,1,.68,1);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(160%);
}
.cookie-banner__content {
  flex: 1;
  min-width: 0;
  color: var(--text-dark);
  font-size: var(--fs-sm);
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: var(--space-sm);
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-display);
  border: none;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  margin-right: 2px;
  transition: background .18s, color .18s, box-shadow .16s;
  box-shadow: 0 1px 4px rgba(23,67,94,0.09);
}
.cookie-btn.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: bold;
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(1.08);
  box-shadow: 0 3px 18px rgba(23,67,94,0.19);
}

/***** MODAL DIALOG FOR COOKIE SETTINGS *****/
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23,67,94,0.16);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s;
}
.cookie-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.cookie-modal__dialog {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  min-width: 320px;
  min-height: 180px;
  box-shadow: 0 8px 40px rgba(23,67,94,0.12);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2em;
  color: var(--primary);
  z-index: 205;
  cursor: pointer;
}
.cookie-modal__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--primary-dark);
  margin-bottom: var(--space-xs);
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-modal__category label {
  font-size: var(--fs-sm);
  color: var(--text-main);
  font-family: var(--font-body);
}
.cookie-modal__category input[type=checkbox] {
  width: 21px;
  height: 21px;
  accent-color: var(--accent);
  border-radius: 4px;
  margin-right: 8px;
}
.cookie-modal__category.essential label {
  opacity: 0.68;
  font-style: italic;
}
.cookie-modal__actions {
  align-self: flex-end;
  display: flex;
  gap: var(--space-xs);
}

@media (max-width: 648px) {
  .cookie-banner {
    flex-direction: column;
    padding: var(--space-sm);
    gap: var(--space-xs);
    font-size: var(--fs-xs);
  }
  .cookie-banner__actions {
    margin-top: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .cookie-modal__dialog {
    min-width: 92vw;
    padding: var(--space-lg) var(--space-sm);
  }
}

/*******************************************************/
/*   ANIMATIONS   */
/*******************************************************/
.card, .feature, .feature-card, .testimonial-card, .team-member {
  animation: fadein 0.8s cubic-bezier(.45,.3,.23,.96);
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* Transitions for sections */
.section, .cta-section {
  transition: box-shadow .13s, background .13s;
}

/*******************************************************/
/*  MISC: THANK-YOU PAGE, DISCLAIMER, ETC  */
/*******************************************************/
.thankyou-message {
  background: var(--secondary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-md);
  color: var(--primary-dark);
  font-size: var(--fs-md);
}
.next-steps {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--text-main);
}
/* Disclaimers */
.disclaimer {
  font-size: var(--fs-xs);
  color: var(--text-light);
  margin-top: 2px;
}

/****************************************************
    FLEXBOX SPACING & ALIGNMENT GUARANTEES
****************************************************/
.section, 
.section:not(:last-child),
.content-wrapper, 
.feature-grid, 
.card-container, 
.team-members, 
.testimonial-list, 
.card, 
.testimonial-card, 
.feature-item {
  /* To guarantee vertical or horizontal spacing */
  margin-bottom: 0 !important;
  gap: 20px !important;
}

/* Prevent all forms of overlap */
.card, .testimonial-card, .feature, .team-member {
  margin-bottom: 20px;
}

/****************************************************
                UTILITY/MICRO CLASSES
****************************************************/
.text-center {
  text-align: center;
}
.align-start {
  align-items: flex-start !important;
}
.align-center {
  align-items: center !important;
}
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

/****************************************************
    FINAL SAFETY: NO CSS GRID/NO ABSOLUTE POS FOR CONTENT
****************************************************/
/* No grid, columns, break-inside, or abs pos for content */
/* Only allow position: relative in .card for decorations, never for layout */

/* ---- END ---- */
