/* ============================================
   Farm Commercial Irrigation — Stylesheet
   Clean minimalist · Forest green + off-white
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: #1a2e1f;
    background-color: #faf9f6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* ---- Utility ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #1a5c2a;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 1000;
    font-size: 14px;
}

.skip-link:focus {
    top: 16px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
    color: #1a2e1f;
}

em {
    font-style: italic;
}

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 92, 42, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(26, 46, 31, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1a5c2a;
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.logo-light {
    color: #fff;
}

.logo-light .logo-text {
    color: #fff;
}

/* ---- Nav Toggle ---- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #1a2e1f;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ---- Main Nav ---- */
.main-nav ul {
    display: flex;
    gap: 36px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a2e1f;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #1a5c2a;
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    color: #1a5c2a;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        145deg,
        #0d3b1a 0%,
        #1a5c2a 30%,
        #237a37 55%,
        #1a5c2a 80%,
        #0d3b1a 100%
    );
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 40%, rgba(35, 122, 55, 0.4) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(13, 59, 26, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 50% 30% at 80% 20%, rgba(35, 122, 55, 0.3) 0%, transparent 60%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
    padding: 120px 24px 80px;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
}

.hero-headline {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero-headline em {
    font-style: italic;
    color: #a8d5a2;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: #ffffff;
    color: #1a5c2a;
    border-color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #f0f7f1;
    border-color: #f0f7f1;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover,
.btn-ghost:focus {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
}

.btn-primary-light {
    background: #ffffff;
    color: #1a5c2a;
    border-color: #ffffff;
}

.btn-primary-light:hover,
.btn-primary-light:focus {
    background: #f0f7f1;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---- Scroll Indicator ---- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 16px;
    background: rgba(255, 255, 255, 0.6);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* ---- Section Shared ---- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1a5c2a;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #4a6350;
    line-height: 1.8;
}

.body-text {
    font-size: 1rem;
    color: #3d5243;
    line-height: 1.85;
    margin-bottom: 16px;
}

/* ---- Services ---- */
.services {
    padding: 120px 0;
    background: #faf9f6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 32px;
    background: #ffffff;
    border: 1px solid rgba(26, 92, 42, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: rgba(26, 92, 42, 0.18);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(26, 46, 31, 0.08);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(26, 92, 42, 0.07);
    color: #1a5c2a;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.15rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    margin-bottom: 12px;
    color: #1a2e1f;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.92rem;
    color: #4a6350;
    line-height: 1.75;
}

/* ---- Split Section ---- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.split-image {
    position: relative;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-content {
    display: flex;
    align-items: center;
    background: #1a2e1f;
    padding: 80px 0;
}

.split-content .section-label {
    color: rgba(255, 255, 255, 0.5);
}

.split-content .section-title {
    color: #ffffff;
    margin-bottom: 24px;
}

.split-content .body-text {
    color: rgba(255, 255, 255, 0.7);
}

/* ---- About ---- */
.about {
    padding: 120px 0;
    background: #faf9f6;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stat {
    padding: 32px 0;
    border-bottom: 1px solid rgba(26, 92, 42, 0.1);
}

.stat:first-child {
    border-top: 1px solid rgba(26, 92, 42, 0.1);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 400;
    color: #1a5c2a;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: #4a6350;
    letter-spacing: 0.02em;
}

.stat-divider {
    height: 1px;
    background: rgba(26, 92, 42, 0.06);
}

/* ---- Why Us ---- */
.why-us {
    padding: 120px 0;
    background: #ffffff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.why-item {
    padding-left: 48px;
    position: relative;
}

.why-number {
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.85rem;
    color: #1a5c2a;
    opacity: 0.35;
    letter-spacing: 0.05em;
}

.why-item h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #1a2e1f;
}

.why-item p {
    font-size: 0.92rem;
    color: #4a6350;
    line-height: 1.8;
}

/* ---- CTA Section ---- */
.cta-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(
        145deg,
        #0d3b1a 0%,
        #1a5c2a 50%,
        #0d3b1a 100%
    );
    overflow: hidden;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(35, 122, 55, 0.3) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-content .section-label {
    color: rgba(255, 255, 255, 0.5);
}

.cta-headline {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Contact ---- */
.contact {
    padding: 120px 0;
    background: #faf9f6;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
}

.contact-item-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1a5c2a;
    padding-top: 3px;
}

.contact-item a,
.contact-item dd {
    font-size: 0.95rem;
    color: #3d5243;
    line-height: 1.6;
}

.contact-item a:hover {
    color: #1a5c2a;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.contact-item svg {
    margin-top: 4px;
    opacity: 0.5;
    flex-shrink: 0;
}

/* ---- Contact Form ---- */
.contact-form-wrapper {
    background: #ffffff;
    border: 1px solid rgba(26, 92, 42, 0.08);
    border-radius: 12px;
    padding: 48px;
}

.form-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.form-note {
    font-size: 0.85rem;
    color: #4a6350;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1a2e1f;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #1a2e1f;
    background: #faf9f6;
    border: 1px solid rgba(26, 92, 42, 0.15);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8fa896;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a5c2a;
    box-shadow: 0 0 0 3px rgba(26, 92, 42, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(26, 92, 42, 0.06);
    border: 1px solid rgba(26, 92, 42, 0.15);
    border-radius: 8px;
    color: #1a5c2a;
    font-size: 0.9rem;
}

.form-success svg {
    flex-shrink: 0;
}

/* ---- Footer ---- */
.site-footer {
    background: #1a2e1f;
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact p {
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ---- Scroll Reveal (progressive enhancement) ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: #faf9f6;
        border-left: 1px solid rgba(26, 92, 42, 0.1);
        padding: 100px 40px 40px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 100;
    }
    
    .main-nav.open {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 24px;
    }
    
    .main-nav a {
        font-size: 16px;
    }
    
    .hero-content {
        padding: 100px 24px 60px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .split-section {
        grid-template-columns: 1fr;
    }
    
    .split-image {
        min-height: 300px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .services,
    .about,
    .why-us,
    .contact {
        padding: 80px 0;
    }
    
    .service-card {
        padding: 28px 24px;
    }
    
    .stat-number {
        font-size: 2.4rem;
    }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
