/* Aydins Construction — the public website, on top of app.css.

   Calm and trustworthy for the people who hire contractors: a white working
   surface, slate for the hero and footer, and hi-vis yellow kept to what you
   can press. The hero carries a drawn elevation of a London terrace until real
   job photos are picked for the site. */

body.site { background: #fff; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font-size: 1.0625rem; }
body.site > main { flex: 1; }
.site a:not(.btn) { text-underline-offset: 3px; }
.site h1, .site h2, .site h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; text-wrap: balance; }
.site h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.wrap { width: 100%; padding-inline: clamp(1.1rem, 4vw, 4rem); }
.narrow { max-width: calc(40rem + clamp(2.2rem, 8vw, 8rem)); display: flex; flex-direction: column; gap: 1.25rem; }
.narrow h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.lead { font-size: 1.15rem; color: var(--ink-2); }

.skip { position: absolute; left: -999px; background: var(--hivis); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

.btn--big { min-height: 3.25rem; padding-inline: 1.6rem; font-size: 1.1rem; }
.btn--ink { background: var(--ink); border-color: var(--ink); color: #fff; min-height: 3.25rem; padding-inline: 1.6rem; font-size: 1.1rem; }
.btn--ink:hover { background: #2a3746; border-color: #2a3746; }

/* ----------------------------------------------------------------- header */

.bar { background: #fff; border-bottom: 1px solid var(--line); }
.bar__in { display: flex; align-items: center; gap: 0.5rem 2rem; flex-wrap: wrap; padding-block: 0.85rem; }
.site .bar .brand { display: flex; padding: 0; color: var(--ink); }
.site .bar .brand__name small { color: var(--ink-3); }
.bar__nav { display: flex; gap: 0.25rem 1.6rem; flex-wrap: wrap; margin-left: auto; }
.bar__nav a { padding: 0.3rem 0; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.bar__nav a:hover { color: var(--ink); }
.bar__nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--hivis-deep); }
.bar__phone { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink); font: 700 1.2rem var(--display); text-decoration: none; white-space: nowrap; }

/* ------------------------------------------------------------------- hero */

.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.hero__text { padding-block: clamp(2.75rem, 7vw, 5.5rem); display: flex; flex-direction: column; gap: 1.25rem; align-self: center; }
.site .hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.65rem); line-height: 1.06; }
.hero__text p { color: #c9d1da; font-size: 1.15rem; max-width: 34rem; }
.hero__do { display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem 1.6rem; margin-top: 0.4rem; }
.hero__phone { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; font: 700 1.5rem var(--display); text-decoration: none; }
.hero__phone:hover { text-decoration: underline; }
.hero__phone .icon { color: var(--hivis); }
.hero__art { width: 100%; height: auto; max-height: 30rem; margin-top: 1.5rem; object-fit: contain; object-position: bottom; }
.hero__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; align-self: center; margin-block: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius); }

/* --------------------------------------------------------------- promises */

.promises { background: var(--paper); border-bottom: 1px solid var(--line); }
.promises ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem clamp(1.5rem, 4vw, 3rem); padding-block: 1.75rem; }
.promises li { display: flex; gap: 0.8rem; }
.promises .icon { width: 1.6rem; height: 1.6rem; margin-top: 0.1rem; color: var(--ink); }
.promises strong { font: 700 1.15rem/1.2 var(--display); }
.promises p { color: var(--ink-2); font-size: 0.97rem; margin-top: 0.15rem; }

/* --------------------------------------------------------------- sections */

.sec { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.sec--tint { background: var(--paper); }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.sec__head a { color: var(--steel); font-weight: 600; }

.top { background: var(--ink); color: #fff; padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.site .top h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); }
.top p { margin-top: 0.6rem; max-width: 40rem; color: #c9d1da; font-size: 1.15rem; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid li { padding: 1.5rem; background: #fff; display: flex; flex-direction: column; gap: 0.45rem; }
.grid__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 0.35rem; border-radius: var(--radius-small); background: var(--hivis-wash); }
.grid__icon .icon { width: 1.45rem; height: 1.45rem; }
.site .grid h3 { font-size: 1.3rem; }
.grid p { color: var(--ink-2); }

.run { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; counter-reset: step; }
.run li { counter-increment: step; position: relative; padding-top: 3.4rem; display: flex; flex-direction: column; gap: 0.35rem; }
.run li::before {
  content: counter(step); position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--ink); color: var(--hivis); font: 700 1.3rem var(--display);
}
.run li:not(:last-child)::after { content: ""; position: absolute; top: 1.25rem; left: 2.5rem; right: -1.75rem; height: 2px; background: var(--line-strong); }
.run strong { font: 700 1.25rem/1.15 var(--display); }
.run p { color: var(--ink-2); }

.recent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem clamp(1.5rem, 4vw, 3rem); }
.recent li { display: flex; gap: 0.65rem; }
.recent .icon { margin-top: 0.25rem; color: var(--moss); }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1.75rem; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-small); }

.where { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 3rem; flex-wrap: wrap; }
.where p { margin-top: 0.4rem; color: var(--ink-2); }
.areas { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.areas li { padding: 0.3rem 0.85rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-small); font: 700 1.2rem/1.4 var(--display); }

.cta { background: var(--hivis); color: var(--ink); padding-block: clamp(2.25rem, 5vw, 3rem); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 3rem; flex-wrap: wrap; }
.cta p { margin-top: 0.3rem; }
.cta__do { display: flex; align-items: center; gap: 0.9rem 1.5rem; flex-wrap: wrap; }
.cta__phone { font: 700 1.6rem var(--display); color: inherit; text-decoration: none; }
.cta__phone:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- reviews */

.said { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
.said__one { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.said__one .stars { font-size: 1.25rem; }
.said__one blockquote { margin: 0; flex: 1; font-size: 1.1rem; }
.said__one figcaption { display: flex; flex-direction: column; }
.said__one figcaption span { color: var(--ink-3); font-size: 0.92rem; }

/* The score, then the reviews beside it across the rest of the width. */
.said-band { display: grid; grid-template-columns: minmax(11rem, 1fr) minmax(0, 4fr); gap: 1.5rem clamp(2rem, 4vw, 4rem); align-items: start; }
.score { display: flex; flex-direction: column; gap: 0.2rem; }
.score b { font: 700 clamp(3.5rem, 6vw, 4.75rem)/1 var(--display); }
/* Five grey stars with gold laid over them, cut to the score. */
.score__stars { position: relative; width: max-content; color: var(--line-strong); font-size: 1.5rem; letter-spacing: 0.08em; white-space: nowrap; }
.score__stars i { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--hivis-deep); font-style: normal; }
.score span:last-child { color: var(--ink-2); }
.ask { display: flex; align-items: center; gap: 1rem clamp(1.5rem, 4vw, 3rem); flex-wrap: wrap; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ask > div { flex: 1 1 18rem; }
.ask strong { font: 700 1.3rem/1.2 var(--display); }
.ask p { color: var(--ink-2); }

/* ------------------------------------------------------------------- work */

.work { margin-bottom: 1.25rem; }
.work__stage { position: absolute; left: 0; bottom: 0; padding: 0.15rem 0.6rem; background: var(--ink); color: #fff; font-size: 0.86rem; font-weight: 600; }

/* ---------------------------------------------------------------- contact */

.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 2rem clamp(2rem, 5vw, 4rem); align-items: start; }
.reach-box { display: flex; flex-direction: column; gap: 1.25rem; }
.reach { display: flex; flex-direction: column; gap: 1rem; }
.reach dt { color: var(--ink-3); font-size: 0.92rem; }
.reach dd { font-weight: 600; overflow-wrap: anywhere; }
.reach dd:has(a[href^="tel"]) { font: 700 1.75rem/1.1 var(--display); }
.reach a { text-decoration: none; }
.reach a:hover { text-decoration: underline; }
.note a { color: var(--steel); }
.enquiry { padding: clamp(1.1rem, 3vw, 1.75rem); background: var(--paper); border-radius: var(--radius); }
.enquiry .flash { margin: 0; }
.sent { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: clamp(1.1rem, 3vw, 1.75rem); background: var(--moss-wash); border-radius: var(--radius); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rating legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; }
.rating > div { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.rating label { position: relative; }
.rating input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.rating span { display: block; padding: 0.5rem 0.9rem; border: 2px solid var(--line-strong); border-radius: var(--radius-small); background: #fff; font-weight: 600; }
.rating input:checked + span { background: var(--hivis); border-color: var(--ink); }
.rating input:focus-visible + span { outline: 3px solid var(--steel); outline-offset: 2px; }

/* Headings down the left, their text beside them, so the page uses its width without one endless line. */
.prose-page { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 3fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); }
.prose-page > p:first-child { grid-column: 1 / -1; font-size: 1.15rem; color: var(--ink-2); }
.site .prose-page h2 { font-size: 1.45rem; }
.prose-page a { color: var(--steel); }

/* ----------------------------------------------------------------- footer */

.foot { background: var(--ink); color: #c9d1da; font-size: 0.92rem; padding-block: 2.25rem; }
.foot__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 1.5rem 2.5rem; }
.foot strong { display: block; color: #fff; font: 700 1.15rem var(--display); margin-bottom: 0.25rem; }
.foot address { font-style: normal; }
.foot nav { display: flex; flex-direction: column; gap: 0.3rem; }

/* ------------------------------------------------------------------ small */

@media (max-width: 940px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__text { padding-bottom: 0; }
  .hero__art { max-height: 19rem; margin-top: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run li::after { display: none; }
  .promises ul { grid-template-columns: minmax(0, 1fr); }
  .contact-page, .prose-page, .said-band { grid-template-columns: minmax(0, 1fr); }
  .prose-page { gap: 0.5rem; }
  .prose-page h2:not(:first-child) { margin-top: 1rem; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .bar__nav { order: 3; flex: 1 1 100%; margin-left: 0; }
  .bar__phone { margin-left: auto; }
}
@media (max-width: 560px) {
  .grid, .run, .recent, .strip { grid-template-columns: minmax(0, 1fr); }
  .strip img:nth-child(n+2) { display: none; }
  .brand__name small { display: none; }
}
