/* --- START OF FILE styles.css --- */

:root {
    /* Base colors */
    --primary: #E5DDD3;
    --primary-dark: #796E65;
    --accent: #D4A795;
    --accent-2: #9E7B9B;
    --accent-3: #7FA086;
    --text: #4A4238;
    --background: #FAF7F2;
    --white: #FFFFFF;
    --error-red: #d32f2f; /* Error color */

    /* Pragmatism Neutral palette */
    --neutral-100: #E8E1D9;
    --neutral-200: #EBE5DE;
    --neutral-300: #EEE9E3;
    --neutral-400: #F1EDE8;
    --neutral-500: #F5F2EE;

    /* Empathy Terracotta palette */
    --terra-100: #D4A795;
    --terra-200: #DBB4A5;
    --terra-300: #E2C1B5;
    --terra-400: #E9CEC5;
    --terra-500: #F0DBD5;

    /* Professional & Result Teal Ocean palette */
    --ocean-100: #2A4C5B;
    --ocean-200: #385C6C;
    --ocean-300: #466C7D;
    --ocean-400: #547C8E;
    --ocean-500: #628C9F;

    /* Authenticity & Quality Gold palette */
    --gold-100: #D6A656;
    --gold-200: #DCB36A;
    --gold-300: #E2C07E;
    --gold-400: #E8CD92;
    --gold-500: #EEDAA6;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 2.5rem;
    --font-scale-1: 1rem;
    --font-scale-2: 1.2rem;
    --font-scale-3: 1.44rem;
    --font-scale-4: 1.728rem;
    --font-scale-5: 2.074rem;
    --font-scale-6: 2.488rem;
}

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

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background); /* Ensure base background */
}

header {
    background: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 0 1rem;
}

nav {
    max-width: 1425px;
    width: 100%;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-sizing: border-box;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo {
    flex-shrink: 0;
    min-width: 150px;
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    max-height: 60px;
}

.company-name {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 500;
    color: var(--primary-dark);
    white-space: nowrap;
    padding-left: 1rem;
    max-width: calc(100% - 100px); /* Adjust based on logo width */
}


@media (max-width: 880px) {
    .company-name {
        font-size: 1.1rem; /* Set minimum font size */
        max-width: 250px;
    }
}

@media (max-width: 475px) {
    .company-name {
        font-size: 1.1rem;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }
    /* Language switcher hides earlier on mobile */
    .language-switcher {
        display: none;
    }
}

@media (max-width: 240px) {
    .company-name {
        display: none;
    }
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 2rem);
    margin: 0 1rem;
    list-style: none;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping on wider screens */
}

.nav-links li {
    flex: 0 1 auto; /* Allow shrinking but not growing */
    white-space: nowrap;
}

.nav-links a {
    padding: 0.25rem 0.5rem; /* Added horizontal padding */
    display: block;
    white-space: nowrap;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
/* Current page indication */
.nav-links a[aria-current="page"] {
    font-weight: 600;
    color: var(--accent);
}
.nav-links a[aria-current="page"]::after {
    width: 100%; /* Show underline for current page */
}

/* Underline effect */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; /* Position below the text */
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

/* Social link specific styling */
.social-link {
    margin: 0; /* Reset margin if needed */
    /* margin-right: 10px; Space before language switcher/toggle */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-link:hover,
.social-link:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    outline: none; /* Remove default focus outline if custom style is sufficient */
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.social-link:hover .social-icon {
    opacity: 0.7;
}


/* Responsive Adjustments */
@media (min-width: 1401px) {
    nav {
        padding: 0.5rem 2rem; /* More padding on very wide screens */
    }
    .nav-links {
        gap: 2rem;
    }
}

@media (max-width: 1440px) {
    .nav-right {
        gap: 0.5rem; /* Reduce gap slightly */
    }
}

@media (max-width: 1425px) {
    nav {
        padding: 0.5rem 1rem; /* Default padding */
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-right {
        gap: 0.5rem;
    }
    .language-switcher {
        min-width: 75px;
        margin-left: 0.25rem;
    }
    .lang-btn {
        padding: 0.25rem;
        min-width: 32px;
    }
}

/* Mobile Menu Breakpoint */
@media (max-width: 1300px) {
    .nav-links {
        display: none; /* Hide links by default */
        flex-direction: column;
        position: fixed; /* Use fixed for better consistency */
        top: 80px; /* Below header */
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px); /* Adjust width */
        max-width: 400px; /* Max width for the dropdown */
        background: var(--white);
        padding: 1rem; /* Add padding inside */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        z-index: 999; /* Below header overlay */
        border-radius: 0 0 20px 20px;
        gap: 0.5rem; /* Spacing between links */
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
       width: 100%; /* Full width list items */
       text-align: center;
    }

     .nav-links a {
        font-size: 1.2rem; /* Larger font for mobile menu */
        padding: 0.75rem; /* More padding for touch targets */
        width: 100%; /* Full width links */
        justify-content: center;
    }
     .nav-links a::after {
        display: none; /* Hide underline effect in mobile dropdown */
     }

    nav {
        justify-content: space-between; /* Ensure space between logo and right side */
    }

    .logo {
        margin-right: auto; /* Pushes nav-right to the end */
    }

    .nav-right {
        margin-left: 0; /* Reset margin-left */
        gap: 0.5rem; /* Adjust gap for mobile */
    }

    .social-link,
    .language-switcher,
    .menu-toggle {
        display: flex; /* Ensure they are visible */
        align-items: center;
    }

    .social-link {
      margin: 0; /* Reset margin */
    }

    .menu-toggle {
        display: flex; /* Ensure toggle is visible */
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        font-size: 1.8rem; /* Slightly larger icon */
        background: var(--background);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        color: var(--primary-dark);
        transition: background-color 0.3s, color 0.3s;
        margin-left: 0.5rem; /* Space before toggle */
    }
     .menu-toggle:hover,
     .menu-toggle:focus {
         background-color: var(--neutral-100);
         color: var(--accent);
         outline: none;
     }

     /* Show language switcher inside mobile menu */
     .nav-links.active .language-switcher {
        display: flex;
        flex-direction: row;
        justify-content: center;
        margin: 0.5rem 0 0; /* Add some top margin */
        padding-top: 0.5rem;
        border-top: 1px solid var(--neutral-100); /* Separator */
        width: 100%;
    }
    .nav-links.active .language-switcher .lang-btn {
      padding: 0.5rem 1rem; /* Better touch target */
      font-size: 1rem;
    }
}

@media (max-width: 780px) {
    /* Move social link to fixed bottom right */
    .social-link {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 100; /* Ensure it's above content */
        background-color: var(--white); /* Ensure background */
    }
     /* Adjust right-side nav items gap */
     .nav-right {
        gap: 0.25rem;
     }
}

@media (max-width: 600px) {
     /* Hide language switcher from header */
     header nav .language-switcher {
        display: none;
     }
    /* Ensure it shows in the active mobile menu (already handled above) */
}


@media (max-width: 350px) {
    /* Further adjustments if needed */
     .nav-links.active {
         width: calc(100% - 20px); /* Reduce width slightly */
     }
}


/* Hero Section */
.hero {
    min-height: 100vh; /* Use min-height to ensure full viewport */
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--terra-300) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 1rem 2rem; /* Adjust padding top for fixed header, add bottom padding */
    box-sizing: border-box;
    margin-top: 0; /* Ensure no top margin pushes it down */
}

.hero-content {
    color: var(--white);
    max-width: 800px;
    padding: 0 1rem; /* Horizontal padding */
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, var(--font-scale-6));
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--white); /* Ensure contrast */
}

.hero-content p {
    font-size: clamp(1rem, 3vw, var(--font-scale-2));
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--neutral-300); /* Slightly lighter text for subtitle/desc */
}

/* Button Base Styles */
.cta-button {
    min-height: 48px;
    min-width: 180px; /* Adjusted min-width */
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    padding: 0.8rem 2rem; /* Adjusted padding */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    touch-action: manipulation;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.4; /* Ensure text vertical alignment */
}

/* Button Variants */
.cta-button.primary {
    background: var(--terra-100);
    color: var(--white);
}

.cta-button.secondary {
    background: var(--white);
    color: var(--terra-100);
    border: 1px solid var(--terra-100);
}

.cta-button.calendar { /* If used */
    background: var(--accent-3);
    color: var(--white);
}

.cta-button.shop { /* If used */
    background: var(--accent-2);
    color: var(--white);
}

/* Button States */
.cta-button:hover,
.cta-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    outline: none; /* Remove default focus outline */
}
.cta-button.primary:hover,
.cta-button.primary:focus {
    background-color: var(--terra-200); /* Slightly lighter on hover */
}
.cta-button.secondary:hover,
.cta-button.secondary:focus {
    background-color: var(--terra-500); /* Light terracotta background */
}


.cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.cta-button.loading {
    position: relative;
    opacity: 0.8;
    pointer-events: none;
    color: transparent !important; /* Hide text when loading */
}

.cta-button.loading::after {
    content: '';
    position: absolute; /* Center spinner */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--white); /* Spinner color */
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    /* margin-left: 10px; /* Removed margin */
}
/* Specific spinner color for secondary button */
.cta-button.secondary.loading::after {
     border: 2px solid var(--terra-100);
     border-top-color: transparent;
}


@keyframes spin {
    to {
        /* Ensure transform origin is centered for spinner */
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Services Section */
.services {
    padding: 5rem 1rem;
    background: var(--background);
    position: relative;
    overflow: hidden; /* Hides potential overflow from pseudo-elements if added */
}

/* Global section title styling */
section h2 {
    text-align: center;
    margin-bottom: 3rem; /* Increased margin */
    font-size: clamp(1.8rem, 4vw, var(--font-scale-5)); /* Responsive title */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--primary-dark);
    line-height: 1.3;
}
/* Specific section subtitle styling (if needed) */
section > p.subtitle {
    font-size: clamp(1rem, 3vw, var(--font-scale-2));
    margin-bottom: 3rem; /* Space before grid/features */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: var(--text);
}

/* --- MODIFIED .services-grid --- */
.services-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    justify-items: stretch;
    align-items: stretch;
    /* Default: 1 column (Mobile First) */
    grid-template-columns: 1fr;
}

/* Medium screens: 2 columns */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large screens: 4 columns */
@media (min-width: 1100px) { /* Adjusted breakpoint for 4 columns */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* --- END MODIFICATION .services-grid --- */


.service-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--neutral-500) 100%); /* Subtle gradient */
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    position: relative;
    display: flex; /* Use flex for vertical alignment */
    flex-direction: column;
    text-align: center;
}

.service-card .service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem auto; /* Center icon */
    object-fit: contain;
    opacity: 0.8;
}

.service-card h3 {
    font-size: clamp(1.2rem, 3vw, var(--font-scale-3));
    margin-bottom: 1rem;
    color: var(--ocean-200); /* Consistent heading color */
}

.service-card p {
    font-size: clamp(0.9rem, 2.5vw, 1rem); /* Slightly smaller base */
    line-height: 1.7; /* Improve readability */
    flex-grow: 1; /* Allow paragraph to fill space */
    color: var(--text);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 1px 5px rgba(0, 0, 0, 0.05);
}


/* Approach Section ('how' ID) */
#how { /* Use ID selector */
    padding: 5rem 1rem;
    max-width: 900px; /* Slightly wider */
    margin: 0 auto;
    text-align: center;
}

/* .subtitle is handled globally under section > p.subtitle */

/* --- MODIFIED .about-features --- */
.about-features {
    display: grid;
    gap: 1.5rem; /* Adjust gap */
    max-width: 1200px;
    margin: 0 auto;
     /* Default: 1 column (Mobile First) */
    grid-template-columns: 1fr;
}

/* Medium screens and up: 2 columns (creates 2x2 layout for 4 items) */
@media (min-width: 768px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* --- END MODIFICATION .about-features --- */

.feature {
    background: linear-gradient(135deg, var(--white) 0%, var(--background) 100%);
    padding: 2rem; /* More padding */
    border-radius: 15px; /* Slightly less rounded */
    text-align: left;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
}

.feature h3 {
    font-size: var(--font-scale-3);
    margin-bottom: 0.75rem; /* Reduced margin */
    line-height: 1.4;
}

/* Feature heading colors */
.feature:nth-child(1) h3 { color: var(--primary-dark); }
.feature:nth-child(2) h3 { color: var(--ocean-200); }
.feature:nth-child(3) h3 { color: var(--gold-100); }
.feature:nth-child(4) h3 { color: var(--terra-100); }

.feature p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
}

/* Products Section */
#products {
    padding: 5rem 1rem;
    background: var(--white); /* White background */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.product-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px; /* Minimum height for consistency */
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    background: var(--neutral-500); /* Slightly change background on hover */
}

.product-card h3 {
    color: var(--accent);
    margin-bottom: 0.5rem; /* Reduced margin */
    font-size: var(--font-scale-3);
    line-height: 1.4;
    min-height: 2.8em; /* Ensure space for 2 lines */
}

.product-card .subtitle {
    color: var(--primary-dark);
    margin-bottom: 1rem; /* Reduced margin */
    font-size: var(--font-scale-1); /* Smaller subtitle */
    line-height: 1.5;
    min-height: 3em; /* Ensure space for 2 lines */
}

.product-card ul {
    padding: 0 0 0 1rem; /* Only left padding for bullet alignment */
    margin: 0 0 1.5rem 0; /* Adjust margins */
    list-style: none; /* Remove default bullets */
    flex-grow: 1; /* Allow list to take up space */
    min-height: 80px; /* Minimum space for points */
}

.product-card ul li {
    position: relative;
    margin-bottom: 0.75rem; /* Reduced spacing */
    padding-left: 1.5rem; /* Space for custom bullet */
    line-height: 1.5;
    font-size: 0.95rem; /* Slightly smaller list items */
    /* Ellipsis handled by JS if needed, CSS alone is tricky for multi-line */
}

.product-card ul li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 0.1em; /* Align with text-top approx */
    font-size: 1.2em; /* Control bullet size */
    line-height: 1; /* Reset line-height for bullet */
}

.product-card .learn-more {
    margin-top: auto; /* Push button to bottom */
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background: var(--accent);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%; /* Full width button */
    max-width: 250px; /* Max width */
    align-self: center; /* Center button */
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-scale-1);
    font-weight: 500; /* Match cta-button weight */
}

.product-card .learn-more:hover,
.product-card .learn-more:focus {
    background-color: var(--terra-200);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    outline: none;
}

/* Product Form Overlay (Modal) */
.overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darker overlay */
    justify-content: center;
    align-items: center;
    z-index: 2000; /* High z-index */
    backdrop-filter: blur(4px); /* Blur background */
    padding: 1rem; /* Padding for smaller screens */
    overflow-y: auto; /* Allow scrolling if content overflows */
}

.overlay.product-form-overlay { /* Specific class for product form */
     /* Add specific styles if needed */
}

.form-container {
    background: linear-gradient(135deg, var(--white) 0%, var(--background) 100%);
    padding: 2.5rem; /* Increased padding */
    border-radius: 15px;
    max-width: 600px;
    width: 100%; /* Responsive width */
    position: relative;
    max-height: 90vh; /* Limit height */
    overflow-y: auto; /* Allow internal scroll */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    margin: auto; /* Center the container */
}

.form-container h3 { /* Product Name Title */
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: var(--font-scale-4); /* Larger title */
    line-height: 1.3;
    text-align: center;
}

.product-details { /* Container for details inside modal */
    background: var(--neutral-500); /* Subtle background */
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); /* Inner shadow */
}
.product-details .subtitle {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: var(--font-scale-1);
    font-weight: 500;
}
.product-details ul {
    list-style: none;
    padding: 0 0 0 1rem;
    margin: 0;
}
.product-details ul li {
     position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}
.product-details ul li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 1.2em;
    line-height: 1;
}


.product-interest-form {
    margin-top: 2rem; /* Space above form */
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Space between elements */
}

/* Style for input wrapper if needed for error messages */
.product-interest-form div {
    position: relative; /* For error message positioning */
}

.product-interest-form input[type="email"] {
    padding: 1rem 1.5rem;
    border: 2px solid var(--primary-dark); /* Use primary dark border */
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    min-height: 48px;
    width: 100%;
}

.product-interest-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 167, 149, 0.2); /* Accent focus ring */
}

.product-interest-form .cta-button {
    margin-top: 1rem; /* Space above button */
    width: 100%; /* Full width button */
    max-width: 300px;
    align-self: center;
}

.close-button {
    position: absolute;
    right: 1rem; /* Adjust position */
    top: 1rem;
    font-size: 1.8rem;
    color: var(--primary-dark);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1; /* Ensure icon centered */
}

.close-button:hover,
.close-button:focus {
    transform: rotate(90deg);
    color: var(--accent);
    background-color: var(--neutral-100); /* Subtle background on hover */
    outline: none;
}

/* Thank You Message Popup */
.thank-you-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-3); /* Greenish color for success */
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px; /* Consistent radius */
    z-index: 10001; /* Above overlay */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    max-width: 90%;
    text-align: center;
    animation: slideUpFadeIn 0.4s ease-out forwards;
    display: flex; /* Use flex for button alignment */
    align-items: center;
}

@keyframes slideUpFadeIn {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.thank-you-message button { /* Style for close button */
    background: none;
    border: none;
    color: white;
    margin-left: 15px;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
    padding: 0 5px; /* Add some padding */
    opacity: 0.8;
    transition: opacity 0.3s;
}
.thank-you-message button:hover,
.thank-you-message button:focus {
    opacity: 1;
    outline: none;
}


/* Testimonials Section */
#testimonials {
    padding: 5rem 1rem;
    background: var(--white);
    width: 100%;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive grid */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto; /* Center grid */
    padding: 0 1rem;
}

.testimonial {
    background: var(--background);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex; /* Use flex for structure */
    flex-direction: column; /* Stack elements vertically */
}

.testimonial-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial .avatar {
    flex-shrink: 0;
    width: 56px; /* Slightly larger avatar */
    height: 56px;
    background: var(--neutral-100); /* Background for icon */
    border-radius: 50%;
    padding: 0.75rem; /* Padding around icon */
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial .avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Use contain if icons are not square */
}

.testimonial-content {
    flex-grow: 1; /* Allow text to fill space */
}

.testimonial blockquote {
    font-size: 1rem; /* Standard quote size */
    margin-bottom: 1.5rem; /* Space below quote */
    color: var(--text);
    line-height: 1.7;
    font-weight: 400;
    font-style: italic; /* Italicize quote */
    border-left: 3px solid var(--accent); /* Accent border */
    padding-left: 1rem; /* Space from border */
}

.testimonial h4 { /* Name/Title */
    color: var(--ocean-200);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial p { /* Company */
    color: var(--text);
    opacity: 0.8;
    font-size: 0.9rem;
}


/* Contact Section */
#contact {
    position: relative;
    padding: 6rem 1rem 5rem; /* Adjust padding */
    background-color: var(--neutral-500); /* Use a neutral background */
    width: 100%;
    overflow: hidden; /* Prevent pseudo-element overflow */
}

/* Optional subtle background pattern/gradient */
#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent-2) 100%);
    opacity: 0.05; /* Very subtle */
    z-index: 0;
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    position: relative; /* Ensure content is above pseudo-element */
    z-index: 1;
}

.contact-content {
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem; /* Space below text, before form */
}

.contact-content h2 {
    font-size: clamp(1.8rem, 4vw, var(--font-scale-5));
    margin-bottom: 1.5rem;
}

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 0; /* Remove margin if form follows directly */
    max-width: 600px;
    line-height: 1.7;
}

/* Contact Form Styling */
.contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto; /* Center form */
    background: var(--white);
    padding: clamp(1.5rem, 5vw, 3rem); /* Responsive padding */
    border-radius: 20px; /* Consistent radius */
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between form fields */
}
/* Input wrapper for positioning errors */
.contact-form div {
    position: relative;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 1rem 1.2rem; /* Adjust padding */
    border: 2px solid var(--primary-dark); /* Consistent border */
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    min-height: 48px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 167, 149, 0.2);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical; /* Allow vertical resize */
}

/* Hidden field for botcheck */
.contact-form input.hidden {
    display: none;
}

/* Error message styling (JS adds .error-message-text) */
.error-message-text {
    color: var(--error-red); /* Use CSS variable */
    font-size: 0.85em;
    margin-top: 4px;
    display: block; /* Ensure it takes space */
    text-align: left; /* Align error text left */
}

/* Style inputs with errors */
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
    border-color: var(--error-red);
}

.action-buttons {
    display: flex;
    gap: 1rem; /* Adjust gap */
    margin-top: 1rem; /* Space above buttons */
    justify-content: center; /* Center button(s) */
    flex-wrap: wrap;
}

/* Ensure button takes appropriate width */
.action-buttons .cta-button {
    width: auto; /* Allow button to size naturally */
    flex-grow: 0; /* Don't grow */
}

/* Shop Grid (If Used) */
.shop-grid {
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto;
}


/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--neutral-300); /* Lighter text on dark background */
    padding: 2rem 1rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column; /* Stack elements on small screens */
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    font-size: 0.9rem;
}

.social-link-inverted { /* Link wrapper for footer icon */
    display: inline-block; /* Ensure it behaves like a block for centering */
    line-height: 0; /* Prevent extra space */
}

.social-link-inverted img { /* Style for inverted icon */
    filter: invert(95%) sepia(6%) saturate(143%) hue-rotate(321deg) brightness(93%) contrast(87%); /* Match --neutral-300 approx */
    width: 24px;
    height: 24px;
    transition: opacity 0.3s;
    opacity: 0.8;
    vertical-align: middle; /* Align better if needed */
}

.social-link-inverted:hover img,
.social-link-inverted:focus img {
    opacity: 1;
}
.social-link-inverted:focus {
     outline: 1px dotted var(--neutral-300); /* Simple focus style */
     outline-offset: 2px;
}


@media (min-width: 768px) {
    .footer-content {
        flex-direction: row; /* Side-by-side on larger screens */
        justify-content: space-between; /* Space out content */
    }
}


/* Team Page Specific Styles */
.team-html .team-hero { /* Specific hero for team page */
    min-height: 80vh; /* Slightly shorter hero */
}

.brand-story {
    padding: 4rem 1rem; /* Adjust padding */
    background: var(--background);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-content h2 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
    font-size: var(--font-scale-5);
}

.story-content p {
    color: var(--text);
    font-size: var(--font-scale-2);
    margin-bottom: 1.5rem;
    line-height: 1.8; /* More line height for story */
}

#culture {
    padding: 4rem 1rem;
    background: var(--white); /* White background for culture */
    position: relative;
    overflow: hidden;
}

.culture-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column */
    gap: 2rem;
    max-width: 700px; /* Constrain width */
    margin: 0 auto;
    padding: 0 1rem;
}

.culture-card.product-card { /* Re-use product card style for culture */
    height: auto;
    min-height: auto; /* Remove fixed min-height */
    background: var(--background); /* Use background color */
    text-align: left; /* Align text left */
}

.culture-card h3 { /* Values Title */
    color: var(--primary-dark); /* Match section */
    margin-bottom: 1rem;
    font-size: var(--font-scale-3);
}

.values-list {
    list-style: none;
    padding: 0 0 0 1rem; /* Only left padding */
    margin: 0 0 1.5rem 0;
}

.values-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.7; /* Increased line height */
    font-size: 1rem;
}

.values-list li::before {
    content: "🌱"; /* Use emoji or other icon */
    /* color: var(--terra-100); */
    position: absolute;
    left: -0.2em; /* Adjust position */
    top: -0.1em; /* Adjust position */
    font-size: 1rem; /* Adjust icon size */
    line-height: 1.7;
}

.values-cta { /* "Curious about how we work?" text */
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text);
    opacity: 0.9;
}


#opportunities {
    padding: 5rem 1rem;
    background: var(--background); /* Match brand story background */
}

.opportunities-grid {
    width: 100%;
    max-width: 500px; /* Narrower grid for single card */
    margin: 0 auto;
    padding: 0 1rem;
}

.opportunity-card {
    background: var(--white); /* White card */
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.opportunity-card h3 { /* Vacancies Title */
    color: var(--primary-dark);
    font-size: var(--font-scale-4);
    margin-bottom: 0.5rem;
}

.opportunity-card .subtitle { /* "Currently no open positions" */
    color: var(--text);
    font-size: var(--font-scale-2);
    margin-bottom: 1.5rem;
}

.opportunity-card ul { /* For "Have an idea?" text */
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    font-size: var(--font-scale-1); /* Adjust size */
    color: var(--text);
    line-height: 1.6;
}

.opportunity-card .cta-button {
    /* Use standard cta-button styles */
    max-width: 250px; /* Limit width */
    margin: 0 auto; /* Center */
    font-size: var(--font-scale-1); /* Adjust size */
    padding: 0.8rem 2rem;
}


/* Academy Page Specific Styles */
.academy-html .hero {
    /* Use default hero styles or add specifics */
     min-height: 60vh; /* Shorter hero for academy */
}

.academy-content {
    padding: 5rem 1rem;
    background: var(--background);
}

.academy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.academy-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 350px; /* Minimum height */
}

.academy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.academy-card h2 { /* Card Title */
    color: var(--accent);
    margin-bottom: 1rem;
    text-align: left;
    font-size: clamp(1.2rem, 3vw, var(--font-scale-3));
}

.academy-card p { /* Card Description */
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Allow description to fill space */
    line-height: 1.7;
    font-size: 1rem;
}

.academy-card ul {
    list-style: none;
    padding: 0 0 0 1rem; /* Only left padding */
    margin-top: auto; /* Push list towards bottom if needed */
}

.academy-card ul li {
    padding: 0.5rem 0 0.5rem 1.5rem; /* Adjust padding */
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
}

.academy-card ul li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 0.3em; /* Adjust vertical alignment */
    font-size: 1.2em;
    line-height: 1;
}


/* General Responsive Adjustments */
@media (max-width: 1099px) { /* Breakpoint before 4 columns services grid */
     /* Ensure services grid is 2 columns here if not already */
     .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) { /* Adjust breakpoint if needed */
    /* Adjust section padding */
    .services, #how, #products, #testimonials, #contact, .brand-story, #culture, #opportunities, .academy-content {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .hero {
        padding-top: 80px; /* Ensure space for header */
        min-height: 60vh; /* Reduce hero height on mobile */
    }

    section h2 {
        margin-bottom: 2rem; /* Reduce title margin */
    }

    /* Apply 1 column layout for grids on smaller screens */
    .services-grid, .products-grid, .testimonials-grid, .about-features, .academy-grid, .culture-grid, .opportunities-grid {
        grid-template-columns: 1fr; /* Force single column */
        gap: 1.5rem; /* Reduce grid gap */
        padding-left: 0.5rem; /* Reduce horizontal padding */
        padding-right: 0.5rem;
    }

    .service-card, .product-card, .feature, .testimonial, .academy-card, .opportunity-card, .culture-card.product-card {
         padding: 1.5rem; /* Reduce card padding */
    }

    .product-card {
        min-height: auto; /* Allow height to adjust */
    }

     .product-card h3 { min-height: auto; }
     .product-card .subtitle { min-height: auto; }


    .form-container { /* Modal form */
        padding: 1.5rem;
        max-height: 85vh; /* Adjust max height */
    }
    .contact-form { /* Page contact form */
         padding: 1.5rem;
    }

    .form-container input, .form-container textarea, .contact-form input, .contact-form textarea {
        min-height: 44px; /* Slightly smaller min-height */
        font-size: 0.95rem;
    }

    /* Adjust hero text */
    .hero-content h1 { font-size: clamp(1.8rem, 5vw, var(--font-scale-5)); }
    .hero-content p { font-size: clamp(0.9rem, 3vw, var(--font-scale-1)); }

}

@media (max-width: 520px) {
     html { font-size: 15px; } /* Adjust base font size slightly */

    .cta-button, .product-card .learn-more {
        width: 100%; /* Make buttons full width */
        max-width: none; /* Remove max width */
    }

    .action-buttons {
        flex-direction: column; /* Stack action buttons */
    }
    .action-buttons .cta-button {
        width: 100%; /* Full width stacked buttons */
    }
}

/* Utility Classes */
.sr-only { /* Screen reader only class */
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   white-space: nowrap;
   border-width: 0;
}
.hidden { /* Simple hidden class, e.g., for honeypot */
    display: none !important;
    visibility: hidden;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
    min-width: 85px;
}

.lang-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    min-width: 35px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 2px solid var(--accent);
    color: var(--text);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500; /* Match nav link weight */
}

.lang-btn:hover,
.lang-btn:focus {
    background: var(--accent);
    color: white;
    outline: none;
}

.lang-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    cursor: default;
}

/* Touch optimization (keep if useful) */
@media (hover: none) {
    .cta-button,
    .service-card,
    .product-card,
    .academy-card {
        transition: none; /* Disable transitions on non-hover devices */
    }

    .cta-button:active { /* Basic active state */
        transform: translateY(1px);
    }
}

/* --- END OF FILE styles.css --- */