
/* ========================================
   CENTERLINE EQUINE NUTRITION
   Global Design System
   ======================================== */

/* Brand Colors and Design Variables */

:root {
    --forest: #405631;
    --sky: #C5DADD;
    --fern: #B5BC80;
    --star: #E5E5CF;
    --slate: #62787A;

    /* Functional Colors */
    --color-primary: var(--forest);
    --color-secondary: var(--slate);
    --color-accent: var(--fern);
    --color-background: #FFFFFF;
    --color-surface: var(--star);
    --color-text: #29352A;
    --color-border: #D9DED5;

    /* Typography */
    
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', Arial, sans-serif;

    /* Layout */
    --max-width: 1200px;
    --content-width: 800px;
    --section-padding: clamp(3rem, 7vw, 6rem);

    /* Components */
    --radius-small: 4px;
    --radius-medium: 8px;
    --transition: 200ms ease;
}

/* Global Reset */

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

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
}

/* Typography */


h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--forest);
    font-weight: 600;
    letter-spacing: -0.060em;
    line-height: 1.15;
    margin: 0 0 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--forest);
    text-underline-offset: 4px;
}

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

/* Layout */

.container {
    width: min(90%, var(--max-width));
    margin-inline: auto;
}

.content-container {
    width: min(90%, var(--content-width));
    margin-inline: auto;
}

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

/* Section Backgrounds */

.bg-forest {
    background: var(--forest);
    color: var(--star);
}

.bg-forest h1,
.bg-forest h2,
.bg-forest h3,
.bg-forest a {
    color: var(--star);
}

.bg-star {
    background: var(--star);
}

.bg-sky {
    background: var(--sky);
}

/* Buttons */

.button {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border: 1px solid var(--forest);
    border-radius: var(--radius-small);
    background: var(--forest);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.button:hover {
    background: #304324;
}

.button-outline {
    background: transparent;
    color: var(--forest);
}

.button-outline:hover {
    background: var(--forest);
    color: white;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--slate);
    outline-offset: 4px;
}


/* ========================================
   SITE HEADER & NAVIGATION
   ======================================== */

.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    width: min(90%, 1400px);
    margin-inline: auto;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

/* Brand Logo */

.site-logo {
    display: block;
    flex-shrink: 0;
}

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

/* Navigation */

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.0rem;
}

.site-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition);
}

.site-nav a:not(.button):hover {
    color: var(--slate);
}

.site-nav .button {
    color: white;
    padding: 0.5rem 1rem;
}

/* Responsive Header */

@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        padding-block: 1rem;
        gap: 1rem;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .site-logo img {
        width: 130px;
    }
}

/* ========================================
   HOMEPAGE HERO
   ======================================== */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--star);
    min-height: 520px;
    padding: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(2rem, 5vw, 5rem);
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.8rem, 4.5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.65;
    color: #52604D;
    max-width: 480px;
    margin-bottom: 1.5rem;
}

.hero-philosophy {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #52604D;
    max-width: 540px;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero Photography */

.hero-image {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: var(--slate);
}

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

/* Mobile Hero */

@media (max-width: 768px) {

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        padding: 3rem 5%;
    }

    .hero-image {
        min-height: 350px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
}

/* ========================================
   HAY FEEDING CALCULATOR
   ======================================== */

.hay-calculator {
    text-align: center;
    padding: 3rem 5%;
}

.calculator-container {
    max-width: 600px;
    margin-inline: auto;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.calculator-field {
    text-align: left;
}

.calculator-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.calculator-field input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--slate);
    border-radius: var(--radius-small);
    background: white;
    color: var(--forest);
    font-family: var(--font-body);
    font-size: 1.1rem;
}
.calculator-field input::placeholder {
    color: #9CA3A0;
    opacity: 1;
}

.calculator-field input:focus {
    outline: 2px solid var(--forest);
    outline-offset: 2px;
}

.calculator-result p {
    margin-bottom: 0.25rem;
}

#hay-result {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--forest);
}

.result-unit {
    font-size: 0.85rem;
}

.calculator-note {
    font-size: 0.8rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .calculator-inputs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
/* Feeding Tips */

.feeding-tips {
    border-top: 1px solid var(--slate);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.feeding-tips h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.keeper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.keeper h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: normal;
    margin-bottom: 0.25rem;
}

.keeper-percent {
    display: block;
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--forest);
}

.keeper p {
    font-size: 0.8rem;
    line-height: 1.5;
}

.forage-message {
    font-weight: 600;
    color: var(--forest);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 480px) {
    .keeper-grid {
        grid-template-columns: 1fr;
    }
}
/* Compact Calculator Layout */

.hay-calculator {
    padding: 2rem 5%;
}

.hay-calculator h2 {
    margin-bottom: 1rem;
}

.calculator-inputs {
    margin: 1rem 0;
    gap: 1rem;
}

.calculator-field input {
    padding: 0.6rem 0.85rem;
}

.calculator-result {
    line-height: 1.3;
}

.calculator-result p {
    margin-bottom: 0.25rem;
}

#hay-result {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin: 0.4rem 0;
}

.calculator-note {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Compact Feeding Tips */

.feeding-tips {
    max-width: 900px;
    margin: 1.25rem auto 0;
    padding-top: 1rem;
}

.feeding-tips h3 {
    margin-bottom: 0.75rem;
}

.keeper-percent {
    font-size: 1.6rem;
    line-height: 1.3;
    margin: 0.25rem 0;
}

.keeper p {
    margin-bottom: 0;
}

.forage-message {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   THE CENTERLINE APPROACH
   ======================================== */

.approach {
    background: white;
    padding: 3.5rem 5%;
    text-align: center;
}

.approach-intro {
    max-width: 750px;
    margin: 0 auto 2.5rem;
}

.approach-intro h2 {
    margin-bottom: 1rem;
}

.approach-intro p {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.75;
    color: #52604D;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1050px;
    margin-inline: auto;
}

.approach-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.approach-icon {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: var(--slate);
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 1rem;
}

.approach-item h3 {
    font-size: 1.8rem;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.approach-item p {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    color: #52604D;
    max-width: 300px;
    margin-bottom: 0;
}

/* Mobile */

@media (max-width: 768px) {
    .approach {
        padding: 2.5rem 5%;
    }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .approach-intro {
        margin-bottom: 2rem;
    }
}
.approach-horse-icon {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.grounded-horse-icon {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 1rem;
    opacity: 0.85;
}
.empowering-horse-icon {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 1rem;
    opacity: 0.85;
}
.approach-horse-icon {
    opacity: 1;
    filter: contrast(1.2);
    margin-bottom: 0.75rem;
}

.approach-intro {
    max-width: 750px;
    margin: 0 auto 1.5rem;
}


/* ========================================
   NUTRITIONAL SERVICES
   ======================================== */

.services-preview {
    background: white;
    padding: 3.5rem 5%;
}

.services-intro {
    max-width: 750px;
    margin: 0 auto 2rem;
    text-align: center;
}

.services-intro .eyebrow {
    margin-bottom: 0.75rem;
}

.services-intro h2 {
    margin-bottom: 1rem;
}

.services-intro p:not(.eyebrow) {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.75;
    color: #52604D;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1050px;
    margin-inline: auto;
}

.service-item {
    background: var(--star);
    padding: 2rem;
    border-radius: var(--radius-small);
}

.service-item h3 {
    font-size: 1.8rem;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.service-item p {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    color: #52604D;
    margin-bottom: 0;
}

.services-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Mobile */

@media (max-width: 768px) {

    .services-preview {
        padding: 2.5rem 5%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-item {
        padding: 1.5rem;
    }
}

/* ========================================
   MEET THE FOUNDER
   ======================================== */

.founder {
    padding: 3.5rem 5%;
}

.founder-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    max-width: 1000px;
}

.founder-image {
    max-width: 340px;
    width: 100%;
    margin-inline: auto;
}

.founder-image img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-small);
}

.founder-content .eyebrow {
    margin-bottom: 0.75rem;
}

.founder-content h2 {
    margin-bottom: 1.25rem;
}

.founder-content p:not(.eyebrow) {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #52604D;
}

.founder-content .founder-intro {
    font-size: 1.15rem;
    font-weight: 500;
}

.founder-content .button {
    margin-top: 0.5rem;
}

/* Mobile */

@media (max-width: 768px) {
    .founder {
        padding: 2.5rem 5%;
    }

    .founder-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .founder-image {
        max-width: 280px;
    }
}

/* ========================================
   CLIENT STORIES
   ======================================== */

.client-stories {
    background: white;
    padding: 3.5rem 5%;
}

.stories-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.stories-intro .eyebrow {
    margin-bottom: 0.75rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin-inline: auto;
}

.story-card {
    display: flex;
    flex-direction: column;
    background: var(--star);
    padding: 2rem;
    border-radius: var(--radius-small);
}

.story-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.story-card blockquote {
    margin: 0;
    padding: 0;
    border: none;
    flex-grow: 1;
}

.story-card blockquote p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.8;
    color: #52604D;
}

.story-card blockquote p + p {
    border-top: 1px solid var(--fern);
    padding-top: 1rem;
    margin-top: 1rem;
}

.story-author {
    margin-top: 1rem;
    color: var(--forest);
}

.story-author strong {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.story-author span {
    display: block;
    font-size: 0.85rem;
    color: #52604D;
}

.stories-actions {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .client-stories {
        padding: 2.5rem 5%;
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .story-card {
        padding: 1.5rem;
    }
}
/* ========================================
   CONSULTATION INVITATION
   ======================================== */

.consultation {
    background: var(--forest);
    color: var(--star);
    text-align: center;
    padding: 3rem 5%;
}

.consultation-content {
    max-width: 650px;
    margin-inline: auto;
}

.consultation h2 {
    color: var(--star);
    margin-bottom: 1rem;
}

.consultation .eyebrow {
    color: var(--star);
    margin-bottom: 0.75rem;
}

.consultation-description {
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.button-light {
    background: var(--star);
    color: var(--forest);
    border-color: var(--star);
}

.button-light:hover {
    background: var(--fern);
    color: var(--forest);
    border-color: var(--fern);
}
/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: var(--slate);
    color: white;
    padding: 2.5rem 5% 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin-inline: auto;
}

.footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
}

.footer-links h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: normal;
    color: var(--star);
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: block;
    color: white;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    margin-bottom: 0.4rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}