/* A C Property Services - site styles
   Brand: navy #1A2B4C, gold #C6A15B, off-white #F7F5F0 */

:root {
  --navy: #1A2B4C;
  --navy-deep: #121F38;
  --navy-soft: #24385F;
  --gold: #C6A15B;
  --gold-dark: #8A6B26;
  --paper: #F7F5F0;
  --grey: #E9E7E1;
  --line: #D6D3CA;
  --ink: #2B2F36;
  --muted: #5B5F66;
  --white: #FFFFFF;
  --danger: #B3261E;
  --header-h: 72px;
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", Arial, Helvetica, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.005em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--gold); color: var(--navy);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 200;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 48px; padding: 12px 24px;
  border-radius: 10px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #D4B173; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; }
.brand-tag { font-size: .78rem; font-weight: 600; color: var(--gold-dark); letter-spacing: .06em; }

.main-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none; font-weight: 600; color: var(--navy);
  padding: 8px 0; border-bottom: 3px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--gold); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--navy);
  border-radius: 10px; width: 48px; height: 48px; cursor: pointer; color: var(--navy);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(36,56,95,.9), transparent 70%),
    var(--navy);
  color: var(--white);
  padding: 72px 0 140px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 64px), 0 100%);
}
.hero h1 { color: var(--white); max-width: 18ch; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.lead { font-size: 1.2rem; max-width: 52ch; color: #E4E8F0; margin-bottom: 1.6em; }

.hero-house { max-width: 400px; justify-self: end; width: 100%; }
.roof { display: block; width: 100%; height: auto; margin-bottom: -6px; position: relative; z-index: 1; }
.roof polyline {
  fill: none; stroke: var(--gold); stroke-width: 10;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 520; stroke-dashoffset: 520;
  animation: draw-roof 1.1s ease-out .2s forwards;
}
@keyframes draw-roof { to { stroke-dashoffset: 0; } }

.house-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(198,161,91,.55);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 28px 28px 26px;
}
.house-card p { margin: 0 0 6px; color: #E4E8F0; font-size: .98rem; }
.house-card .phone {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.3rem); color: var(--gold);
  text-decoration: none; margin: 4px 0 8px; letter-spacing: .01em;
}
.house-card .phone:hover { color: #E1C487; }
.house-card .btn { margin-top: 14px; width: 100%; }

.page-hero {
  background: var(--navy); color: var(--white);
  padding: 56px 0 88px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 40px), 0 100%);
}
.page-hero h1 { color: var(--white); margin-bottom: .35em; max-width: 20ch; }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Trust strip ---------- */
.trust { padding: 8px 0 24px; }
.trust ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.trust li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--navy);
}
.trust svg { width: 30px; height: 30px; color: var(--gold-dark); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: #E4E8F0; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-bottom: 0; }
.section-navy .section-head p { color: #D3D9E4; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  background: var(--white); border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 26px 24px 28px;
}
.service .icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.service .icon svg { width: 26px; height: 26px; }
.service h3 { margin-bottom: .4em; }
.service p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Boiler offer ---------- */
.offer {
  background: var(--navy); color: #E4E8F0;
  border-radius: 22px; padding: 56px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
  border: 2px solid var(--gold);
}
.offer h2 { color: var(--white); }
.offer .tag {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-weight: 800; font-size: .95rem; padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.ticks { list-style: none; margin: 0 0 22px; padding: 0; }
.ticks li { position: relative; padding-left: 36px; margin-bottom: 10px; font-size: 1.08rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='6,12.5 10.5,17 18,8' fill='none' stroke='%231A2B4C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}
.offer-note { font-size: .95rem; color: #C9D0DD; margin-bottom: 22px; }
.price-badge {
  justify-self: center; width: 270px; height: 270px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative;
}
.price-badge::after {
  content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 2px solid var(--navy);
}
.price-badge .only { font-weight: 800; letter-spacing: .18em; font-size: .85rem; }
.price-badge .price { font-family: var(--serif); font-weight: 700; font-size: 3.4rem; line-height: 1.05; }
.price-badge .vat { font-weight: 700; font-size: 1rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { border-top: 3px solid var(--gold); padding-top: 18px; }
.step-no {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--serif); font-weight: 700; margin-bottom: 14px;
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checklist li { position: relative; padding-left: 30px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='6,12.5 10.5,17 18,8' fill='none' stroke='%23C6A15B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* ---------- Audience links ---------- */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience a {
  display: block; text-decoration: none; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.audience a:hover { border-color: var(--gold); box-shadow: 0 6px 20px rgba(26,43,76,.1); }
.audience h3 { margin-bottom: .3em; }
.audience p { margin: 0; color: var(--muted); font-size: 1rem; }
.audience .go { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--gold-dark); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #E4E8F0; padding: 72px 0; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 52ch; margin: 0 auto 1.6em; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Our work ---------- */
.jump {
  position: sticky; top: var(--header-h); z-index: 90;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.jump ul {
  list-style: none; margin: 0; padding: 12px 0; display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: thin;
}
.jump a {
  display: block; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--navy);
}
.jump a:hover, .jump a.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.work-section { padding: 64px 0 24px; scroll-margin-top: calc(var(--header-h) + 64px); }
.work-section .section-head { margin-bottom: 28px; }
.work-grid { column-count: 3; column-gap: 18px; }
.work-item { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--grey); text-decoration: none; margin-bottom: 18px; break-inside: avoid; }
.work-item img { display: block; width: 100%; height: auto; transition: transform .25s ease; }
.work-item:hover img { transform: scale(1.03); }
.work-item figcaption, .work-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px;
  color: var(--white); font-weight: 600; font-size: .98rem;
  background: linear-gradient(to top, rgba(18,31,56,.85), transparent);
}
.work-pair { margin: 0 0 18px; break-inside: avoid; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 4px; }
.pair-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.work-pair .work-item { margin-bottom: 0; border-radius: 10px; }
.work-pair .cap { font-weight: 700; padding: 22px 10px 8px; }
.work-pair figcaption { padding: 10px 4px 8px; font-weight: 600; color: var(--navy); font-size: .98rem; }

.pair-photos.stack { grid-template-columns: 1fr; }
.work-story { margin: 0 0 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 4px; }
.story-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.work-story .work-item { margin-bottom: 0; border-radius: 10px; }
.work-story .cap { font-weight: 700; padding: 22px 10px 8px; }
.work-story figcaption { padding: 10px 4px 8px; font-weight: 600; color: var(--navy); font-size: .98rem; }
.story-photos .work-item img, .pair-photos .work-item img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.pair-photos.stack .work-item img { aspect-ratio: 4 / 3; }
.case-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.case-grid .work-story, .case-grid .work-pair { margin: 0; }
.case-link { margin: 24px 0 0; font-weight: 700; }
.case-link a { color: var(--gold-dark); }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }
.to-top { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--gold-dark); }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(10,16,30,.92);
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 74vh; width: auto; border-radius: 10px; }
.lightbox .lb-cap { color: var(--white); margin-top: 14px; font-weight: 600; text-align: center; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.14); color: var(--white);
  border: 0; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-btn svg { width: 26px; height: 26px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Landlords ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.benefit h3 { margin-bottom: .35em; }
.benefit p { margin: 0; color: var(--muted); font-size: 1rem; }
.agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.agent-grid .ticks li { color: var(--ink); }
.agent-grid .ticks li { font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.big-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.big-actions .btn { min-height: 64px; font-size: 1.15rem; }
.email-line { margin-bottom: 36px; color: var(--muted); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.form-card h2 { font-size: 1.6rem; margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #B9B6AC; border-radius: 10px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.error-msg { display: none; color: var(--danger); font-size: .93rem; font-weight: 600; margin-top: 6px; }
.field.has-error .error-msg { display: block; }
.hidden-field { position: absolute; left: -9999px; }
.form-note { font-size: .93rem; color: var(--muted); margin: 14px 0 0; }

.details-panel { background: var(--navy); color: #E4E8F0; border-radius: 18px; padding: 32px; }
.details-panel h2 { color: var(--white); font-size: 1.5rem; }
.details-panel dl { margin: 0; }
.details-panel dt { font-weight: 700; color: var(--gold); margin-top: 18px; font-size: .95rem; }
.details-panel dd { margin: 2px 0 0; }
.details-panel a { color: var(--white); }
.details-panel a:hover { color: var(--gold); }

.thanks { text-align: center; max-width: 620px; margin: 0 auto; padding: 96px 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #C9D0DD; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr; gap: 40px; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: .8em; font-family: var(--sans); font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #E4E8F0; }
.site-footer a:hover { color: var(--gold); }
.footer-logo { display: inline-block; background: var(--paper); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.footer-logo img { height: 58px; width: auto; }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 20px; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .trust ul { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.02rem; }
  .brand-tag { font-size: .7rem; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--white); border-bottom: 1px solid var(--line);
    display: none; padding: 8px 24px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--grey); }
  .header-inner { position: relative; }

  .hero { padding: 48px 0 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { max-width: none; }
  .hero-house { justify-self: start; max-width: 380px; }
  .offer { grid-template-columns: 1fr; padding: 36px 26px; gap: 32px; }
  .about-grid, .contact-grid, .agent-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps, .audience, .benefit-grid { grid-template-columns: 1fr; }
  .work-grid { column-count: 2; }
  .section { padding: 60px 0; }
}

@media (max-width: 600px) {
  body { padding-bottom: 68px; }
  .wrap { padding: 0 18px; }
  .service-grid { grid-template-columns: 1fr; }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .checklist { grid-template-columns: 1fr; }
  .work-grid { column-count: 1; }
  .big-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card, .details-panel { padding: 24px; }
  .btn-row .btn { width: 100%; }
  .price-badge { width: 240px; height: 240px; }
  .price-badge .price { font-size: 3rem; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(26,43,76,.1);
  }
  .mobile-bar .btn { min-height: 48px; padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .roof polyline { animation: none; stroke-dashoffset: 0; }
  .work-item img { transition: none; }
}
