/* ============================================================
   PB Building Services — shared site styles
   ------------------------------------------------------------
   ONE stylesheet for every page. Edit here once and it changes
   the whole site. Confirmed against the live site:
     - Font:  Manrope (everywhere)
     - Accent: #206D9D (PB brand blue — titles, waves, buttons)
   ============================================================ */

/* ---------- Design tokens (change fonts/colours here) ---------- */
:root {
  --ink:        #1c1c1c;   /* headings / dark text */
  --soft-ink:   #4a4a4a;   /* body copy */
  --white:      #ffffff;
  --grey:       #e4e0d9;   /* warm light-grey section background */
  --hairline:   #d8d3ca;
  --accent:     #206d9d;   /* PB brand blue */
  --accent-dk:  #1a597f;   /* darker blue for hover */
  --header-top: #cfe1ef;   /* header gradient (light blue) */
  --header-bot: #e6e2db;   /* header gradient (grey)      */

  --maxw: 1200px;
  --maxw-wide: 1600px;   /* wider container for the home carousel + subpage galleries */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--grey);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* height:auto keeps photos in proportion; the width/height attributes on
   each <img> only tell the browser the shape before the photo loads. */
img { max-width: 100%; height: auto; display: block; }

/* Anything with the `hidden` attribute stays hidden, even if a class
   gives it display:flex/grid (used by the projects filter + viewer). */
[hidden] { display: none !important; }

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Wider container — used for the service subpage image galleries so the
   photos scale up on large screens (matches the live site). */
.wrap-wide {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--header-top) 0%, var(--header-bot) 100%);
  padding: 14px 0 10px;
  text-align: center;
  box-shadow: 0 7px 12px rgba(0, 0, 0, 0.13);   /* soft drop shadow under the header */
}

/* Desktop layout: logo centred on top, nav centred below */
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.site-header .logo {
  display: block;
  width: fit-content;
  margin: 0 auto;
}
.site-header .logo img {
  height: 84px;
  width: auto;
  margin: 0 auto 6px;
}

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before { transform: translateY(-8px); }
.nav-toggle__bars::after  { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-2px) rotate(-45deg); }

.main-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible { color: var(--accent); }

.main-nav a.active { border-bottom-color: var(--ink); }

/* ---------- Wave dividers ----------
   Each wave sits at the BOTTOM of a section. The filled path is
   the colour of the NEXT section; the transparent area above the
   curve shows the current one. A blue stroke traces the curve. */
.wave {
  display: block;
  width: 100%;
  height: 90px;
  margin-bottom: -1px; /* avoid hairline gaps */
}
.wave .line { fill: none; stroke: var(--accent); stroke-width: 3; }

/* ---------- Section shell ---------- */
section { position: relative; }

.section-white { background: var(--white); }
.section-grey  { background: var(--grey); }

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 600;
  margin: 0 0 40px;
  color: var(--ink);
}
.section-title--accent { color: var(--accent); }   /* blue interior-page titles */

.pad-top    { padding-top: 56px; }
.pad-bottom { padding-bottom: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 999px;
  transition: background .15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--accent-dk); }
.btn--large { font-size: .95rem; padding: 15px 32px; }

/* "Get in touch" block at the bottom of service pages (and the 404 page) */
.page-cta {
  text-align: center;
  max-width: 640px;
  margin: 64px auto 8px;
}
.page-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 10px;
  text-wrap: balance;
}
.page-cta p {
  color: var(--soft-ink);
  font-size: 1.05rem;
  margin: 0 0 24px;
}
.page-cta p a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.page-cta p a:hover { text-decoration: underline; }

/* Service pages: "How we work" steps + "Common questions" */
.service-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 1100px;
  margin: 72px auto 0;
  padding-top: 56px;
  border-top: 1px solid var(--hairline);
}
.service-info h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 26px;
}
.service-info h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 5px 0 6px;
}
.service-info p { color: var(--soft-ink); margin: 0; }

/* Numbered steps (the order is real: this is the sequence of a job) */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 54px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq { display: grid; gap: 24px; }

/* Only one section in the block (e.g. "How we work" on its own): one centred column */
.service-info--single { grid-template-columns: 1fr; max-width: 720px; }

/* Short intro paragraph under a page or section title */
.page-intro {
  text-align: center;
  color: var(--soft-ink);
  font-size: 1.08rem;
  max-width: 680px;
  margin: -14px auto 44px;
}
.page-intro a { color: var(--accent); font-weight: 700; }

/* Home: "Why choose PB Building Services" */
.home-why { margin-top: 88px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  max-width: 1300px;
  margin: 0 auto;
}
.why-grid h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  text-wrap: balance;
}
.why-grid p { color: var(--soft-ink); margin: 0; }

/* A list of services, each linked, with a one-line summary */
.service-list {
  list-style: none;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.service-list li { color: var(--soft-ink); }
.service-list a {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 2px;
}
.service-list a:hover { text-decoration: underline; }

/* Plain bulleted tips (contact page) */
.tips {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.2em;
  color: var(--soft-ink);
}
.tips a { color: var(--accent); font-weight: 700; }

/* 404 page: quick links to the main pages */
.notfound-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: 36px auto 0;
}
.notfound-links a {
  color: var(--accent);
  background: var(--white);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
}
.notfound-links a:hover { background: #e6f0f6; }

/* ============================================================
   HOME PAGE
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grey);
}
.hero__media {
  position: relative;
  height: min(78vh, 720px);
  background-image:
    linear-gradient(rgba(0,0,0,.32), rgba(0,0,0,.32)),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 24px;
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 600;
  letter-spacing: .5px;
  margin: 0 0 .25em;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero__subtitle {
  font-size: clamp(1.3rem, 3.4vw, 2.6rem);
  font-weight: 500;
  font-style: italic;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

/* ---------- Services carousel (home) ---------- */
.carousel { position: relative; }

.carousel__track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 calc((100% - 52px) / 3); /* 3 cards on desktop */
  min-width: 260px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.card__img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* square, like the live site; scales with the card */
  height: auto;
  object-fit: cover;
  border-radius: 2px;
}
.card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 18px 0 10px;
}
.card p {
  color: var(--soft-ink);
  margin: 0 0 20px;
  font-size: 1rem;
}
.card p strong { font-weight: 700; color: var(--ink); }
.card .btn { margin-top: auto; align-self: flex-start; }

/* carousel arrows */
.carousel__btn {
  position: absolute;
  top: 150px; /* roughly middle of the image */
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  transition: background .15s ease;
}
.carousel__btn:hover, .carousel__btn:focus-visible { background: var(--accent-dk); }
.carousel__btn--prev { left: -10px; }
.carousel__btn--next { right: -10px; }

/* ---------- Testimonial (home) ---------- */
.testimonial {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 24px;
}
.testimonial__name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  margin: 0 0 18px;
}
.testimonial blockquote {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.5;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}
.about-intro p {
  color: var(--soft-ink);
  font-size: 1.08rem;
  margin: 0 0 20px;
}
.about-intro strong { color: var(--ink); font-weight: 700; }

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 1120px;
  margin: 0 auto;
}
.about-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
}

/* ============================================================
   SERVICES PAGE (grid of clickable cards)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 48px;
  margin: 0 auto;   /* fills the page container (var(--maxw)); images scale with the window */
}
.svc-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease;
}
.svc-card:hover,
.svc-card:focus-visible { transform: translateY(-4px); }
.svc-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 12px; }

/* Image scales responsively with the column, keeping a constant crop
   ratio (matches the live site) — NOT a fixed pixel height. */
.svc-card img {
  width: 100%;
  aspect-ratio: 6 / 5;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}
.svc-card h3 {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 18px 0 10px;
}
.svc-card p {
  color: var(--soft-ink);
  margin: 0;
  font-size: 1rem;
}
.svc-card p strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   SERVICE SUBPAGES (bathrooms, kitchens, …)
   ============================================================ */
.page-title {
  text-align: center;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  font-weight: 600;
  color: var(--accent);
  margin: 0;
  padding: 20px 0 40px;
}

.subpage-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0 auto;   /* fills .wrap-wide; images scale with the window */
}
.feature img {
  width: 100%;
  aspect-ratio: 6 / 5;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}
.feature h2 {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin: 22px 0 12px;
}
.feature p {
  color: var(--soft-ink);
  margin: 0;
  font-size: 1rem;
}
.feature p strong { color: var(--ink); font-weight: 700; }

/* Loft conversions: a video beside two feature columns */
.loft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin: 0 auto;   /* fills .wrap-wide */
  align-items: start;
}
.loft-video video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  background: #000;
}

/* ============================================================
   CONTACT (form used on home, about and contact pages)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-heading {
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 600;
  margin: 0 0 24px;
}

.contact-intro p { color: var(--soft-ink); margin: 0 0 16px; }
.contact-intro strong { color: var(--ink); font-weight: 700; }

.contact-details {
  margin: 22px 0 30px !important;
  line-height: 1.9;
}
.contact-details a { color: var(--soft-ink); text-decoration: none; }
.contact-details a:hover { color: var(--accent); }

.contact-form label {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  margin: 0 0 6px;
}
.contact-form .hint { font-weight: 400; color: var(--soft-ink); }

.contact-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 12px 14px;
  margin: 0 0 20px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}
.contact-form textarea {
  border-radius: 18px;
  min-height: 130px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field-label-group { margin-bottom: 10px; font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--grey);
  padding: 40px 0 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.site-footer h2 {
  font-size: 1.9rem;
  font-weight: 500;
  margin: 0 0 4px;
}
.site-footer .tagline { color: var(--soft-ink); margin: 0 0 18px; }
.site-footer .foot-logo { height: 72px; width: auto; }
.site-footer h4 { font-size: 1.1rem; font-weight: 600; margin: 0 0 12px; }
.site-footer p { margin: 0; color: var(--soft-ink); }
.site-footer a { color: var(--soft-ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ============================================================
   PROJECTS PAGE (filterable gallery + full-screen photo viewer)
   ============================================================ */
.projects-intro {
  text-align: center;
  color: var(--soft-ink);
  font-size: 1.08rem;
  max-width: 620px;
  margin: -16px auto 32px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 40px;
}
.filter-btn {
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--white);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.filter-btn:hover { background: #e6f0f6; }
.filter-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.filter-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

/* The photo is a button that opens the viewer */
.project-card__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--hairline);
  cursor: zoom-in;
  overflow: hidden;
}
.project-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  transition: transform .3s ease;
}
.project-card__media:hover img,
.project-card__media:focus-visible img { transform: scale(1.04); }
.project-card__media:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.project-card__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 22px;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.project-tags li {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
  background: #e6f0f6;
  padding: 4px 9px;
  border-radius: 999px;
}
.project-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
}
.project-card p {
  color: var(--soft-ink);
  font-size: .97rem;
  margin: 0 0 16px;
}
.project-card__link {
  margin-top: auto;
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
}
.project-card__link:hover { color: var(--accent-dk); text-decoration: underline; }
.project-card__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.projects-cta {
  text-align: center;
  margin: 56px 0 10px;
}
.projects-cta p {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 14px;
}

/* ---------- Full-screen photo viewer ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0c0e10;
  color: #fff;
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
html:has(.lightbox[open]) { overflow: hidden; }   /* stop the page scrolling behind */

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(90vw, 1400px);
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
}
.lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  font-size: .95rem;
  color: #d8d8d8;
  text-align: center;
}
.lightbox__title { font-weight: 600; color: #fff; }

.lightbox__btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.lightbox__btn:hover { background: var(--accent-dk); }
.lightbox__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lightbox__close { top: 18px; right: 18px; background: rgba(255, 255, 255, .16); font-size: 1.2rem; }
.lightbox__close:hover { background: rgba(255, 255, 255, .3); }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .card { flex: 0 0 calc((100% - 26px) / 2); }   /* 2 service cards on tablet (home) */
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; margin-bottom: 8px; }
  .subpage-cols { grid-template-columns: 1fr; max-width: 560px; }  /* 1 feature per row */
  .loft-grid    { grid-template-columns: 1fr; max-width: 560px; }  /* video then features */
  .project-grid { grid-template-columns: 1fr 1fr; gap: 26px; }     /* 2 projects per row */
  .service-info { grid-template-columns: 1fr; gap: 44px; max-width: 640px; }
  .why-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .card { flex: 0 0 100%; min-width: 0; }         /* 1 card per view on mobile (home) */

  /* Header becomes logo-left + hamburger-right */
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .site-header .logo { margin: 0; }
  .site-header .logo img { height: 56px; margin: 0; }
  .nav-toggle { display: block; }

  /* Nav collapses into a dropdown panel under the header */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--header-bot);
    padding: 6px 0 10px;
    box-shadow: 0 10px 18px rgba(0,0,0,.14);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 14px 24px;
    text-align: center;
    border-bottom: none;
  }
  .main-nav a.active { border-bottom: none; color: var(--accent); font-weight: 700; }

  /* Carousel arrows move below the cards, centred (home) */
  .carousel__btn { position: static; transform: none; top: auto; }
  .carousel__arrows {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
  }

  /* Stacking on mobile */
  .about-photos  { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .project-grid  { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; gap: 28px; }

  /* Projects: filters scroll sideways instead of wrapping onto many lines */
  .filter-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin: 0 -24px 28px;
    padding: 2px 24px 8px;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex: 0 0 auto; }

  /* Photo viewer: arrows sit side by side at the bottom, thumb-reachable */
  .lightbox__figure { max-width: 100vw; padding: 0 8px; }
  .lightbox__img { max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 22px; transform: none; }
  .lightbox__prev { left: calc(50% - 66px); }
  .lightbox__next { right: calc(50% - 66px); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel__track { scroll-behavior: auto; }
  .svc-card { transition: none; }
  .project-card__media img { transition: none; }
}

/* ---------- Contact form: spam trap + send status ---------- */
.form-hp { display: none; }   /* hidden checkbox only bots fill in */
.form-status {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.form-status--ok    { background: #e3f1e6; color: #1f5a2c; }
.form-status--error { background: #fbe9e7; color: #8a2a1c; }
.form-status a { color: inherit; font-weight: 700; }
.contact-form .btn[disabled] { opacity: .7; cursor: progress; }
