/* ============================================
   Harvest Brokerage - Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-dark: #1E5631;
    --green-mid: #2d7a4a;
    --green-light: #3a9d5e;
    --cream: #f2f0eb;
    --cream-dark: #e8e5de;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --text-primary: #333333;
    --text-secondary: #555555;
    --accent: #2ea3f2;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 30px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Open Sans', Helvetica, Arial, sans-serif;
    --font-ui: 'Inter', Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--green-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--green-mid);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--green-dark);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-green {
    color: var(--green-dark);
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    padding: 16px 36px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--green-dark);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(30, 86, 49, 0.3);
}

.btn-primary:hover {
    background: var(--green-mid);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 86, 49, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--green-dark);
    border: 2px solid var(--green-dark);
}

.btn-outline:hover {
    background: var(--green-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 12px 28px;
    font-size: 13px;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 44px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    padding: 8px 18px;
    border-radius: 100px;
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-dark);
    background: rgba(30, 86, 49, 0.06);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(5px) translateX(5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px) translateX(5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.05);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        170deg,
        rgba(10, 32, 18, 0.92) 0%,
        rgba(20, 55, 35, 0.82) 35%,
        rgba(30, 86, 49, 0.7) 60%,
        rgba(10, 32, 18, 0.88) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 160px 24px 120px;
    max-width: 960px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 36px;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.08);
}

.hero h1 {
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 48px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--white);
    color: var(--green-dark);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    background: var(--cream);
    color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* ============================================
   Mission Section
   ============================================ */
.mission {
    padding: 120px 0 100px;
    background: var(--white);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.mission-text h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 28px;
}

.mission-text blockquote {
    border-left: 4px solid var(--green-dark);
    padding: 20px 28px;
    margin-bottom: 36px;
    background: var(--gray-50);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.mission-text blockquote p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.mission-text h3 {
    font-size: 22px;
    margin-bottom: 18px;
    color: var(--green-dark);
}

.philosophy-list {
    list-style: none;
    margin-bottom: 36px;
}

.philosophy-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.philosophy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    background: var(--green-dark);
    border-radius: 50%;
}

.philosophy-list li strong {
    color: var(--text-primary);
}

.mission-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
}

/* ============================================
   Value Props Section
   ============================================ */
.value-props {
    padding: 100px 0;
    background: var(--cream);
}

.value-props-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.value-header h2 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    position: sticky;
    top: 120px;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    margin-bottom: 24px;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: rgba(30, 86, 49, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.value-icon svg {
    width: 24px;
    height: 24px;
    color: var(--green-dark);
}

.value-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--green-dark);
}

.value-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================
   Projects Section
   ============================================ */
.projects {
    padding: 120px 0 100px;
    background: var(--white);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 18px;
}

.section-header p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.project-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.project-image {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 32px 36px 36px;
}

.project-label {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: 6px;
}

.project-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 14px;
}

.project-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ============================================
   Quote Section
   ============================================ */
.quote-section {
    padding: 100px 0;
    background: var(--cream);
}

.quote-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.quote-content h2 {
    font-size: clamp(24px, 3.2vw, 40px);
    font-weight: 400;
    line-height: 1.45;
    color: var(--gray-700);
    font-style: italic;
}

.quote-content h2 .text-green {
    font-style: normal;
}

.quote-author {
    margin-top: 28px;
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--text-secondary);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
    padding: 100px 0 120px;
    background: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: start;
}

.faq-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.15;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: rgba(30, 86, 49, 0.2);
}

.faq-item.active {
    border-color: var(--green-dark);
    box-shadow: 0 2px 12px rgba(30, 86, 49, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    transition: all var(--transition);
}

.faq-question:hover {
    color: var(--green-dark);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--gray-400);
    transition: transform var(--transition);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--green-dark);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 22px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ============================================
   Contact Form Section
   ============================================ */
.contact-form-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.contact-form {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--green-dark);
    box-shadow: 0 0 0 3px rgba(30, 86, 49, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-status {
    margin-top: 16px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    min-height: 24px;
}

.form-status.success {
    color: var(--green-dark);
}

.form-status.error {
    color: #dc2626;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    padding: 80px 0 0;
    background: var(--green-dark);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
    width: 140px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-contact h4 {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.footer-contact p,
.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.footer-contact a:hover {
    color: var(--white);
}

.contact-block {
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.social-links a:hover {
    color: var(--white);
}

.site-footer .btn-primary {
    margin-top: 8px;
    background: var(--white);
    color: var(--green-dark);
}

.site-footer .btn-primary:hover {
    background: var(--cream);
    color: var(--green-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    padding: 28px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Animations
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .mission-grid {
        gap: 48px;
    }

    .value-props-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .value-header {
        position: static;
    }

    .value-header h2 {
        position: static;
    }

    .value-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .value-card {
        margin-bottom: 0;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 68px;
    }

    .logo img {
        height: 36px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        padding: 16px 24px;
    }

    .nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .nav-link {
        display: block;
        padding: 12px 16px;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-content {
        padding: 120px 16px 80px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 8px 18px;
        margin-bottom: 28px;
    }

    .mission {
        padding: 80px 0;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mission-text h2 {
        font-size: 34px;
    }

    .mission-text blockquote {
        padding: 16px 20px;
    }

    .mission-image {
        order: -1;
    }

    .value-props {
        padding: 80px 0;
    }

    .value-col {
        grid-template-columns: 1fr;
    }

    .projects {
        padding: 80px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .quote-section {
        padding: 80px 0;
    }

    .faq {
        padding: 80px 0;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .faq-header h2 {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 13px;
    }

    .project-content {
        padding: 24px;
    }

    .project-title {
        font-size: 22px;
    }
}
