/* DEPE Property Services. One stylesheet, no framework. */

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched fallback so text does not reflow when Figtree arrives */
@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 98%;
  ascent-override: 96%;
  descent-override: 25%;
  line-gap-override: 0%;
}

:root {
  --red: #d8252b;          /* from the DEPE logo; white text on it is 4.98:1 */
  --red-dark: #b01c21;
  --ink: #1c1e21;
  --text: #33373d;
  --muted: #565b63;        /* 6.4:1 on paper */
  --paper: #fbf8f3;
  --stone: #f2ede5;
  --line: #e2dbcf;
  --white: #fff;
  --wa: #25d366;
  --wa-ink: #0b2615;
  --radius: 10px;
  --wrap: 1160px;
  --gutter: 20px;
  --shadow: 0 1px 2px rgb(28 30 33 / 6%), 0 6px 20px rgb(28 30 33 / 7%);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 "Figtree", "Figtree Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

a { color: var(--red-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--red); }

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px;
}
.skip:focus { top: 8px; color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red-dark);
  margin: 0 0 0.75rem;
}

.lead { font-size: 1.1875rem; color: var(--text); max-width: 40em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 50px; padding: 0.7em 1.3em;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { background: #1fbd5a; color: var(--wa-ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 92px; }
.brand { display: block; flex: none; border-radius: 4px; }
.brand img { width: 140px; height: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  display: block; padding: 10px 12px; border-radius: 6px;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.nav a:hover { background: var(--stone); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red-dark); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.header-call { flex: none; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--stone); }
.section-white { background: var(--white); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.125rem; margin: 0; }
.section-foot { margin-top: 36px; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { margin-bottom: 1.6rem; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.ticks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--red); }
.ticks a { color: var(--ink); }

.mosaic {
  display: grid; gap: 12px;
  grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr;
  aspect-ratio: 3 / 2;
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.mosaic img:first-child { grid-row: span 2; }

/* Services cards (home) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
a.card { color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.card:hover { color: inherit; transform: translateY(-2px); box-shadow: 0 2px 4px rgb(28 30 33 / 8%), 0 12px 28px rgb(28 30 33 / 12%); }
a.card:hover h3 { color: var(--red-dark); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { margin-bottom: 0.4em; }
.card-body p { margin: 0; color: var(--muted); }

/* Photo grid */
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--line); }
.photos a { display: block; border-radius: 8px; }
.photos a:hover img { opacity: 0.9; }
.photos--3 { grid-template-columns: repeat(3, 1fr); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 1.125rem;
}
.steps p { color: var(--muted); margin: 0; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review {
  margin: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 28px 24px; display: flex; flex-direction: column;
}
.review svg { width: 34px; height: 34px; color: var(--red); margin-bottom: 12px; }
.review blockquote { margin: 0 0 18px; color: var(--ink); font-size: 1.0625rem; }
.review blockquote p { margin: 0; }
.review figcaption { margin-top: auto; font-weight: 700; color: var(--ink); }
.review figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9375rem; }
.review-links { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

/* Quote / contact block */
.quote-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); color: var(--red);
  box-shadow: var(--shadow);
}
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--ink); }
.contact-list a { font-weight: 600; font-size: 1.125rem; }
.contact-list span.small { color: var(--muted); font-size: 0.9375rem; }

.form-card { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 32px; }
.form-card h2, .form-card h3 { margin-bottom: 0.3em; }
.form-card > p { color: var(--muted); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
input, textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid #b9b1a4; border-radius: 8px;
  padding: 12px 14px; min-height: 50px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(28 30 33 / 18%); background: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-note { font-size: 0.9375rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--red-dark); }
.form-done { text-align: left; }
.form-done h3 { color: var(--ink); }

/* Page header (inner pages) */
.page-head { padding: 56px 0 40px; }
.page-head h1 { margin-bottom: 0.3em; }
.page-head .lead { margin: 0; color: var(--muted); }

/* Services page */
.service { display: grid; grid-template-columns: 300px minmax(0, 38em); gap: 48px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); max-width: 414px; }
.service h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.service p { color: var(--text); }
.service .note { color: var(--muted); font-size: 0.9875rem; border-left: 3px solid var(--red); padding-left: 14px; }

/* Gallery page */
.gallery-group { margin-top: 56px; }
.gallery-group:first-child { margin-top: 0; }
.gallery-group h2 { font-size: 1.5rem; margin-bottom: 16px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.jump a {
  display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 0.9375rem; text-decoration: none;
}
.jump a:hover { border-color: var(--ink); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgb(15 16 18 / 88%); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox p { color: #fff; text-align: center; margin: 12px 0 0; }
.lightbox button {
  position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* About page */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.about-grid img { border-radius: var(--radius); width: 100%; }
.about-grid figure { margin: 0; }
.about-grid figcaption { color: var(--muted); font-size: 0.9375rem; margin-top: 10px; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg);
}

/* Call-to-action band */
.cta-band { background: var(--stone); color: var(--text); padding: 56px 0; border-top: 1px solid var(--line); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: var(--ink); margin: 0 0 0.2em; }
.cta-band p { margin: 0; }

/* Footer */
.site-footer { background: #151719; color: #cfcbc4; padding: 56px 0 40px; font-size: 0.9875rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2 { color: #fff; font-size: 1.0625rem; letter-spacing: 0; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer address { font-style: normal; }
.footer-brand { font-weight: 800; font-size: 1.25rem; color: #fff; margin-bottom: 8px; }
.footer-brand span { color: #ff6b6f; }
.footer-base { border-top: 1px solid #2c2f33; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #a8a39b; }

[hidden] { display: none !important; }

/* Mobile call bar */
.callbar { display: none; }

/* Tablet */
@media (max-width: 980px) {
  .hero .wrap, .quote-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .steps h3 { margin-top: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .site-header .wrap { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 12px; }
  .brand img { width: 108px; }
  .header-call { display: none; }
  .nav { margin: 6px calc(var(--gutter) * -1) 0; width: calc(100% + var(--gutter) * 2); border-top: 1px solid var(--line); }
  .nav ul { justify-content: space-between; gap: 0; padding: 0 6px; }
  .nav a { padding: 12px 10px; font-size: 0.975rem; }
  .section { padding: 56px 0; }
  .hero { padding: 36px 0 48px; }
  .lead { font-size: 1.0625rem; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .cards, .reviews { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr 1fr; gap: 8px; }
  .photos--3 > li:first-child:nth-last-child(odd) { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px 18px; }
  .service { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .service img { max-width: 100%; aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band .btn { flex: 1 1 100%; }

  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 97%); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgb(28 30 33 / 10%);
  }
  .callbar .btn { min-height: 52px; padding: 0.6em 0.8em; }
  /* Hidden while the page's own call/WhatsApp buttons are on screen, so the two never show at once */
  .callbar { transition: transform 0.25s ease, opacity 0.25s ease; }
  .callbar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .callbar { transition: none; }
}

.hero-alt { margin: 16px 0 0; color: var(--muted); }
.footer-base p { margin: 0; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

@media (max-width: 760px) {
  .card { flex-direction: row; align-items: stretch; }
  .card img { width: 112px; aspect-ratio: 1; flex: none; }
  .card-body { padding: 14px 16px; align-self: center; }
  .card-body h3 { font-size: 1.0625rem; margin-bottom: 0.25em; }
  .card-body p { font-size: 0.9375rem; line-height: 1.5; }
  .cards { gap: 14px; }
}

/* Comfortable tap targets for stacked links */
.site-footer li a, .contact-list a { display: inline-block; padding: 4px 0; }
.site-footer ul { gap: 2px; }

/* Smooth page-to-page navigation (Chrome, Edge, Safari 18.2+). Others navigate normally. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.callbar { view-transition-name: callbar; }
main { view-transition-name: main; }
/* Only the page content crossfades; everything else snaps, so the header, menu and call bar never flicker */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(main) { animation: none; }
::view-transition-old(main), ::view-transition-new(main) { animation-duration: 180ms; animation-timing-function: ease; }
::view-transition-group(site-header), ::view-transition-old(site-header), ::view-transition-new(site-header),
::view-transition-group(callbar), ::view-transition-old(callbar), ::view-transition-new(callbar) { animation: none; }
::view-transition-old(site-header), ::view-transition-old(callbar) { display: none; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Review prompt */
.review-ask { margin: 20px 0 0; color: var(--muted); }

/* Spacing helpers (no inline styles, so the CSP needs no 'unsafe-inline') */
.section-tight { padding-top: 56px; }
.page-head--end { padding-bottom: 96px; }
.h-sub { font-size: 1.4rem; margin-top: 1.4em; }

/* Services page links */
.service-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; font-weight: 700; }
.service-links a { display: inline-block; padding: 6px 0; }

/* Form: phone-or-email group and inline errors */
.field-group { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.field-group legend { font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 2px; }
.field-group .field { margin-bottom: 0; }
.field-group label { font-weight: 600; }
.field-hint { color: var(--muted); font-size: 0.9375rem; margin: 0 0 10px; }
.field-error { color: var(--red-dark); font-weight: 600; font-size: 0.9375rem; margin: 6px 0 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red-dark); }
@media (max-width: 760px) { .field-group .field + .field { margin-top: 18px; } }
.form-done p:last-child { margin-bottom: 0; }

/* Areas we cover */
.areas-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.areas-grid h2 { margin-bottom: 0.4em; }
.areas-grid p { color: var(--muted); font-size: 1.125rem; margin: 0; }
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.areas li { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.areas strong { display: block; color: var(--ink); font-size: 1.0625rem; }
.areas span { color: var(--muted); font-size: 0.9375rem; }

/* FAQ */
.faq { max-width: 46em; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none; border-radius: 4px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.125rem; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(45deg) translateY(-3px);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item summary:hover h3 { color: var(--red-dark); }
.faq-item p { margin: 0 0 20px; color: var(--text); max-width: 40em; }

@media (max-width: 980px) { .areas-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 760px) { .areas { grid-template-columns: 1fr 1fr; gap: 10px; } .areas li { padding: 14px 16px; } }

@media (prefers-reduced-motion: reduce) {
  a.card, a.card:hover { transition: none; transform: none; }
  .btn { transition: none; }
}

/* Thank-you page */
.h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.steps--next { margin-top: 40px; }
.thanks-back { margin: 40px 0 0; }
.form-done:focus { outline: none; }

/* In-page navigation (js/site.js router) */
.is-loading, .is-loading a { cursor: progress; }
.route-focus:focus { outline: none; }
.photos img.focus-top, .mosaic img.focus-top { object-position: 50% 18%; }
