
:root {
  --white: #FFFFFF;
  --purple: #4C1D95;
  --purple-light: #7C3AED;
  --black: #0F172A;
  --grey: #475569;
  --light-grey: #F8FAFC;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-width: 1200px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --border-radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.dropdown-toggle { display: none; }

/* Legal Content Styling */
.legal-content h2 { margin-bottom: 1.5rem; }
.legal-content h3 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.5rem; color: var(--purple); }
.legal-content p { margin-bottom: 1rem; line-height: 1.7; color: #4b5563; }
.legal-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.legal-content li { margin-bottom: 0.5rem; color: #4b5563; }
.legal-content strong { color: var(--black); }

html { scroll-behavior: smooth; }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--grey);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--black);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.75rem; line-height: 1.2; }
h3 { font-size: 1.75rem; }

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
a:hover { color: var(--purple); }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header */
.main-nav {
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  top: 0;
  background: #FFFFFF;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--black);
  line-height: 1;
}
.logo a { display: flex; align-items: baseline; }
.logo span {
  font-size: 0.85rem;
  color: var(--purple);
  margin-left: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  opacity: 0.9;
}

.nav-links { display: flex; gap: 1.5rem; list-style: none; height: 100%; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }

.nav-links > li > a {
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 0;
  opacity: 0.8;
}
.nav-links > li > a:hover, .nav-links > li > a.active { opacity: 1; color: var(--purple); }

@media(min-width: 769px) and (max-width: 1050px) {
  .nav-links { gap: 0.75rem; }
  .nav-links > li > a { font-size: 0.8rem; letter-spacing: 0px; padding: 0.5rem 0; }
  .nav-links .brochure-nav-item { margin-left: 0.5rem; }
  .nav-links .brochure-nav-item > a.btn-brochure { padding: 0.7rem 1.2rem !important; font-size: 0.8rem !important; }
}

.mobile-menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--black); z-index: 1001; }

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -1.5rem;
  background: white;
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  padding: 1.25rem 0;
  z-index: 1000;
  border-top: 4px solid var(--purple);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

@media(min-width: 769px) {
  .nav-item:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-item:hover .dropdown-menu:not(.columns) {
    display: block;
  }
  .nav-item:hover .dropdown-menu.columns {
    display: grid;
  }
}

/* Mobile Dropdown Logic overrides */
@media(max-width: 768px) {
  .nav-item:hover .dropdown-menu,
  .nav-item:hover .dropdown-menu.columns {
    display: none; /* Disable hover on mobile */
  }
  
  .nav-item.active-dropdown .dropdown-menu,
  .nav-item.active-dropdown .dropdown-menu.columns {
    display: block; /* Show when toggled */
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  
  .dropdown-toggle { display: flex !important; align-items: center; justify-content: center; width: 3rem; height: 3rem; color: var(--purple); cursor: pointer; transition: transform 0.3s; font-size: 0.8rem !important; margin-left: auto; }
  
  .nav-links > li > a {
    flex: 1; /* Allow link to take available space */
  }
}

.dropdown-menu li { display: block; width: 100%; }
.dropdown-menu a {
  display: block;
  padding: 0.75rem 2rem;
  color: var(--grey);
  font-size: 0.95rem;
  text-transform: none!important;
  font-weight: 400!important;
  transition: all 0.2s;
  border-left: 4px solid transparent;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: var(--light-grey);
  color: var(--purple);
  border-left-color: var(--purple);
  padding-left: 2.5rem;
}

/* Mega Menu / Columns */
.dropdown-menu.columns {
  min-width: 500px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 2rem;
  gap: 2.5rem;
  left: -120px;
}
.dropdown-column h4 {
  color: var(--purple);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 700;
}
.dropdown-column ul { list-style: none; }
.dropdown-column a { padding: 0.5rem 0!important; border-left: none!important; }
.dropdown-column a:hover {
  background: none!important;
  color: var(--purple)!important;
  padding-left: 8px!important;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.1rem 2.5rem;
  background: var(--purple);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px 0 rgba(76, 29, 149, 0.39);
}
.btn:hover {
  background: var(--purple-light);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(76, 29, 149, 0.23);
}
.btn:active { transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple);
  box-shadow: none;
}
.btn-outline:hover { background: var(--purple); color: white!important; }

.btn-outline-white { border-color: white!important; color: white!important; }
.btn-outline-white:hover {
  background: white;
  border-color: white!important;
  color: var(--purple)!important;
}

/* Hero */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  margin-bottom: var(--spacing-lg);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.4));
}
.hero-content { position: relative; z-index: 1; max-width: 900px; padding: 2rem; }
.hero-content h1 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.hero-content p { font-size: 1.4rem; margin-bottom: 2.5rem; color: rgba(255, 255, 255, 0.95); font-weight: 300; }

/* Sections */
.section { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }
.section-alt { background: var(--light-grey); }
.section-header { text-align: center; margin-bottom: var(--spacing-lg); max-width: 800px; margin-left: auto; margin-right: auto; }
.section-header h2 { position: relative; display: inline-block; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--purple);
  border-radius: 2px;
}

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); align-items: center; }

/* Desktop Swapping */
.swap-desktop > :first-child { order: 2; }
.swap-desktop > :last-child { order: 1; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-md); }

@media(max-width: 992px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

  /* Mobile styles moved to end of file for precedence */

/* Cards */
.card {
  background: white;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border-radius: calc(var(--border-radius) / 2);
  transition: transform 0.5s ease;
}
.card:hover img { transform: scale(1.05); }

.card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; color: var(--grey); }

/* Footer */
.main-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--spacing-xl) 0 2rem;
  margin-top: auto;
}
.main-footer h3 { color: white; font-size: 1.25rem; margin-bottom: 2rem; }

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--spacing-lg);
}

.footer-address {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: pre-line;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 1rem; }
.footer-col a:hover { color: white; }

.footer-logo {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: block;
}
.footer-logo span { font-size: 0.8rem; color: var(--purple-light); letter-spacing: 2px; text-transform: uppercase; margin-left: 0.5rem; }

.footer-bottom {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}
.coverage-text { font-size: 0.85rem; line-height: 1.8; color: rgba(255, 255, 255, 0.5); }

.mobile-footer-text { display: none; }
.desktop-footer-text { display: block; }



/* Features */
.features-list { list-style: none; margin-top: 1rem; }
.features-list li { margin-bottom: 0.5rem; padding-left: 1.5rem; position: relative; }
.features-list li::before { content: '•'; color: var(--purple); position: absolute; left: 0; font-weight: bold; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--black); }
.form-control { width: 100%; padding: 1rem; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--purple); }

/* FAQ Accordion */
.faq-accordion { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  transition: color 0.3s;
}
.faq-question:hover { color: var(--purple); }
.faq-icon { font-size: 1.5rem; font-weight: 300; transition: transform 0.3s; color: var(--purple); }
.faq-question.active.faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-content { padding-bottom: 1.5rem; color: var(--grey); line-height: 1.7; }

/* Compact CTA */
@media(max-width: 768px) {
  .cta-section.container { 
    flex-direction: column; 
    text-align: center!important; 
    align-items: center!important; 
  }
  .cta-section div { text-align: center!important; width: 100%; }
}


/* Mobile Responsiveness (Moved to end for cascade) */

/* Mobile Responsiveness (Fixed Navigation) */
@media(max-width: 768px) {
  .hero { height: 70vh; }
  .hero-content h1 { font-size: 2.2rem; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.5rem !important; word-wrap: break-word; }
  h3 { font-size: 1.25rem !important; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    height: auto;
    align-items: flex-start;
    overflow-y: auto;
    max-height: 80vh;
  }
  
  .nav-links.active { display: flex; }
  .nav-links li { width: 100%; }
  
  .nav-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); 
    position: relative; 
    flex-wrap: wrap; 
  }

  .nav-links > li > a { 
    display: block; 
    padding: 1rem 0; 
    flex: 1; 
    text-align: left; 
    opacity: 1 !important;
  }

  .mobile-menu-toggle { display: block; }
  
  .dropdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3.5rem; /* Match line height of links */
    color: var(--purple);
    cursor: pointer;
    transition: transform 0.3s ease;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.8rem !important;
  }
  
  .dropdown-menu, .dropdown-menu.columns {
    position: static;
    display: none;
    width: 100% !important;
    box-shadow: none;
    border-top: none;
    padding: 0 0 1rem 1rem !important;
    background: #fdfdfd;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .nav-item.active-dropdown .dropdown-menu,
  .nav-item.active-dropdown .dropdown-menu.columns {
    display: block !important;
  }

  .nav-item.active-dropdown .dropdown-toggle {
    transform: rotate(180deg);
  }

  /* Disable hover triggers on mobile */
  .nav-item:hover .dropdown-menu { display: none; }
  .nav-item.active-dropdown:hover .dropdown-menu { display: block !important; }

  /* Footer fixes */
  .footer-content { grid-template-columns: 1fr; text-align: left; gap: var(--spacing-md); display: grid; }
  .footer-col { display: block; margin-bottom: 2rem; }

  /* Restore Text Padding on Mobile */
  .content-text-block {
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: left;
  }
  
  .desktop-footer-text { display: none !important; }
  .mobile-footer-text { display: block !important; }
}

.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--white); box-shadow: 0 -4px 10px rgba(0,0,0,0.1); padding: 1.5rem; z-index: 9999; }
.cookie-content { max-width: var(--container-width); margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between; }
@media(min-width: 768px){ .cookie-content { flex-direction: row; } }
.cookie-content p { margin: 0; font-size: 0.9rem; color: var(--grey); line-height: 1.5; }
.cookie-content a { color: var(--purple); font-weight: 500; text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.5rem; flex-shrink: 0; }
.btn-cookie-deny { background: #e2e8f0; color: #0f172a; box-shadow: none; border: 1px solid transparent; }
.btn-cookie-deny:hover { background: #cbd5e1; color: #0f172a; transform: translateY(-3px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-cookie-manage { background: transparent; border: 1px solid #cbd5e1; color: #0f172a; box-shadow: none; }
.btn-cookie-manage:hover { background: #f1f5f9; color: #0f172a; transform: translateY(-3px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }


/* Mobile Optimizations */
@media(max-width: 768px) {
  .brochure-btn-container {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .brochure-btn-container a.btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
  }
  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }
  .cookie-buttons .btn {
    width: 100%;
    padding: 0.8rem;
    text-align: center;
  }
}


/* Cookie Minimized Button */
.cookie-minimized-btn {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  background: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 9999;
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--black);
}

/* Mobile Adjustments for forms and cookie badge */
@media(max-width: 768px) {
  .cookie-minimized-btn {
    left: auto;
    right: 1rem;
    padding: 0.6rem;
    border-radius: 50%;
  }
  .cookie-minimized-btn .cookie-text {
    display: none;
  }
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea, .form-control {
    font-size: 16px !important; /* Prevents iOS Safari Zoom */
  }
}


/* Mobile image full-bleed overrides */
@media(max-width: 768px) {
  .section.container .grid-2 > div:not(.card):not(.content-text-block) > img,
  .section.container .grid-3 > div:not(.card):not(.content-text-block) > img {
    margin-left: calc(-1 * var(--spacing-md)) !important;
    margin-right: calc(-1 * var(--spacing-md)) !important;
    width: calc(100% + 2 * var(--spacing-md)) !important;
    max-width: none !important;
    border-radius: 0 !important;
  }
}

/* Custom Nav and Footer Brochure Button CSS */
@media(min-width: 769px) {
  .nav-links .brochure-nav-item {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .nav-links .brochure-nav-item > a.btn-brochure {
    border-radius: 50px !important;
    padding: 0.9rem 2rem !important; /* Slightly reduced padding so it doesn't push menu too far left */
    background: var(--purple) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    letter-spacing: 1.25px !important;
    text-transform: uppercase !important;
    opacity: 1 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    box-shadow: 0 4px 14px 0 rgba(76, 29, 149, 0.39) !important;
    display: inline-block !important;
    font-family: 'Outfit', sans-serif !important;
    white-space: nowrap !important;
  }
  .nav-links .brochure-nav-item > a.btn-brochure:hover {
    background: var(--purple-light) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(76, 29, 149, 0.23) !important;
    color: white !important;
    opacity: 1 !important;
  }
}

@media(max-width: 768px) {
  .nav-links .brochure-nav-item {
    background: var(--purple) !important;
    margin: 0 -1rem !important; 
    padding: 0 1rem !important; 
    width: calc(100% + 2rem) !important;
    border-radius: 0 !important;
    text-align: left !important;
    border-bottom: none !important;
  }
  .nav-links .brochure-nav-item > a.btn-brochure {
    color: var(--white) !important;
    background: transparent !important;
    display: block !important;
    width: 100% !important;
    padding: 1rem 0 !important;
    box-shadow: none !important;
    transform: none !important;
    border-radius: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    opacity: 1 !important;
    text-align: left !important;
    letter-spacing: 1px !important;
  }
  .nav-links .brochure-nav-item > a.btn-brochure:hover {
    color: var(--white) !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
  }
}
