:root {
    /* Color Palette */
    --primary: #1e293b; /* Deep slate */
    --accent: #2c5282; /* Deep blue from logo */
    --text-main: #334155;
    --text-light: #64748b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Timing */
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, strong {
    color: var(--primary);
}

h2 {
    font-family: var(--font-heading);
    font-weight: 700;
}

strong {
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100vw;
    height: min(92vh, calc(100vw * 907 / 1800));
    min-height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #eef4f1 0%, #e6efe8 100%);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(30, 41, 59, 0.06) 0%,
        rgba(30, 41, 59, 0.22) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Layout Containers */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-large {
    max-width: 1200px;
}

/* About Section */
.about-section {
    position: relative;
    padding: 8rem 0 6rem;
    background-color: var(--bg-card);
    z-index: 10;
    margin-top: -3rem; /* Overlap the hero slightly */
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
}

.logo-container {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.small-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.title {
    font-size: 2.25rem;
    line-height: 1.3;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

.text-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 850px;
}

.text-content p:last-child {
    margin-bottom: 0;
}

/* Map / Screenshot Section */
.map-section {
    padding: 2rem 0 10rem;
    background-color: var(--bg-page);
}

.map-flow {
    display: flow-root;
}

.text-column {
    text-align: left;
}

.text-column p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.text-column p:last-child {
    margin-bottom: 0;
}

.map-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(30, 41, 59, 0.08);
    transition: var(--transition-smooth);
    background-color: white;
    display: inline-block;
    width: 100%;
}

.map-float {
    float: left;
    width: min(58%, 760px);
    margin: 0 2.75rem 1.5rem 0;
}

.map-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hover-zoom:hover {
    box-shadow: 0 30px 60px rgba(30, 41, 59, 0.12);
    transform: translateY(-8px);
}

.hover-zoom:hover .map-image {
    transform: scale(1.04);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Section Title */
.section-title {
    font-size: 2rem;
    margin-bottom: 3.5rem;
    letter-spacing: -0.01em;
}

/* Crops Grid */
.crops-section {
    padding: 6rem 0 6rem;
    background-color: var(--bg-card);
}

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

.crop-card {
    position: relative;
    background-color: var(--bg-page);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(30, 41, 59, 0.06);
    transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.crop-card:hover {
    box-shadow: 0 20px 50px rgba(30, 41, 59, 0.08);
    transform: translateY(-4px);
}

.crop-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: var(--accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.crop-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.crop-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crop-card ul li {
    font-size: 1rem;
    color: var(--text-light);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(30, 41, 59, 0.06);
    line-height: 1.6;
}

.crop-card ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Projects Section */
.projects-section {
    padding: 6rem 0;
    background-color: var(--bg-page);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.07);
    transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
    background-color: var(--bg-card);
}

.project-card:hover {
    box-shadow: 0 20px 50px rgba(30, 41, 59, 0.12);
    transform: translateY(-6px);
}

.project-img-wrapper {
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-img {
    transform: scale(1.04);
}

/* MahaloMade Section */
.mahalo-section {
    padding: 7rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #2c5282 100%);
    color: #fff;
}

.mahalo-layout {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.mahalo-logo-col {
    flex-shrink: 0;
}

.mahalo-logo {
    max-width: 220px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.mahalo-text-col p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 640px;
}

.mahalo-link {
    display: inline-block;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
}

.mahalo-link:hover {
    border-color: #fff;
}

/* Footer */
.site-footer {
    background-color: var(--primary);
    padding: 3rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-logo {
    max-height: 50px;
    width: auto;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        height: min(70vh, calc(100vw * 907 / 1800));
        min-height: 280px;
    }

    .about-section {
        padding: 5rem 0 4rem;
        margin-top: -1.5rem;
        border-radius: 16px 16px 0 0;
    }
    
    .title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .text-content p {
        font-size: 1.05rem;
    }
    
    .small-logo {
        max-height: 60px;
    }

    .map-section {
        padding: 2rem 0 5rem;
    }

    .map-float {
        float: none;
        width: 100%;
        margin: 0 0 2rem 0;
    }

    .crops-section {
        padding: 4rem 0;
    }

    .crops-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2.5rem;
    }

    .projects-section {
        padding: 4rem 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mahalo-section {
        padding: 5rem 0;
    }

    .mahalo-layout {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .mahalo-logo-col {
        display: flex;
        justify-content: center;
    }

    .mahalo-text-col p {
        font-size: 1.05rem;
    }

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