/* ============================================
   Rancher's Feed & Supply — Custom Styles
   Palette: Deep Navy (#1a2d50) + Warm Gold (#c8a45a)
   ============================================ */

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

:root {
    --navy: #1a2d50;
    --navy-deep: #0f1d35;
    --navy-light: #2a4068;
    --gold: #c8a45a;
    --gold-light: #dbb96e;
    --gold-dark: #b08d3f;
    --white: #ffffff;
    --off-white: #f7f5f0;
    --gray-50: #faf9f7;
    --gray-100: #f0eeea;
    --gray-200: #e2dfd8;
    --gray-300: #c8c3b9;
    --gray-500: #7a756d;
    --gray-700: #3d3832;
    --gray-900: #1a1714;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(26,45,80,0.08), 0 1px 2px rgba(26,45,80,0.06);
    --shadow-md: 0 4px 16px rgba(26,45,80,0.10), 0 2px 4px rgba(26,45,80,0.06);
    --shadow-lg: 0 12px 40px rgba(26,45,80,0.14), 0 4px 12px rgba(26,45,80,0.08);
    --shadow-xl: 0 24px 60px rgba(26,45,80,0.18), 0 8px 20px rgba(26,45,80,0.10);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--navy);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 200;
    font-size: 14px;
    font-weight: 500;
}
.skip-link:focus {
    top: 16px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-deep);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy-deep);
    border-color: var(--gold);
    padding: 10px 22px;
    font-size: 14px;
}
.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

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

/* ============================================
   Section Utilities
   ============================================ */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: rgba(200,164,90,0.12);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26,45,80,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
}

.logo-icon {
    flex-shrink: 0;
    color: var(--gold);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a:not(.btn) {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
    position: relative;
}

.nav a:not(.btn):hover {
    color: var(--white);
}

.nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav a:not(.btn):hover::after {
    width: 100%;
}

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

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

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

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 70%;
    height: 130%;
    background: radial-gradient(ellipse, rgba(200,164,90,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    background: rgba(200,164,90,0.1);
    border: 1px solid rgba(200,164,90,0.2);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
    min-height: 480px;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-card-main {
    width: 100%;
    aspect-ratio: 520/380;
}

.hero-card-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(15,29,53,0.9) 0%, transparent 100%);
}

.hero-card-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    background: var(--gold);
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

/* Stat Cards */
.stat-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.stat-card--1 {
    top: -20px;
    right: -20px;
}

.stat-card--1 .stat-number {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.stat-card--1 .stat-label {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.3;
}

.stat-card--2 {
    bottom: 40px;
    left: -30px;
}

.stat-card--2 svg {
    color: var(--gold-dark);
    flex-shrink: 0;
}

.stat-card--2 .stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

.stat-card--3 {
    bottom: -16px;
    right: 40px;
}

.stat-card--3 svg {
    color: var(--gold-dark);
    flex-shrink: 0;
}

.stat-card--3 .stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

/* ============================================
   Products
   ============================================ */
.products {
    background: var(--gray-50);
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card-img {
    overflow: hidden;
    aspect-ratio: 400/280;
}

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

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 24px;
}

.product-card-body h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.product-card-body p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================
   Services
   ============================================ */
.services {
    background: var(--white);
}

.services-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.services-content .section-tag,
.services-content .section-title,
.services-content .section-desc {
    text-align: left;
}

.services-content .section-desc {
    margin-bottom: 36px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.services-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.check-icon {
    color: var(--gold-dark);
    flex-shrink: 0;
    margin-top: 2px;
}

.services-list li span {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.65;
}

.services-list li strong {
    color: var(--navy);
}

.services-visual {
    position: relative;
}

.services-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.services-image-grid img {
    width: 100%;
    aspect-ratio: 360/260;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.services-quote {
    position: relative;
    background: var(--navy);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    color: var(--white);
}

.services-quote svg {
    position: absolute;
    top: 16px;
    left: 20px;
    color: var(--gold);
}

.services-quote p {
    font-family: var(--font-display);
    font-size: 17px;
    font-style: italic;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    padding-left: 28px;
}

/* ============================================
   About
   ============================================ */
.about {
    background: var(--off-white);
}

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

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    aspect-ratio: 560/480;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 40%;
    background: var(--gold);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.about-content .section-tag,
.about-content .section-title {
    text-align: left;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--gray-200);
}

.about-stat {
    text-align: center;
}

.about-stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 6px;
}

.about-stat-label {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ============================================
   CTA / Contact
   ============================================ */
.cta {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(200,164,90,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta .section-tag {
    background: rgba(200,164,90,0.15);
    color: var(--gold);
}

.cta .section-title {
    color: var(--white);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.cta-content .section-desc {
    color: rgba(255,255,255,0.6);
    margin-bottom: 36px;
}

.cta-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cta-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cta-info-item svg {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.cta-info-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.cta-info-item span,
.cta-info-item a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

.cta-info-item a:hover {
    color: var(--gold);
}

/* Form */
.cta-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.form-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-sub {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--gray-900);
    background: var(--gray-50);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(200,164,90,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(200,164,90,0.1);
    border: 1px solid rgba(200,164,90,0.3);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
}

.form-success svg {
    color: var(--gold-dark);
    flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.6);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 48px;
}

.logo--light {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--gold);
}

.footer-contact ul li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.footer-contact svg {
    color: var(--gold);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .services-layout,
    .cta-grid {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--navy-deep);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav a:not(.btn) {
        font-size: 17px;
        color: rgba(255,255,255,0.8);
    }

    .nav a:not(.btn)::after {
        display: none;
    }

    /* Mobile overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 99;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

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

    .hero-visual {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    /* Services */
    .services-layout {
        grid-template-columns: 1fr;
    }

    .services-visual {
        order: -1;
    }

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

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrap {
        order: -1;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    /* CTA */
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .cta-form-wrap {
        padding: 28px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-stat {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .about-stat-num {
        margin-bottom: 0;
        min-width: 60px;
    }
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
