/* ========== Review Blocks for Onboarding Review Step ========== */
.review-block {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.review-block h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.review-block p {
  margin: 0 0 0.5rem 0;
  line-height: 1.6;
  color: #444;
}
/* ========================
   SECTION: Onboarding Form
======================== */
.onboarding-main {
  padding: 2rem 0;
  background: var(--bg-light);
}
.onboarding-main h1 {
  text-align: center;
  margin-bottom: 1rem;
}
.progress-bar {
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  height: 8px;
  margin-bottom: 1rem;
}
.progress-bar .progress {
  background: var(--brand-primary);
  height: 100%;
  transition: width 0.3s ease;
}
.step-indicator {
  text-align: center;
  margin-bottom: 1.5rem;
}
.form-step {
  display: none;
  animation-duration: 0.3s;
}
.form-step.fade-in {
  display: block;
}
.form-step.fade-out {
  display: none;
}
.results {
  margin-top: 1rem;
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  background-color: var(--clr-surface);
  font-family: inherit;
}

@media (prefers-color-scheme: dark) {
  .onboarding-main #company_lookup {
    background-color: #1c1c1e;
    color: #ffffff;
    border-color: #444;
  }

  .results div {
    background-color: #2c2c2e;
    color: #f1f1f1;
    border: 1px solid #444;
    padding: 10px;
    margin-bottom: 5px;
    transition: background-color 0.3s, color 0.3s;
  }

  .results div:hover {
    background-color: #3a3a3c;
    color: #ffffff;
    cursor: pointer;
  }

  .results div.selected {
    background-color: #444;
    font-weight: bold;
  }

  input[type="text"], input[type="number"], input[type="email"] {
    background-color: #1c1c1e;
    color: #ffffff;
    border: 1px solid #444;
  }

  /* Onboarding form dark mode overrides */
  .onboarding-main {
    background: var(--bg-dark-surface);
  }
  .onboarding-main h1,
  .onboarding-main h2,
  .onboarding-main label,
  .step-indicator strong,
  .step-indicator div {
    color: var(--text-light);
  }
  .progress-bar {
    background: #333;
  }
  .form-group input,
  .readonly-field,
  input[type="text"],
  input[type="number"],
  input[type="email"],
  textarea {
    background-color: #1c1c1e;
    color: #f1f1f1;
    border: 1px solid #444;
  }
  input::placeholder,
  textarea::placeholder {
    color: #888;
  }
  .results {
    border: 1px solid #444;
    background-color: #1c1c1e;
  }
  .results .company-item {
    background-color: #2c2c2e;
    color: #f1f1f1;
  }
  .results .company-item:hover {
    background-color: #3a3a3c;
  }
  .results .company-item.selected {
    background-color: #444;
    font-weight: bold;
  }

  /* Ensure B2B note reads light in dark mode */
  #agreement-b2b-note {
    color: var(--text-light) !important;
  }
  /* Dark mode: agreement summary styling */
  #order-summary-box {
    background-color: var(--bg-dark-surface) !important;
  }
  #order-summary-box,
  #order-summary-box h2,
  #order-summary-box p,
  #order-summary-box ul,
  #order-summary-box li {
    color: var(--text-light) !important;
  }
}
/* Consistent styling for readonly input and textarea fields */
.readonly-field {
  background: var(--bg-light);
  border: 1px solid var(--text-secondary);
  padding: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 4px;
}
textarea.readonly-field {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 0.5rem;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--brand-primary);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}
  .button:hover {
    background: var(--brand-purple-dark);
  }

/* Account Form: Service Selector Cards */
.service-selector {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2rem;
  align-items: stretch;
}

.interactive-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin: 0 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.interactive-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--text-primary);
}
.interactive-card p {
  margin: 0;
  flex: 1;
  color: var(--text-secondary);
}

.interactive-card:hover,
.interactive-card.active {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-neutral);
  transform: translateY(-4px);
}

.plan-feature-list li {
  list-style: none;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}
.plan-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-primary);
}

/* Remove or comment out any min-height in .interactive-card (already removed above) */
.interactive-card:focus-visible {
  outline: 2px dashed var(--brand-primary);
  outline-offset: 4px;
}
/* ========================
   SECTION: Root Variables
======================== */

:root {
  /* ------------------------
     TYPOGRAPHY
  ------------------------ */
  --text-dark-muted: #aaa;
  --text-default: #111111;
  --text-light: #f1f1f1;
  --text-muted: #555555;
  --text-primary: #111111;
  --text-secondary: #555555;

  /* ------------------------
     BACKGROUND COLORS
  ------------------------ */
  --bg-dark: #111111;
  --bg-dark-surface: #1a1a1a;
  --bg-elevated: #fefbfe;
  --bg-light: #ffffff;
  --background-light: #ffffff;
  --bg-neutral: #fafafa;
  --clr-background: #ffffff;
  --clr-surface: #fff;
  --clr-border: #ccc;
  --clr-border-light: #eee;
  --clr-hover: #f2f2f2;

  /* ------------------------
     SURFACES
  ------------------------ */
  --section-bg: var(--hero-gradient);
  --surface: var(--hero-gradient);
  --surface-alt: #f5f0f8;

  /* ------------------------
     BRAND PALETTE
  ------------------------ */
  --brand-primary-rgb: 93, 20, 124;
  --brand-accent: #b580cc;
  --brand-primary: #5d147c;
  --brand-purple: #5d147c;
  --brand-purple-dark: #3b0e52;

  /* ------------------------
     SEMANTIC PALETTE
  ------------------------ */
  --accent: var(--brand-accent);
  --accent-dark: var(--brand-purple-dark);
  --danger: #e12d39;
  --success: #3ebd93;
  --warning: #f6c343;

  /* ------------------------
     SUPPORTING TONES
  ------------------------ */
  --charcoal: #222222;
  --purple-tint: #f5f0f8;
  --warm-grey: #aaa;

  /* ------------------------
     UI / ACCESSIBILITY
  ------------------------ */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.12);
  --focus-ring: rgba(93, 20, 124, 0.5);

  /* ------------------------
     LAYOUT & MOTION
  ------------------------ */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --heading-color: #111111;
  --hero-gradient: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  --max-width: 1200px;
  --section-bg-dark: #111;
  --spacing-base: 1rem;
  --spacing-fluid: clamp(1rem, 4vw, 4rem);

  /* ------------------------
     SYSTEM COLORS
  ------------------------ */
  --black: #000000;
  --white: #ffffff;
  --button-text: #ffffff;
}

/* ========================
   SECTION: Scroll Padding Root
======================== */
:root {
  scroll-padding-top: 5rem;
}


/* ========================
   SECTION: Global Styles
======================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--hero-gradient);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text-primary);
  line-height: 1.5;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-overflow-scrolling: touch;
}

/* ========================
   SECTION: Global Utilities
======================== */

.skip-link {
  position: absolute;
  left: -100%;
  top: 0;
  background: var(--brand-purple);
  color: #fff;
  padding: 0.5rem;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
}

/* ========================
   SECTION: Layout Utilities
======================== */
.container {
  width: min(90%, var(--max-width));
  margin: 0 auto;
  padding-inline: var(--spacing-fluid);
}

/* ========================
   SECTION: Section Heights
======================== */

/* #process min-height was previously set to 100vh but is now commented out for layout refinement */
/*
#process {
  min-height: 100vh;
}
*/

#pricing {
  min-height: auto; /* pricing grid area */
}

/* ========================
   SECTION: Animations & Focus Effects
======================== */

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(var(--brand-primary-rgb), 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(var(--brand-primary-rgb), 0);
  }
}

.animate-pulse {
  animation: pulse 1.5s infinite;
  will-change: transform, box-shadow;
}


/* === Accessible Checkbox & Radio Inputs === */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brand-purple);
  border: 1px solid var(--text-secondary);
  outline: 2px solid transparent;
  outline-offset: 2px;
}
input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: 2px solid var(--focus-ring);
}

select {
  background-color: var(--section-bg);
  color: var(--text-primary);
  border: 1px solid var(--text-secondary);
}


/* ========================
   SECTION: Navigation
======================== */

/* --- Navigation Container --- */
nav.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  z-index: 1000;
  backdrop-filter: saturate(150%) blur(20px);
  transition: background 0.3s ease, color 0.3s ease, backdrop-filter 0.3s ease;
}

nav.main-nav.scrolled {
  background: transparent;
  /* border-bottom: 1px solid rgba(0, 0, 0, 0.06); */
  /* box-shadow: var(--shadow-sm); */
}

/* --- Layout & Branding --- */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
}

.logo img {
  height: 40px;
  padding-top: 0.5rem;
}

/* --- Navigation Links --- */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--brand-purple);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--brand-purple);
}

/* --- Mobile Navigation Toggle --- */
/* --- Mobile Navigation Toggle --- */
.nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
  }
}

/* Hamburger bars only: */
.nav-toggle span.bar {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px auto;
  background-color: #5d147c; /* brand purple */
  transition: all 0.3s ease-in-out;
}

.nav-toggle span:not(.bar) {
  display: none;
}

.nav-toggle.open span.bar:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.nav-toggle.open span.bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span.bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* --- Mobile Navigation Dropdown --- */


/* Services */
.section-heading {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding-top: 1rem;
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--heading-color);
  letter-spacing: 0.25px;
}

section.section {
  padding-block: 2rem 2rem;
}
.section.contact.container {
  padding-inline: clamp(2rem, 5vw, 6rem);
}

/* ========================
   SECTION: Services Cards
==========================
   All .service-card related styles are grouped here for clarity.
*/

/* --- Base Card Styles --- */

@media (max-width: 1024px) {
  .service-card {
    flex: 1 1 calc(50% - 2rem);
  }
}

@media (max-width: 600px) {
  .service-card {
    flex: 1 1 100%;
  }
}

.service-card:hover {
  transform: translateY(-4px);
}

/* --- Headings and Paragraphs --- */
.service-card h3 {
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- List Styling --- */
.service-card ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
  color: var(--text-default);
}

.service-card ul li::before {
  content: "✓";
  color: var(--brand-primary);
  margin-right: 0.5rem;
}

/* === Toggle Switch Styles === */
input[type="checkbox"].toggle {
  appearance: none;
  width: 42px;
  height: 24px;
  background: var(--text-secondary);
  border-radius: 999px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

input[type="checkbox"].toggle::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
}

input[type="checkbox"].toggle:checked {
  background: var(--brand-purple);
}

input[type="checkbox"].toggle:checked::before {
  transform: translateX(18px);
}


/* Contact */
.contact { padding-block: 4rem; padding-inline: var(--spacing-fluid); background: transparent; }
/* Contact page two‑column layout */
.contact-grid {
  display: grid;
  gap: var(--spacing-base);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: var(--spacing-fluid);
}
.contact-grid > div {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}
.contact form { display: grid; gap: 1rem; max-width: 500px; margin: 0 auto; }
.contact label { font-weight: 500; }
.contact input, .contact textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--text-secondary);
  border-radius: 4px;
}

/* Semantic focus ring for contact form fields */
.contact input:focus,
.contact textarea:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.contact button { background: var(--brand-purple); color: #fff; padding: 0.75rem 1.5rem; border: none; border-radius: 8px; cursor: pointer; transition: background 0.3s var(--ease); }
.contact button:hover { background: var(--brand-purple-dark); }

/* Footer */
.footer {
  background: transparent ;
  color: var(--text-secondary);
  padding: 1rem 0;
  font-size: 0.85rem;
}

.note {
  font-size: 0.85rem;
  opacity: 0.65;
  margin-top: 0.25rem;
}

/* Smooth scrolling & scroll snap */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

.scroll-container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

.section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 4rem;
  padding-bottom: 6rem;
}


/* Ensure all anchored sections clear the sticky header for sticky nav */
section[id] {
  scroll-margin-top: 120px;
}

/* CTA Wrapper */
.cta-wrapper {
  margin-top: 2rem;
  text-align: center;
}


/* === Responsive Typography === */
h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.2;
}

p, a, li {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
}

/* ========================
   SECTION: Hero Section
======================== */

/* === Contact Section Hero Variant === */
.contact-section {
  position: relative;
  padding-block: 3rem 4rem;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  overflow: visible;
}
.contact-section .hero-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-fluid);
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .contact-section .hero-layout {
    flex-direction: column;
    text-align: center;
  }
  .contact-section .hero-image {
    display: none;
  }
}

/* ========================
   SECTION: Hero Full-Bleed Background
======================== */
/* Hero and project-section share seamless background */

.hero.full-bleed {
  position: relative;
  padding-block: 3rem 2rem;
  padding-inline: clamp(1rem, 5vw, 4rem);
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  overflow: visible;
  min-height: 60vh;        /* fills 60% of viewport height */
  max-height: 800px;       /* never exceed 800px */
  margin-bottom: 0;
  padding-bottom: 2rem;
  border-bottom: none;
  box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero.full-bleed {
    min-height: 50vh;
    max-height: none;
    padding-block: 3rem;
  }
}

@media (max-width: 600px) {
  .hero.full-bleed {
    min-height: auto;       /* let content dictate height */
    padding-block: 2rem;
  }
}


/* ========================
   SECTION: Hero Full-Bleed ::before Overlay
======================== */
.hero.full-bleed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent !important;
  z-index: -1;
  pointer-events: none;
}

/* Constrain hero content to the same max-width as nav */
.hero.full-bleed .hero-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-fluid);
  flex-wrap: wrap;
}

/* ========================
   SECTION: Hero Layout
======================== */
.hero-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
}

/* Constrain hero content to the same max-width as nav */
.hero.full-bleed .hero-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-fluid);
  flex-wrap: wrap;
}

.hero-content {
  flex: 1 1 460px;
  max-width: 560px;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.hero-content .subhead {
  font-size: 1.25rem;
  color: var(--brand-purple);
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: left;
}
.hero-content .lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
}
.hero-content p {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.hero-content .why {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 2rem;
  color: var(--text-primary);
}
/* Ensure hero-image is visible by default (desktop) */
.hero-image {
  flex: 1 1 460px;
  max-width: 600px;
  text-align: center;
  display: flex;
  /* or use display: block; if preferred for layout */
}
.hero-image img {
  max-width: 120%;
  height: auto;
  transform: translateX(-10%);
}


/* Hide hero-image on screens 1024px wide or less */
@media (max-width: 1024px) {
  .hero-image {
    display: none;
  }
}

/* Responsive adjustments for hero layout and content */
@media (min-width: 480px) {
  .hero-content .subhead {
    font-size: 1.35rem;
  }
  .hero-content .lead {
    font-size: 1.18rem;
  }
}

@media (min-width: 600px) {
  .hero-layout {
    flex-wrap: nowrap;
  }
}

@media (min-width: 768px) {
  .hero-layout {
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 6rem 2rem;
  }
  .hero-content .subhead {
    font-size: 1.5rem;
    text-align: left;
  }
  .hero-content .lead {
    font-size: 1.22rem;
  }
}

@media (max-width: 768px) {
  /* Mobile adjustments */
  /* .hero-image display is handled by (max-width: 1023px) above */
  .hero.full-bleed {
    padding-top: 3rem;
    padding-bottom: 3rem;
    min-height: auto;
  }
}

@media (min-width: 600px) and (max-width: 1024px) {
  /* Tablet adjustments (600px up to 1024px) */
  .hero.full-bleed {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    min-height: 100vh;
    overflow: hidden;
  }
}

/* === Responsive Footer === */
/* Styles moved to SECTION: Footer Layout */
/* === Auth Pages (Register/Login) === */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  background: transparent;
  padding: 2rem;
}

.auth-form {
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
}

.auth-form h2 {
  font-size: var(--step-3);
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--brand-purple);
}

.auth-form label {
  font-weight: 500;
  margin-top: 1rem;
  display: block;
}

.auth-form input {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
}


.auth-footer {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
}


/* ========================
   SECTION: Badge Styles
=========================
 */
.badge {
  display: inline-block;
  margin-top: 0.25rem;
  background: #eee;
  color: var(--brand-purple);
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* ========================
   SECTION: Testimonials Subhead
======================== */
.testimonial-subhead {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-align: center;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}
  h2 {
    color: var(--text-default);
  }
  input[type="checkbox"].toggle {
    background: var(--text-secondary);
  }
  input[type="checkbox"].toggle:checked {
    background: var(--brand-purple-dark);
  }
@media (max-width: 480px) {
  .testimonial-grid blockquote {
    padding: 1.25rem;
  }
  .cta-link,
  .card-cta {
    padding: 0.65rem 1.2rem;
    font-size: 0.95rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}
/* === Fade-Lift Utility Animation === */
.fade-lift {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-lift.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ========================
   SECTION: Google Maps Embed
======================== */
.map-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border-radius: 0;
  box-shadow: none;
}
/* ========================
   SECTION: Services Accordion
======================== */
.accordion {
  max-width: 800px;
  margin: 0 auto var(--spacing-fluid);
}
.accordion details {
  border: 1px solid var(--text-secondary);
  border-radius: 8px;
  padding: var(--spacing-base);
  margin-bottom: var(--spacing-base);
}
.accordion summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary:hover,
.accordion summary:focus {
  color: var(--brand-purple);
}
.accordion .content {
  margin-top: 0.5rem;
  color: var(--text-default);
  font-size: 1rem;
  line-height: 1.5;
}

/* =======================================================
   === Subtle Entrance Animations: Fade In & Keyframes ===
   =======================================================
*/
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-delay {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ========================
   SECTION: Contact Details
======================== */
/* ========================
   SECTION: Contact Details
======================== */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.contact-info {
  flex: 1 1 300px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.contact-info h2 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-info .icon {
  margin-right: 0.5rem;
  vertical-align: middle;
}

.map-heading {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 3rem 0 1rem;
  color: var(--text-primary);
}
/* Subtle micro-copy for pricing reinforcement (Apple-style) */
.micro-copy {
  letter-spacing: 0.4px;
  font-weight: 500;
  color: #444;
  margin-top: 1rem;
}

/* ========================
   SECTION: Contact Connect
======================== */
/* ========================
   SECTION: Contact Connect
======================== */
.contact-connect {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 2rem;
}
.contact-block i {
  margin-right: 0.5rem;
  color: var(--text-muted);
}
.contact-block a {
  text-decoration: none;
}
.contact-block a:hover {
  text-decoration: underline;
}
.reg {
  font-size: 0.85rem;
  color: var(--warm-grey);
}

.map-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 2rem;
}
.map-wrapper iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* ========================================
   === Case Studies Highlight ===
   ======================================== */

.case-studies-highlight {
  background-color: var(--section-bg);
  padding: 4rem 2rem;
  text-align: center;
}

.case-studies-highlight .content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.case-studies-highlight .subtext {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}


/* ========================
   SECTION: Projects
======================== */

/* ========================
   SECTION: Projects
======================== */
/* ========================
   SECTION: Projects
======================== */
/* --- Project Section --- */
/* .project-section background now handled with .hero.full-bleed above */
/* Project section background: ensure transparent for seamless hero flow */
/* Project section background: ensure transparent for seamless hero flow */
.project-section {
  background: var(--section-bg);
  outline: none;
  margin-top: 0;
  border-top: none;
  padding-top: 0;
  padding-bottom: 4rem;
  text-align: center;
}

/* Project Section Container: full-width, consistent padding */
/* Project section container: ensure transparent background */
.project-section .container,
.container,
.section,
.section.project-section {
  /* background-color: transparent !important; */
}
.project-section .container {
  max-width: none;
  padding-inline: 2rem;
}
/* ==========================================
   === Option Selection Cards ===
   ========================================== */
.option-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1rem;
}

.option-card {
  display: block;
  cursor: pointer;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: var(--surface);
  padding: 1rem;
  transition: border 0.2s ease, background 0.2s ease;
}

.option-card:hover {
  border-color: var(--brand-purple);
  background: var(--surface-alt);
}

.option-card input[type="radio"] {
  display: none;
}

.option-card input[type="radio"]:checked + .card-content {
  border-left: 4px solid var(--brand-purple);
}


/* === Full-bleed Services Grid === */
#services {
  padding-top: 2rem;
}
/* Service section: reduce top spacing for mobile, avoid inheriting large spacing */
.service-section {
  /* Removed forced full viewport height for smoother scroll behavior */
  /* min-height: 100vh; was removed to allow section to sit closer to hero */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-block: 2rem 4rem;
}

@media (max-width: 767px) {
  .service-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

section#process {
  /* min-height: 100vh; */
  padding-top: 2rem;
  padding-bottom: 0;
  /* overflow: hidden; */
}
section#process .section-heading {
  margin-bottom: 0.5rem;
}
.service-section .section-heading {
  margin-bottom: 1.5rem;
}
/* ========================
   SECTION: Services Layout
======================== */
/* Make #services .container full width and remove padding */
/* --- #services Styles for Scroll Margin and Responsive Layout --- */
#services {
  scroll-margin-top: 5rem;
}


/* ========================
   SECTION: Services Section Container
========================= */

#services .container.full-bleed,
.section--services .container.full-bleed {
  max-width: 100vw;
  padding: 0;
  width: 100vw;
  margin-left: calc(-1 * ((100vw - 100%) / 2));
  margin-right: calc(-1 * ((100vw - 100%) / 2));
  box-sizing: border-box;
}

/* Full-bleed for Projects Section */
.project-section .container {
  max-width: 100vw !important;
  padding-inline: var(--spacing-fluid) !important;
  width: 100vw !important;
  margin-left: calc(-1 * ((100vw - 100%) / 2)) !important;
  margin-right: calc(-1 * ((100vw - 100%) / 2)) !important;
  box-sizing: border-box !important;
}

/* ========================
   SECTION: Pricing Section Container
========================= */
.section--pricing {
  max-width: 100vw;
  padding: 0;
}

#pricing .container.full-bleed,
.section--pricing .container.full-bleed {
  max-width: 100vw;
  width: 100vw;
  margin-left: calc(-1 * ((100vw - 100%) / 2));
  margin-right: calc(-1 * ((100vw - 100%) / 2));
  padding-inline: 2rem;
  box-sizing: border-box;
}

/* ======================================================================================
   SECTION: Service Section Scroll Offset
   ====================================================================================== */
/* Pull Services section up closer under the sticky header */
#services {
  scroll-margin-top: 3rem; /* adjust this value to match header height */
}

.service-cards.full-bleed {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  width: 100%;
  padding-inline: var(--space-3);
  box-sizing: border-box;
}


.section-heading {
  position: relative;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: -0.25em;
  left: 50%;
  width: 3rem;
  height: 2px;
  background: var(--brand-purple);
  transform: translateX(-50%);
}
/* ========================
   SECTION: Responsive - Max Width 768px
======================== */

@media screen and (max-width: 768px) {
  :root {
    scroll-padding-top: 3rem;
  }
  body {
    -webkit-overflow-scrolling: touch;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: var(--spacing-base);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-light);
    padding: var(--spacing-base) var(--spacing-fluid);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  /* Hero Section: Add margin above hero for mobile, override min-height/padding/margin */
  .hero-section {
    margin-top: 1.5rem !important;
    padding-top: 2rem !important;
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero {
    padding-top: 2rem !important;
    margin-top: 0 !important;
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero.full-bleed {
    padding-top: 2rem !important;
    padding-bottom: 1rem;
    min-height: auto !important;
    margin-top: 0 !important;
    height: auto !important;
  }
  .hero h1,
  .hero-content h1,
  .hero p,
  .hero .cta,
  .hero-content p {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .hero h1,
  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  .hero h2,
  .hero-content .subhead {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .hero p,
  .hero-content p,
  .hero .intro-paragraph {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  .hero .cta-button,
  .hero-content .button,
  .hero-content .cta-button {
    margin-top: 1rem;
    padding: 0.75rem 1.2rem;
    font-size: 1rem;
  }
  .hero-image {
    display: none !important;
  }
  /* Reduce the overall hero padding for mobile so it fits above the fold */
  .hero-layout {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  /* Services */
  #services {
    margin-top: 1.5rem;
  }
  #services h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  /* Add extra horizontal padding to pricing intro on mobile */
  .pricing-intro {
    padding-inline: 1rem;
  }

  .interactive-card {
    flex: 1 1 calc(100% - 1rem);
    margin: 0 0.5rem;
  }
}

@media (min-width: 600px) and (max-width: 1024px) {
  /* Tablet adjustments (600px up to 1024px) */
  .hero.full-bleed {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    min-height: 100vh;
    overflow: hidden;
  }
}
  .service-intro {
    max-width: var(--max-width);
    margin: 0 auto 2rem;
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
  }

  @media (max-width: 768px) {
    .service-intro {
      padding-left: 1rem;
      padding-right: 1rem;
    }
  }
  .service-section .service-cards {
    margin-top: 3rem;
  }

/* Add extra top padding to Getting Started section title */
/* Add extra top padding to Getting Started section title */
/* === Consistent Section Padding === */
/* Explicitly set hero-section margin and padding to control Safari space */
.hero-section {
  min-height: 100vh;
  padding-block: 4rem 6rem;
  margin-top: 0;
  padding-top: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}
.service-section,
.pricing-section,
.contact-section {
  min-height: 100vh;
  padding-block: 4rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-section,
.pricing-section,
.contact-section {
  background: transparent;
}

.card {
  display: block;
  opacity: 1;
  transform: none;
}
/* Service section container and card overrides */
/* Make #services .container full width and remove padding */
/* (Styles for #services .container, scroll-margin, and responsive layout moved above) */


/* Responsive: Stack service cards vertically on mobile/tablet */
.service-card a {
  color: inherit;
  text-decoration: none;
}
.service-card h2 a,
.service-card h3 a {
  color: inherit;
  text-decoration: none;
}
/* Responsive: Reduce top spacing for service section title and container on mobile */

/* --- Service Cards Responsive Flex Layout --- */
/* Service cards layout (non-full-bleed) */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  padding-inline: 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .service-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .service-cards {
    flex-direction: column;
  }
}


/* ========================
   SECTION: Pricing Tier
======================== */

/* --- Pricing Grid --- */
.pricing-grid,
.pricing-grid.full-bleed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
  justify-content: center;
}

.pricing-grid {
  padding-inline: 1rem;
}

/* --- Full-Bleed Pricing Grid Variant --- */
/* --- Full-Bleed Pricing Grid Variant --- */
.pricing-grid.full-bleed {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding-inline: var(--spacing-fluid);
  box-sizing: border-box;
}

/* --- Pricing Section Container --- */
.pricing {
  background: transparent ;
  padding-block: 4rem;
  padding-inline: var(--spacing-fluid);
}

.pricing-intro {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* --- Pricing Tier Card --- */
.pricing-tier {
  background: transparent;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  color: var(--text-default);
  padding: 2rem;
  width: 100%;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-tier:hover {
  transform: scale(1.025);
}

/* --- Pricing Tier Headings and Price --- */
.pricing-tier h3,
.pricing-tier .price {
  color: var(--text-primary);
  text-align: center;
}

@media (min-width: 1024px) {
  .pricing-tier h3,
  .pricing-tier .price {
    color: var(--text-primary);
    text-align: left;
  }
}

/* --- Microcopy for pricing tiers --- */
.microcopy {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-style: italic;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .microcopy {
    text-align: left;
  }
}

/* ========================
   SECTION: Team Profiles
=========================
 */

/* ========================
   SECTION: Case Studies
=========================
 */

.team-section {
  padding: 4rem 2rem;
  background: var(--section-bg);
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.team-member {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-4px);
}

.team-member img {
  border-radius: 50%;
  width: 96px;
  height: 96px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-member h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.team-member p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.team-member .role {
  font-size: 0.875rem;
  color: var(--brand-accent);
  font-weight: 500;
}

/* ========================
   SECTION: Case Studies
=========================
 */

.case-studies-highlight {
  background-color: var(--section-bg);
  padding: 4rem 2rem;
  text-align: center;
}

.case-studies-highlight .content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}


.case-studies-highlight .subtext {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ========================
   SECTION: Projects
======================== */

/* --- Project Section --- */
/* Background now handled above for .project-section and .container */
.project-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-section p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.project-section a.cta {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* --- Project Cards --- */
/* Responsive project grid for full width usage */
.project-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.projects-grid {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Project Cards inside .project-section grid: transparent background, no shadow */
.project-card {
  background-color: transparent;
  box-shadow: none;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: scale(1.015);
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

.project-card .content {
  padding: 1.5rem;
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.project-card .meta {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-style: italic;
}

.project-card p {
  font-size: 1rem;
  color: var(--text-default);
}

/* ========================
   SECTION: Option Selection Cards
   ======================== */

/* ========================
   SECTION: Option Grid
======================== */
/* ========================
   SECTION: Option Grid
======================== */
.option-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1rem;
}



/* ========================
   SECTION: Canvas Background
======================== */
/* Removed duplicate canvas styling below; use only #page-canvas rules above */
/* ========================
   SECTION: Footer Redesigned
======================== */
.footer {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--text-muted);
}

/* Single-line footer style */
.footer-singleline {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}
.footer-singleline a {
  color: var(--text-primary);
  text-decoration: none;
  margin: 0 0.5rem;
}
.footer-singleline a:hover {
  text-decoration: underline;
}

.footer-brand,
.footer-links,
.footer-contact {
  flex: 1 1 auto;
  /* min-width: 180px; */
}
.footer-brand strong {
  display: block;
  font-size: var(--step-2);
  color: var(--white);
  margin-bottom: var(--space-1);
}
.footer-brand small {
  display: block;
  font-size: var(--step-1);
  color: var(--text-secondary);
  opacity: 0.8;
}
.footer-links h4,
.footer-contact h4 {
  font-size: var(--step-2);
  margin-bottom: var(--space-1);
  color: var(--brand-accent);
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: var(--space-1);
}
.footer-links a,
.footer-contact a {
  color: var(--text-light);
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.footer-links a:hover,
.footer-contact a:hover {
  opacity: 1;
  color: var(--brand-accent);
}
@media (max-width: 768px) {
  /* .footer-content grid-template-columns removed for flex layout */
  .footer-content {
    text-align: center;
  }
  .footer-links h4,
  .footer-contact h4 {
    text-align: center;
  }
}
/* ========================
   SECTION: Dark Mode Overrides
======================== */

@media (prefers-color-scheme: dark) {
  /* --- Root & Global --- */
  :root {
    --bg-light: #111;
    --text-primary: #f1f1f1;
    --text-secondary: #aaa;
    --section-bg: var(--hero-gradient);
  }
  .project-section {
    background: var(--section-bg);
  }
  body {
    background: transparent;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--text-primary);
  }
  select {
    background-color: var(--section-bg);
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
  }
  /* --- Navigation --- */
  nav.main-nav {
    background: var(--section-bg-dark);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 1px 6px rgba(0,0,0,0.4);
  }
  /* Force transparent nav on all pages in dark mode */
  nav.main-nav,
  nav.main-nav.scrolled {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
  }
  .nav-links a {
    color: var(--text-primary);
  }
  .nav-links a:hover {
    color: #fff;
  }
  .logo img {
    filter: invert(1) hue-rotate(180deg);
  }
  /* --- Services --- */
  .service-cards {
    background: transparent;
  }
  .service-cards.full-bleed {
    background: transparent;
  }
  .service-card {
    background: transparent;
    border-color: var(--brand-accent);
  }
  /* Dark mode: style service cards */
  .service-card {
    background: var(--section-bg-dark);
    color: var(--text-light);
    border-color: rgba(255,255,255,0.1);
  }
  .service-card h3,
  .service-card p,
  .service-card ul li {
    color: var(--text-light);
  }
  .service-card ul li::before {
    color: var(--brand-purple);
  }

  /* Dark mode: style pricing cards */
  .pricing-tier {
    background: var(--section-bg-dark);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.1);
  }
  .pricing-tier h3,
  .pricing-tier .price {
    color: var(--text-light);
  }
  .pricing-tier .feature-list li {
    color: var(--text-light);
  }
  .pricing-tier .feature-list li::before {
    color: var(--brand-purple);
  }
  /* Section headings */
  .section-heading,
  .section.process h4,
  .section.process p {
    color: var(--text-light);
  }
  /* --- Process --- */
  .section.process .section-heading {
    color: #fff;
  }
  .process-step {
    background: #2a2a2a;
    color: var(--text-light);
  }
  .process-step h4,
  .process-step p {
    color: var(--text-light);
  }
  .process-step::before {
    background: var(--brand-purple);
    color: #fff;
  }
  .process-step .cta-link {
    background: var(--brand-purple);
    color: #fff;
  }
  .process-step .cta-link:hover,
  .process-step .cta-link:focus {
    background: var(--brand-purple-dark);
    color: #fff;
  }
  /* --- Testimonials --- */
  .section.testimonials .subhead {
    color: #f1f1f1;
  }
  .scroll-hint svg {
    stroke: var(--text-light);
  }
  /* --- Pricing --- */
  .pricing-tier {
    background: var(--section-bg);
    color: var(--text-primary);
  }
  /* --- CTA Link --- */
  .cta-link {
    background: var(--brand-purple);
    color: #fff;
  }
  .cta-link:hover,
  .cta-link:focus {
    background: var(--brand-purple-dark);
    color: #fff;
  }
  /* --- Footer --- */
  footer.footer {
    background: var(--bg-dark-surface);
    color: var(--text-light);
    padding: var(--space-2) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .footer-singleline {
    color: var(--text-light);
  }
  .footer-singleline a {
    color: var(--text-light);
    opacity: 0.8;
  }
  .footer-singleline a:hover {
    opacity: 1;
    color: var(--brand-accent);
  }
  /* --- Canvas --- */
  canvas {
    background-color: var(--section-bg-dark);
  }
}
/* ========================
   SECTION: Buttons
======================== */
.button {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: var(--brand-purple);
  color: var(--button-text);
}

.button--primary {
  background-color: var(--brand-purple);
  color: var(--button-text);
  border: 2px solid var(--brand-purple);
}

.button--primary:hover {
  background-color: var(--brand-purple-dark);
  border-color: var(--brand-purple-dark);
  color: var(--button-text);
}

.button--ghost {
  background-color: transparent;
  color: var(--brand-purple);
  border: 2px solid var(--brand-purple);
}

.button--ghost:hover {
  background-color: var(--brand-purple);
  color: var(--button-text);
}

.button--link {
  background: none;
  border: none;
  color: var(--brand-purple);
  text-decoration: underline;
  padding: 0;
}

.button--link:hover {
  color: var(--brand-purple-dark);
}

/* ========================
   SECTION: Keyword Labels, Process Styling, Responsive Layout
======================== */


/* Service keywords line below the section heading */
.service-keywords {
  display: block;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-purple);
  margin: 0.5rem 0 1.5rem;
  letter-spacing: 0.05em;
}

@media (prefers-color-scheme: light) {
  .section .process-step {
    background-color: var(--surface);
    color: var(--text-primary);
  }
  .section .process-step p {
    opacity: 1;
  }
}

@media (prefers-color-scheme: dark) {
  .section .process-step {
    background-color: var(--surface-dark);
    color: var(--text-primary);
  }
  .section .process-step p {
    opacity: 1;
    color: var(--text-primary);
  }
  .section .process-step:hover {
    background-color: var(--surface-dark);
    color: var(--text-primary);
  }
  .section .process-step:hover p {
    color: var(--text-primary);
    opacity: 1;
  }
}

/* Remove default top padding/margin to avoid excessive space on Safari */
.hero-section,
.service-section,
.pricing-section,
.contact-section {
  padding-block: 0 1rem;
  scroll-margin-top: 100px;
}

@media (max-width: 768px) {
  .service-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    box-sizing: border-box;
  }
}

/* (Removed duplicate or conflicting .service-cards.full-bleed rules above; see canonical version after services container) */

/* --- Updated Service Card for CTA Alignment --- */
.service-card {
  flex: 1 1 calc(33.333% - 2rem);
  min-width: 280px;
  background: transparent;
  color: var(--text-default);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}
@media (max-width: 1024px) {
  .service-card {
    flex: 1 1 calc(50% - 2rem);
  }
}
@media (max-width: 600px) {
  .service-card {
    flex: 1 1 100%;
  }
}
/* === Contract Group® Custom Enhancements === */
.service-card {
  height: 100%;
  min-height: 280px;
}
.service-cards {
  background: var(--surface);
  align-items: stretch;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.microcopy {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  margin: 0.25rem 0;
}
@media (min-width: 1024px) {
  .microcopy {
    text-align: left;
  }
}
.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
@media (prefers-color-scheme: dark) and (max-width: 1023px) {
  .hero-content {
    background-color: transparent;
    color: #eee;
    z-index: 1;
    position: relative;
  }
}
@media (prefers-color-scheme: dark) {
  .section.process {
    background: var(--section-bg);
  }
  .section.process h2,
  .section.process h4,
  .section.process p {
    color: #f1f1f1;
  }
  .process-step {
    background: #1e1e1e;
    color: #eee;
  }
  .process-step::before {
    background: var(--brand-purple);
    color: #fff;
  }
  .service-cards {
    background: var(--section-bg);
  }
  footer.footer {
    background: var(--section-bg);
    color: #ccc;
  }
  .footer-content a {
    color: #b580cc;
  }
  .footer-content a:hover {
    opacity: 1;
    color: #fff;
    text-decoration: underline;
  }
  .project-card {
    background-color: #1e1e1e;
    color: #eee;
    border: 1px solid #333;
  }
  .project-card h3,
  .project-card .meta,
  .project-card p {
    color: #f1f1f1;
  }
  .project-card img {
    filter: brightness(0.85) contrast(1.1);
  }
  /* Brighten hero illustration lines for dark mode */
  .hero-image img {
    filter: invert(1) brightness(1.2) contrast(1.2);
  }
}


/* ==================================================================
   Apple‑Core Design Layer – Contract Group®
   (imported after main.css)
   ================================================================== */

:root {
  /* Spacing rhythm – 4/8/16 multipliers */
  --space-1: 0.25rem;  /* 4 px  */
  --space-2: 0.5rem;   /* 8 px  */
  --space-3: 1rem;     /* 16 px */
  --radius: 0.75rem;   /* 12 px consistent rounding */

  /* Fluid typography scales */
  --step-1: clamp(0.95rem, 0.75vw + 0.6rem, 1.05rem);
  --step-2: clamp(1.15rem, 0.85vw + 0.75rem, 1.35rem);
  --step-3: clamp(1.45rem, 1vw + 1rem, 1.75rem);
  --step-4: clamp(2rem, 2vw + 1.25rem, 3rem);
  /* Ensure --surface and --text-default are set here as well */
  --surface: #ffffff;
  --text-default: #111111;
}

/* ---------- Navigation ---------- */
.main-nav {
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow .3s ease;
}
.main-nav.scrolled { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

.nav-toggle .bar {
  transition: transform .4s cubic-bezier(0.4,0,0.2,1), opacity .4s;
}
.nav-toggle.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-links { opacity: 0; transform: translateY(-10%); transition: all .35s ease; }
  .nav-links.active { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */
.hero {
  width: 100%;
}
.hero.full-bleed {
}
.hero-layout { gap: var(--space-3) var(--space-3); padding-block: 6rem; }
.hero-copy { max-width: 34rem; }
.hero-headline { font-size: var(--step-4); font-weight: 700; line-height: 1.1; }
.hero-sub { color: var(--brand-purple); font-size: var(--step-2); margin-top: var(--space-2); }
.hero-body { font-size: var(--step-1); margin-top: var(--space-2); }
.hero-why  { font-size: var(--step-1); opacity: .75; margin-top: var(--space-2); }
.hero-visual img { border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,.04); }

/* ---------- Service Cards ---------- */
/* --- Updated Service Card for CTA Alignment --- */
  .service-card {
    flex: 1 1 calc(33.333% - 2rem); /* Three per row with spacing */
    min-width: 280px;
    background: transparent;
    color: var(--text-default);
    border-radius: var(--radius);
    padding: var(--space-3);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
  }
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }

/* --- Updated CTA Button for Contrast and Alignment --- */
/* --- Updated CTA Button for Contrast and Alignment --- */
.card-cta {
  display: inline-block;
  margin-top: var(--space-2);
  background: var(--brand-purple);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: calc(var(--radius) - 4px);
  transition: all .3s ease;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
}

.card-cta:hover,
.card-cta:focus {
  background: var(--brand-purple-dark);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* ---------- Micro‑interactions ---------- */
.cta-link {
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s;
  border-radius: var(--radius);
}
.cta-link:hover,
.cta-link:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  background: var(--brand-purple-dark);
}

:focus-visible {
  outline: 3px solid rgba(93,20,124,.5);
  outline-offset: 2px;
}

@media (min-width: 1440px) {
  .container { max-width: 90rem; }
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-content: center;
  align-items: start;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    padding-inline: 3rem;
    gap: 3rem;
  }
}

/* Updated pricing-tier block per requirements */
.pricing-tier {
  flex: 1;
  min-width: 280px;
  max-width: 360px;
  margin: 0;
  width: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--brand-purple);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  background-color: var(--background-light);
  color: var(--text-primary);
}

.pricing-tier * {
  text-decoration: none;
}

.pricing-tier:hover {
  transform: scale(1.025);
}

.pricing-tier.popular {
  position: relative;
  box-shadow: 0 0 0 3px rgba(93, 20, 124, 0.3);
  z-index: 1;
}

.pricing-tier.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--brand-purple);
  color: var(--button-text);
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.pricing-tier h3,
.pricing-tier .price {
  text-align: center;
  color: var(--text-primary);
}

@media (min-width: 1024px) {
  .pricing-tier h3,
  .pricing-tier .price {
    text-align: left;
    color: var(--text-primary);
  }
}

.underline {
  width: 48px;
  height: 3px;
  background: var(--brand-purple);
  border: none;
  margin: 0.5rem 0 1rem;
}

.microcopy {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 1024px) {
  .microcopy {
    text-align: left;
  }
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.feature-list li {
  margin: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-purple);
  font-weight: bold;
}

/* ---------- Process Section ---------- */
.process-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
  justify-items: center;
  align-items: stretch;
}

@media (min-width: 640px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface-alt);
  padding: 2.5rem 1.5rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease-out;
  position: relative;
  min-height: 240px;
  text-align: left;
  width: 100%;
  max-width: 100%;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.process-step:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.process-step h4 {
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 1.25rem;
}

.process-step p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.section.process {
  padding-block: 5rem;
  background: var(--bg-elevated);
}

.subhead {
  font-size: var(--step-2);
  color: #5d147c;
  opacity: 0.8;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  text-align: left;
  font-weight: 500;
}

.lead {
  font-size: var(--step-1);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .subhead {
    font-size: 1.5rem;
    text-align: left;
  }
  .lead {
    font-size: 1.22rem;
  }
}

.cta-wrapper {
  margin-top: 2rem;
  text-align: center;
}

/* ---------- Auth Layout ---------- */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.auth-form {
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
}

.auth-form h2 {
  font-size: var(--step-3);
  text-align: center;
  margin-bottom: var(--space-3);
  color: var(--brand-purple);
}

.auth-form label {
  font-weight: 500;
  margin-top: var(--space-2);
  display: block;
}

.auth-form input {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
}

.auth-footer {
  text-align: center;
  font-size: var(--step-1);
  margin-top: var(--space-2);
}

@media (prefers-color-scheme: dark) {
  :root {
    --section-bg: var(--hero-gradient);
  }
  body {
    background: var(--hero-gradient);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .service-cards,
  .section.process,
  .section.testimonials,
  .section.pricing,
  .section.contact {
    background: var(--section-bg);
  }

  .process-step,
  .testimonial-grid blockquote {
    background: #1e1e1e;
    color: #eee;
  }

  .pricing-tier {
    background: #1a1a1a;
    color: #f1f1f1;
  }

  .feature-list li::before {
    color: #f1f1f1;
  }

  footer.footer {
    background: var(--section-bg);
    color: var(--text-secondary);
  }
  .footer-content a {
    color: #b580cc;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }
  .footer-content a:hover {
    opacity: 1;
    color: #ffffff;
    text-decoration: underline;
  }
}

.service-cards {
  width: 100%;
  max-width: 100%;
  padding-inline: 1rem;
}
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1.5rem;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-content h1,
  .hero-content p {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    margin-bottom: 1rem;
  }
  .hero-content .button,
  .hero-content .cta-button {
    align-self: flex-start;
    margin-top: 1rem;
  }
  .hero-image {
    display: none !important;
  }
}
/* ========== LANDSCAPE OPTIMISATIONS ========== */
/* The .hero-image is hidden for max-width: 1023px, so landscape/other rules are no longer needed for its visibility. */
/* Hide hero-image on screens 1024px wide or less (redundancy for maximum coverage) */
@media (max-width: 1024px) {
  .hero-image {
    display: none;
  }
}
/* ========== Pricing Card CTA Enhancements ========== */
.cta-link {
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s;
  border-radius: var(--radius);
}
.cta-link:hover,
.cta-link:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  background: var(--brand-purple-dark);
}

:focus-visible {
  outline: 3px solid rgba(93,20,124,.5);
  outline-offset: 2px;
}

/* Grid and container tweaks for large viewports */
@media (min-width: 1440px) {
  .container { max-width: 90rem; }
}

/* Pricing grid layout */
/* Ensure align-items: start is present */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-content: center;
  align-items: start;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}
@media (min-width: 1024px) {
  .pricing-grid {
    padding-inline: 3rem;
    gap: 3rem;
  }
}

/* Pricing tier card styles */
.pricing-tier {
  flex: 1;
  min-width: 280px;
  max-width: 360px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.pricing-tier:hover {
  transform: scale(1.025);
}
.pricing-tier.popular {
  position: relative;
  box-shadow: 0 0 0 3px rgba(93, 20, 124, 0.3);
  z-index: 1;
}
.pricing-tier.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #5d147c;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}
.pricing-tier h3,
.pricing-tier .price {
  text-align: center;
}
@media (min-width: 1024px) {
  .pricing-tier h3,
  .pricing-tier .price {
    text-align: left;
  }
}

/* Visual underlines for pricing cards */
.underline {
  width: 48px;
  height: 3px;
  background: var(--brand-purple);
  border: none;
  margin: 0.5rem 0 1rem;
}

/* Typography for pricing microcopy */
.microcopy {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  margin: 0.25rem 0;
}
@media (min-width: 1024px) {
  .microcopy {
    text-align: left;
  }
}

/* Feature list styling within pricing cards */
.feature-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}
.feature-list li {
  margin: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-purple);
  font-weight: bold;
}
/* Shrink gap between Services and Pricing */
.service-section {
  /* reduce bottom padding */
  padding-bottom: 2rem;
}
 .pricing-section {
   /* reduce top padding */
   padding-top: 2rem;
 }

/* ---------- Pricing Section Top Gap Reduction ---------- */
#pricing,
.pricing-section {
  padding-top: 2rem;
}
#pricing .section-heading {
  margin-top: 0;
  padding-top: 0;
}

/* === Contact Form Section === */
/* -----------------------------
   Contact page: grid + cards
----------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding-block: 4rem;
  background: var(--section-bg);
}

.contact-form-card,
.contact-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.contact-info-cards {
  display: grid;
  gap: 1.5rem;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-card p,
.contact-card a {
  color: var(--text-secondary);
  text-decoration: none;
}
.contact-card a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}
@media (prefers-color-scheme: dark) {
  :root {
    --hero-gradient: linear-gradient(to bottom, #1a1a1a 0%, #111111 100%);
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --hero-gradient: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  }
}
/* ========================
   SECTION: Theme Gradients
======================== */
@media (prefers-color-scheme: dark) {
  :root {
    --hero-gradient: linear-gradient(to bottom, #1a1a1a 0%, #111111 100%);
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --hero-gradient: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
  }
}
.service-card {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Universal transparent background for all major site wrappers */
.hero-section,
.service-section,
.pricing-section,
.contact-section,
.section,
.container,
.service-cards {
  background: transparent !important;
  background-color: transparent !important;
}

.contact-form-card h3,
.contact-card h3 {
  /* Ensure heading color is dark in light mode for accessibility */
}

@media (prefers-color-scheme: light) {
  .contact-form-card h3,
  .contact-card h3 {
    color: #111 !important;
  }
}
.service-card .card-cta {
  color: #fff !important;
}
.pricing-tier { background: transparent !important; }
/* ========================
   SECTION: Onboarding Form Options
======================== */
.service-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem; /* Space between service options */
}

.interactive-card {
    border-radius: 8px; /* Rounded corners */
    padding: 1.5rem; /* Internal padding */
    cursor: pointer; /* Pointer cursor */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
    background: #fff; /* Light mode background */
    border: 1px solid transparent; /* Initial border */
}

/* Dark Mode Styles for interactive cards */
@media (prefers-color-scheme: dark) {
    .interactive-card {
        background: #2a2a2a; /* Dark background */
        color: #f1f1f1; /* Light text color */
        border-color: #444; /* Border for dark mode */
    }

    .interactive-card:hover {
        border-color: #b580cc; /* Change border color on hover */
    }

    .interactive-card.active {
        border-color: #b580cc; /* Active card border color */
    }
}

.interactive-card:hover {
    border-color: #5d147c; /* Border color on hover */
}

.interactive-card.active {
    border-color: #5d147c; /* Active card border color */
}

#estimating-options,
#qs-options {
    display: none; /* default hidden: JS will toggle to block */
}

/* ========================
   SECTION: Company Lookup Field Styling
======================== */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align elements to start */
    margin-bottom: 2rem; /* Space below */
    width: 100%;
    max-width: 600px; /* Restrict max width */
}

/* Company Lookup Field Styling */
#company_lookup {
    width: 100%; /* Full width */
    font-size: 1rem; /* Font size */
    padding: 0.75rem 1rem; /* Padding */
    border: 1px solid #ccc; /* Light border */
    border-radius: 4px; /* Rounded corners */
    background-color: #ffffff; /* Light mode background */
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05); /* Subtle inner shadow */
    transition: border-color 0.3s ease; /* Transition effect */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Dark Mode Styles for company lookup */
@media (prefers-color-scheme: dark) {
    #company_lookup {
        background: #1e1e1e; /* Dark background */
        color: #ffffff; /* Light text */
        border: 1px solid #555; /* Darker border */
        box-shadow: none; /* Remove shadow */
    }

    #company_lookup::placeholder {
        color: #aaa; /* Darker placeholder */
    }
}

#company_lookup:focus {
    border-color: #5B2C91; /* Focused border color */
}

/* ========================
   SECTION: Account Form Styling
======================== */
.form-step {
    max-width: 700px; /* Max width */
    margin: 0 auto; /* Center */
    padding: 20px; /* Internal padding */
}

.form-step h2,
.form-step h3 {
    font-weight: 600; /* Bold font */
    margin-bottom: 10px; /* Space below */
}

.form-step label {
    font-weight: 500; /* Medium font weight */
    margin-top: 10px; /* Space above */
    display: block; /* Block display for alignment */
}

input[type="text"],
input[type="number"],
input[type="email"],
select {
    width: 100%; /* Full width */
    max-width: 600px; /* Restrict max width */
    padding: 12px 14px; /* Padding */
    font-size: 1rem; /* Font size */
    border: 1px solid #ccc; /* Light border */
    border-radius: 4px; /* Rounded borders */
    display: block; /* Block display */
    margin-bottom: 16px; /* Space below */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* ========================
   SECTION: Button Styles
======================== */
button,
.button {
    background-color: #5a2a83; /* Button background color */
    color: #fff; /* Button text color */
    padding: 12px 24px; /* Padding */
    border: none; /* No border */
    border-radius: 4px; /* Rounded button */
    font-size: 1rem; /* Font size */
    cursor: pointer; /* Pointer cursor */
    transition: background 0.2s ease-in-out; /* Smooth background change */
}

button:hover,
.button:hover {
    background-color: #4a216d; /* Darker shade on hover */
}

/* ========================
   SECTION: Mobile Hero Layout
======================== */
@media screen and (max-width: 768px) {
    .hero-layout-container,
    .hero-layout.container {
        padding-left: 0 !important; /* Remove left padding */
        padding-right: 0 !important; /* Remove right padding */
        margin: 0 auto; /* Center alignment */
    }

    .hero-content {
        padding: 1rem 1.5rem; /* Padding for hero content */
        max-width: none; /* No max-width */
        width: 100%; /* Full width */
        text-align: left; /* Left alignment */
        box-sizing: border-box; /* Include padding in width calculation */
    }

    .hero-content h1,
    .hero-content p {
        text-align: left !important; /* Force left alignment */
    }
}

/* Readonly Fields */
.readonly-field,
#registered_address {
    width: 100%; /* Full width */
    box-sizing: border-box; /* Include padding in width calculation */
}

#registered_address {
    white-space: pre-wrap; /* Maintain whitespace for addresses */
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Break words that can't fit */
}
/* ========================
   SECTION: Global Styles
======================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

/* ========================
   SECTION: Light Mode Styles
======================== */
body {
    background-color: #fefbfe; /* Light background color */
    color: #111; /* Dark text color */
}

/* ========================
   SECTION: Dark Mode Styles
======================== */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212; /* Dark background */
        color: #e0e0e0; /* Light text */
    }
    
    /* Header and Footer */
    header,
    footer {
        background-color: #1a1a1a; /* Darker header/footer */
        color: #f0f0f0; /* Light text */
    }

    /* Form container */
    .form-container {
        background-color: #1e1e1e;
        border: 1px solid #333;
        padding: 2rem;
        border-radius: 5px;
    }

    /* Inputs and Textareas */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        background-color: #2a2a2a; /* Dark inputs */
        color: #ffffff; /* Light text */
        border: 1px solid #555; /* Dark border */
    }

    input::placeholder,
    textarea::placeholder {
        color: #aaaaaa; /* Lighter placeholder text */
    }

    /* Results dropdown */
    .results div {
        background-color: #1e1e1e; /* Dark results */
        color: #f5f5f5; /* Light text */
        border: 1px solid #444; /* Dark border */
    }

    .results div:hover {
        background-color: #333; /* Hover effect */
    }

    /* Step indicator */
    .step-indicator {
        background-color: #333; /* Dark step indicator */
        color: #ccc; /* Light text color */
    }

    /* Buttons */
    .button {
        background-color: #5d147c; /* Button background */
        color: #fff; /* Button text color */
    }

    .button:hover {
        background-color: #3b0e52; /* Darker button on hover */
    }

    /* Miscellaneous */
    .readonly-field {
        background: #181818; /* Background for readonly fields */
        color: #f1f1f1; /* Light text */
        border: 1px solid #444; /* Dark border */
    }
}

/* ========================
   SECTION: Onboarding Summary Lists
======================== */
.order-summary-box ul {
    list-style: none;
    margin-top: 0.75rem;
    padding-left: 1.5rem;
}

.order-summary-box ul li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.order-summary-box ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color); /* Use a variable for primary color */
}

/* ========================
   SECTION: Button Styles
======================== */
.button {
    padding: 0.75rem 1.25rem; /* Padding inside button */
    background-color: #5d147c; /* Button background */
    color: white; /* Button text color */
    border: none; /* No border */
    border-radius: 4px; /* Rounded button */
    cursor: pointer; /* Pointer cursor */
    transition: background-color 0.3s; /* Smooth background color change */
}

.button:hover {
    background-color: #3b0e52; /* Darker shade on hover */
}

/* ========================
   SECTION: Progress Bar Styles
======================== */
.progress-bar {
    width: 100%; /* Full width */
    background: #ccc; /* Light gray background */
    border-radius: 4px; /* Rounded corners */
    height: 5px; /* Height of progress bar */
    margin-bottom: 1rem; /* Margin below */
}

.progress {
    background: #5d147c; /* Progress color */
    height: 100%; /* Full height of bar */
    width: 0%; /* Initial width of progress */
    transition: width 0.3s; /* Smooth transition of width */
}

/* ========================
   SECTION: Reviews and Summary Styles
======================== */
.review-block {
    margin-bottom: 1rem; /* Space below each review block */
}

#agreement-b2b-note {
    margin: 2rem 0; /* Margin around B2B note */
    font-size: 0.95rem; /* Font size */
}