/* =====================================================================
   Worry Free Construction — styles.css
   Brand tokens are derived from the logo (ink black + construction gold).
   Change the values under :root to re-theme the whole site.
   ===================================================================== */

:root {
  /* Colours pulled from the logo */
  --ink: #0F1418;        /* logo black — headings, nav, footer */
  --gold: #F8B70C;       /* logo yellow — buttons, accents */
  --gold-deep: #C98F00;  /* darker gold for rules/underlines on white (AA contrast) */
  --white: #FFFFFF;
  --stone: #F4F4F1;      /* light section background */
  --stone-line: #E2E2DC; /* borders */
  --slate: #3F464D;      /* body text */
  --slate-soft: #6B7278; /* secondary text */

  --font: "Montserrat", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 4px;
  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; max-width: 68ch; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--stone { background: var(--stone); }
.section-intro { max-width: 62ch; margin-bottom: 2.5rem; }
.lead { font-size: 1.15rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink);
  padding: 0.6rem 1rem; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.9rem 1.6rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--gold:hover { background: #FFC83A; border-color: #FFC83A; }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--outline:hover { border-color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--ink:hover { background: #1f272d; border-color: #1f272d; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 1px solid var(--stone-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 62px; width: auto; }
@media (max-width: 800px) { .brand img { height: 50px; } }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: center; }
.nav-links a {
  display: block; padding: 0.55rem 0.9rem; text-decoration: none; font-weight: 600;
  color: var(--ink); border-bottom: 3px solid transparent; border-radius: 2px;
}
.nav-links a:hover { border-bottom-color: var(--gold); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav-links .nav-cta { margin-left: 0.5rem; }
.nav-links .nav-cta a { background: var(--ink); color: var(--white); padding: 0.6rem 1.1rem; border-radius: var(--radius); border-bottom: 0; }
.nav-links .nav-cta a:hover { background: var(--gold); color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; width: 46px; height: 46px;
}
.nav-toggle span { display: block; width: 28px; height: 3px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1rem;
    border-bottom: 1px solid var(--stone-line); display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--stone-line); border-radius: 0; }
  .nav-links a[aria-current="page"], .nav-links a:hover { border-bottom-color: var(--gold); }
  .nav-links .nav-cta { margin: 0.75rem 0 0; }
  .nav-links .nav-cta a { text-align: center; border-radius: var(--radius); }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink); color: var(--white); position: relative; overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - var(--nav-h)); max-height: 780px; }
.hero__text { padding: clamp(3rem, 7vw, 6rem) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.hero__text > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.hero__inner { width: 100%; max-width: calc(var(--wrap) / 2); margin-left: auto; }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero p { color: #d2d6da; font-size: 1.15rem; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.hero__location { margin-top: 2.5rem; font-size: 0.95rem; color: #b6bcc2; display: flex; align-items: center; gap: 0.5rem; }
.hero__location svg { width: 18px; height: 18px; fill: var(--gold); flex: none; }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* The gold roofline — a single diagonal echoing the logo's roof and checkmark */
.hero__media::before {
  content: ""; position: absolute; inset: 0 auto 0 -1px; width: 22%;
  background: linear-gradient(115deg, var(--ink) 0 46%, var(--gold) 46% 55%, transparent 55%);
  pointer-events: none;
}
@media (max-width: 800px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero__inner { max-width: none; }
  .hero__media { height: 260px; }
  .hero__media::before { inset: -1px 0 auto 0; width: auto; height: 22%;
    background: linear-gradient(170deg, var(--ink) 0 46%, var(--gold) 46% 58%, transparent 58%); }
}

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__values { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.about__values li { display: flex; gap: 0.8rem; align-items: flex-start; font-weight: 600; color: var(--ink); }
.about__values svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.about__values span { display: block; font-weight: 400; color: var(--slate); }
@media (max-width: 800px) { .about__grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  background: var(--white); border: 1px solid var(--stone-line); border-top: 4px solid var(--gold);
  padding: 1.6rem 1.5rem 1.5rem; border-radius: var(--radius);
}
.service svg { width: 34px; height: 34px; margin-bottom: 1rem; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-bottom: 0.4rem; }
.service p { margin: 0; font-size: 0.98rem; }
.services__cta { margin-top: 2.5rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.services__cta p { margin: 0; }
@media (max-width: 900px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services__grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--white); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-block: 3rem; }
.cta-band h2 { color: var(--white); margin: 0 0 0.35rem; }
.cta-band p { color: #c9ced3; margin: 0; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { background: var(--ink); color: var(--white); padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 6px solid var(--gold); }
.page-banner h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-banner p { color: #c9ced3; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  font-family: inherit; font-weight: 600; font-size: 0.95rem; background: var(--white);
  border: 1px solid var(--stone-line); color: var(--ink); padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.gallery-item.is-hidden { display: none; }
.gallery-item button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font-family: inherit;
}
.gallery-item img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(15,20,24,.85), rgba(15,20,24,0));
  color: var(--white); font-size: 0.92rem; font-weight: 600; line-height: 1.35;
  transform: translateY(6px); opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; transform: none; }
.gallery-item figcaption small { display: block; font-weight: 400; color: var(--gold); margin-bottom: 0.15rem; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item figcaption { opacity: 1; transform: none; } /* captions always visible on touch */
}
.gallery-placeholder {
  aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 1rem;
  border: 2px dashed var(--stone-line); color: var(--slate-soft); font-weight: 600; border-radius: var(--radius);
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15,20,24,.94); display: none; align-items: center; justify-content: center; padding: 1rem; }
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__figure img { max-height: 80vh; max-width: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox__caption { color: var(--white); margin-top: 0.9rem; text-align: center; font-weight: 600; }
.lightbox__caption small { display: block; color: var(--gold); font-weight: 400; }
.lightbox__btn {
  position: absolute; background: rgba(255,255,255,.1); color: var(--white); border: 0; width: 48px; height: 48px;
  border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
}
.lightbox__btn:hover { background: var(--gold); color: var(--ink); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; } .lightbox__figure img { max-height: 70vh; } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); }
.contact__details { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.2rem; }
.contact__details li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact__details svg { width: 24px; height: 24px; flex: none; margin-top: 2px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__details strong { display: block; color: var(--ink); }
.contact__details a { color: var(--slate); text-decoration-color: var(--gold-deep); text-underline-offset: 3px; word-break: break-all; }
.contact__details a:hover { color: var(--ink); }
.contact__note { background: var(--stone); padding: 1.25rem 1.4rem; border-left: 4px solid var(--gold); border-radius: var(--radius); font-size: 0.98rem; }
.contact__note p { margin: 0; }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: 0.75rem 0.9rem; border: 1px solid #c9ccc9; border-radius: var(--radius);
  background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid rgba(248,183,12,.5); outline-offset: 0; }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: 0.85rem; color: var(--slate-soft); margin: 0.3rem 0 0; }
.form__status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form__status.is-error { color: #a12e2e; }
.form__status.is-success { color: #1f6b3a; }
@media (max-width: 800px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9ced3; padding: 3.5rem 0 1.5rem; border-top: 6px solid var(--gold); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer__brand { background: var(--white); display: inline-block; padding: 0.5rem 0.75rem; border-radius: var(--radius); margin-bottom: 1rem; }
.footer__brand img { height: 48px; width: auto; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.9rem; }
.site-footer p { margin: 0 0 0.4rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: #e5e8ea; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }
