@layer reset, base, components, utilities;

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  --primary-red: #EA2B1F;
  --black: #000000;
  --white: #FFFFFF;
  --light-gray: #F0F0F0;
  --dark-gray: #333333;
  
  /* Spacing scale using logical properties */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  /* Responsive typography with clamp() */
  --font-xs: clamp(0.6875rem, 0.65rem + 0.1875vw, 0.75rem);
  --font-sm: clamp(0.8125rem, 0.775rem + 0.1875vw, 0.875rem);
  --font-base: clamp(0.9375rem, 0.9rem + 0.1875vw, 1rem);
  --font-md: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --font-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --font-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --font-xxl: clamp(1.75rem, 1.4rem + 1.75vw, 2.5rem);
  
  /* Border radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.25rem;
  --radius-lg: 0.5rem;
  
  /* Shadows with modern syntax */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.1);
  --shadow-md: 0 2px 4px 0 rgb(0 0 0 / 0.15);
  --shadow-lg: 0 4px 8px 0 rgb(0 0 0 / 0.2);
  --shadow-xl: 0 8px 16px 0 rgb(0 0 0 / 0.25);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Container queries */
  --container-sm: 20rem;
  --container-md: 48rem;
  --container-lg: 75rem;
  
  /* Focus ring */
  --focus-ring: 0 0 0 3px rgb(234 43 31 / 0.3);
  --focus-ring-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   RESET LAYER
   ============================================ */
@layer reset {
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
}

/* ============================================
   BASE LAYER
   ============================================ */
@layer base {
  html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  body {
    font-family: 'Inter', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
    aspect-ratio: attr(width / attr(height));
  }

  picture {
    display: block;
  }

  a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  a:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
    border-radius: var(--radius-sm);
  }

  button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
  }

  button:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
    border-radius: var(--radius-sm);
  }

  /* Improved focus states for form elements */
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-ring-offset);
  }
}

/* ============================================
   COMPONENTS LAYER
   ============================================ */
@layer components {
  .container {
    width: 90%;
    max-width: var(--container-lg);
    margin-inline: auto;
    padding-inline: var(--space-sm);
    container-type: inline-size;
    container-name: main-container;
  }

  .grid {
    display: grid;
    gap: var(--space-md);
  }

  .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  }

  /* Header */
  .header-wrapper {
    background: var(--white);
    border-block-end: 1px solid var(--dark-gray);
    position: relative;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgb(255 255 255 / 0.95);
  }

  .header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: var(--space-sm);
    min-block-size: 3.5rem;
  }

  .logo-text span{
    font-family: 'Space Grotesk', monospace;
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    transition: transform var(--transition-fast);
  }
   .logo-text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    font-size: 1.5rem;
    gap: 7px;
    font-weight: 700;
    color: var(--primary-color);
}
 .logo-text>img{
    width: 60px;
    border: solid red 2px;
  
}


  .nav-toggle {
    display: none;
    width: 2rem;
    height: 2rem;
    flex-direction: column;
    justify-content: space-around;
    z-index: 101;
    position: relative;
  }

  .nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--black);
    transition: all var(--transition-base);
    transform-origin: center;
    will-change: transform, opacity;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.375rem, 0.375rem);
  }

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

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.375rem, -0.375rem);
  }

  .main-nav {
    display: flex;
    align-items: center;
  }

  .main-nav a {
    font-size: var(--font-sm);
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-block-end: 2px solid transparent;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
  }

  .main-nav a:hover {
    border-block-end-color: var(--primary-red);
  }

  .main-nav a.active {
    border-block-end-color: var(--primary-red);
  }

  /* Hero Section */
  .hero-section {
    background: var(--light-gray);
    padding-block: var(--space-xl);
    text-align: center;
    border-block-end: 3px solid var(--black);
    position: relative;
    overflow: hidden;
  }

  .hero-title {
    font-family: 'Space Grotesk', monospace;
    font-size: var(--font-xxl);
    font-weight: 700;
    line-height: 1.1;
    margin-block-end: var(--space-sm);
    letter-spacing: -0.03em;
  }

  .hero-subtitle {
    font-size: var(--font-md);
    color: var(--dark-gray);
    margin-block-end: var(--space-lg);
    max-width: 40rem;
    margin-inline: auto;
  }

  /* Sections */
  .section-standard {
    padding-block: var(--space-lg);
  }

  .section-title {
    font-family: 'Space Grotesk', monospace;
    font-size: var(--font-xl);
    font-weight: 700;
    margin-block-end: var(--space-md);
    text-transform: uppercase;
    letter-spacing: -0.02em;
  }

  .section-intro {
    font-size: var(--font-md);
    color: var(--dark-gray);
    margin-block-end: var(--space-lg);
    max-width: 50rem;
  }

  /* Cards */
  .card-box {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background: var(--white);
    border: 2px solid var(--black);
    padding: var(--space-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    will-change: transform;
    position: relative;
  }

  .card-box:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-lg);
  }

  .card-box:focus-within {
    box-shadow: var(--shadow-md);
  }

  .card-title {
    font-family: 'Space Grotesk', monospace;
    font-size: var(--font-lg);
    font-weight: 700;
    margin-block-end: var(--space-xs);
    text-transform: uppercase;
  }

  .card-text {
    font-size: var(--font-sm);
    color: var(--dark-gray);
    line-height: 1.6;
  }

  /* Buttons */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-red);
    color: var(--white);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--primary-red);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
  }

  .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
    z-index: -1;
  }

  .btn-primary:hover {
    color: var(--white);
    border-color: var(--black);
  }

  .btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
  }

  .btn-primary:active {
    transform: scale(0.98);
  }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--black);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--black);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
  }

  .btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    z-index: -1;
  }

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

  .btn-secondary:hover::before {
    transform: scaleX(1);
    transform-origin: right;
  }

  .btn-secondary:active {
    transform: scale(0.98);
  }

  /* Product Cards */
  .product-card {
    background: var(--light-gray);
    border: 2px solid var(--black);
    padding: var(--space-md);
    text-align: center;
    transition: all var(--transition-base);
    will-change: transform, border-color;
  }

  .product-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-0.25rem);
  }

  .product-name {
    font-family: 'Space Grotesk', monospace;
    font-size: var(--font-lg);
    font-weight: 700;
    margin-block-end: var(--space-xs);
    text-transform: uppercase;
  }

  .product-desc {
    font-size: var(--font-sm);
    color: var(--dark-gray);
    margin-block-end: var(--space-sm);
    line-height: 1.6;
  }

  .product-price {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--primary-red);
    margin-block-end: var(--space-md);
  }

  /* Forms */
  .form-group {
    margin-block-end: var(--space-md);
  }

  .form-label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 600;
    margin-block-end: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .form-input,
  .form-textarea {
    width: 100%;
    padding: var(--space-sm);
    font-family: inherit;
    font-size: var(--font-sm);
    border: 2px solid var(--dark-gray);
    background: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    border-radius: var(--radius-sm);
  }

  .form-input:focus,
  .form-textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: var(--shadow-sm);
  }

  .form-textarea {
    resize: vertical;
    min-block-size: 8rem;
  }

  .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-block-end: var(--space-md);
  }

  .checkbox-group input[type="checkbox"] {
    margin-block-start: 0.25rem;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    accent-color: var(--primary-red);
  }

  .checkbox-label {
    font-size: var(--font-xs);
    line-height: 1.4;
    cursor: pointer;
  }

  /* Contact */
  .contact-info {
    background: var(--light-gray);
    border: 2px solid var(--black);
    padding: var(--space-lg);
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-block-end: var(--space-md);
    font-size: var(--font-sm);
  }

  .contact-item i {
    font-size: var(--font-lg);
    color: var(--primary-red);
    min-inline-size: 1.5rem;
  }

  .map-container {
    width: 100%;
    block-size: 20rem;
    border: 2px solid var(--black);
    margin-block-start: var(--space-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .map-container iframe {
    width: 100%;
    block-size: 100%;
    border: none;
  }

  /* Footer */
  .footer-main {
    background: var(--black);
    color: var(--white);
    padding-block: var(--space-md);
    font-size: var(--font-xs);
    border-block-start: 3px solid var(--primary-red);
  }

  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: var(--font-xs);
  }

  .footer-links a {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-block-end: 1px solid transparent;
    transition: border-color var(--transition-fast);
  }

  .footer-links a:hover {
    border-block-end-color: var(--primary-red);
  }

  /* Privacy Popup */
  .privacy-popup {
    position: fixed;
    inset-block-end: 0;
    inset-inline: 0;
    background: var(--black);
    color: var(--white);
    padding: var(--space-md);
    border-block-start: 3px solid var(--primary-red);
    transform: translateY(100%);
    transition: transform var(--transition-base);
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgb(0 0 0 / 0.95);
  }

  .privacy-popup.visible {
    transform: translateY(0);
  }

  .privacy-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    max-width: var(--container-lg);
    margin-inline: auto;
  }

  .privacy-text {
    flex: 1;
    min-inline-size: 15rem;
    font-size: var(--font-sm);
    line-height: 1.5;
  }

  .privacy-actions {
    display: flex;
    gap: var(--space-sm);
  }

  .btn-accept {
    background: var(--primary-red);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
  }

  .btn-accept:hover {
    background: var(--white);
    color: var(--black);
    transform: scale(1.05);
  }

  .btn-accept:active {
    transform: scale(0.98);
  }

  /* Error Page */
  .error-page {
    min-block-size: 70vh;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-sm);
  }

  .error-code {
    font-family: 'Space Grotesk', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1;
    margin-block-end: var(--space-sm);
  }

  .error-title {
    font-family: 'Space Grotesk', monospace;
    font-size: var(--font-xl);
    font-weight: 700;
    margin-block-end: var(--space-sm);
    text-transform: uppercase;
  }

  .error-text {
    font-size: var(--font-md);
    color: var(--dark-gray);
    margin-block-end: var(--space-lg);
    max-width: 30rem;
  }

  /* Thank You Page */
  .thankyou-page {
    min-block-size: 70vh;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-sm);
  }

  .thankyou-icon {
    font-size: clamp(3rem, 6vw, 4rem);
    color: var(--primary-red);
    margin-block-end: var(--space-md);
  }

  .thankyou-title {
    font-family: 'Space Grotesk', monospace;
    font-size: var(--font-xl);
    font-weight: 700;
    margin-block-end: var(--space-sm);
    text-transform: uppercase;
  }

  .thankyou-text {
    font-size: var(--font-md);
    color: var(--dark-gray);
    margin-block-end: var(--space-lg);
    max-width: 35rem;
  }

  /* Image Split Section */
  .section-image-split {
    padding-block: var(--space-xl);
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
  }

  .image-split-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
  }

  .image-split-content {
    padding: var(--space-lg);
  }

  .image-split-visual {
    position: relative;
    border: 3px solid var(--black);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
  }

  .split-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
  }

  .image-split-visual:hover .split-image {
    transform: scale(1.05);
  }

  .feature-list {
    margin-block: var(--space-lg);
  }

  .feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-block-end: var(--space-md);
    font-size: var(--font-sm);
  }

  .feature-item i {
    color: var(--primary-red);
    font-size: var(--font-lg);
    flex-shrink: 0;
  }

  /* Testimonial Showcase Section */
  .section-testimonial-showcase {
    padding-block: var(--space-xl);
    background: var(--black);
    color: var(--white);
    position: relative;
    overflow: hidden;
  }

  .testimonial-showcase-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
    align-items: center;
  }

  .testimonial-image-container {
    position: relative;
    border: 3px solid var(--primary-red);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
  }

  .testimonial-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 30rem;
  }

  .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
  }

  .testimonial-content {
    padding: var(--space-lg);
  }

  .testimonial-content .section-title {
    color: var(--white);
  }

  .testimonial-content .section-intro {
    color: var(--light-gray);
  }

  .testimonial-grid {
    display: grid;
    gap: var(--space-md);
    margin-block: var(--space-lg);
  }

  .testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-red);
    padding: var(--space-md);
    backdrop-filter: blur(10px);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
  }

  .testimonial-card:hover {
    transform: translateX(0.5rem);
    box-shadow: var(--shadow-lg);
  }

  .testimonial-quote {
    color: var(--primary-red);
    font-size: var(--font-xl);
    margin-block-end: var(--space-sm);
  }

  .testimonial-text {
    font-size: var(--font-sm);
    line-height: 1.7;
    margin-block-end: var(--space-md);
    color: var(--light-gray);
  }

  .testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .testimonial-author strong {
    color: var(--white);
    font-size: var(--font-sm);
  }

  .testimonial-author span {
    color: var(--light-gray);
    font-size: var(--font-xs);
  }

  /* Contact Visual Section */
  .section-contact-visual {
    padding-block: var(--space-xl);
    background: var(--white);
  }

  .contact-visual-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
  }

  .contact-visual-image {
    position: relative;
    border: 3px solid var(--black);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }

  .contact-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 25rem;
    transition: transform var(--transition-slow);
  }

  .contact-visual-image:hover .contact-hero-image {
    transform: scale(1.1);
  }

  .contact-visual-badge {
    position: absolute;
    inset-block-end: var(--space-md);
    inset-inline-start: var(--space-md);
    background: var(--primary-red);
    color: var(--white);
    padding: var(--space-md);
    border: 2px solid var(--white);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
  }

  .contact-visual-badge i {
    font-size: var(--font-xl);
  }

  .contact-visual-badge strong {
    display: block;
    font-size: var(--font-xl);
    font-family: 'Space Grotesk', monospace;
  }

  .contact-visual-badge span {
    display: block;
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .contact-visual-info {
    padding: var(--space-lg);
  }

  .contact-highlights {
    display: grid;
    gap: var(--space-md);
    margin-block-start: var(--space-lg);
  }

  .highlight-box {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 2px solid var(--light-gray);
    transition: all var(--transition-base);
  }

  .highlight-box:hover {
    border-color: var(--primary-red);
    transform: translateX(0.5rem);
    box-shadow: var(--shadow-md);
  }

  .highlight-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: var(--font-lg);
  }

  .highlight-content {
    flex: 1;
  }

  /* Eco Visual Section */
  .section-eco-visual {
    padding-block: var(--space-xl);
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
  }

  .eco-visual-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xl);
    align-items: start;
  }

  .eco-image-wrapper {
    position: relative;
    border: 3px solid var(--black);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
  }

  .eco-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 35rem;
  }

  .eco-stats-overlay {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    justify-content: space-around;
    padding: var(--space-lg);
    gap: var(--space-md);
  }

  .eco-stat-item {
    text-align: center;
    color: var(--white);
  }

  .eco-stat-number {
    font-family: 'Space Grotesk', monospace;
    font-size: var(--font-xxl);
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1;
    margin-block-end: var(--space-xs);
  }

  .eco-stat-label {
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }


  .eco-practices-list {
    display: grid;
    gap: var(--space-md);
    margin-block-start: var(--space-lg);
  }

  .eco-practice-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--white);
    border: 2px solid var(--black);
    transition: all var(--transition-base);
  }

  .eco-practice-item:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
  }

  .eco-practice-icon {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    background: var(--light-gray);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--black);
    font-size: var(--font-xl);
  }

  .eco-practice-details {
    flex: 1;
  }

  /* Course Timeline Section */
  .section-course-timeline {
    padding-block: var(--space-xl);
    background: var(--white);
  }

  .timeline-container {
    position: relative;
    margin-block-start: var(--space-xl);
    padding-inline-start: var(--space-lg);
  }

  .timeline-container::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-block-end: 0;
    inset-inline-start: 1.5rem;
    width: 3px;
    background: var(--primary-red);
  }

  .timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-lg);
    margin-block-end: var(--space-xl);
  }

  .timeline-marker {
    position: relative;
    z-index: 1;
  }

  .timeline-number {
    width: 3rem;
    height: 3rem;
    background: var(--primary-red);
    color: var(--white);
    border: 3px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', monospace;
    font-size: var(--font-lg);
    font-weight: 700;
    box-shadow: var(--shadow-md);
  }

  .timeline-content {
    background: var(--light-gray);
    border: 2px solid var(--black);
    padding: var(--space-md);
    transition: all var(--transition-base);
  }

  .timeline-content:hover {
    transform: translateX(0.5rem);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
  }

  .timeline-features {
    list-style: none;
    margin-block-start: var(--space-sm);
    padding: 0;
  }

  .timeline-features li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-sm);
    margin-block-end: var(--space-xs);
    color: var(--dark-gray);
  }

  .timeline-features li i {
    color: var(--primary-red);
    flex-shrink: 0;
  }

  /* Course Comparison Section */
  .section-course-comparison {
    padding-block: var(--space-xl);
  }

  .comparison-table-wrapper {
    overflow-x: auto;
    margin-block-start: var(--space-lg);
  }

  .comparison-table {
    width: 100%;
    min-width: 40rem;
    border-collapse: separate;
    border-spacing: 0;
    border: 3px solid var(--black);
    background: var(--white);
  }

  .comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: var(--black);
    color: var(--white);
  }

  .comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-block-start: 2px solid var(--black);
  }

  .comparison-row:nth-child(even) {
    background: var(--light-gray);
  }

  .comparison-cell {
    padding: var(--space-md);
    border-inline-end: 2px solid var(--black);
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
  }

  .comparison-cell:last-child {
    border-inline-end: none;
  }

  .comparison-header .comparison-cell {
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    justify-content: center;
  }

  .comparison-row .comparison-cell:first-child {
    font-weight: 600;
    background: var(--white);
  }

  .comparison-row .comparison-cell:not(:first-child) {
    justify-content: center;
    text-align: center;
  }

  .comparison-row .comparison-cell i {
    color: var(--primary-red);
    font-size: var(--font-lg);
  }
}

/* ============================================
   UTILITIES LAYER
   ============================================ */
@layer utilities {
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
   @media (max-width: 890px){
        .container{
          width: 100%;
        }

        .logo-text span{
          font-size: 20px;
        }
   }
@media (max-width: 48rem) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: fixed;
    inset-block-start: 0;
    inset-inline-end: 0;
    inline-size: 70%;
    max-inline-size: 18rem;
    block-size: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem var(--space-lg) var(--space-lg);
    border-inline-start: 2px solid var(--black);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    gap: var(--space-sm);
    backdrop-filter: blur(10px);
    background-color: rgb(255 255 255 / 0.98);
  }

  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }

  .main-nav a {
    inline-size: 100%;
    padding: var(--space-sm) 0;
    border-block-end: 2px solid transparent;
    border-inline-start: 3px solid transparent;
  }

  .main-nav a:hover,
  .main-nav a.active {
    border-block-end-color: transparent;
  }
}

/* Container Queries */
@container main-container (max-width: 48rem) {
  .hero-title {
    font-size: var(--font-xl);
  }

  .section-title {
    font-size: var(--font-lg);
  }

  .image-split-wrapper,
  .testimonial-showcase-wrapper,
  .contact-visual-wrapper,
  .eco-visual-container {
    grid-template-columns: 1fr;
  }

  .testimonial-image,
  .contact-hero-image,
  .eco-hero-image {
    min-height: 20rem;
  }

  .eco-stats-overlay {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .timeline-container {
    padding-inline-start: var(--space-md);
  }

  .timeline-container::before {
    inset-inline-start: 1rem;
  }

  .timeline-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: var(--font-md);
  }
}

@media (max-width: 30rem) {
  .testimonial-content{
    display: flex;
    flex-direction: column;
  }
  .contact-form{
    display: flex;
    flex-direction: column;
  }
  .logo-text span{
    display: none;
  }
  :root {
    --space-lg: 2rem;
    --space-xl: 3rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .privacy-content {
    flex-direction: column;
  }

  .image-split-content,
  .testimonial-content,
  .contact-visual-info,
  .eco-content-section {
    padding: var(--space-md);
  }

  .contact-visual-badge {
    position: static;
    margin-block-start: var(--space-md);
    width: 100%;
    justify-content: center;
  }

  .eco-stats-overlay {
    position: static;
    background: var(--black);
  }

  .comparison-table-wrapper {
    margin-inline: calc(var(--space-sm) * -1);
  }

  .comparison-table {
    min-width: 35rem;
  }

  .highlight-box,
  .eco-practice-item {
    flex-direction: column;
    text-align: center;
  }

  .highlight-icon,
  .eco-practice-icon {
    margin-inline: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 2px 4px 0 rgb(0 0 0 / 0.4);
    --shadow-lg: 0 4px 8px 0 rgb(0 0 0 / 0.5);
  }

  .card-box,
  .product-card {
    border-width: 3px;
  }
}

/* Print styles */
@media print {
  .header-wrapper,
  .footer-main,
  .privacy-popup,
  .nav-toggle {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }
}
