
    :root {
      --primary: #ff6b00;
      --primary-dark: #e55a00;
      --secondary: #1a73e8;
      --secondary-dark: #1557b0;
      --accent: #00c853;
      --text: #2c3e50;
      --text-light: #7f8c8d;
      --bg: #ffffff;
      --bg-light: #f8fafc;
      --bg-card: #ffffff;
      --border: #e1e8ed;
      --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
      --radius: 12px;
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    

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

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
      color: var(--text);
      line-height: 1.6;
      background: var(--bg);
    }

    .container {
      width: 90%;
      max-width: 1200px;
      margin: 0 auto;
    }
/* — Entire Header Fixed at Top — */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1),
              0 2px 4px -1px rgba(0,0,0,0.06);
}



/* — Push Page Content Below Header — */
body {
  /* adjust this value if you change your top-bar or header padding */
  padding-top: calc( (0.4rem * 2) + (1rem * 2) );
}

/* — Top Bar — */
.top-bar {
  background: var(--secondary);
  color: white;
  font-size: 0.9rem;
}
.top-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0;
}
.top-bar-label {
  font-weight: 700;
  margin-right: 0.5rem;
}
.top-bar-content {
  /* ensure the wrapper centers its children */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.top-bar-label {
  /* make span act like a block so text-align applies */
  display: block;
  width: 100%;
  text-align: center;
  margin: 0; /* remove any default margins */
}

/* — Main Header & Layout — */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
}

/* — Ordering: logo | burger | nav — */
.header-content > .branding   { order: 0; }
.header-content > .nav-toggle { order: 1; }
.header-content > .site-nav   { order: 2; flex: 1 1 auto; display: flex; align-items: center; }

/* — Branding — */
.branding {
  flex-shrink: 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-primary   { color: var(--primary); }
.brand-secondary { color: var(--secondary); }

.site-footer {
  background: var(--text);
  color: white;
  padding: 3rem 0 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary);
}

/* if you’d like to carry over your existing .footer-* styling, just prefix with .site-footer */
.site-footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer .footer-section h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}
/* …and so on for any other .footer-section or .footer-bottom rules */

/* — Desktop Nav Links — */
.site-nav ul {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover {
  color: var(--primary);
}

/* — Contact Info (always visible) — */
.nav-mobile-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}
.nav-mobile-contact a {
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-mobile-contact a:hover {
  color: var(--primary);
}

/* — Hamburger (hidden on desktop) — */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.hamburger {
  position: relative;
  width: 24px; height: 2px;
  background: var(--text);
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px; height: 2px;
  background: var(--text);
}
.hamburger::before { top: -8px; }
.hamburger::after  { top:  8px; }

/* — Mobile Behavior ≤1300px — */
@media (max-width: 1300px) {
  /* — 0) Force header row — */
  .header-content {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* — 1) Pull nav out of the flex row — */
  .site-nav {
    flex: 0 0 auto !important;
  }

  /* — 2) Show hamburger — */
  .nav-toggle {
    display: flex;
  }

  /* — 3) The rest of your slide-down panel rules… */
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    box-shadow: var(--shadow);
    z-index: 999;
  }
  .site-nav.open {
    max-height: 600px;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav li + li a {
    border-top: 1px solid var(--border);
  }
  .site-nav a {
    display: block;
    padding: 1rem;
  }
  .nav-mobile-contact {
    flex-direction: column;
    margin: 1rem 0;
    width: 100%;
    gap: 0;
  }
  .nav-mobile-contact a {
    display: block;
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--border);
  }
  .nav-mobile-contact a:first-child {
    border-top: none;
  }
}



/* hide hamburger above mobile */
@media (min-width: 1301px) {
  .nav-toggle {
    display: none !important;
  }
}


    .branding {
      font-size: 2.2rem;
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .brand-primary {
      color: var(--primary);
    }

    .brand-secondary {
      color: var(--secondary);
    }

    .header-contact {
      display: flex;
      align-items: center;
      gap: 2rem;
      font-size: 0.9rem;
      font-weight: 500;
    }

    .contact-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--text-light);
    }

    .contact-icon {
      width: 20px;
      height: 20px;
      fill: var(--secondary);
    }

  /* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  text-align: center;
  color: white;

  /* just the image as the base */
  background: url("/assets/img/castor-wheels-featured-.png") center/cover no-repeat;
}

/* 1) Orange‐gradient overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 106, 0, 0.925) 0%,    /* var(--primary) @ 70% opacity */
    rgb(243, 98, 2) 100%     /* var(--primary-dark) @ 70% opacity */
  );
  z-index: 1;
}

/* 2) SVG‐dot pattern on top of the orange tint */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  z-index: 2;
}

/* bring your content above both overlays */
.hero-content {
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 800px;
  margin: 0 auto;
}


    .stat-item {
      text-align: center;
    }

    .stat-number {
      font-size: 2.5rem;
      font-weight: 800;
      display: block;
      color: var(--accent);
    }

    .stat-label {
      font-size: 0.9rem;
      opacity: 0.8;
      font-weight: 500;
    }

    /* Info Bar */
    .info-bar {
      background: var(--bg-light);
      padding: 2rem 0;
      border-bottom: 1px solid var(--border);
    }

    .info-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
    }

    .info-item {
      text-align: center;
      padding: 1.5rem;
      background: var(--bg-card);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      transition: var(--transition);
    }

    .info-item:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
    }

    .info-icon {
      width: 48px;
      height: 48px;
      margin: 0 auto 1rem;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .info-icon svg {
      width: 24px;
      height: 24px;
      fill: white;
    }

    .info-item h3 {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: var(--text);
    }

    .info-item p {
      color: var(--text-light);
      font-size: 0.9rem;
      line-height: 1.5;
    }

    /* Products Section */
    .products {
      padding: 4rem 0;
    }

    .section-header {
      text-align: center;
      margin-bottom: 3rem;
    }

    .section-title {
      font-size: 2.5rem;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 1rem;
      letter-spacing: -0.02em;
    }

    .section-subtitle {
      font-size: 1.1rem;
      color: var(--text-light);
      max-width: 600px;
      margin: 0 auto;
    }

.products-grid {
  display: grid;
  /* leave three 280px columns in place, even if empty */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

    .product-card {
      background: var(--bg-card);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
      transition: var(--transition);
      display: flex;
      flex-direction: column;
    }

    .product-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-lg);
    }

    .product-image {
      position: relative;
      overflow: hidden;
      aspect-ratio: 1;
      background: var(--bg-light);
      cursor: pointer;
    }

    .product-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: var(--transition);
    }

    .product-card:hover .product-image img {
      transform: scale(1.05);
    }

    .zoom-icon {
      position: absolute;
      top: 1rem;
      left: 1rem;
      background: rgba(0, 0, 0, 0.7);
      color: white;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: var(--transition);
      pointer-events: none;
    }

    .product-image:hover .zoom-icon {
      opacity: 1;
    }

    /* Image Modal */
    .image-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: var(--transition);
      padding: 2rem;
      box-sizing: border-box;
    }

    .image-modal.active {
      opacity: 1;
      visibility: visible;
    }

    .modal-content {
      position: relative;
      max-width: 90vw;
      max-height: 90vh;
      background: white;
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-lg);
    }

    .modal-image {
      width: 100%;
      height: auto;
      display: block;
      max-height: 80vh;
      object-fit: contain;
    }

    .modal-info {
      padding: 1.5rem;
      background: var(--bg-card);
    }

    .modal-title {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 0.5rem;
    }

    .modal-specs {
      color: var(--text-light);
      font-size: 0.95rem;
      margin-bottom: 1rem;
    }

    .modal-price {
      font-size: 1.8rem;
      font-weight: 800;
      color: var(--primary);
    }

    .close-modal {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: rgba(0, 0, 0, 0.7);
      color: white;
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      transition: var(--transition);
      z-index: 1001;
    }

    .close-modal:hover {
      background: rgba(0, 0, 0, 0.9);
      transform: scale(1.1);
    }

    .product-badge {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: var(--accent);
      color: white;
      padding: 0.25rem 0.75rem;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 600;
    }

    .product-info {
      padding: 1.5rem;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .product-title {
      font-size: 1.2rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: var(--text);
      line-height: 1.4;
    }

    .product-specs {
      font-size: 0.9rem;
      color: var(--text-light);
      margin-bottom: 1rem;
    }

    .product-price {
      font-size: 1.5rem;
      font-weight: 800;
      color: var(--primary);
      margin-bottom: 1.5rem;
    }

    .product-buttons {
      margin-top: auto;
      display: flex;
      gap: 0.75rem;
    }

    .btn {
      padding: 0.75rem 1.5rem;
      border: none;
      border-radius: var(--radius);
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }

    .btn-primary {
      background: var(--primary);
      color: white;
      flex: 1;
    }

    .btn-primary:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
    }

    .btn-secondary {
      background: transparent;
      color: var(--secondary);
      border: 2px solid var(--secondary);
      flex: 1;
    }

    .btn-secondary:hover {
      background: var(--secondary);
      color: white;
    }

    /* Contact CTA */
    .contact-cta {
      background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
      color: white;
      padding: 4rem 0;
      position: relative;
      overflow: hidden;
    }

    .contact-cta::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    }

    .cta-content {
      position: relative;
      z-index: 1;
      text-align: center;
    }

    .cta-title {
      font-size: 2.5rem;
      font-weight: 800;
      margin-bottom: 1rem;
      letter-spacing: -0.02em;
    }

    .cta-subtitle {
      font-size: 1.1rem;
      opacity: 0.9;
      margin-bottom: 2rem;
      max-width: 500px;
      margin-left: auto;
      margin-right: auto;
    }

    .contact-form {
      max-width: 600px;
      margin: 0 auto;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      border-radius: var(--radius);
      padding: 2rem;
      box-shadow: var(--shadow-lg);
    }

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

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }

    .form-input {
      width: 100%;
      padding: 1rem;
      border: 2px solid rgba(255, 255, 255, 0.2);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.1);
      color: white;
      font-size: 1rem;
      transition: var(--transition);
    }

    .form-input::placeholder {
      color: rgba(255, 255, 255, 0.7);
    }

    .form-input:focus {
      outline: none;
      border-color: var(--accent);
      background: rgba(255, 255, 255, 0.2);
    }

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

    .btn-cta {
      background: var(--accent);
      color: white;
      padding: 1rem 2rem;
      font-size: 1.1rem;
      font-weight: 700;
      width: 100%;
    }

    .btn-cta:hover {
      background: #00a040;
      transform: translateY(-2px);
    }

    /* Footer */
    .footer {
      background: var(--text);
      color: white;
      padding: 3rem 0 1rem;
    }

    .footer-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      margin-bottom: 2rem;
    }

    .footer-section h4 {
      font-size: 1.2rem;
      font-weight: 700;
      margin-bottom: 1rem;
      color: var(--primary);
    }

    .footer-section p,
    .footer-section a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      line-height: 1.6;
    }

    .footer-section a:hover {
      color: var(--primary);
    }

    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding-top: 1rem;
      text-align: center;
      color: rgba(255, 255, 255, 0.6);
      font-size: 0.9rem;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .header-content {
        flex-direction: column;
        text-align: center;
      }

      .header-contact {
        flex-direction: column;
        gap: 1rem;
      }

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

      .hero p {
        font-size: 1.1rem;
      }

      .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
      }

      .section-title {
        font-size: 2rem;
      }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

      .product-info {
        padding: 1rem;
      }

      .product-title {
        font-size: 1rem;
        line-height: 1.3;
      }

      .product-specs {
        font-size: 0.8rem;
      }

      .product-price {
        font-size: 1.2rem;
      }

      .product-buttons {
        flex-direction: column;
        gap: 0.5rem;
      }

      .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
      }

      .form-row {
        grid-template-columns: 1fr;
      }

      .cta-title {
        font-size: 2rem;
      }

      .info-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 480px) {
      .branding {
        font-size: 1.8rem;
      }

      .hero h1 {
        font-size: 1.8rem;
      }

      .hero-stats {
        grid-template-columns: 1fr;
      }

      .stat-number {
        font-size: 2rem;
      }
    }


/* — Filter Bar Container — */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    background-color: #e3e3e3;
    padding: 1rem;
    border-radius: 20px;
}

/* — Filter Label — */
.filter-bar label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
}
/* hide the search’s “Search Products” label */
.filter-bar label[for="productSearch"] {
  display: none;
}

/* — Shared Form Control Sizing — */
.filter-bar select,
.filter-bar input[type="search"],
.filter-bar button#searchBtn {
  height: 3rem;                  /* unifies heights */
  padding: 0 1rem;
  font-size: 1rem;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* — Category Select — */
.filter-bar select {
  appearance: none;
  background:
    var(--bg-card)
    url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8L0 0h12L6 8z' fill='%237f8c8d'/%3E%3C/svg%3E")
    no-repeat right 1rem center;
  background-size: 12px 8px;
  color: var(--text);
  flex: 0 0 auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-bar select:hover,
.filter-bar select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.2);
  outline: none;
}

/* — Search Input — */
.filter-bar input[type="search"] {
  background: var(--bg-card);
  color: var(--text);
  flex: 1 1 200px;             /* grows to fill available space */
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-bar input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.2);
  outline: none;
}

/* — Search Button — */
.filter-bar button#searchBtn {
  flex: 0 0 auto;              /* only as wide as its content + padding */
  border: none;
  background: var(--secondary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.filter-bar button#searchBtn:hover {
  background: var(--secondary-dark);
}

/* — Mobile: stack under 600px — */
@media (max-width: 600px) {
  .filter-bar {
    flex-direction: column;
    gap: 0.5rem;
  }
  .filter-bar select,
  .filter-bar input[type="search"],
  .filter-bar button#searchBtn {
    width: 100%;
    flex: none;
  }
  .filter-bar label {
    width: 100%;
    text-align: center;
  }
}

.whatsapp-btn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #00c200;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
  font-weight: 600;
  z-index: 1100;
  overflow: hidden;
}

/* the white icon inherits currentColor */
.whatsapp-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* shine effect */
.whatsapp-btn::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: rgba(255,255,255,0.3);
  transform: skewX(-25deg);
  filter: blur(4px);
  animation: shine 2.5s infinite;
}

@keyframes shine {
  0%   { left: -75%; }
  50%  { left:  75%; }
  100% { left: -75%; }
}


  /* — Castor Features & SVG‐overlay effect — */
  .castor-features .castor-row {
    position: relative;
    overflow: hidden;
  }
  .castor-features .castor-row::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
    z-index: 0;
  }

  /* — Row & content styling — */
  .castor-features .castor-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    z-index: 1; /* ensure text sits above overlay */
  }
  .castor-features .castor-row .text,
  .castor-features .castor-row .image {
    flex: 1;
    min-width: 280px;
  }
  .castor-features .castor-row .text {
    padding: 3rem;
  }
  .castor-features .castor-row.dark {
    background: var(--primary);
    color: #fff;
  }
  .castor-features .castor-row.light {
    background: var(--secondary);
    color: #fff;
    flex-direction: row-reverse;
  }
  .castor-features .castor-row .text h2 {
    margin-bottom: 1rem;
  }
  .castor-features .castor-row .text p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  .castor-features .castor-row .text .btn {
    background: #fff;
    color: inherit;
    border: none;
  }
  .castor-features .castor-row.dark .text .btn {
    color: var(--primary);
  }
  .castor-features .castor-row.light .text .btn {
    color: var(--secondary);
  }
  .castor-features .castor-row .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  @media (max-width: 768px) {
    .castor-features .castor-row {
      flex-direction: column !important;
    }
    .castor-features .castor-row .text {
      padding: 2rem;
    }
  }

    .detail-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}
.detail-modal.active {
  opacity: 1;
  pointer-events: all;
}
.detail-modal-content {
  background: #fff;
  border-radius: var(--radius);
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
}
.detail-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
}
@media (max-width: 600px) {
  .detail-modal-content {
    padding: 1rem;
    width: 95%;
    height: 95%;
  }
}
  