/* ===========================
   Funnel 33 Website Stylesheet
   =========================== */

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

:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #f0f0f0;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.7;
}

/* Header & Navigation */
.header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.logo-dark {
    display: none;
}

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

.nav a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav a:hover {
    opacity: 0.6;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: var(--secondary-color);
    padding: 150px 0;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: -1px;
}

.hero h1 span {
    display: block;
    font-weight: 700;
    margin-top: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

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

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio Grid */
.work-portfolio {
    padding: 60px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.portfolio-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.portfolio-image {
    overflow: hidden;
    height: 250px;
    background-color: var(--accent-color);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.link-more {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.link-more:after {
    content: ' →';
    margin-left: 0.5rem;
}

/* Capabilities Section */
.capabilities {
    padding: 60px 0;
    background-color: var(--accent-color);
}

.capabilities h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.8rem;
}

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

.capability {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.capability:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.capability h3 {
    margin: 0;
}

/* About Section */
.about-content {
    padding: 60px 0;
}

.about-content > p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-light);
}

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

.about-section h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.about-section li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.about-section li:before {
    content: '✓ ';
    margin-right: 0.5rem;
    font-weight: 600;
}

/* Clients */
.clients {
    padding: 60px 0;
    background-color: var(--accent-color);
}

.clients h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.clients-grid img {
    max-width: 100%;
    height: auto;
    opacity: 0.6;
    transition: var(--transition);
}

.clients-grid img:hover {
    opacity: 1;
}

/* Origin Story */
.origin-story {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.origin-story h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.origin-story p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-content {
    padding: 60px 0;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-info--centered {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
}

.contact-info--centered .contact-item a {
    font-size: 1.25rem;
}

/* Legal Content */
.legal-content {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
}

.legal-content ul {
    margin: 1rem 0 1rem 2rem;
    list-style: disc;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Case Study */
.case-study {
    padding: 60px 0;
}

.case-study-back {
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.case-study-back:before {
    content: '← ';
}

.case-study-hero {
    margin-bottom: 3rem;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--accent-color);
}

.case-study-hero img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.case-study-body {
    max-width: 800px;
    margin: 0 auto;
}

.case-study-body p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.case-study-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.case-study-gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 4px;
    background-color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    .hero {
        padding: 80px 0;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .nav ul {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav.active ul {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--secondary-color);
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

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

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

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

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

    .hero {
        padding: 60px 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.75rem;
    }

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

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-image {
        height: 200px;
    }
}
