/* =========================================
   0. Design tokens — tweak these to match Lab exactly
   ========================================= */

:root {
  /* Grab these from lab.wundr.space via DevTools -> Computed styles */
    --indigo: #2d1b4e;
    --teal: #00d4c8;
    --aurora: #b47dff;
    --orange: #ff8650;
    --grey: #9aa3b2;
    --cardBg: rgba(255, 255, 255, .05);
    --cardBorder: rgba(255, 255, 255, .1);

  /* Page + surfaces */
  --bg-page: var(--indigo);          /* BODY background */
  --bg-surface: var(--cardBg);       /* Card / section background */
  --bg-surface-soft: #f3f4f6;  /* Very light panels, if used */

  /* Borders & shadows */
  --border-soft: var(--cardBorder);
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.08);

  /* Typography colours */
  --text-main: var(--teal);   /* Main text colour */
  --text-muted: var(--grey);  /* Supporting copy */
  --text-subtle: #6b7280; /* Labels, captions */

  /* Accent (likely an indigo/purple on Lab) */
  --accent: var(--orange);       /* Primary button, links */
  --accent-soft: #eef2ff;  /* Light tinted backgrounds */
  --accent-dark: #3730a3;  /* Hover state */

  /* Radii */
  --radius-lg: 1.5rem;
}

/* =========================================
   1. Base / reset
   ========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-page);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================
   2. Header & nav (align to Lab’s header)
   ========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 250, 251, 0.92); /* tweak to match Lab if different */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(209, 213, 219, 0.7);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-link {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: rgba(226, 232, 240, 0.8);
  text-decoration: none;
}

.nav-link-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #f9fafb;
  padding-inline: 0.95rem;
  font-weight: 500;
}

.nav-link-primary:hover {
  background: var(--accent-dark);
}

/* Dropdowns */

.nav-item {
  position: relative;
}

.nav-link-with-caret {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.caret {
  font-size: 0.7rem;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 220px;
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  padding: 0.65rem 0;
  display: none;
  z-index: 1000;
}

/* Invisible bridge to keep hover active between button and menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}

/* Keep dropdown visible when hovering over the parent container (button or menu) */
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.nav-dropdown-item small {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.nav-dropdown-item:hover {
  background-color: #f3f4f6;
  text-decoration: none;
}

/* =========================================
   3. Hero (match overall Lab feel)
   ========================================= */

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.3rem;         /* adjust to Lab’s main heading size if needed */
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.93rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #f9fafb;
  border-color: var(--accent);
  font-weight: 500;
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  text-decoration: none;
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: #d1d5db;
}

.btn-secondary:hover {
  background-color: var(--bg-surface-soft);
  text-decoration: none;
}

/* Hero image placeholder – echo Lab card style */

.hero-image .image-placeholder {
  border-radius: var(--radius-lg);
  border: 1px dashed #c7d2fe;
  background: radial-gradient(circle at top left, var(--accent-soft) 0, #f9fafb 60%);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-subtle);
  text-align: centre;
}

/* =========================================
   4. Sections (wrap main content in cards like Lab)
   ========================================= */

.section {
  padding: 3rem 0;
}

.section-heading h2 {
  font-size: 1.55rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.section-heading p {
  color: var(--text-muted);
  max-width: 32rem;
}

.section-heading-full-width p {
  max-width: 100%;
}

.section-body {
  margin-top: 1.25rem;
  color: var(--text-main);
}

/* Give these sections a raised white panel feel */

.section.about .container,
.section.offerings .container,
.section.ventures .container,
.section.how-we-work .container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  padding: 2.25rem 2rem;
}

.section.about {
  padding-top: 0.5rem;
}

/* About section cards */

.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 1.9rem;
}

.about-card {
  background-color: var(--bg-surface);
  border-radius: 1.1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.about-card-image {
  background: linear-gradient(135deg, var(--accent-soft), #f9fafb);
  border-bottom: 1px solid #e5e7eb;
  padding: 0;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-card-image .image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.about-card-body {
  padding: 1.5rem 1.6rem;
}

.about-card-body h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.about-card-body p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.05rem;
}

.about-footer p {
  margin: 0;
  color: var(--text-main);
}

/* =========================================
   5. Cards (services & ventures)
   ========================================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 1.9rem;
}

/* Ventures section uses a 3-column layout for 6 cards (2 rows of 3) */
.ventures .cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background-color: var(--bg-surface);
  border-radius: 1.1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-image-placeholder {
  background: linear-gradient(135deg, var(--accent-soft), #f9fafb);
  border-bottom: 1px solid #e5e7eb;
  padding: 1.4rem 1.1rem;
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-align: centre;
}

.card-body {
  padding: 1.35rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.card-body p {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--text-muted);
}

.card-body ul {
  margin: 0 0 0.7rem 1.1rem;
  padding: 0;
  color: var(--text-main);
  font-size: 0.9rem;
}

.card-body li + li {
  margin-top: 0.25rem;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
}

.card-link:hover {
  text-decoration: underline;
}

/* "Coming soon" cards – subtle gradient */

.card-coming-soon {
  background: linear-gradient(180deg, #f9fafb, #ffffff);
}

/* "Invitation" card for collaboration */

.card-invitation {
  border: 2px dashed var(--border-soft);
  background: linear-gradient(135deg, rgba(180, 125, 255, 0.05), rgba(0, 212, 200, 0.05));
}

/* Tags & small notes */

.tag {
  display: inline-flex;
  align-items: centre;
  padding: 0.12rem 0.55rem;
  margin-left: 0.4rem;
  font-size: 0.68rem;
  border-radius: 999px;
  background-color: var(--accent-soft);
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.small-text {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* =========================================
   6. How we work
   ========================================= */

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.how-item h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.how-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =========================================
   6. Testimonials Carousel
   ========================================= */

.section.testimonials {
  background-color: var(--bg-surface);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.testimonial-carousel {
  position: relative;
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 2rem 3rem;
}

.testimonial-track {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

.testimonial-content {
  text-align: center;
}

.testimonial-quote {
  margin-bottom: 2rem;
}

.testimonial-quote p {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--text-main);
  font-style: italic;
  margin: 0;
}

.testimonial-quote p::before {
  content: '"';
  color: var(--teal);
  font-size: 2.5rem;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 0.1em;
}

.testimonial-quote p::after {
  content: '"';
  color: var(--teal);
  font-size: 2.5rem;
  line-height: 0;
  vertical-align: -0.4em;
  margin-left: 0.1em;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-info {
  text-align: center;
}

.author-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  margin: 0 0 0.25rem 0;
}

.author-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Navigation Dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonial-dot:hover {
  border-color: var(--teal);
  transform: scale(1.1);
}

.testimonial-dot.active {
  background-color: var(--teal);
  border-color: var(--teal);
}

/* Arrow Navigation */
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background-color: white;
  color: var(--text-main);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10;
}

.testimonial-arrow:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-50%) scale(1.05);
}

.testimonial-prev {
  left: 0;
}

.testimonial-next {
  right: 0;
}

/* =========================================
   7. Final CTA (dark band, echo Lab "next step")
   ========================================= */

.final-cta {
  background: radial-gradient(circle at top, #111827 0, #020617 65%);
  color: #e5e7eb;
}

.final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
}

.final-cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.final-cta-content p {
  color: #d1d5db;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.final-cta-actions {
  margin-top: 1.5rem;
}

.final-cta .fine-print {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.final-cta .fine-print a {
  color: var(--teal);
  text-decoration: underline;
}

.final-cta-image .image-placeholder {
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(209, 213, 219, 0.3);
  background: rgba(255, 255, 255, 0.05);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(209, 213, 219, 0.5);
}

/* =========================================
   8. Footer
   ========================================= */

.site-footer {
  background: var(--bg-page);
  padding: 2rem 0;
  border-top: 1px solid var(--border-soft);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-left {
  font-weight: 500;
}

/* =========================================
   9. Venture interest button
   ========================================= */

.venture-interest-btn {
  margin-top: auto;
  width: 100%;
}

/* Service cards - less prominent link buttons */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  background-color: #ffffff;
  color: #4b5563;
  text-align: center;
  transition: all 0.2s;
}

.btn-secondary-link:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
  text-decoration: none;
}

.btn-cta-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  background-color: var(--accent);
  color: #f9fafb;
  border-color: var(--accent);
  text-align: center;
  transition: all 0.2s;
}

.btn-cta-large:hover {
  background-color: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 134, 80, 0.3);
}

/* =========================================
   10. Modal styles
   ========================================= */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  max-width: 520px;
  width: 100%;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 2rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-main);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.modal-close:hover {
  background-color: #f3f4f6;
  color: #4b5563;
}

.modal-body {
  padding: 1.75rem 2rem 2rem;
}

/* =========================================
   11. Form styles
   ========================================= */

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
  background-color: #ffffff;
  color: #1f2937;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 134, 80, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.75rem;
}

.modal-cancel {
  background-color: #f3f4f6;
  color: #4b5563;
  border-color: #d1d5db;
}

.modal-cancel:hover {
  background-color: #e5e7eb;
}

.form-message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.form-message.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* =========================================
   12. Mobile Navigation Toggle
   ========================================= */

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
}

/* =========================================
   13. Responsive Design - Media Queries
   ========================================= */

/* Tablets and smaller (1024px and below) */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-inner {
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ventures .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablets portrait and smaller (768px and below) */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* Navigation - Hide desktop menu, show mobile toggle */
  .mobile-menu-toggle {
    display: block;
  }

  .nav-right {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(249, 250, 251, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid rgba(209, 213, 219, 0.7);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }

  .nav-right.mobile-menu-open {
    max-height: 500px;
  }

  .nav-right .nav-link,
  .nav-right .nav-item {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0;
    text-align: left;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-top: 1px solid #e5e7eb;
    border-radius: 0;
    background: rgba(243, 244, 246, 0.5);
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.mobile-dropdown-open .nav-dropdown-menu {
    display: block;
  }

  /* Hero section */
  .hero {
    padding: 2rem 0 1.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  /* About cards */
  .about-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Service/Venture cards */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .ventures .cards-grid {
    grid-template-columns: 1fr;
  }

  /* Section padding */
  .section {
    padding: 2rem 0;
  }

  .section.about .container,
  .section.offerings .container,
  .section.ventures .container,
  .section.how-we-work .container {
    padding: 1.5rem 1.25rem;
  }

  .section-heading h2 {
    font-size: 1.4rem;
  }

  /* How we work grid */
  .how-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Final CTA */
  .final-cta-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }

  .final-cta-content h2 {
    font-size: 1.65rem;
  }

  .final-cta-content p {
    font-size: 1rem;
  }

  /* Modal */
  .modal.active {
    padding: 1rem;
  }

  .modal-content {
    max-width: 100%;
  }

  .modal-header,
  .modal-body {
    padding: 1.25rem 1.5rem;
  }
}

/* Mobile (640px and below) */
@media (max-width: 640px) {
  .container {
    padding: 0 0.875rem;
  }

  .nav {
    height: 64px;
  }

  .nav-right {
    top: 64px;
  }

  .logo img {
    max-width: 140px;
  }

  /* Hero */
  .hero-content h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  /* Sections */
  .section {
    padding: 1.5rem 0;
  }

  .section.about .container,
  .section.offerings .container,
  .section.ventures .container,
  .section.how-we-work .container {
    padding: 1.25rem 1rem;
  }

  .section-heading h2 {
    font-size: 1.25rem;
  }

  .section-heading p {
    font-size: 0.9rem;
  }

  /* Card spacing */
  .card-body {
    padding: 1.15rem 1.2rem 1rem;
  }

  .card-body h3 {
    font-size: 1rem;
  }

  .card-body p,
  .card-body ul {
    font-size: 0.875rem;
  }

  .about-card-body {
    padding: 1.25rem 1.35rem;
  }

  .about-card-body h3 {
    font-size: 1.05rem;
  }

  /* Buttons */
  .btn {
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
  }

  .btn-cta-large {
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
  }

  .venture-interest-btn {
    padding: 0.65rem 1.15rem;
  }

  /* Final CTA */
  .final-cta-content h2 {
    font-size: 1.4rem;
  }

  .final-cta-content p {
    font-size: 0.95rem;
  }

  .final-cta .btn {
    width: 100%;
  }

  /* Footer */
  .site-footer {
    padding: 1.5rem 0;
  }

  .footer-inner {
    font-size: 0.8rem;
  }

  /* Modal */
  .modal.active {
    padding: 0.5rem;
  }

  .modal-header h2 {
    font-size: 1.25rem;
  }

  .modal-header,
  .modal-body {
    padding: 1rem 1.25rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 0.9rem;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }

  /* Testimonials */
  .testimonial-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.75rem;
  }

  .testimonial-quote p {
    font-size: 1rem;
  }
}
