/* SurfSafe - Shared Styles */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --dark: #0f172a;
    --gray: #1e293b;
    --light: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
nav {
    background: var(--dark);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

nav .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

nav .logo img {
    height: 40px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

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

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

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-copyright a {
    color: #94a3b8;
    text-decoration: none;
}

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

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social-text {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 35px;
    width: auto;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-toggle-lines {
    width: 22px;
    height: 16px;
    position: relative;
}

.menu-toggle-lines span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: transform 0.3s, opacity 0.3s, top 0.3s;
    pointer-events: none;
}

.menu-toggle-lines span:nth-child(1) { top: 0; }
.menu-toggle-lines span:nth-child(2) { top: 7px; }
.menu-toggle-lines span:nth-child(3) { top: 14px; }

.menu-toggle.active .menu-toggle-lines span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

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

.menu-toggle.active .menu-toggle-lines span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

/* Shared Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        padding: 1rem 2rem 1.5rem;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        padding: 0.6rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-social {
        flex-direction: column;
        gap: 0.75rem;
    }
}
