/* =====================================================================
   Correia Farms — shared stylesheet
   Rustic farmhouse theme. Edit colors in the :root block below.
   ===================================================================== */

:root {
  /* --- Brand colors (edit here to recolor the whole site) --- */
  --cream:       #F7F1E2;
  --cream-2:     #EFE4CC;
  --paper:       #FBF7EC;
  --barn:        #9C3B2C;
  --barn-dark:   #7E2D20;
  --olive:       #5C6B39;
  --olive-dark:  #45522A;
  --honey:       #D79B33;
  --honey-soft:  #E9C46A;
  --wood:        #6B4A2F;
  --ink:         #2C2620;
  --muted:       #6E6453;
  --line:        rgba(44, 38, 32, 0.14);
  --shadow:      0 14px 34px rgba(44, 38, 32, 0.14);
  --shadow-sm:   0 6px 16px rgba(44, 38, 32, 0.10);
  --radius:      14px;
  --radius-lg:   22px;
  --maxw:        1140px;

  --font-head: "Zilla Slab", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --------------------------- Reset / base --------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% -10%, rgba(215,155,51,0.10), transparent 40%),
    radial-gradient(circle at 92% 0%, rgba(92,107,57,0.10), transparent 38%);
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--barn); text-decoration: none; }
a:hover { color: var(--barn-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }

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

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  padding: 0.72em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  letter-spacing: 0.3px; line-height: 1; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--barn); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--barn-dark); color: #fff; }
.btn--secondary { background: var(--olive); color: #fff; box-shadow: var(--shadow-sm); }
.btn--secondary:hover { background: var(--olive-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--honey { background: var(--honey); color: #3a2c10; box-shadow: var(--shadow-sm); }
.btn--honey:hover { background: #c98c25; color: #3a2c10; }
.btn--block { width: 100%; }
.btn--sm { padding: 0.58em 1.1em; font-size: 0.95rem; }

/* ------------------------------ Header ------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand-name { font-size: 1.35rem; font-weight: 700; color: var(--ink); letter-spacing: 0.4px; }
.brand-tag { font-size: 0.7rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--olive-dark); font-family: var(--font-body); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 9px 13px; border-radius: 9px;
  color: var(--ink); font-weight: 600; font-size: 0.98rem;
}
.nav-links a:hover { background: var(--cream-2); color: var(--barn-dark); }
.nav-links a.active { color: var(--barn-dark); background: var(--cream-2); }
.nav-cta { margin-left: 6px; }

.menu-toggle {
  display: none; background: transparent; border: 2px solid var(--ink); border-radius: 10px;
  width: 46px; height: 42px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 22px; height: 2.4px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s;
}
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after  { position: absolute; top: 7px; }

/* --------------------------- Hero / banners -------------------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #FBEFD2 0%, #F7E7C4 55%, var(--cream) 100%); }
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-inner { position: relative; z-index: 2; max-width: 760px; padding: 92px 0 150px; }
.hero .eyebrow { color: var(--barn-dark); }
.hero h1 { color: #34281a; text-shadow: 0 1px 0 rgba(255,255,255,0.45); }
.hero p.lead { font-size: 1.22rem; color: #4b3f2c; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.page-banner { position: relative; overflow: hidden; background: linear-gradient(180deg, #FBEFD2, var(--cream)); border-bottom: 1px solid var(--line); }
.page-banner .container { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 60px; }
.page-banner h1 { margin-bottom: 0.3em; }
.page-banner p { max-width: 640px; color: var(--muted); font-size: 1.12rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 800;
  text-transform: uppercase; letter-spacing: 2.6px; font-size: 0.74rem;
  color: var(--olive-dark); margin-bottom: 14px;
}

/* ------------------------------ Sections ----------------------------- */
.section { padding: 74px 0; }
.section--alt { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: 50px 0; }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-bottom: 0; }

/* Wavy divider */
.divider { display: block; width: 100%; height: 46px; }

/* ------------------------- Offerings grid ---------------------------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { width: 54px; height: 54px; margin-bottom: 14px; color: var(--barn); }
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card .card-link { margin-top: auto; font-family: var(--font-head); font-weight: 600; color: var(--barn); }
.card .card-link::after { content: " \2192"; }

/* ------------------------------ Products ----------------------------- */
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 4 / 3; background: var(--cream-2); }
.product-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin-bottom: 0.25em; }
.product-body p { color: var(--muted); font-size: 0.98rem; margin-bottom: 14px; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--olive-dark); margin: 2px 0 16px; }
.price .unit { font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; color: var(--muted); }
.product-actions { margin-top: auto; }

/* Photo placeholder (swap for your own pictures) */
.photo-ph {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    repeating-linear-gradient(45deg, rgba(107,74,47,0.05) 0 14px, transparent 14px 28px),
    var(--cream-2);
  color: var(--wood); text-align: center; padding: 16px;
}
.photo-ph svg { width: 40px; height: 40px; opacity: 0.6; }
.photo-ph span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.4px; opacity: 0.75; }
.photo-ph.tall { min-height: 300px; }

/* ------------------------------ Badges ------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: var(--honey-soft); color: #4a3613; font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.4px; border: 1px solid rgba(74,54,19,0.18);
}
.badge svg { width: 16px; height: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------- Feature rows ---------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; }
.feature ul.checks { list-style: none; padding: 0; margin: 18px 0 24px; }
.feature ul.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink); }
.feature ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--olive); box-shadow: inset 0 0 0 3px var(--paper);
}

/* Service list (construction) */
.service-list { columns: 2; column-gap: 40px; list-style: none; padding: 0; margin: 0; }
.service-list li { break-inside: avoid; padding: 10px 0 10px 30px; position: relative; border-bottom: 1px dashed var(--line); }
.service-list li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 12px;
  background: var(--barn); transform: rotate(45deg);
}
.service-list li strong { display: block; font-family: var(--font-head); }
.service-list li span { color: var(--muted); font-size: 0.95rem; }

/* ------------------------------- Forms ------------------------------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; width: 100%;
  transition: border .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(92,107,57,0.16);
}
.form-note { font-size: 0.86rem; color: var(--muted); margin-top: 4px; }

/* ------------------------------ Info grid ---------------------------- */
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.info-card .ic { width: 42px; height: 42px; flex: 0 0 auto; color: var(--barn); }
.info-card h3 { font-size: 1.05rem; margin-bottom: 3px; }
.info-card p { margin: 0; color: var(--muted); }

/* ------------------------------ Callout ------------------------------ */
.callout {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--olive-dark), var(--olive)); color: #fff;
  padding: 50px 44px; box-shadow: var(--shadow); text-align: center;
}
.callout h2 { color: #fff; }
.callout p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 24px; }

/* placeholder highlight used for editable text */
.ph { background: rgba(215,155,51,0.22); border-bottom: 1.5px dashed var(--honey); border-radius: 3px; padding: 0 3px; font-style: normal; }

/* ------------------------------ Footer ------------------------------- */
.site-footer { background: #2C2620; color: #d9cdb8; margin-top: 10px; }
.site-footer a { color: #e9dcc4; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0 40px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; letter-spacing: 0.5px; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #b6a98f; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; font-size: 0.86rem; color: #b6a98f; }
.footer-licence { display: inline-flex; align-items: center; gap: 8px; }

/* ------------------------------ Utilities ---------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--muted); }
.stack-sm > * + * { margin-top: 10px; }

/* ----------------------------- Responsive ---------------------------- */
@media (max-width: 940px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature.reverse .feature-media { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; gap: 2px;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 12px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-links .btn { width: 100%; }
  .hero-inner { padding: 64px 0 110px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid--4, .grid--3, .grid--2, .form-grid { grid-template-columns: 1fr; }
  .service-list { columns: 1; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 54px 0; }
  .callout { padding: 38px 24px; }
  .form-card { padding: 22px; }
}
