/* e-Ranch Pro — public (institutional) site for a ranch */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --color-primary: #6b4226;
    --color-primary-dark: #4a2c17;
    --color-accent: #c98a3e;
    --color-bg: #f5f2ec;
    --color-text: #2b2b2b;
    --color-text-muted: #7d766a;
    --color-border: #e7e1d6;
    --shadow-sm: 0 1px 3px rgba(30,20,10,.05);
    --shadow-md: 0 10px 30px rgba(40,25,10,.12);
    --radius: 12px;
    --radius-lg: 18px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--color-text); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: var(--color-primary); text-decoration: none; }
img { max-width: 100%; }

.site-header { border-bottom: 1px solid var(--color-border); position: sticky; top: 0; background: #fff; z-index: 40; }
.site-header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; flex-wrap: wrap; gap: 1rem; }
.site-brand { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 800; color: var(--color-primary-dark); }
.site-brand img { height: 42px; width: 42px; border-radius: 8px; object-fit: cover; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { color: var(--color-text); font-weight: 600; font-size: .92rem; }
.site-nav a:hover { color: var(--color-primary); }

.hero { position: relative; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff; text-align: center; padding: 6rem 1.5rem; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(201,138,62,.35) 0%, transparent 45%); }
.hero h1, .hero p { position: relative; }
.hero h1 { font-size: 2.6rem; font-weight: 800; margin: 0 0 .9rem; }
.hero p { font-size: 1.15rem; opacity: .92; max-width: 620px; margin: 0 auto; line-height: 1.6; }
.hero img.hero-bg { width: 100%; max-height: 440px; object-fit: cover; display: block; }

.section { max-width: 1200px; margin: 0 auto; padding: 4.5rem 1.5rem; }
.section-eyebrow { display: block; text-align: center; color: var(--color-accent); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .6rem; }
.section h2 { text-align: center; margin: 0 auto 2.5rem; color: var(--color-primary-dark); font-size: 1.9rem; font-weight: 800; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.75rem; }

.card-box { background: #fff; border-radius: var(--radius-lg); padding: 1.75rem; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease; }
.card-box:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-box h3 { margin-top: 0; color: var(--color-primary-dark); }

.testimonial { text-align: center; }
.testimonial .stars { color: var(--color-accent); letter-spacing: .1em; }
.testimonial img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: .9rem; box-shadow: var(--shadow-sm); }

.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0; margin-bottom: .75rem; overflow: hidden; }
.faq-item summary { font-weight: 600; cursor: pointer; padding: 1.1rem 1.4rem; color: var(--color-primary-dark); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--color-accent); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { padding: 0 1.4rem 1.1rem; margin: 0; color: var(--color-text-muted); line-height: 1.6; }

.animal-card { overflow: hidden; padding: 0; }
.animal-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.animal-card-noimg { width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--color-bg); }
.animal-card .body { padding: 1.25rem; }
.animal-price { font-size: 1.2rem; font-weight: 800; color: var(--color-primary-dark); margin: 0; }

/* Horses-for-sale carousel */
.carousel { position: relative; padding: 0 3rem; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-slide { flex: 0 0 100%; max-width: 100%; padding: 0 .5rem; box-sizing: border-box; }
.carousel-slide .card-box { margin: 0 auto; max-width: 380px; }
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--color-border);
    background: #fff; color: var(--color-primary-dark); font-size: 1.4rem; cursor: pointer;
    box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.carousel-arrow:hover { background: var(--color-bg); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
.carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--color-border); cursor: pointer; padding: 0; }
.carousel-dot.active { background: var(--color-accent); }

@media (min-width: 720px) {
    .carousel-slide { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 1024px) {
    .carousel-slide { flex: 0 0 33.3333%; max-width: 33.3333%; }
}

.banner-strip { display: flex; gap: 1rem; overflow-x: auto; padding: 1.5rem; }
.banner-strip img { border-radius: var(--radius); max-height: 210px; box-shadow: var(--shadow-sm); }

.site-footer { background: var(--color-primary-dark); color: #f2e9dd; margin-top: 2rem; }
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.site-footer a { color: #f2e9dd; }
.site-footer a:hover { text-decoration: underline; }
.site-slogan { font-style: italic; opacity: .85; }
.site-social { display: flex; flex-direction: column; gap: .5rem; }
.site-footer-copy { text-align: center; padding: 1.25rem; margin: 0; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; opacity: .85; }

.map-embed iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius-lg); }

/* Chatbox */
#eranch-chatbox { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; font-family: inherit; }
#eranch-chatbox-toggle {
    width: 58px; height: 58px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary)); color: #fff; font-size: 1.5rem; cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform .15s ease;
}
#eranch-chatbox-toggle:hover { transform: scale(1.06); }
#eranch-chatbox-panel {
    position: absolute; bottom: 74px; right: 0; width: 300px;
    background: #fff; border-radius: var(--radius-lg); box-shadow: 0 14px 40px rgba(0,0,0,.22);
    padding: 1.1rem; border: 1px solid var(--color-border);
}
.eranch-chatbox-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: .75rem; color: var(--color-primary-dark); }
.eranch-chatbox-head button { background: none; border: none; font-size: 1.2rem; cursor: pointer; }
#eranch-chatbox-form { display: flex; flex-direction: column; gap: .5rem; }
#eranch-chatbox-form input, #eranch-chatbox-form textarea {
    padding: .55rem; border: 1px solid var(--color-border); border-radius: 8px; font-size: .9rem; width: 100%; font-family: inherit;
}
#eranch-chatbox-form textarea { min-height: 70px; }
#eranch-chatbox-form button { background: var(--color-primary); color: #fff; border: none; border-radius: 8px; padding: .65rem; cursor: pointer; font-weight: 600; }
#eranch-chatbox-form button:hover { background: var(--color-primary-dark); }

@media (max-width: 700px) {
    .hero h1 { font-size: 1.9rem; }
    .hero { padding: 4rem 1.25rem; }
    .site-nav a:not(:last-child) { display: none; }
    #eranch-chatbox-panel { width: calc(100vw - 3rem); }
}
