/* Saanichton Farm refresh — loads AFTER bootstrap + main.css */
:root{
  --spruce:#1f3d33; --spruce-deep:#142a23; --barley:#d9a62e; --barley-dark:#b9871a;
  --mist:#eef2ea; --ink:#1d2a24; --seed:#5f6f65; --line:#d8dfd3; --white:#fff;
}
html{scroll-behavior:smooth}
body{font-family:"Source Sans 3","Helvetica Neue",Arial,sans-serif;font-size:17px;line-height:1.65;color:var(--ink);background:var(--mist)}
h1,h2,h3,h4,.navbar-brand,.hero-title{font-family:"Bitter",Georgia,serif;color:var(--spruce);letter-spacing:-.01em}
h2{font-size:30px;margin-top:10px}
a{color:var(--spruce);text-decoration-color:var(--barley);text-underline-offset:3px}
a:hover,a:focus{color:var(--barley-dark)}
:focus-visible{outline:3px solid var(--barley);outline-offset:2px}

/* ---------- Navbar ---------- */
.navbar-inverse{background:var(--spruce-deep);background-image:none;border:0;border-bottom:3px solid var(--barley);box-shadow:0 2px 12px rgba(0,0,0,.25);text-shadow:none}
.navbar-inverse .navbar-brand{color:#fff;font-weight:700;font-size:21px;text-shadow:none}
.navbar-inverse .navbar-brand:hover{color:var(--barley)}
.navbar-inverse .navbar-nav>li>a{color:#dbe5dc;font-weight:600;text-shadow:none;transition:color .15s}
.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:var(--barley);background:transparent}
.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover{background:transparent;box-shadow:inset 0 -3px 0 var(--barley);color:#fff}
.navbar-inverse .navbar-nav>li:last-child>a{color:var(--barley)}
.navbar-inverse .navbar-toggle{border-color:#4a6a5d}
.navbar-inverse .navbar-toggle .icon-bar{background:#fff}
.navbar-inverse .navbar-collapse{border-color:#2d5446}
@media(max-width:767px){.navbar-inverse .navbar-nav>.active>a{box-shadow:inset 4px 0 0 var(--barley)}}

/* ---------- Hero banners (photo + green wash; gradient shows until photo is added) ---------- */
.jumbotron.hero{margin:0;padding:88px 0 76px;color:#f1f5ef;border:0;text-shadow:0 1px 2px rgba(0,0,0,.35);
  background-color:var(--spruce);background-size:cover;background-position:center}
.jumbotron.hero .container{max-width:900px}
.jumbotron.hero h1,.jumbotron.hero .hero-title{color:#fff;font-size:clamp(32px,5vw,52px);line-height:1.12;font-weight:800;margin:0 0 18px}
.jumbotron.hero p{font-size:clamp(17px,2vw,21px);line-height:1.6;color:#eaf0e8;font-weight:400;max-width:44em}
.jumbotron.hero div[style*="font-size:80%"]{font-size:100%!important}
.jumbotron.hero a:not(.btn){color:var(--barley)}
.jumbotron.hero-home{padding:150px 0 130px}
.jumbotron.hero-home .container{max-width:1000px}
.jumbotron.hero-home h1{font-size:clamp(38px,6.5vw,68px)}

/* Photos: drop files in /img with these names. Missing files fall back to the furrow pattern. */
.hero-home{background-image:linear-gradient(100deg,rgba(20,42,35,.88) 0%,rgba(20,42,35,.55) 60%,rgba(20,42,35,.25) 100%),url(../img/hero-home.jpg),repeating-linear-gradient(172deg,#1f3d33 0 26px,#24483c 26px 52px)}
.hero-about{background-image:linear-gradient(rgba(20,42,35,.82),rgba(20,42,35,.78)),url(../img/hero-about.jpg),repeating-linear-gradient(172deg,#1f3d33 0 26px,#24483c 26px 52px)}
.hero-hay{background-image:linear-gradient(100deg,rgba(20,42,35,.88),rgba(20,42,35,.45)),url(../img/hero-hay.jpg),linear-gradient(135deg,#1f3d33,#7d6a1f)}
.hero-services{background-image:linear-gradient(100deg,rgba(20,42,35,.88),rgba(20,42,35,.45)),url(../img/hero-services.jpg),linear-gradient(135deg,#1f3d33,#3c5a4c)}
.hero-turkey{background-image:linear-gradient(100deg,rgba(20,42,35,.88),rgba(20,42,35,.5)),url(../img/hero-turkey.jpg),linear-gradient(135deg,#1f3d33,#8a4b21)}
.hero-short{padding:70px 0 90px}

/* Light hero for pages with product/map content inside the banner */
.jumbotron.hero-plain{background:var(--white);color:var(--ink);text-shadow:none;padding:56px 0;border-bottom:4px solid var(--barley)}
.jumbotron.hero-plain .container{max-width:1170px}
.jumbotron.hero-plain p{color:var(--ink);font-size:18px}
.jumbotron.hero-plain h2,.jumbotron.hero-plain h3,.jumbotron.hero-plain .hero-title{color:var(--spruce)}
.jumbotron.hero-plain .hero-title{font-size:34px}
.jumbotron.hero-plain div[style*="font-size:80%"]{font-size:100%!important}
.jumbotron.hero-plain a:not(.btn){color:var(--spruce)}
.googleMaps{border-radius:10px;overflow:hidden;box-shadow:0 8px 28px rgba(20,42,35,.18)}
.googleMaps iframe{width:100%;max-width:100%;display:block}
.media-object{border-radius:8px;max-width:110px;height:auto}

/* ---------- Buttons ---------- */
.btn{border-radius:999px;font-weight:700;padding:10px 24px;text-shadow:none;background-image:none;box-shadow:none;transition:transform .15s,background .15s}
.btn-lg{padding:14px 32px;font-size:18px}
.btn-primary{background:var(--barley);border:2px solid var(--barley);color:var(--spruce-deep)}
.btn-primary:hover,.btn-primary:focus{background:#e8b840;border-color:#e8b840;color:var(--spruce-deep);transform:translateY(-1px)}
.btn-default{background:transparent;border:2px solid var(--spruce);color:var(--spruce)}
.btn-default:hover,.btn-default:focus{background:var(--spruce);border-color:var(--spruce);color:#fff}
.btn[disabled]{opacity:.5}

/* ---------- Feature cards with photo slots ---------- */
.feature-row{display:flex;flex-wrap:wrap;margin-top:-40px;position:relative;z-index:2}
.feature-row>[class*="col-"]{display:flex;margin-bottom:30px}
.feature-card{background:var(--white);border-radius:12px;overflow:hidden;box-shadow:0 10px 30px rgba(20,42,35,.14);display:flex;flex-direction:column;width:100%;border-top:4px solid var(--barley)}
.feature-card .card-body{padding:24px 26px 28px;flex:1;display:flex;flex-direction:column}
.feature-card .card-body h2{margin:0 0 10px;font-size:26px}
.feature-card .card-body .btn{margin-right:6px;margin-top:6px}
.feature-card .card-actions{margin-top:auto;padding-top:10px}
.feature-card ul{padding-left:20px}
.card-img{height:200px;background-size:cover;background-position:center;background-color:var(--spruce)}
.card-grains{background-image:url(../img/card-grains.jpg),linear-gradient(160deg,#d9a62e,#8a6a12)}
.card-hay{background-image:url(../img/card-hay.jpg),linear-gradient(160deg,#a8b44a,#4f6b2a)}
.card-produce{background-image:url(../img/card-produce.jpg),linear-gradient(160deg,#e6c36a,#a9812a)}
.card-services{background-image:url(../img/card-services.jpg),linear-gradient(160deg,#3c5a4c,#1f3d33)}
.card-tillage{background-image:url(../img/card-tillage.jpg),repeating-linear-gradient(172deg,#5a4633 0 18px,#6b543e 18px 36px)}
.card-combining{background-image:url(../img/card-combining.jpg),linear-gradient(160deg,#d9a62e,#7a5c10)}

/* Visit strip on home page */
.visit-strip{background:var(--spruce);color:#eaf0e8;border-radius:12px;padding:34px 38px;margin:20px 0 10px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px}
.visit-strip h2{color:#fff;margin:0 0 6px;font-size:28px}
.visit-strip p{margin:0;font-size:18px}

/* ---------- Tables ---------- */
.table-responsive{background:var(--white);border-radius:12px;box-shadow:0 8px 24px rgba(20,42,35,.1);padding:10px;border:0}
.table>thead>tr>td,.table>tbody>tr>td{border-color:var(--line);vertical-align:middle}
.table-striped>tbody>tr:nth-of-type(odd){background:#f6f8f3}
.table-hover>tbody>tr:hover{background:#fbf1d6}
.table h4{color:var(--spruce);margin:12px 0 4px}
.table h5{color:var(--seed);margin:4px 0}

/* ---------- Forms ---------- */
form.form-horizontal{background:var(--white);border-radius:12px;box-shadow:0 10px 30px rgba(20,42,35,.14);padding:36px 30px 20px;margin-top:-50px;position:relative;z-index:2;border-top:4px solid var(--barley)}
.form-control{height:46px;border:1.5px solid #c4cfc3;border-radius:8px;box-shadow:none;font-size:17px}
textarea.form-control{height:auto}
.form-control:focus{border-color:var(--spruce);box-shadow:0 0 0 3px rgba(217,166,46,.35)}
.control-label{font-weight:700;color:var(--spruce)}
.label-info,.badge-info,.badge{background:var(--seed);color:#fff;border-radius:999px}

/* ---------- Alerts ---------- */
.alert{border-radius:10px;border:0;border-left:5px solid}
.alert-info{background:#fbf1d6;border-color:var(--barley);color:#5a430a}
.alert-danger{background:#fdeceb;border-color:#b3322a;color:#7a1f1a}
.jumbotron.hero .alert-info{display:inline-block;margin-top:14px;text-shadow:none;font-weight:600}
.jumbotron.hero .alert-danger{text-shadow:none;max-width:44em}
.jumbotron.hero .alert-link{color:#7a1f1a;font-weight:700}

/* ---------- Footer ---------- */
hr{border-top-color:var(--line)}
footer{background:var(--white);border-radius:12px 12px 0 0;margin-top:40px;padding:10px 24px 24px;box-shadow:0 -4px 20px rgba(20,42,35,.06)}
footer p,footer small{color:var(--seed)}

/* ---------- Page padding ---------- */
.container>.row:first-child{padding-top:10px}
@media(max-width:767px){
  .jumbotron.hero{padding:56px 0 60px}.jumbotron.hero-home{padding:90px 0 80px}
  .feature-row{margin-top:-24px}form.form-horizontal{padding:24px 18px 10px}.visit-strip{padding:26px 22px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ---------- Home page: card spacing ---------- */
.page-home .feature-row{margin-top:0}
.page-home .feature-row>[class*="col-"]{margin-bottom:40px}
.page-home .visit-strip{margin:40px 0}

/* ---------- About page ---------- */
.about-card .card-body{padding:36px 40px 30px}
.about-card .signature{margin-top:10px;font-family:"Bitter",Georgia,serif;color:var(--spruce)}
@media(max-width:767px){.about-card .card-body{padding:24px 22px 20px}}

/* ---------- Confirmation page ---------- */
.page-conf .jumbotron.hero{padding-bottom:200px}

/* ---------- Site footer (full-width, matches navbar) ---------- */
body{padding-bottom:0}
footer.site-footer{background:var(--spruce-deep);border-top:4px solid var(--barley);border-radius:0;box-shadow:none;margin-top:30px;padding:48px 0 0;color:#cfdcd1}
footer.site-footer p{color:#cfdcd1;margin:0;font-size:16px;line-height:1.7}
footer.site-footer h4{color:var(--barley);font-size:15px;text-transform:uppercase;letter-spacing:.08em;margin:0 0 10px}
footer.site-footer a{color:#fff;text-decoration-color:var(--barley)}
footer.site-footer a:hover,footer.site-footer a:focus{color:var(--barley)}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1.4fr 1fr;gap:32px;align-items:start}
.footer-logo img{border-radius:10px;max-width:100%;height:auto}
.footer-bottom{margin-top:40px;padding:18px 0 22px;border-top:1px solid #2d5446;font-size:14px;color:#9fb3a5}
@media(max-width:991px){.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:575px){.footer-grid{grid-template-columns:1fr}}

/* Hero followed directly by footer: let the footer's top border be the only line */
.jumbotron.hero-plain + footer.site-footer{margin-top:0}
.jumbotron.hero-plain:has(+ footer.site-footer){border-bottom:0;margin-bottom:0}

/* Hero directly followed by footer: no gap between them */
.jumbotron.hero:has(+ footer.site-footer){margin-bottom:0}
.jumbotron.hero + footer.site-footer{margin-top:0}
