/* Design Tokens */
:root {
    --color-primary: #1E272E;
    /* Onyx Black */
    --color-primary-dark: #050505;
    --color-secondary: #0FB9B1;
    /* Turquoise Green */
    --color-accent: #FF007A;
    /* Performance Pink */
    --color-white: #FFFFFF;
    --color-bg: #F5F6FA;
    --color-text-main: #2F3640;
    --color-text-muted: #718093;

    --shadow-soft: 0 4px 25px rgba(30, 39, 46, 0.1);
    --shadow-hover: 0 10px 40px rgba(255, 0, 122, 0.2);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --radius-lg: 12px;
    --radius-sm: 6px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

/* Content Links */
main p a,
article p a,
.seo-text p a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s ease;
}

main p a:hover,
article p a:hover,
.seo-text p a:hover {
    color: var(--color-primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 1rem;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-home {
    min-height: 60vh;
    padding-top: 140px;
}

.hero-home .hero-content {
    max-width: 800px;
}

/* Intro Section */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-section {
    padding: 80px 20px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--color-primary-dark);
}

.intro-image {
    height: 400px;
    background-color: var(--color-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pattern-box {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--color-primary) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.faq-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

.faq-item {
    max-width: 800px;
    margin: 0 auto 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--color-primary-dark);
}

.faq-item p,
.faq-item li {
    color: var(--color-text-muted);
}

.faq-item ol {
    padding-left: 20px;
    margin-top: 10px;
}

.faq-item li {
    margin-bottom: 8px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Products Section */
.products-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--color-text-muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-image-wrapper {
    width: 100%;
    height: 300px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.card-image-wrapper img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-text-main);
}

.product-price {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-top: auto;
    margin-bottom: 20px;
}

.card-actions {
    margin-top: auto;
}

.btn-card {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background-color: var(--color-secondary);
    color: var(--color-text-main);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-card:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: 300px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.cat-image {
    height: 70%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
}

.cat-content {
    padding: 20px;
    text-align: center;
    background: var(--color-bg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cat-content h2 {
    margin-bottom: 5px;
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    font-size: 1.25rem;
    /* Ensure consistent size */
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* Rotate spans when active */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Media Queries */
@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
        z-index: 99;
        /* Behind the button */
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        margin: 15px 0;
    }

    /* Adjust font sizes for mobile */
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-header h1 {
        font-size: 2rem;
    }
}

/* Footer */
.footer {
    background-color: var(--color-white);
    padding: 60px 5%;
    margin-top: 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-text-muted);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.footer-section h4 {
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}


.product-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    display: block;
    /* Removed truncation properties to show full text */
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}