/* SymbiotOS Design System */
:root {
    /* Colors */
    --color-primary: #d56a11;
    /* From SVG */
    --color-primary-dark: #b55a0e;
    --color-secondary: #333333;
    --color-text: #666666;
    --color-heading: #333333;
    --color-bg: #ffffff;
    --color-bg-alt: #f2f2f2;
    --color-footer-bg: #222222;
    --color-footer-text: #aaaaaa;

    /* Typography */
    --font-main: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-size-base: 18px;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --container-width: 1100px;
    --header-height: 80px;
}

/* Reset & Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: var(--line-height-base);
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-heading);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--color-secondary);
}

/* Header */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    gap: var(--spacing-md);
}

/* Dropdown menu items should be vertical */
.dropdown-menu {
    display: flex;
    flex-direction: column;
}

nav a {
    font-weight: 600;
    color: var(--color-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
}

nav a:hover {
    color: var(--color-primary);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--color-heading);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Dropdown Menu */
nav .dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--color-heading);
    font-size: 0.9rem;
    text-transform: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
}

/* Navigation Button (CTA) */
.btn-nav {
    background-color: var(--color-primary);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 2px solid var(--color-primary);
}

.btn-nav:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(213, 106, 17, 0.3);
}


/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
    overflow: hidden;
    color: #fff;
}

/* Dynamic background pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(213, 106, 17, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(213, 106, 17, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    color: #fff;
    font-size: 4.5rem;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

/* Sections General */
section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.section-header h2 {
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-xs);
}

.section-header h3 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-heading);
}

/* Feature Grid (Alternating) */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.feature-block.reversed {
    direction: rtl;
}

.feature-block.reversed .feature-content {
    direction: ltr;
}

.feature-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-color: #ddd;
    /* Placeholder color */
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.feature-content ul {
    margin-top: var(--spacing-md);
}

.feature-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-content li::before {
    content: '•';
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
}

/* Icon Grid (e.g. for key benefits) */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.icon-card {
    background: #fff;
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.icon-card:hover {
    transform: translateY(-5px);
}

.icon-card i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    display: block;
}

/* Etalase & Obrolin specifics */
.brand-highlight {
    color: var(--color-primary);
    font-weight: 700;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-lg);
    font-size: 0.9rem;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background-color: #2b2b2b;
    color: #fff;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.check-icon {
    color: #2ecc71;
}

.cross-icon {
    color: #e74c3c;
}

.warn-icon {
    color: #f1c40f;
}

/* Footer */
footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: var(--spacing-xl) 0;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

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

    .feature-block,
    .feature-block.reversed {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        direction: ltr;
        /* Reset direction for mobile */
    }

    .feature-img {
        order: -1;
        /* Image always on top on mobile */
    }

    /* Show burger menu on mobile/tablet */
    .burger-menu {
        display: flex;
    }

    /* Hide navigation by default on mobile */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
    }

    /* Show navigation when active */
    nav.active {
        opacity: 1;
        visibility: visible;
    }

    /* Center menu items vertically */
    nav ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 0;
    }

    nav li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    nav.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation for menu items */
    nav.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    nav.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    nav.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    nav.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    nav.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    nav a {
        font-size: 1.5rem;
        color: #fff;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    nav a:hover {
        color: var(--color-primary);
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        padding: 0;
        margin-top: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-menu a {
        font-size: 1.2rem;
        padding: 0.75rem 0;
        color: rgba(255, 255, 255, 0.8);
    }

    .dropdown-menu a:hover {
        background-color: transparent;
        color: var(--color-primary);
    }

    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

    /* Mobile CTA Button */
    .btn-nav {
        background-color: var(--color-primary);
        color: #fff !important;
        padding: 12px 30px;
        border-radius: 50px;
        display: inline-block;
        margin-top: 1rem;
    }

    .btn-nav:hover {
        transform: none;
        box-shadow: 0 4px 8px rgba(213, 106, 17, 0.5);
    }
}