/*
 * Orchard Industries
 * Built by Wyze Digital — https://wyze.digital
 */

/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
    font-family: 'Abadi MT Std';
    src: url('fonts/Abadi_MT_Std_Extra_Light.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abadi MT Std';
    src: url('fonts/Abadi_MT_Std_Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-green-light: #7A9A7E;
    --color-green-dark: #223E2E;
    --color-green-mid: #455D49;
    --color-charcoal: #262B2E;
    --color-cream: #E0D1CA;
    --color-sage: #C2D0C3;

    --font-primary: 'Abadi MT Std', 'Gill Sans', 'Segoe UI', sans-serif;
    --nav-height: 80px;
    --content-max: 1440px;
    --section-padding: clamp(80px, 10vw, 140px);

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-weight: 200;
    color: var(--color-black);
    background: var(--color-white);
    line-height: 1.7;
    font-size: clamp(14px, 1.8vw, 20px);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

strong, b {
    font-weight: 300;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
    font-weight: 200;
    line-height: 1.2;
}

.section-heading {
    font-size: clamp(19px, 2.4vw, 27px);
    font-weight: 300;
    color: var(--color-green-light);
    letter-spacing: 0.02em;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 20px;
    row-gap: 6px;
    flex-wrap: wrap;
}

.section-heading::after {
    content: '';
    display: block;
    height: 1px;
    width: 100%;
    background: var(--color-sage);
    order: 3;
    flex-basis: 100%;
}

.leaf-icon {
    width: 44px;
    height: auto;
    flex-shrink: 0;
}

.section-heading--underline {
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-sage);
}

.section-heading--underline::after {
    display: none;
}

.section-heading--underline .heading-icon {
    order: 0;
    margin-left: auto;
}

.heading-icon {
    width: 40px;
    height: auto;
    flex-shrink: 0;
    order: 2;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 60px);
}

section {
    padding: var(--section-padding) 0;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 3.5s var(--ease-out-expo), transform 3.5s var(--ease-out-expo);
}

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

.reveal-left,
.reveal-right {
    position: relative;
    overflow: hidden;
}

.reveal-left::after,
.reveal-right::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-white);
    z-index: 1;
    clip-path: inset(0);
    transition: clip-path 3.5s var(--ease-out-expo);
}

.reveal-left.visible::after {
    clip-path: inset(0 100% 0 0);
}

.reveal-right.visible::after {
    clip-path: inset(0 0 0 100%);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    border-bottom: 0.33px solid var(--color-black);
    height: var(--nav-height);
}

.header-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 60px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo img {
    height: 56px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-links li a {
    font-size: clamp(14px, 1.8vw, 20px);
    font-weight: 200;
    color: var(--color-black);
    padding: 8px 22px;
    position: relative;
}

.nav-underline {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 2px;
    height: 0.67px;
    background: var(--color-black);
    clip-path: inset(0 100% 0 0);
}

.nav-links li a:active {
    color: var(--color-green-light);
}

.nav-links li a:active .nav-underline {
    background: var(--color-green-light);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 1.8vw, 20px);
    font-weight: 200;
    letter-spacing: 0.04em;
    color: var(--color-white);
    background: var(--color-green-light);
    padding: 10px 28px;
    border-radius: 0;
    margin-left: 16px;
    border: 1px solid var(--color-green-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-cta:hover {
    background: transparent;
    color: var(--color-green-mid);
    border-color: var(--color-green-mid);
}

.nav-cta:active {
    background: var(--color-green-dark);
    color: var(--color-white);
    border-color: var(--color-green-dark);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    gap: 6px;
    margin-left: 12px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-black);
    transition: all 0.3s var(--ease-out-expo);
    border-radius: 1px;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 32px clamp(24px, 4vw, 60px) 40px;
    border-bottom: 0.33px solid var(--color-black);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
    z-index: 999;
}

.mobile-nav.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav a {
    display: block;
    font-size: 24px;
    font-weight: 200;
    padding: 18px 0;
    color: var(--color-black);
    border-bottom: 1px solid rgba(194, 208, 195, 0.3);
    transition: color 0.2s ease;
}

.mobile-nav a:hover {
    color: var(--color-green-mid);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    max-width: var(--content-max);
    margin: calc(var(--nav-height) + 2px) auto 0;
    overflow: hidden;
    padding: 0;
}

.hero-bg {
    position: relative;
    z-index: 0;
    line-height: 0;
}

.hero-bg img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 92%,
        rgba(255, 255, 255, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 60%;
    padding: 0 clamp(24px, 4vw, 60px) 0 0;
}

.hero-content-inner {
    background: rgba(122, 154, 126, 0.7);
    padding: clamp(32px, 4vw, 48px);
    border-radius: 0 2px 2px 0;
}

.hero h1 {
    font-size: clamp(27px, 3.4vw, 44px);
    font-weight: 300;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.hero p {
    font-size: clamp(14px, 1.8vw, 20px);
    font-weight: 200;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.65;
}

/* ==========================================================================
   What We Look For
   ========================================================================== */

.what-we-look-for {
    background: var(--color-white);
    padding-bottom: calc(var(--section-padding) / 2);
}

.what-we-look-for .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: stretch;
}

.what-we-look-for .section-text,
.about-the-group .section-text {
    padding-top: 0;
    padding-bottom: 0;
}

.what-we-look-for .section-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.what-we-look-for .section-text p:last-child {
    margin-bottom: 0;
}

.section-image {
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.section-image:hover img {
    transform: scale(1.02);
}

.section-image.tall {
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.section-image.tall img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-image.wide {
    aspect-ratio: 3 / 4;
}

/* ==========================================================================
   How We Work
   ========================================================================== */

.how-we-work {
    background: var(--color-white);
    padding-top: calc(var(--section-padding) / 2);
    padding-bottom: calc(var(--section-padding) / 2);
}

.how-we-work-layout {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
}

.how-we-work .intro-text {
    line-height: 1.8;
    position: sticky;
    top: calc(var(--nav-height) + 40px);
}

.principles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.principle-card {
    padding: clamp(24px, 3vw, 32px);
    border-radius: 3px;
    cursor: default;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.principle-card:nth-child(1) { background: rgba(122, 154, 126, 0.75); }
.principle-card:nth-child(2) { background: rgba(122, 154, 126, 0.80); }
.principle-card:nth-child(3) { background: rgba(122, 154, 126, 0.85); }
.principle-card:nth-child(4) { background: rgba(122, 154, 126, 0.90); }
.principle-card:nth-child(5) { background: rgba(122, 154, 126, 0.95); }

.principle-card h3 {
    font-size: clamp(19px, 2.4vw, 27px);
    font-weight: 200;
    color: var(--color-white);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
    transition: color 0.4s ease;
}

.principle-card .principle-body {
    font-size: clamp(14px, 1.8vw, 20px);
    color: var(--color-black);
    line-height: 1.65;
    transition: color 0.4s ease;
}

.principle-card:hover {
    background: var(--color-white) !important;
    box-shadow: 0 2px 24px rgba(34, 62, 46, 0.08);
    outline: 2px solid var(--color-green-light);
}

.principle-card:hover h3 {
    color: var(--color-green-light);
}

.principle-card:hover .principle-body {
    color: var(--color-charcoal);
}

/* ==========================================================================
   About the Group
   ========================================================================== */

.about-the-group {
    background: var(--color-white);
    padding-top: calc(var(--section-padding) / 2);
    padding-bottom: calc(var(--section-padding) / 2);
}

.about-the-group .two-col {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: stretch;
}

.about-the-group .section-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-the-group .section-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
    background: var(--color-white);
    padding-top: calc(var(--section-padding) / 2);
}

.contact-section .section-heading,
.contact-section .section-heading--underline {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0 auto 48px;
    max-width: 720px;
}

.contact-details strong {
    font-weight: 300;
    display: block;
    margin-bottom: 4px;
    color: var(--color-charcoal);
}

.contact-details a {
    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: var(--color-green-mid);
}

/* Contact Form */
.orchard-form {
    max-width: 720px;
    margin: 0 auto;
}

.contact-form-grid {
    margin-bottom: 16px;
}

.contact-form-grid p {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 0 16px;
}

.orchard-form input[type="text"],
.orchard-form input[type="email"],
.orchard-form input[type="tel"],
.orchard-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-primary);
    font-weight: 200;
    font-size: 15px;
    color: var(--color-charcoal);
    background: rgba(194, 208, 195, 0.15);
    border: 1px solid var(--color-sage);
    border-radius: 2px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.orchard-form input::placeholder,
.orchard-form textarea::placeholder {
    color: rgba(38, 43, 46, 0.75);
    font-weight: 200;
}

.orchard-form input:focus,
.orchard-form textarea:focus {
    border-color: var(--color-green-light);
    background: rgba(194, 208, 195, 0.08);
}

.orchard-form textarea {
    min-height: 160px;
    resize: vertical;
    margin-bottom: 16px;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 200;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--color-white);
    background: var(--color-green-light);
    border: 1px solid var(--color-green-light);
    padding: 12px 40px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: transparent;
    color: var(--color-green-mid);
    border-color: var(--color-green-mid);
}

.form-submit:active {
    background: var(--color-green-dark);
    color: var(--color-white);
    border-color: var(--color-green-dark);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    font-family: var(--font-primary);
    font-weight: 200;
    font-size: 14px;
    border-radius: 2px;
}

.form-status--success {
    color: var(--color-green-mid);
}

.form-status--error {
    color: #c0392b;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-charcoal);
    padding: 40px 0;
    text-align: center;
}

.site-footer p {
    font-weight: 200;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer a:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin: 0 auto 16px;
    opacity: 0.4;
}

/* ==========================================================================
   Responsive — Tablet
   ========================================================================== */

@media (max-width: 960px) {
    .what-we-look-for .two-col,
    .about-the-group .two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .how-we-work-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .how-we-work .intro-text {
        position: static;
    }

    .section-image.tall {
        position: relative;
    }

    .section-image.tall img {
        position: static;
        height: auto;
    }

    .about-the-group .section-image {
        order: 1;
    }
}

/* ==========================================================================
   Responsive — Mobile
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-cta {
        font-size: 12px;
        padding: 8px 20px;
    }

    .site-logo img {
        height: 36px;
    }

    .hero {
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .hero-bg {
        position: relative;
        z-index: 2;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: 100%;
        padding: 0;
        z-index: 2;
    }

    .hero-content-inner {
        background: rgb(122, 154, 126);
        padding: 28px;
        border-radius: 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }

    .what-we-look-for,
    .how-we-work,
    .about-the-group,
    .contact-section {
        position: relative;
        z-index: 3;
    }

    /* On mobile: faster, snappier animations */
    .reveal {
        transition-duration: 1.5s !important;
    }

    .how-we-work .intro-text {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .section-heading {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .contact-form-grid p {
        grid-template-columns: 1fr;
    }

    .principle-card {
        padding: 20px;
    }

    .principle-card .principle-body {
        color: var(--color-black);
    }

    .form-footer {
        flex-direction: column;
    }

    .form-submit {
        width: 100%;
    }
}

/* ==========================================================================
   Utility
   ========================================================================== */

/* ==========================================================================
   Page Template
   ========================================================================== */

.page-content {
    padding-top: 60px;
    padding-bottom: 80px;
    max-width: 780px;
}

.page-title {
    font-size: clamp(19px, 2.4vw, 27px);
    font-weight: 200;
    color: var(--color-green-light);
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-sage);
}

.entry-content h2 {
    font-size: clamp(17px, 2.1vw, 22px);
    font-weight: 200;
    color: var(--color-green-mid);
    margin: 36px 0 16px;
}

.entry-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.entry-content ul {
    margin: 0 0 16px 20px;
    line-height: 1.8;
}

.entry-content li {
    margin-bottom: 6px;
}

.entry-content a {
    color: var(--color-green-mid);
    border-bottom: 1px solid rgba(69, 93, 73, 0.3);
    transition: border-color 0.2s ease;
}

.entry-content a:hover {
    border-color: var(--color-green-mid);
}

/* ==========================================================================
   Utility
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
