/* 
 * Sisseton-Wahpeton Oyate Farm Portfolio
 * Prairie Modernism Design System
 * 
 * Design Philosophy:
 * - Horizontal emphasis reflecting endless plains and agricultural rows
 * - Earth-integrated design with authentic materials
 * - Honest photography and natural textures
 * - Functional beauty in every element
 */

/* ========================================
   CSS VARIABLES - Prairie Color Palette
   ======================================== */
:root {
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Source Sans 3', sans-serif;
    --font-accent: 'Bebas Neue', sans-serif;
    
    /* Colors - Earth tones from Dakota prairie */
    --color-primary: #5a4a3a;        /* Deep earth brown (soil after rain) */
    --color-primary-light: #f9f6f3;  /* Light cream */
    --color-secondary: #d4a574;      /* Golden wheat (harvest time) */
    --color-accent: #7a9b7e;         /* Sage green (native grasses) */
    --color-slate: #6b7c8f;          /* Stormy slate blue (prairie sky) */
    
    --color-background: #faf8f5;
    --color-foreground: #2a2520;
    --color-muted: #e8e4df;
    --color-muted-text: #6b6560;
    --color-border: #d4cfc8;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border radius */
    --radius: 0.25rem;
    
    /* Transitions - Slow, deliberate (matching agricultural rhythm) */
    --transition-prairie: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-foreground);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background-color: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 207, 200, 0.4);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-foreground);
}

.logo-subtitle {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-muted-text);
}

.logo img {
    height: 3rem;
    width: auto;
}

.logo:hover {
    opacity: 0.7;
    transition: opacity var(--transition-prairie);
}

.nav {
    display: none;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    font-family: var(--font-accent);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: var(--color-foreground);
    transition: color var(--transition-prairie);
}

.nav-link:hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--color-foreground);
    cursor: pointer;
    padding: var(--spacing-xs);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, 
        rgba(250, 248, 245, 0.95) 0%, 
        rgba(250, 248, 245, 0.7) 50%, 
        transparent 100%);
}

.hero .container {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
}

.hero-label {
    font-family: var(--font-accent);
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-foreground);
    margin-bottom: var(--spacing-sm);
}

.hero-title img {
    height: 200px;
    width: auto;
    margin: 0 auto;
    transform: translateX(30px);
    opacity: 0.65;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
}

.hero-divider {
    height: 4px;
    width: 8rem;
    background-color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(42, 37, 32, 0.8);
    max-width: 42rem;
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.horizon-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(90, 74, 58, 0.3), 
        transparent);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-prairie);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-primary-light);
}

.btn-primary:hover {
    background-color: rgba(90, 74, 58, 0.9);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-primary-light);
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
}

.btn-accent:hover {
    background-color: rgba(122, 155, 126, 0.9);
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section-label {
    font-family: var(--font-accent);
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-foreground);
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

/* ========================================
   HERITAGE SECTION
   ======================================== */
.heritage-section {
    padding: var(--spacing-3xl) 0;
    background-color: rgba(212, 165, 116, 0.1);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .two-column {
        grid-template-columns: 1fr 1fr;
    }
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.text-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(42, 37, 32, 0.8);
}

.image-column {
    height: 500px;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.image-column:hover .feature-image {
    transform: scale(1.1);
}

.two-column.reverse .content-column {
    order: 2;
}

.two-column.reverse .image-column {
    order: 1;
}

@media (min-width: 1024px) {
    .two-column.reverse .content-column {
        order: 1;
    }
    
    .two-column.reverse .image-column {
        order: 2;
    }
}

/* ========================================
   OPERATIONS SECTION
   ======================================== */
.operations-section {
    padding: var(--spacing-3xl) 0;
}

.operations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .operations-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.operation-card {
    overflow: hidden;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color var(--transition-prairie);
}

.operation-card:hover {
    border-color: var(--color-primary);
}

.operation-card:nth-child(2):hover {
    border-color: var(--color-accent);
}

.card-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.operation-card:hover .card-image img {
    transform: scale(1.2);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    background: linear-gradient(to top, 
        var(--color-background) 0%, 
        rgba(250, 248, 245, 0.5) 50%, 
        transparent 100%);
}

.card-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: var(--spacing-xs);
}

.card-divider {
    height: 4px;
    width: 4rem;
    background-color: var(--color-primary);
}

.card-divider.accent {
    background-color: var(--color-accent);
}

.card-content {
    padding: var(--spacing-lg);
}

.card-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(42, 37, 32, 0.8);
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-primary);
    color: var(--color-primary-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-number {
    font-family: var(--font-accent);
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 4rem;
    }
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* ========================================
   HARVEST SECTION
   ======================================== */
.harvest-section {
    padding: var(--spacing-3xl) 0;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: var(--spacing-3xl) 0 var(--spacing-3xl) 0;
    background: linear-gradient(to bottom, 
        var(--color-background), 
        rgba(232, 228, 223, 0.2));
}

.cta-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-foreground);
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .cta-title {
        font-size: 4rem;
    }
}

.cta-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(42, 37, 32, 0.8);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .cta-description {
        font-size: 1.25rem;
    }
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    width: 100%;
    border-top: 1px solid var(--color-border);
    background-color: #ffffff;
    padding: var(--spacing-xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: var(--spacing-sm);
}

.footer-title a {
    color: var(--color-secondary);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color var(--transition-prairie);
}

.footer-title a:hover {
    color: var(--color-primary);
}

.footer-heading {
    font-family: var(--font-accent);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: var(--color-foreground);
    margin-bottom: var(--spacing-sm);
}

.footer-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-muted-text);
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright,
.footer-tagline {
    font-size: 0.875rem;
    color: var(--color-muted-text);
}
