/* Vilcasa — owner-first property management site.
   Layout: one centered 1180px column; full-width colour bands carry their own inner gutter. */
:root {
  --bg: #ffffff;
  --bg-soft: #f2f6f5;
  --fg: #142321;
  --fg-muted: #43534f;
  --line: #dbe4e1;
  --brand: #1d4f4a;        /* logo teal */
  --brand-ink: #ffffff;
  --brand-soft: #e3eeec;
  --band: #10211f;         /* dark band */
  --band-fg: #e9f1ef;
  --band-muted: #b6c6c2;
  --accent: #2f8a5c;       /* "managed" green, used sparingly */
  --placeholder-a: #dde7e4;
  --placeholder-b: #e8efed;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --max: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1716; --bg-soft: #15211f; --fg: #e8efed; --fg-muted: #a9bab6; --line: #263532;
    --brand: #4fa79c; --brand-ink: #08201d; --brand-soft: #1b2e2b; --band: #0a1211; --band-fg: #e8efed;
    --band-muted: #9fb2ad; --accent: #5cc08a; --placeholder-a: #1c2a28; --placeholder-b: #22322f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1716; --bg-soft: #15211f; --fg: #e8efed; --fg-muted: #a9bab6; --line: #263532;
  --brand: #4fa79c; --brand-ink: #08201d; --brand-soft: #1b2e2b; --band: #0a1211; --band-fg: #e8efed;
  --band-muted: #9fb2ad; --accent: #5cc08a; --placeholder-a: #1c2a28; --placeholder-b: #22322f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(56px, 8vw, 96px); }
.section.soft { background: var(--bg-soft); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.lead { font-size: 1.15rem; color: var(--fg-muted); max-width: 62ch; }
.muted { color: var(--fg-muted); }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 16px; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 6px 24px; font-size: 0.95rem; font-weight: 500; }
.nav a { color: var(--fg); text-decoration: none; padding-block: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .phone { font-variant-numeric: tabular-nums; }
.menu-btn { display: none; font: inherit; font-weight: 600; background: none; color: var(--fg); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 14px; min-height: 44px; cursor: pointer; }
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding-block: 12px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.nav .btn-primary { color: var(--brand-ink); padding-block: 10px; min-height: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { background: var(--bg-soft); }
.hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.call-line { font-size: 0.98rem; color: var(--fg-muted); }
.call-line strong { color: var(--fg); font-variant-numeric: tabular-nums; }

/* Photos with graceful fallback */
.photo { position: relative; border-radius: var(--radius); overflow: hidden; max-width: 100%;
  background: repeating-linear-gradient(135deg, var(--placeholder-a) 0 14px, var(--placeholder-b) 14px 28px); }
.photo::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
  color: var(--fg-muted); font-size: 0.9rem; font-weight: 500; }
.photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.photo.r43 { aspect-ratio: 4 / 3; }
.photo.r32 { aspect-ratio: 3 / 2; }

/* Proof strip */
.proof { border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 24px; padding-block: 28px; }
.proof-item { display: flex; flex-direction: column; gap: 2px; }
.proof-item b { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.01em; }
.proof-item span { font-size: 0.92rem; color: var(--fg-muted); }

/* Services */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.service svg { width: 28px; height: 28px; stroke: var(--brand); }
.service p { color: var(--fg-muted); font-size: 0.98rem; }

/* Steps (a real sequence) */
.band { background: var(--band); color: var(--band-fg); }
.band .eyebrow { color: var(--accent); }
.band .muted, .band p { color: var(--band-muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--accent); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: "Step " counter(step); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--accent); }
.steps h3 { color: var(--band-fg); }

/* Split */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.split > * { min-width: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }

/* Pricing */
.fee-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fee-table th, .fee-table td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table th { font-weight: 600; width: 40%; }
.fee-table td.amount { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; white-space: nowrap; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.note { background: var(--brand-soft); border-radius: var(--radius); padding: 18px 20px; font-size: 0.95rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px 28px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--fg-muted); max-width: 68ch; }

/* Areas */
.area { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.area .towns { font-size: 0.9rem; color: var(--brand); font-weight: 600; }

/* Rentals CTA */
.rent-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; background: var(--bg); }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.big-phone { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--fg); text-decoration: none; }

/* CTA band */
.cta { background: var(--brand); color: var(--brand-ink); }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 56px; }
.cta p { opacity: 0.9; }
.cta .btn { background: var(--brand-ink); color: var(--brand); }
.cta .btn-outline { background: transparent; color: var(--brand-ink); border-color: currentColor; }

/* Footer */
.site-footer { background: var(--band); color: var(--band-muted); font-size: 0.92rem; }
.site-footer .wrap { padding-block: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.site-footer h3 { font-size: 1rem; color: var(--band-fg); margin-bottom: 10px; }
.site-footer a { color: var(--band-fg); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.legal { border-top: 1px solid #ffffff1f; }
.legal .wrap { padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.eho svg { width: 22px; height: 22px; stroke: var(--band-fg); fill: none; }

/* Page intro */
.page-intro { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-intro .wrap { padding-block: clamp(48px, 7vw, 80px); display: flex; flex-direction: column; gap: 16px; }

/* ---- What's included table ---- */
.incl-table thead th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-muted); font-weight: 600; }
.incl-table th[scope="row"] { width: 32%; }
.incl-col { width: 90px; text-align: center !important; }
.tick { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--accent); font-weight: 700; }

/* ---- Rental analysis form ---- */
.lead-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; font-weight: 500; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { font: inherit; font-weight: 400; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; min-height: 46px; width: 100%; }
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.lead-form .btn { align-self: flex-start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.form-note { font-size: 0.85rem; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .lead-form .btn { align-self: stretch; } }

/* ---- Mobile call bar ---- */
.callbar { display: none; }
@media (max-width: 920px) {
  .callbar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 10px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
  .callbar-call { background: var(--brand); color: var(--brand-ink); }
  .callbar-call svg { width: 18px; height: 18px; fill: currentColor; }
  .callbar-cta { background: var(--brand-soft); color: var(--brand); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
.incl-table { table-layout: fixed; min-width: 560px; }
.incl-table th[scope="row"], .incl-table thead th:first-child { width: 34%; }
.incl-table .incl-col { width: 96px; }
section[id], [id="analysis"], [id="included"] { scroll-margin-top: 84px; }

/* ---- County pages & guides ---- */
.rules { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.rules ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.small { font-size: 0.85rem; }
.article h2 { font-size: 1.5rem; margin-top: 12px; }
.article .sources { padding-left: 20px; font-size: 0.92rem; display: flex; flex-direction: column; gap: 6px; }
.cta-inline { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.guide-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--fg); background: var(--bg); transition: border-color .15s; }
.guide-card:hover { border-color: var(--brand); }
.page-intro .eyebrow a { color: inherit; }
/* contrast fix: eyebrows and step labels on dark bands */
.band .eyebrow, .steps li::before { color: #7fd1a4; }
.steps li { border-top-color: #7fd1a4; }

/* Renovations gallery */
.reno-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.reno { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.reno img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); }
.reno figcaption { font-size: .95rem; color: var(--fg-muted); line-height: 1.5; }
.reno figcaption strong { color: var(--fg); }
@media (max-width: 760px) { .reno-grid { grid-template-columns: 1fr; } }

/* Reviews */
.review { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.review .stars { color: #b7791f; letter-spacing: 2px; font-size: 1.05rem; }
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--fg); }
.review figcaption { font-size: .9rem; color: var(--fg-muted); font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
/* Translated pages */
.langs a { color: inherit; }
.lang-note { max-width: 70ch; }
.lang-list { margin: 0; padding-inline-start: 1.2em; display: flex; flex-direction: column; gap: 8px; }
main[dir="rtl"] { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
main[dir="rtl"] h1, main[dir="rtl"] h2, main[dir="rtl"] h3 { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
