/**
 * GoEverywhereTogether - Homepage Styles
 */

/* ===================================
   Homepage Header
   =================================== */
/* Banner fixed at very top */
.page-home .site-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.home-header {
    position: fixed;
    top: 40px; /* Below the banner */
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* When no banner, header at top */
.page-home .site-banner:empty + .home-header,
.page-home .site-banner[hidden] + .home-header {
    top: 0;
}

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

.home-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-forest);
    text-decoration: none;
}

.home-logo .logo-icon {
    width: 40px;
    height: 40px;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.home-nav a:hover {
    color: var(--color-gold);
}

.home-nav .btn {
    margin-left: 0.5rem;
}

/* Ensure button text colors are not overridden */
.home-nav a.btn-primary,
.home-nav a.btn-primary:hover,
.home-nav a.btn.btn-primary {
    color: white !important;
}

.home-nav a.btn-secondary {
    color: var(--color-forest);
}

.home-nav a.btn-secondary:hover {
    color: white;
}

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

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-forest);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .home-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 1rem 2rem 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        display: none;
        gap: 1rem;
    }

    .home-nav.active {
        display: flex;
    }

    .home-nav .btn {
        margin: 0;
        width: 100%;
        text-align: center;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 2rem 4rem; /* Account for fixed banner + header */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-light) 50%, var(--color-wood) 100%);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 1;
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.hero-content {
    flex: 1;
    text-align: left;
    color: white;
}

@media (max-width: 900px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        max-width: 400px;
    }

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .hero-cta {
        justify-content: center;
    }
}

.hero .btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.hero .btn-outline {
    border-color: white;
    color: white;
}

.hero .btn-outline:hover {
    background: white;
    color: var(--color-forest);
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-pin {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    animation: float 6s ease-in-out infinite;
}

.floating-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.pin-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.pin-2 {
    top: 60%;
    right: 15%;
    width: 40px;
    height: 40px;
    animation-delay: 2s;
}

.pin-3 {
    bottom: 20%;
    left: 20%;
    width: 50px;
    height: 50px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(-20px); }
}

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

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: 6rem 2rem;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-forest);
}

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

/* ===================================
   How It Works
   =================================== */
.how-it-works {
    background: var(--color-cream);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.step-icon svg {
    width: 50px;
    height: 50px;
    color: var(--color-forest);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-forest);
}

.step p {
    color: var(--color-gray);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===================================
   Features
   =================================== */
.features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--color-forest);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-forest);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-gray);
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Products
   =================================== */
.products {
    background: var(--color-cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--color-forest-light), var(--color-forest));
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.product-placeholder svg {
    width: 80px;
    height: 80px;
}

.product-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.25rem;
    color: var(--color-forest);
}

.product-card p {
    padding: 0 1.5rem;
    color: var(--color-gray);
    font-size: 0.95rem;
}

.product-price {
    display: block;
    padding: 1rem 1.5rem 1.5rem;
    font-weight: 600;
    color: var(--color-gold-dark);
}

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

.products-cta p {
    margin-bottom: 1rem;
    color: var(--color-gray);
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===================================
   About
   =================================== */
.about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-forest);
}

.about-text p {
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-signature {
    margin-top: 1.5rem;
    color: var(--color-forest);
    font-style: italic;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--color-cream), var(--color-cream-dark));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-light);
}

.about-placeholder svg {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
}

.about-placeholder span {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-gray);
}

.about-photo {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .about-placeholder {
        width: 200px;
        height: 200px;
    }

    .about-placeholder svg {
        width: 100px;
        height: 100px;
    }

    .about-photo {
        max-width: 280px;
    }
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-light) 100%);
    text-align: center;
    color: white;
}

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

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

/* ===================================
   Footer
   =================================== */
.home-footer {
    background: var(--color-forest-dark);
    color: white;
    padding: 4rem 2rem 2rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links h4 {
    color: var(--color-gold-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

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

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }
}
