/* Home Farm Holdings — site styles
   Palette and type recreated from the original brand:
   dark green #1A2E1F, muted green #517659, gold #D0AD67.
   Headings: Marcellus. Body: IBM Plex Sans. */

:root {
    --green-dark: #1a2e1f;
    --green-mid: #2f5138;
    --green: #517659;
    --green-soft: #6f8f76;
    --gold: #d0ad67;
    --gold-dark: #b8954f;
    --cream: #f6f4ee;
    --cream-2: #efece3;
    --ink: #223027;
    --muted: #6b7a6f;
    --white: #ffffff;
    --line: rgba(26, 46, 31, 0.12);
    --shadow: 0 18px 40px -24px rgba(26, 46, 31, 0.45);
    --radius: 14px;
    --maxw: 1180px;
    --font-head: "Marcellus", Georgia, "Times New Roman", serif;
    --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    font-weight: 400;
}

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

a { color: var(--green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 400;
    line-height: 1.15;
    color: var(--green-dark);
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: 1rem;
}
.eyebrow--light { color: var(--gold); }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--green-dark); color: rgba(255,255,255,.85); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section-head p { color: rgba(255,255,255,.8); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .98rem;
    letter-spacing: .01em;
    padding: .85rem 1.7rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--green-dark); }
.btn--primary:hover { background: var(--gold-dark); color: var(--green-dark); }
.btn--outline { background: transparent; border-color: currentColor; color: var(--green-dark); }
.btn--outline:hover { background: var(--green-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--green-dark); }
.btn--light:hover { background: var(--cream); color: var(--green-dark); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.95);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 50px; width: auto; }
.brand__text { font-family: var(--font-head); font-size: 1.15rem; color: var(--green-dark); line-height: 1.1; }
.brand__text small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-weight: 500; color: var(--green-dark); font-size: .98rem; }
.nav a:not(.btn):hover, .nav a:not(.btn).is-active { color: var(--gold-dark); }
.nav__cta { margin-left: .4rem; }

/* News & Views dropdown */
.nav__item { position: relative; display: flex; align-items: center; gap: .2rem; }
.nav__caret { background: none; border: 0; color: var(--green-dark); cursor: pointer; padding: .2rem; display: inline-flex; align-items: center; line-height: 0; transition: transform .2s ease, color .2s ease; }
.nav__caret:hover { color: var(--gold-dark); }
.nav__item--has-menu::after { content: ""; position: absolute; top: 100%; left: -10px; right: -10px; height: 12px; }
.nav__menu {
    position: absolute; top: calc(100% + 10px); left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 250px; max-width: 300px; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; box-shadow: var(--shadow); padding: .5rem;
    opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease; z-index: 60;
}
.nav__item--has-menu:hover .nav__menu,
.nav__item--has-menu:focus-within .nav__menu,
.nav__item--has-menu.is-open .nav__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__item--has-menu:hover .nav__caret,
.nav__item--has-menu.is-open .nav__caret { transform: rotate(180deg); color: var(--gold-dark); }
.nav__menu a { display: block; padding: .5rem .7rem; border-radius: 8px; font-size: .92rem; color: var(--green-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__menu a:hover { background: var(--cream); color: var(--gold-dark); }
.nav__menu-all { font-weight: 600; }
.nav__menu-group { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .35rem; }
.nav__menu-label { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: .3rem .7rem .1rem; }
.nav__menu-group--scroll { max-height: 260px; overflow-y: auto; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--green-dark); margin: 5px 0; transition: .3s; }

/* Hero */
.hero { position: relative; color: #fff; isolation: isolate; }
/* Home hero fills the viewport below the sticky header, like the original */
.hero:not(.hero--inner) { display: flex; align-items: center; min-height: calc(100vh - 76px); }
@supports (height: 100svh) { .hero:not(.hero--inner) { min-height: calc(100svh - 76px); } }
.hero:not(.hero--inner) .hero__inner { width: 100%; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(120deg, rgba(26,46,31,.82) 0%, rgba(26,46,31,.55) 55%, rgba(26,46,31,.3) 100%);
}
.hero__inner { padding: clamp(4.5rem, 12vw, 9rem) 0; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.12rem; }
.hero__sub { color: rgba(255,255,255,.78) !important; font-size: 1rem !important; }
.hero__actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero--inner .hero__inner { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }

/* Breadcrumb */
.crumbs { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.crumbs a { color: rgba(255,255,255,.7); }
.crumbs a:hover { color: #fff; }

/* Grid helpers */
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Service cards */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(26,46,31,.5); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .5rem; }
.card__body p { color: var(--muted); font-size: .97rem; margin-bottom: 1rem; }
.card__link { margin-top: auto; font-weight: 600; color: var(--gold-dark); display: inline-flex; gap: .4rem; }

/* Split / feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split--reverse .split__media { order: 2; }

.ticks { list-style: none; padding: 0; margin: 1.2rem 0; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: .7rem; color: var(--ink); }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: .5em;
    width: 11px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
    transform: rotate(-45deg);
}
.section--dark .ticks li { color: rgba(255,255,255,.85); }

/* Pills list (other services) */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.pills li {
    background: var(--white); border: 1px solid var(--line); border-radius: 999px;
    padding: .5rem 1.1rem; font-size: .92rem; font-weight: 500; color: var(--green-dark);
}

/* Pull quote */
.pullquote {
    font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--green-dark); line-height: 1.35; border-left: 3px solid var(--gold);
    padding-left: 1.4rem; margin: 1.5rem 0;
}
.section--dark .pullquote { color: #fff; }
.pullquote--center { border-left: 0; padding-left: 0; text-align: center; max-width: 760px; margin: 0 auto 2.2rem; color: var(--gold); }

/* Emergency banner */
.banner {
    background: var(--gold); color: var(--green-dark); border-radius: var(--radius);
    padding: clamp(1.6rem, 4vw, 2.4rem); text-align: center;
}
.banner h2 { color: var(--green-dark); }
.banner .btn { margin-top: .6rem; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.step__num { font-family: var(--font-head); font-size: 2rem; color: var(--gold); display: block; margin-bottom: .4rem; }

/* Testimonials */
.quote-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.quote-card__mark { font-family: var(--font-head); font-size: 3rem; color: var(--gold); line-height: .6; height: 1.2rem; }
.quote-card p { color: var(--ink); font-size: .98rem; }
.quote-card__by { margin-top: auto; padding-top: 1rem; }
.quote-card__by strong { color: var(--green-dark); display: block; }
.quote-card__by span { color: var(--muted); font-size: .88rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.map-section { line-height: 0; }
.map-section iframe { display: block; width: 100%; height: 450px; border: 0; }
.info-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.info-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-list .label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.info-list strong { color: var(--green-dark); font-weight: 600; }

/* Forms */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--green-dark); margin-bottom: .4rem; }
.field input, .field textarea {
    width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px;
    font-family: inherit; font-size: 1rem; color: var(--ink); background: #fcfcfa; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(208,173,103,.25); }
.field textarea { min-height: 140px; resize: vertical; }
.form__note { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.2rem; font-size: .95rem; }
.alert--ok { background: #e7f1e8; color: #2b5a37; border: 1px solid #b9d7bf; }
.alert--err { background: #fbe9e7; color: #8a2b22; border: 1px solid #efbdb6; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s ease; }
.post-card:hover { transform: translateY(-4px); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: .6rem; display: flex; gap: .7rem; }
.post-card__body h3 { font-size: 1.25rem; }
.post-card__body p { color: var(--muted); font-size: .95rem; }
.post-card__link { margin-top: auto; font-weight: 600; color: var(--gold-dark); }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; }
.filters a { border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1.1rem; font-size: .9rem; font-weight: 500; color: var(--green-dark); }
.filters a.is-active, .filters a:hover { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }

/* Article */
.article { max-width: 760px; margin: 0 auto; }
.article__hero { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 2.2rem; aspect-ratio: 16/9; }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article__body { font-size: 1.08rem; }
.article__body h2, .article__body h3 { margin-top: 2rem; }
.article__body ul { padding-left: 1.2rem; }
.article__body li { margin-bottom: .5rem; }
.article__body blockquote { font-family: var(--font-head); font-size: 1.5rem; color: var(--green-dark); border-left: 3px solid var(--gold); padding-left: 1.3rem; margin: 1.8rem 0; }
.article__body blockquote p { margin: 0; }
.article__back { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; }

/* Legal */
.legal-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; margin-bottom: 1.2rem; }
.legal-block h2 { font-size: 1.3rem; margin-bottom: .6rem; }

/* Footer */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.75); padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer h4 { color: var(--gold); font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 1rem; }
.footer-logo { height: 64px; width: auto; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-social { display: flex; gap: .8rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--green-dark); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.5rem; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.footer-credit a { color: var(--gold); font-weight: 600; }
.footer-credit a:hover { color: #fff; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: 1.15rem; color: var(--muted); }
.section--dark .lead { color: rgba(255,255,255,.82); }

/* Responsive */
@media (max-width: 960px) {
    .grid--3, .grid--4, .post-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .split, .contact-grid { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .nav { position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 24px 1.5rem; border-bottom: 1px solid var(--line); transform: translateY(-120%); visibility: hidden; transition: transform .3s ease, visibility .3s ease; max-height: calc(100vh - 76px); overflow-y: auto; }
    .nav.is-open { transform: translateY(0); visibility: visible; box-shadow: var(--shadow); }
    .nav > a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
    .nav__cta { margin: .8rem 0 0; justify-content: center; }
    .nav-toggle { display: block; }

    /* Dropdown becomes an inline, tap-to-expand section on mobile */
    .nav__item { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
    .nav__item > a { padding: .8rem 0; }
    .nav__item--has-menu::after { content: none; }
    .nav__caret { padding: .8rem .4rem; }
    .nav__menu { grid-column: 1 / -1; position: static; transform: none; opacity: 1; visibility: hidden; display: none; min-width: 0; max-width: none; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: .3rem 0 .6rem; }
    .nav__item--has-menu.is-open .nav__menu { display: block; transform: none; }
    .nav__item--has-menu:hover .nav__menu, .nav__item--has-menu:focus-within .nav__menu { visibility: hidden; }
    .nav__item--has-menu.is-open .nav__menu { visibility: visible; }
    .nav__menu-group--scroll { max-height: 220px; }
    .grid--3, .grid--4, .grid--2, .post-grid, .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Print / PDF export ---- */
@media print {
    @page { size: A4; margin: 12mm; }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    html, body { background: #fff; }
    .site-header { position: static; background: #fff; box-shadow: none; }
    .nav, .nav-toggle { display: none !important; }
    .hero:not(.hero--inner) { min-height: 62vh; }
    .hero__actions { gap: .6rem; }
    .section { padding: 2.2rem 0; }
    .card, .quote-card, .post-card, .step, .form, .legal-block { box-shadow: none; break-inside: avoid; }
    .split, .contact-grid { break-inside: avoid; }
    a[href]:not(.btn) { color: inherit; text-decoration: none; }
    .site-footer { break-inside: avoid; }
}
