/* Unwire - Website Styles */

:root {
    --primary: #4A7C59;
    --primary-dark: #2D5E2F;
    --primary-light: #7CB342;
    --bg: #FFFFFF;
    --bg-soft: #F8FBF8;
    --text: #1A3D1C;
    --text-secondary: #4A5568;
    --text-tertiary: #718096;
    --border: #E2E8F0;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    display: block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s;
}

.lang-btn:hover {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

.current-lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.current-lang {
    font-size: 0.875rem;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    min-width: 160px;
    z-index: 1000;
}

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

.lang-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    transition: background 0.2s;
}

.lang-dropdown button:hover {
    background: var(--bg-soft);
}

.lang-dropdown button.active {
    background: var(--primary-light);
    color: white;
    font-weight: 600;
}

.lang-dropdown button:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-dropdown button:last-child {
    border-radius: 0 0 8px 8px;
}

.lang-flag {
    font-size: 1.2rem;
    line-height: 1;
}

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

html {
    margin: 0;
    padding: 0;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    margin: 0;
    padding: 0;
    width: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links > li {
    display: flex;
    align-items: center;
}

.language-switcher-container {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-links a.nav-active {
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.app-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-badge {
    height: 50px;
    transition: transform 0.2s;
}

.store-badge:hover {
    transform: scale(1.05);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.app-icon {
    width: 280px;
    height: 280px;
    filter: drop-shadow(0 10px 30px rgba(74, 124, 89, 0.2));
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Features */
.features {
    background: var(--bg-soft);
}

/* Feature sections with image on left */
.feature-section-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    background: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.feature-image-left {
    position: sticky;
    top: 2rem;
}

.feature-image-left img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Vertical stack of compact tiles */
.feature-tiles-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-tile-compact {
    display: flex;
    gap: 1rem;
    background: var(--bg-soft);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-tile-compact:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.1);
}

.feature-icon-small {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.feature-tile-content {
    flex: 1;
}

.feature-tile-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.feature-tile-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

/* Legacy grid styles (kept for compatibility) */
.feature-tiles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-tile-main {
    grid-column: span 2;
}

.feature-tile {
    background: var(--bg-soft);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(74, 124, 89, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-tile h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-tile p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Legacy feature grid styles (if needed elsewhere) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(74, 124, 89, 0.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.values-list {
    list-style: none;
}

.values-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-soft);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.values-list strong {
    color: var(--primary);
}

/* CTA */
.cta {
    background: var(--primary-dark);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta .app-badges {
    justify-content: center;
}

/* Footer */
footer {
    background: var(--text);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-version {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* Legal Pages */
.legal-page {
    padding: 60px 0;
    min-height: 70vh;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.legal-page .updated {
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-page h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-page p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.legal-page ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-page li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 73px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 73px);
        background: var(--bg);
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s;
    }

    .language-switcher-container {
        margin-left: 0;
        width: 100%;
        padding: 0 2rem;
        margin-top: 1rem;
    }

    .language-switcher {
        width: 100%;
    }

    .lang-btn {
        width: 100%;
        justify-content: center;
    }

    .lang-dropdown {
        left: 2rem;
        right: 2rem;
        width: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border);
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .app-icon {
        width: 200px;
        height: 200px;
    }

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

    .feature-section-with-image {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-image-left {
        position: relative;
        top: 0;
    }

    .feature-tiles-vertical {
        gap: 1rem;
    }

    .feature-tile-compact {
        flex-direction: column;
        gap: 0.75rem;
    }

    .feature-icon-small {
        font-size: 1.8rem;
    }

    .feature-tiles-grid {
        grid-template-columns: 1fr;
    }

    .feature-tile-main {
        grid-column: span 1;
    }

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

    .app-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .store-badge {
        height: 40px;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

/* Cookie Consent Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2D5E2F 0%, #4A7C59 100%);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.cookie-message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
}

.cookie-link {
    color: #A8E6CF;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-link:hover {
    color: white;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-accept {
    background: white;
    color: #2D5E2F;
}

.cookie-accept:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-decline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Mobile Responsive for Cookie Banner */
@media (max-width: 768px) {
    #cookie-banner {
        padding: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }

    .cookie-title {
        font-size: 1rem;
    }

    .cookie-message {
        font-size: 0.9rem;
    }
}

/* Print - hide banner */
@media print {
    #cookie-banner {
        display: none !important;
    }
}
