/* ============================================
   Pleasant Hill Feed and Farm Supply
   Custom Styles — Bold Editorial Design
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #0d9488;
    color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* --- Typography --- */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}
.font-sans {
    font-family: 'Inter', system-ui, sans-serif;
}

/* --- Navbar --- */
.nav-header {
    background: rgba(255, 255, 255, 0);
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.nav-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-brand-text {
    color: #0d9488;
}
.nav-header.scrolled .nav-brand-text {
    color: #0d9488;
}

.nav-brand-sub {
    color: #64748b;
}
.nav-header.scrolled .nav-brand-sub {
    color: #64748b;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #475569;
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

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

.nav-link:hover {
    color: #0d9488;
}
.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0d9488;
    text-decoration: none;
    background: #f0fdfa;
    border: 1.5px solid #ccfbf1;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: #0d9488;
    color: #fff;
    border-color: #0d9488;
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 60;
}

.mobile-menu-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active .mobile-menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active .mobile-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: menuSlideDown 0.3s ease;
}

@keyframes menuSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu-link:hover {
    color: #0d9488;
    padding-left: 0.5rem;
}

/* --- Hero --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    background: #0f172a;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(4, 47, 46, 0.88) 0%,
        rgba(13, 148, 136, 0.72) 50%,
        rgba(15, 23, 42, 0.85) 100%
    );
}

.hero-content {
    padding-top: 5rem;
}

.hero-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1.05;
    color: #f8fafc;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(248, 250, 252, 0.8);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 2.5rem;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.eyebrow-line {
    display: block;
    width: 48px;
    height: 2px;
    background: #2dd4bf;
    flex-shrink: 0;
}

.eyebrow-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #5eead4;
}

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

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0d9488;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid #0d9488;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0f766e;
    border-color: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #f8fafc;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid rgba(248, 250, 252, 0.3);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: #f8fafc;
    background: rgba(248, 250, 252, 0.1);
    transform: translateY(-2px);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #0d9488;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid #fff;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-white:hover {
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* --- Scroll Indicator --- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.scroll-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.5);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Section Eyebrow --- */
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.section-eyebrow.justify-center {
    justify-content: center;
}

/* --- Section Title --- */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
    letter-spacing: -0.02em;
}

/* --- Product Cards --- */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #0d9488;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
}

.product-card-body {
    padding: 1.5rem;
}

.product-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.product-card-desc {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.65;
}

/* --- Service Items --- */
.service-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 212, 191, 0.15);
    border-radius: 12px;
    color: #2dd4bf;
}

.service-item {
    transition: all 0.3s ease;
}

/* --- Contact --- */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdfa;
    border-radius: 12px;
    color: #0d9488;
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
}

.input-field:hover {
    border-color: #94a3b8;
}

.input-field:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.input-field::placeholder {
    color: #94a3b8;
}

/* --- Reveal Animations (Progressive Enhancement) --- */
/* Default: all elements visible */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* When JS is enabled and user prefers motion, apply scroll reveal */
.js-enabled.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-enabled.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* Stagger children */
.js-enabled .reveal:nth-child(2) { transition-delay: 0.1s; }
.js-enabled .reveal:nth-child(3) { transition-delay: 0.2s; }
.js-enabled .reveal:nth-child(4) { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-content {
        padding-top: 4rem;
    }

    .hero-headline {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .about, .products, .services, .community, .contact {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .nav-header {
        padding: 0;
    }
}

@media (min-width: 768px) {
    .about, .products, .services, .community, .contact {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* --- 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 !important;
        transform: none !important;
    }
}
