/* Section-by-section scrolling */
html {
    scroll-behavior: smooth;
}

:root {
    --site-navbar-height: 76px;
}

.section-container {
    height: 85vh;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    padding: 1.5rem 0;
}

.hero-section.section-container {
    padding-top: 0;
    padding-bottom: 0;
}

.main-scroll-container {
    overflow-y: hidden;
    scroll-behavior: smooth;
}

/* base.html always renders .container.mt-2 after {% block header %}; on the home page
   the body block is empty but margin-top still reserves space — hide that wrapper. */
.main-scroll-container + .container.mt-2 {
    display: none;
}

/* Mobile-specific changes */
@media (max-width: 768px) {
    .section-container {
        height: auto;
        min-height: 85vh;
        padding: 2rem 1rem;
    }
    
    /* Hero: full first screen on mobile too */
    .hero-section {
        height: 100vh;
        min-height: 100vh;
        height: 100dvh;
        min-height: 100dvh;
    }

    .hero-section .container {
        transform: translateY(-8vh);
    }
}

/* Hero Section — first “slide”: full viewport; logo + search nudged upward */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.8) 25%, rgba(64, 64, 64, 0.8) 50%, rgba(102, 102, 102, 0.8) 75%, rgba(153, 153, 153, 0.8) 100%), url("../img/ryoji-iwata-IBaVuZsJJTo-unsplash.c23808c03f5e.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 0;
    box-sizing: border-box;
    height: calc(100vh - var(--site-navbar-height));
    min-height: calc(100vh - var(--site-navbar-height));
    height: calc(100dvh - var(--site-navbar-height));
    min-height: calc(100dvh - var(--site-navbar-height));
    max-height: calc(100dvh - var(--site-navbar-height));
    overflow: hidden;
}
.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - var(--site-navbar-height));
    padding: 2rem;
    box-sizing: border-box;
}

.hero-logo {
    max-width: 500px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Search + filter drawer must stack above “Explore with Constructs” (sibling below in DOM). */
.hero-search {
    transition: transform 0.35s ease;
    position: relative;
    z-index: 5;
}

.hero-construct-methods {
    margin-top: 1.75rem;
    max-width: 520px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-construct-methods-label {
    display: block;
    font-size: 0.9rem;
    letter-spacing: normal;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.65rem;
}

.hero-construct-methods-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.hero-construct-method-btn {
    border-width: 2px;
    font-weight: 500;
    padding: 0.45rem 1.15rem;
    font-size: 0.95rem;
}

.hero-construct-method-btn:hover,
.hero-construct-method-btn:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero-section.hero-section--search-filter-open .hero-search {
    transform: translateY(-38vh);
}

@media (prefers-reduced-motion: reduce) {
    .hero-search {
        transition: none;
    }
}

/* Action Section (legacy homepage blocks; unused on current index) */
.main-content-section .action-section {
    background: transparent;
    color: #333;
    text-align: center;
    padding: 0;
    padding-bottom: 4rem;
}

.action-title {
    font-size: 2.8rem !important;
    margin-bottom: 3rem;
    font-weight: 700;
    color: #333;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.action-btn {
    background: white;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.action-btn:hover {
    background: white;
    border-color: #ffc107;
    transform: translateY(-5px);
    color: #333;
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.action-icon {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.action-btn-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
}

.action-btn-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

/* Features Section (now a div inside main-content-section) */
.main-content-section .features-section {
    background: transparent;
    padding: 0;
    color: #333;
}

.main-content-section .features-section h2 {
    font-size: 2.8rem !important;
    font-weight: 700 !important;
}

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

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #ffc107;
    text-decoration: none;
    color: inherit;
}

.feature-icon {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 0.8rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 25%, #404040 50%, #666666 75%, #999999 100%);
    color: #333;
    text-align: center;
    padding: 2rem;
}

.contact-section h2 {
    font-size: 2.8rem !important;
    font-weight: 700 !important;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffc107;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.contact-icon {
    font-size: 2rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 600;
}

.contact-details p {
    color: white;
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

.contact-details a {
    color: #ffc107;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #ffdb4d;
    text-decoration: none;
}

/* Privacy Section */
.privacy-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.privacy-text {
    text-align: center;
    margin: 0;
}

.privacy-text a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.privacy-text a:hover {
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    :root {
        --site-navbar-height: 66px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-section {
        padding: 1.5rem 1rem;
        overflow: visible;
    }
    .section-container .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 200px;
    }
    .action-title {
        font-size: 2.8rem;
    }
    .section-container {
        padding: 1rem 0.5rem;
    }
    .action-btn,
    .feature-card {
        padding: 1rem;
    }
}


