/* Prosper Ceilings & Office Installations - Muizenberg, Cape Town
   Architectural/technical direction: warm stone grounds, deep structural blue,
   photography carried large. Reference point: Rockfon. */

:root {
  --white:   #FFFFFF;
  --stone:   #F4F2EF;
  --stone-2: #E9E5DF;
  --ink:     #14181C;
  --ink-2:   #1D242B;
  --blue:    #0D3B66;
  --blue-l:  #17568F;
  --slate:   #5B6672;
  --line:    rgba(20,24,28,0.12);
  --line-2:  rgba(20,24,28,0.06);
  --wa:      #1FAF54;

  --wrap: 1220px;
  --gut: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Karla', system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue); color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

h1, h2, h3, h4 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--blue); }
.eyebrow.on-dark { color: #9DC2E8; }
.eyebrow.on-dark::before { background: #9DC2E8; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 7px 7px 7px 22px;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  font-family: 'Archivo', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.38s var(--ease), background 0.38s var(--ease);
}
.btn .pip {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid; place-items: center;
  transition: transform 0.38s var(--ease);
}
.btn svg { width: 13px; height: 13px; }
.btn:hover { background: var(--blue-l); transform: translateY(-2px); }
.btn:hover .pip { transform: translate(2px,-2px); }
.btn:active { transform: scale(0.985); }
.btn.wa { background: var(--wa); }
.btn.wa:hover { background: #1a9648; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); padding-left: 21px; }
.btn.ghost .pip { background: rgba(20,24,28,0.06); }
.btn.ghost:hover { background: var(--stone); border-color: transparent; }
.btn.on-dark { background: #fff; color: var(--ink); }
.btn.on-dark .pip { background: rgba(20,24,28,0.08); }
.btn.on-dark:hover { background: var(--stone-2); }

/* ---------- HEADER ---------- */
header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 22px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  border-radius: 7px;
  background: var(--blue);
  display: grid; place-items: center;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt b { font-family: 'Archivo', sans-serif; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.brand-txt span { font-size: 9.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a, .drop > button {
  font-size: 14px; font-weight: 500; color: var(--ink);
  background: none; border: 0; cursor: pointer;
  font-family: 'Karla', sans-serif;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-links > a:hover, .drop > button:hover, .nav-links > a[aria-current] { border-bottom-color: var(--blue); color: var(--blue); }
.drop { position: relative; }
.drop > button svg { width: 11px; height: 11px; transition: transform 0.3s var(--ease); }
.drop:hover > button svg { transform: rotate(180deg); }
.drop-menu {
  position: absolute; top: calc(100% + 12px); left: -18px;
  min-width: 254px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 44px -18px rgba(20,24,28,0.22);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.drop:hover .drop-menu, .drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a {
  display: block; padding: 9px 13px; border-radius: 9px;
  font-size: 14px; transition: background 0.24s var(--ease), color 0.24s var(--ease);
}
.drop-menu a:hover { background: var(--stone); color: var(--blue); }
.drop-menu a small { display: block; font-size: 11.5px; color: var(--slate); margin-top: 1px; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.tel-link { font-family: 'Archivo', sans-serif; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tel-link:hover { color: var(--blue); }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.6px; background: var(--ink); transition: transform 0.4s var(--ease), opacity 0.2s linear; }
.burger span:nth-child(1) { transform: translate(-50%,-5px); }
.burger span:nth-child(2) { transform: translate(-50%,-50%); }
.burger span:nth-child(3) { transform: translate(-50%,4px); }
body.menu-open .burger span:nth-child(1) { transform: translate(-50%,-50%) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translate(-50%,-50%) rotate(-45deg); }

.sheet {
  position: fixed; inset: 74px 0 0 0; z-index: 55;
  background: #fff; padding: 26px var(--gut) 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
body.menu-open .sheet { opacity: 1; visibility: visible; }
.sheet a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line-2); font-family: 'Archivo', sans-serif; font-size: 19px; font-weight: 600; opacity: 0; transform: translateY(14px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
body.menu-open .sheet a { opacity: 1; transform: none; }
.sheet a:nth-child(1) { transition-delay: 0.05s; } .sheet a:nth-child(2) { transition-delay: 0.09s; }
.sheet a:nth-child(3) { transition-delay: 0.13s; } .sheet a:nth-child(4) { transition-delay: 0.17s; }
.sheet a:nth-child(5) { transition-delay: 0.21s; } .sheet a:nth-child(6) { transition-delay: 0.25s; }
.sheet a:nth-child(7) { transition-delay: 0.29s; } .sheet a:nth-child(8) { transition-delay: 0.33s; }
.sheet a:nth-child(9) { transition-delay: 0.37s; }
.sheet-cta { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: clamp(520px, 78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,18,0.52) 0%, rgba(10,14,18,0.30) 38%, rgba(10,14,18,0.86) 100%);
}
.hero-in { position: relative; z-index: 2; width: 100%; padding-block: clamp(44px, 7vw, 76px); color: #fff; }
.hero h1 { font-size: clamp(2.05rem, 4.8vw, 3.6rem); max-width: 21ch; margin-top: 18px; color: #fff; }
.hero p { margin-top: 20px; max-width: 52ch; font-size: clamp(1rem, 1.4vw, 1.09rem); color: rgba(255,255,255,0.86); }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

.pagehead { background: var(--stone); border-bottom: 1px solid var(--line-2); padding-block: clamp(44px, 7vw, 82px); }
.pagehead h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); max-width: 19ch; margin-top: 16px; }
.pagehead p { margin-top: 18px; max-width: 60ch; color: var(--slate); }
.crumb { font-size: 12.5px; color: var(--slate); margin-bottom: 20px; }
.crumb a:hover { color: var(--blue); }

/* ---------- SECTIONS ---------- */
section { padding-block: clamp(58px, 8.5vw, 108px); }
.sec-head { max-width: 60ch; margin-bottom: clamp(34px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(1.75rem, 3.7vw, 2.7rem); margin-top: 15px; }
.sec-head p { margin-top: 16px; color: var(--slate); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---------- SERVICE CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px 24px;
  background: #fff;
  display: flex; flex-direction: column;
  transition: transform 0.42s var(--ease), border-color 0.42s var(--ease), box-shadow 0.42s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 22px 48px -22px rgba(13,59,102,0.30); }
.card-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--stone); display: grid; place-items: center; margin-bottom: 18px; }
.card-ico svg { width: 21px; height: 21px; color: var(--blue); }
.card h3 { font-size: 1.16rem; }
.card p { margin-top: 9px; font-size: 14.6px; color: var(--slate); flex: 1; }
.card .more { margin-top: 18px; font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.card .more svg { width: 12px; height: 12px; transition: transform 0.34s var(--ease); }
.card:hover .more svg { transform: translateX(3px); }

/* ---------- SPLIT ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.split.rev .split-media { order: -1; }
.split-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }

/* Video variant: same 4/3 frame as the photo it can replace. */
.video-frame { position: relative; border-radius: 16px; overflow: hidden; }
.split-video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone-2); }
/* Covers a small mark baked into the bottom-right corner of the source clip.
   Sized and positioned with margin for error rather than pixel-matched, since
   there is no way to re-encode/crop the file itself here. */
.video-badge {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: rgba(13,59,102,0.92);
  color: #fff;
  font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em;
  padding: 7px 13px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.split h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); margin-top: 15px; }
.split p { margin-top: 16px; color: var(--slate); }
.split .btn { margin-top: 26px; }

.ticks { margin-top: 22px; display: grid; gap: 11px; }
.ticks li { list-style: none; display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; font-size: 15px; }
.ticks svg { width: 17px; height: 17px; color: var(--blue); margin-top: 4px; flex: none; }

/* ---------- PROJECT REEL (portrait walkthrough clip) ---------- */
.reel { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.reel .video-frame { width: 100%; max-width: 300px; }
.reel .split-video { aspect-ratio: 464 / 688; }
.reel p { max-width: 480px; color: var(--slate); }

/* ---------- BEFORE / AFTER ---------- */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 22px); }
.ba figure { position: relative; }
.ba img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.ba figcaption {
  position: absolute; top: 13px; left: 13px;
  background: rgba(20,24,28,0.82);
  color: #fff;
  padding: 5px 12px; border-radius: 999px;
  font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ba figure.is-after figcaption { background: var(--blue); }

/* ---------- GALLERY ---------- */
.gal { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 22px); }
.gal figure { grid-column: span 4; overflow: hidden; border-radius: 14px; position: relative; }
.gal figure.w6 { grid-column: span 6; }
.gal figure.w8 { grid-column: span 8; }
.gal img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.9s var(--ease); }
.gal figure.tall img { aspect-ratio: 3 / 4; }
.gal figure:hover img { transform: scale(1.04); }
.gal figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(12,16,20,0.80));
  color: #fff; font-size: 13px; font-weight: 500;
}

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 34px); }
.stat { border-top: 2px solid var(--blue); padding-top: 16px; }
.stat b { display: block; font-family: 'Archivo', sans-serif; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.stat span { display: block; margin-top: 7px; font-size: 13.4px; color: var(--slate); }

/* ---------- PROCESS ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.6vw, 32px); counter-reset: s; }
.step { counter-increment: s; }
.step::before {
  content: counter(s, decimal-leading-zero);
  display: block;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13px;
  color: var(--blue); letter-spacing: 0.1em; margin-bottom: 12px;
}
.step h3 { font-size: 1.03rem; }
.step p { margin-top: 7px; font-size: 14.3px; color: var(--slate); }

/* ---------- DARK CTA ---------- */
.band { background: var(--ink); color: #fff; }
.band h2 { font-size: clamp(1.8rem, 4vw, 2.85rem); max-width: 20ch; margin-top: 15px; color: #fff; }
.band p { margin-top: 16px; max-width: 52ch; color: rgba(255,255,255,0.72); }
.band-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.band-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.band-box { border: 1px solid rgba(255,255,255,0.16); border-radius: 16px; padding: clamp(22px, 3vw, 30px); }
.band-row { display: flex; justify-content: space-between; gap: 16px; padding-block: 13px; border-bottom: 1px solid rgba(255,255,255,0.11); font-size: 14.6px; }
.band-row:last-child { border-bottom: 0; }
.band-row dt { color: rgba(255,255,255,0.55); font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; padding-top: 3px; font-family: 'Archivo', sans-serif; }
.band-row dd { text-align: right; font-weight: 500; }
.band-row dd a:hover { color: #9DC2E8; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding-block: 19px; display: flex; justify-content: space-between; gap: 18px; align-items: center; font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 26px; height: 26px; border-radius: 50%; background: var(--stone); display: grid; place-items: center; flex: none; transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.faq summary .ico svg { width: 12px; height: 12px; color: var(--blue); }
.faq details[open] summary .ico { background: var(--blue); transform: rotate(45deg); }
.faq details[open] summary .ico svg { color: #fff; }
.faq .ans { padding-bottom: 20px; color: var(--slate); font-size: 15.3px; max-width: 68ch; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field label { font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 11px;
  font-family: 'Karla', sans-serif; font-size: 15.5px; color: var(--ink);
  background: #fff;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13,59,102,0.11);
}
.form-note { margin-top: 14px; font-size: 13px; color: var(--slate); }

/* ---------- FOOTER ---------- */
footer { background: var(--ink); color: rgba(255,255,255,0.68); padding-block: clamp(46px, 6vw, 68px) 30px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(24px, 3.4vw, 46px); padding-bottom: 38px; }
footer h4 { color: #fff; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 15px; }
footer ul { list-style: none; display: grid; gap: 9px; }
footer a { font-size: 14.3px; transition: color 0.28s var(--ease); }
footer a:hover { color: #fff; }
.foot-brand .brand-mark { background: rgba(255,255,255,0.13); }
.foot-brand .brand-txt b { color: #fff; }
.foot-brand p { margin-top: 15px; font-size: 14.2px; max-width: 34ch; }
.foot-bot { border-top: 1px solid rgba(255,255,255,0.11); padding-top: 24px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.8px; }

/* ---------- WHATSAPP FAB ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(31,175,84,0.55);
  transition: transform 0.38s var(--ease), opacity 0.3s var(--ease);
}
.fab svg { width: 27px; height: 27px; }
.fab:hover { transform: scale(1.07); }
body.menu-open .fab { opacity: 0; pointer-events: none; }

/* ---------- REVEAL ---------- */
.rise { opacity: 0; transform: translateY(20px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.rise.in { opacity: 1; transform: none; }
.rise.d1 { transition-delay: 0.07s; } .rise.d2 { transition-delay: 0.14s; } .rise.d3 { transition-delay: 0.21s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1040px) {
  .nav-links, .nav-cta .tel-link { display: none; }
  .burger { display: block; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  .split, .band-grid, .contact-grid { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .gal figure, .gal figure.w6, .gal figure.w8 { grid-column: span 6; }
}
/* On phones the brand + quote button + burger will not fit across the bar.
   The burger sheet already carries WhatsApp and the phone number, and the
   WhatsApp FAB is on screen the whole time, so drop the nav button here. */
@media (max-width: 620px) {
  .nav-cta .btn { display: none; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .gal figure, .gal figure.w6, .gal figure.w8 { grid-column: span 12; }
  .ba { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .band-row { flex-direction: column; gap: 2px; }
  .band-row dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .rise { opacity: 1; transform: none; }
}

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