/* =========================================================
   Melbourne Deceased Estate Clearance — site stylesheet
   Plain CSS, no build step. Implements the component-library.md
   spec — this site's brand palette: olive / dark forest green,
   chosen for a trustworthy, compassionate feel (site-specific;
   see wiki/framework/component-library.md for the shared
   structural components this reuses).
   No stock photography used (none was available/licensed);
   hero and section treatments are CSS-driven instead.
   ========================================================= */

:root {
  --olive:        #6E7F45;
  --olive-dark:   #57642F;
  --forest:       #23392C;
  --forest-dark:  #152418;
  --sage:         #4F7A5C;
  --sage-dark:    #3D6148;
  --sand:         #E3AC33;
  --sand-dark:    #C4901F;
  --ink:          #20291F;
  --ink-soft:     #52604F;
  --line:         #DEE6DC;
  --bg:           #ffffff;
  --bg-alt:       #EFF4EC;
  --max:          1160px;
  --radius:       6px;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); line-height: 1.7; background: var(--bg); -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--forest); }
h1 { font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: .6em; }
h3 { font-size: 1.2rem; margin-bottom: .35em; }
p  { margin-bottom: 1rem; color: var(--ink-soft); }
a  { color: var(--sage); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- buttons (named by color, never generic) ---------- */
.btn { display: inline-block; padding: 13px 26px; border-radius: var(--radius); font-weight: 700;
  font-family: var(--font-body); border: none; cursor: pointer; transition: background .15s ease, color .15s ease; }
.btn--olive  { background: var(--olive); color: #fff; }
.btn--olive:hover { background: var(--olive-dark); text-decoration: none; }
.btn--forest { background: var(--forest); color: #fff; }
.btn--forest:hover { background: var(--forest-dark); text-decoration: none; }
.btn--sand   { background: var(--sand); color: var(--forest); }
.btn--sand:hover { background: var(--sand-dark); color: #fff; text-decoration: none; }
.btn--sage   { background: var(--sage); color: #fff; }
.btn--sage:hover { background: var(--sage-dark); text-decoration: none; }
.btn--ghost { background: transparent; color: #fff; border: 2px solid #fff; }
.btn--ghost:hover { background: #fff; color: var(--forest); text-decoration: none; }
.btn--outline { background: transparent; color: var(--forest); border: 2px solid var(--forest); }
.btn--outline:hover { background: var(--forest); color: #fff; text-decoration: none; }
.btn--lg { padding: 17px 34px; font-size: 1.02rem; }
.muted { color: var(--ink-soft); font-size: .9rem; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.header-top { background: var(--forest); color: #fff; }
.header-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 20px; max-width: var(--max); margin: 0 auto; flex-wrap: wrap; }
.nav__logo { color: #fff; font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; }
.header-contact { display: flex; gap: 22px; font-size: .88rem; flex-wrap: wrap; }
.header-contact__item a { color: rgba(255,255,255,.9); white-space: nowrap; }
.header-contact__item a:hover { color: #fff; }
@media (max-width: 600px) {
  .header-top__inner { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 20px; }
  .header-contact { flex-direction: column; gap: 4px; }
}

.site-nav { background: var(--olive); }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 20px; max-width: var(--max); margin: 0 auto; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links > li > a { display: block; color: #fff; font-weight: 600; font-size: .93rem; padding: 14px 14px; }
.nav__links > li > a:hover { background: var(--olive-dark); text-decoration: none; }
.nav__call.wc-phone { background: var(--sand); color: var(--forest) !important; padding: 10px 18px; border-radius: var(--radius); margin: 8px 0 8px 6px; }
.nav__call.wc-phone:hover { background: var(--sand-dark); color: #fff !important; text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: #fff; padding: 10px; }
@media (max-width: 900px) {
  .nav { justify-content: space-between; }
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--olive); padding: 6px 20px 14px; }
  .nav__links.open { display: flex; }
  .nav__links > li > a { padding: 12px 4px; }
  .nav__call.wc-phone { margin: 8px 0; display: inline-block; }
  .nav__toggle { display: block; }
}

/* ---------- hero (no photography — CSS gradient treatment) ---------- */
.hero { background: linear-gradient(135deg, #EEF3E9 0%, #E4EDE0 60%, #D9E7D3 100%); }
.hero__inner { max-width: var(--max); margin: 0 auto; padding: 64px 20px; }
.hero p.hero__eyebrow { display: inline-block; max-width: 34ch; background: var(--forest); color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; line-height: 1.4; font-weight: 700; padding: 8px 14px; border-radius: 8px; margin-bottom: 18px; }
.hero h1 { margin: 0 0 16px; max-width: 20ch; }
.hero p { font-size: 1.1rem; max-width: 52ch; color: var(--ink-soft); }
.hero__cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__checklist { list-style: none; margin: 20px 0 8px; }
.hero__checklist li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--ink); font-weight: 600; }
.hero__checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--olive); font-weight: 700; }
.hero__split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; padding-top: 12px; }
@media (max-width: 900px) { .hero__split { grid-template-columns: 1fr; } }
/* hero__inner's own max-width/margin/padding are for when it's the sole child of section.hero
   (see simple_hero pages); inside .wrap.hero__split that centering is already handled by .wrap
   and the grid column, so drop the horizontal half — keep only the vertical rhythm. */
.hero__split .hero__inner { max-width: none; margin: 0; padding: 64px 0; }
.hero__panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px; box-shadow: 0 18px 40px rgba(35,57,44,.1); }
.hero__panel h3 { color: var(--forest); }
.hero__panel p { margin-bottom: 0; }
.hero__right { display: flex; flex-direction: column; gap: 18px; }
.hero__photo { border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(35,57,44,.18); aspect-ratio: 3 / 2; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Nudge the photo down so its top edge lines up with the H1's top edge, not hero__inner's
   padding-box top — hero__inner's 64px top padding + the eyebrow badge + its margin sit above
   the H1, so the photo needs the same offset. Desktop (2-col) only; stacked mobile layout should
   not carry this gap. */
@media (min-width: 901px) { .hero__photo { margin-top: 116px; } }
.hero__form { box-shadow: 0 18px 40px rgba(35,57,44,.18); }
.hero__form .field:last-of-type { margin-bottom: 18px; }

/* ---------- sections ---------- */
.section { padding: 60px 0; }
.section--alt { background: var(--bg-alt); }
.section__lead { max-width: 65ch; }
.center { text-align: center; }
.center .section__lead { margin: 0 auto; }

.split { display: grid; grid-template-columns: 60fr 40fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--olive); border-radius: var(--radius); padding: 24px; }
.section--alt .card { background: #fff; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
@media (max-width: 800px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .linklist { grid-template-columns: 1fr; } }
.linklist a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 600; }
.linklist a:hover { border-color: var(--olive); color: var(--olive); text-decoration: none; }

/* area links (service-areas grids) */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
@media (max-width: 800px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .area-grid { grid-template-columns: 1fr; } }
.area-link { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.area-link:hover { border-color: var(--sage); text-decoration: none; }
.area-link__name { display: block; font-weight: 700; color: var(--ink); }
.area-link__city { display: block; font-size: .85rem; color: var(--ink-soft); }

/* cost table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { background: var(--forest); color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--font-head); font-size: 1.08rem; padding: 16px 0; list-style: none; color: var(--forest); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--olive); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding-bottom: 16px; margin-bottom: 0; }

/* phone strip — preferred CTA pattern */
.phone-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 0; text-align: center; }
.phone-strip h2 { margin-bottom: .3em; }
.phone-strip .sub { max-width: 60ch; margin: 0 auto 22px; }
.phone-strip .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* legacy cta band — used sparingly */
.cta-band { background: var(--forest); color: #fff; text-align: center; padding: 54px 20px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); }

/* forms */
.form-card--sage { background: var(--sage); color: #fff; border-radius: 12px; padding: 30px; }
.form-card--sage h3 { color: #fff; }
.form-card--sage p.italic { font-style: italic; color: rgba(255,255,255,.9); margin-bottom: 18px; }
.form-card--sage a { color: #fff; text-decoration: underline; }
.form-card--sage a:hover { color: rgba(255,255,255,.85); }
.form-card--compact { padding: 22px; }
.form-card--compact h3 { font-size: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 13px; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; font-family: var(--font-body); font-size: .96rem; background: rgba(255,255,255,.95); color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.split .card .field input, .split .card .field textarea { background: #fff; border-color: var(--line); }

/* ---------- footer ---------- */
.site-footer { background: var(--forest-dark); color: rgba(255,255,255,.8); padding: 52px 0 26px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-family: var(--font-body); font-size: .98rem; letter-spacing: .02em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.8); font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 18px; font-size: .84rem; color: rgba(255,255,255,.55); }
.footer-disclaimer { font-size: .81rem; color: rgba(255,255,255,.55); margin-top: 10px; line-height: 1.5; }

.wc-phone { font-weight: 700; }

/* decorative section divider — used where no photography is available for that spot */
.divider { height: 5px; background: linear-gradient(90deg, var(--olive), var(--sand), var(--sage)); border: none; margin: 0; }

/* image band — real photography within a section, per component-library.md spec:
   landscape only, rounded, object-fit cover, lazy-loaded, capped height so it reads as a
   supporting visual rather than a full hero. */
.image-band { margin-top: 28px; border-radius: var(--radius); overflow: hidden; max-height: 320px; }
.image-band img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; display: block; }
