/*
Theme Name: Malsteads Agricultural Investments
Theme URI: https://malstead-agri.com
Author: Malstead Team
Author URI: https://malstead-agri.com
Description: Official theme for Malstead Agricultural Investments, featuring an automated deployment setup.
Version: 1.0.0
Text Domain: malsteads
*/

:root {
    /* Colors */
    --primary: #400000;
    --primary-container: #680000;
    --on-primary: #ffffff;
    --on-primary-container: #f76c58;
    --secondary: #5e5e5e;
    --secondary-container: #e1dfdf;
    --on-secondary: #ffffff;
    --tertiary: #1b1b1b;
    --tertiary-container: #303030;
    --on-tertiary: #ffffff;
    --on-tertiary-container: #999797;
    --surface: #f9f9f9;
    --on-surface: #1a1c1c;
    --on-surface-variant: #58413e;
    --background: #f9f9f9;
    --on-background: #1a1c1c;
    --outline: #8c716c;
    --outline-variant: #e0bfba;
    
    --surface-container-highest: #e2e2e2;
    --surface-container-high: #e8e8e8;
    --surface-container: #eeeeee;
    --surface-container-low: #f3f3f3;
    --surface-container-lowest: #ffffff;

    /* Typography */
    --font-headline: 'Source Serif 4', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-unit: 8px;
    --spacing-sm: 16px;
    --spacing-gutter: 24px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --max-width: 1280px;
    
    /* Layout */
    --border-radius: 0.125rem;
    --border-radius-lg: 0.25rem;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--on-background);
    font-size: 16px;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-headline);
    font-weight: 600;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Utility Classes */
.max-w-max-width { max-width: var(--max-width); }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-margin-lg { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }
.py-margin-lg { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-margin-md { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-margin-lg { padding-top: var(--spacing-lg); }
.pb-margin-md { padding-bottom: var(--spacing-md); }

.bg-surface { background-color: var(--surface); }
.bg-tertiary { background-color: var(--tertiary); }
.bg-primary { background-color: var(--primary); }
.bg-primary-container { background-color: var(--primary-container); }
.bg-background { background-color: var(--background); }
.bg-surface-container-low { background-color: var(--surface-container-low); }
.bg-surface-container-lowest { background-color: var(--surface-container-lowest); }
.bg-surface-container { background-color: var(--surface-container); }
.bg-surface-container-high { background-color: var(--surface-container-high); }
.bg-surface-container-highest { background-color: var(--surface-container-highest); }
.bg-white { background-color: #ffffff; }

.text-primary { color: var(--primary); }
.text-on-primary { color: var(--on-primary); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-on-surface { color: var(--on-surface); }
.text-on-tertiary { color: var(--on-tertiary); }
.text-on-tertiary-container { color: var(--on-tertiary-container); }
.text-primary-container { color: var(--primary-container); }
.text-on-primary-container { color: var(--on-primary-container); }
.text-white { color: #ffffff; }
.text-secondary { color: var(--secondary); }
.text-emerald-700 { color: #047857; }

.font-display-lg { font-size: 48px; line-height: 56px; font-weight: 700; letter-spacing: -0.02em; }
.font-headline-lg { font-size: 32px; line-height: 40px; }
.font-headline-md { font-size: 24px; line-height: 32px; }
.font-body-lg { font-size: 18px; line-height: 28px; }
.font-body-md { font-size: 16px; line-height: 24px; }
.font-label-md { font-family: var(--font-body); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.05em; }
.font-caption { font-size: 12px; line-height: 16px; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.italic { font-style: italic; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .md\:col-span-4 { grid-column: span 4 / span 4; }
    .md\:col-span-5 { grid-column: span 5 / span 5; }
    .md\:col-span-7 { grid-column: span 7 / span 7; }
    .md\:col-span-8 { grid-column: span 8 / span 8; }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:flex-row { flex-direction: row; }
    .md\:w-1\/2 { width: 50%; }
    .md\:order-1 { order: 1; }
    .md\:order-2 { order: 2; }
    .md\:text-left { text-align: left; }
    .md\:h-auto { height: auto; }
    .md\:row-span-2 { grid-row: span 2 / span 2; }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
}

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }
.gap-gutter { gap: var(--spacing-gutter); }
.gap-margin-md { gap: var(--spacing-md); }

.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-14 { height: 3.5rem; }
.h-10 { height: 2.5rem; }
.w-1\/2 { width: 50%; }
.h-64 { height: 16rem; }
.h-48 { height: 12rem; }
.h-40 { height: 10rem; }
.h-20 { height: 5rem; }
.min-h-\[200px\] { min-height: 200px; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-gutter { padding: var(--spacing-gutter); }
.p-margin-sm { padding: var(--spacing-sm); }
.p-margin-md { padding: var(--spacing-md); }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-4 { padding-bottom: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-24 { margin-bottom: 6rem; }
.mb-gutter { margin-bottom: var(--spacing-gutter); }
.mb-margin-md { margin-bottom: var(--spacing-md); }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-t-2 { border-top-width: 2px; border-top-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-secondary-container { border-color: var(--secondary-container); }
.border-outline { border-color: var(--outline); }
.border-primary { border-color: var(--primary); }

.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }
.opacity-0 { opacity: 0; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: background-color, border-color, color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-standard { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-1000 { transition-duration: 1000ms; }

.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-primary-container:hover { color: var(--primary-container); }
.hover\:bg-primary-container:hover { background-color: var(--primary-container); }
.hover\:bg-secondary-fixed:hover { background-color: var(--secondary-container); }
.hover\:bg-surface-container:hover { background-color: var(--surface-container); }
.hover\:bg-white\/10:hover { background-color: rgba(255,255,255,0.1); }
.hover\:border-primary:hover { border-color: var(--primary); }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:underline:hover { text-decoration: underline; }

.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:translate-x-2 { transform: translateX(0.5rem); }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.object-cover { object-fit: cover; }
.block { display: block; }

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-xl { max-width: 36rem; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.whitespace-nowrap { white-space: nowrap; }

/* Custom Additions */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}
.hero-gradient {
    background: linear-gradient(to right, rgba(26, 28, 28, 0.9) 0%, rgba(26, 28, 28, 0.4) 50%, rgba(26, 28, 28, 0) 100%);
}
.line-accent {
    position: relative;
}
.line-accent::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 1rem 1.5rem;
}

/* Hero Carousel Styling */
.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: var(--tertiary);
}

.carousel-slide {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 10;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, rgba(64, 0, 0, 0.95) 0%, rgba(64, 0, 0, 0.7) 35%, rgba(64, 0, 0, 0.3) 65%, rgba(64, 0, 0, 0) 100%);
    z-index: 10;
    pointer-events: none;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.carousel-arrow:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.carousel-arrow.prev {
    left: 24px;
}

.carousel-arrow.next {
    right: 24px;
}

.carousel-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 30;
}

.carousel-dot {
    height: 12px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.carousel-dot.active {
    background-color: #ffffff;
}
