/* ============================================================
   MCPHERSON PAINTING — STYLESHEET
   Fonts: Cormorant Garamond (display serif) · DM Mono (labels) · Outfit (body)
   Sections:
     1.  Tokens (CSS variables)
     2.  Reset
     3.  Progress bar
     4.  Scroll animations
     5.  Page loader
     6.  Header + mobile menu
     7.  Hero
     8.  Stats strip
     9.  Marquee bar
     10. Shared layout + typography
     11. Buttons
     12. Who We Serve
     13. About
     14. Services accordion
     15. Gallery + lightbox
     16. Testimonials
     17. Why McPherson
     18. CTA band
     19. Footer
     20. Responsive
============================================================ */


/* ============================================================
   1. TOKENS
============================================================ */
:root {
  /* Brand colours */
  --navy:       #0b1f38;
  --navy-deep:  #060f1c;
  --navy-mid:   #132947;
  --green:      #1e4620;
  --green-mid:  #2a5e2c;
  --green-lite: #4a9450;
  --grey:       #7a8a9a;
  --grey-light: #c5d0da;
  --grey-pale:  #edf1f5;
  --white:      #ffffff;
  --cream:      #f7f5f1;

  /* Fonts */
  --serif: 'Outfit', Georgia, serif;
  --mono:  'DM Mono', monospace;
  --sans:  'Outfit', sans-serif;

  /* Easing */
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  /* Layout */
  --max: 1280px;
  --pad: clamp(1.5rem, 5vw, 3rem);
  --sec: clamp(5rem, 9vw, 5rem);   /* section vertical padding */
}


/* ============================================================
   2. RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--sans); background: var(--navy-deep); color: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; }
ul    { padding-left: .2px; }

.bodoni-moda-300 {
  font-family: "Bodoni Moda", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

/* ============================================================
   3. PROGRESS BAR
============================================================ */
#pb {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--green-lite), #8dd48e);
  z-index: 9999; pointer-events: none;
  transition: width .08s linear;
}


/* ============================================================
   4. SCROLL ANIMATIONS
   JS adds .is-visible via IntersectionObserver.
   All transitions use translate3d + opacity per brand spec.
============================================================ */
[data-anim] {
  opacity: 0;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
[data-anim="up"] {
  transform: translate3d(0px, 52px, 0px) scale3d(1,1,1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
[data-anim="left"] {
  transform: translate3d(-64px, 0px, 0px) scale3d(1,1,1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
[data-anim="right"] {
  transform: translate3d(64px, 0px, 0px) scale3d(1,1,1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
[data-anim="scale"] {
  transform: translate3d(0px, 28px, 0px) scale3d(0.94,0.94,1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-anim="fade"] {
  transform: translate3d(0px, 12px, 0px) scale3d(1,1,1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
/* Visible state — browser handles the transition from above */
[data-anim].is-visible {
  opacity: 1;
  transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
  transform-style: preserve-3d;
}
/* Stagger delays */
[data-delay="1"] { transition-delay: .12s; }
[data-delay="2"] { transition-delay: .24s; }
[data-delay="3"] { transition-delay: .36s; }
[data-delay="4"] { transition-delay: .48s; }
[data-delay="5"] { transition-delay: .60s; }


/* ============================================================
   5. PAGE LOADER
============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
}
#loader.done {
  opacity: 0;
  transform: translate3d(0, -100%, 0);
  transition: opacity .55s var(--ease-in) .25s, transform .9s var(--ease) .15s;
  pointer-events: none;
}
.ld-logo {
	max-width:250px;
}
.ld-name {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300; letter-spacing: .2em; text-transform: uppercase;
  color: var(--white); line-height: 1;
  clip-path: inset(0 100% 0 0);
  animation: ldReveal 1s var(--ease) .4s forwards;
}
.ld-sub {
  font-family: var(--mono);
  font-size: .75rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--green-lite); margin-top: 1rem;;
  opacity: 0;
  text-align: center;
  animation: ldFade .7s var(--ease) 1.1s forwards;
}
.ld-line {
  position: absolute; bottom: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--green), var(--green-lite));
  animation: ldLine 1.3s var(--ease) .1s forwards;
}
@keyframes ldReveal { to { clip-path: inset(0 0% 0 0); } }
@keyframes ldFade   { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ldLine   { to { width: 100%; } }


/* ============================================================
   6. HEADER + MOBILE MENU
============================================================ */
#hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  transition: background .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
#hdr.scrolled {
  background: rgba(6, 15, 28, .97);
  backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, .07);
}
.hdr-in {
  max-width: var(--max); margin: 0 auto;
  padding: .62rem var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.logo-img  { width:50px; }
.logo-img img {height:30px;}
.logo-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; letter-spacing: .09em; color: var(--white); line-height: 1; }
.logo-tag  { font-family: var(--mono); font-size: .5rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.64); display: block; margin-top: -1px; }

.hdr-nav { display: flex; align-items: center; gap: 2rem; }
.hdr-nav a {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255,255,255,.75); transition: color .2s;
}
.hdr-nav a.active {
  color: var(--green-lite);
}
.hdr-nav a:hover { color: var(--white); }
.hdr-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: .58rem 1.35rem; border-radius: 2px;
  transition: background .2s !important;
}
.hdr-cta:hover { background: var(--green-mid) !important; }

/* Hamburger */
.ham { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.ham span { display: block; width: 22px; height: 1.5px; background: var(--white); border-radius: 2px; transition: all .3s var(--ease); }
.ham.open span:nth-child(1) { transform: rotate(45deg) translate(4px,5px); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-5px); }

/* Mobile full-screen menu */
.mob {
  position: fixed; inset: 0; z-index: 790;
  background: var(--navy-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
}
.mob.open { transform: translateX(0); }
.mob a { font-family: var(--serif); font-size: 2rem; font-weight: 400; color: var(--white); letter-spacing: .05em; transition: color .2s; }
.mob a:hover { color: var(--green-lite); }
.mob-subnav { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin-top: -.5rem; }
.mob-subnav a { font-family: var(--mono) !important; font-size: .85rem !important; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45) !important; }
.mob-subnav a:hover { color: var(--green-lite) !important; }


/* ============================================================
   7. HERO — CINEMATIC SPLIT
============================================================ */
#hero {
  min-height: 100svh;
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
  /* Clip any child that bleeds out (e.g. hero-vert negative left) */
  isolation: isolate;
}

/* Left — editorial copy panel */
.hero-l {
  background: var(--navy-deep);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(5rem, 10vw, 8rem) var(--pad) clamp(3rem, 5vw, 4.5rem);
  position: relative; z-index: 2;
  overflow: hidden; /* clip hero-vert negative left position */
}
.hero-kicker {
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--green-lite); margin-bottom: 2rem;
  animation: hIn .7s var(--ease) 1.9s both;
}
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(4rem, 7.5vw, 8rem);
  font-weight: 400; line-height: .95; letter-spacing: -.01em; color: var(--white);
  animation: hIn 1s var(--ease) 2s both;
}
.hero-h1 em { font-style: italic; color: rgba(255,255,255,.3); }
.hero-rule {
  width: 0; height: 1px; background: var(--green-lite);
  margin: 2.2rem 0;
  animation: ruleW 1s var(--ease) 2.3s forwards;
}
@keyframes ruleW { to { width: 44px; } }
.hero-sub {
  font-size: clamp(1rem;, 1.4vw, 1.2rem;);
  color: rgba(255,255,255,.52); line-height: 1.82; max-width: 38ch;
  animation: hIn .8s var(--ease) 2.45s both;
}
.hero-btns {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 2.5rem;
  animation: hIn .8s var(--ease) 2.65s both;
}
.hero-vert {
  position: absolute; left: -11rem;; bottom: 6rem;
  font-family: var(--mono); font-size: .58rem;
  letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.18); writing-mode: vertical-rl;
  transform: rotate(180deg); z-index: 10;
  animation: hIn .8s var(--ease) 2.9s both;
}
@keyframes hIn {
  from { opacity: 0; transform: translate3d(0, 32px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Right — auto-slideshow */
.hero-r { position: relative; overflow: hidden; }
.hslide {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.07);
  transition: opacity 1.2s var(--ease), transform 8s linear;
}
.hslide.active  { opacity: 1; transform: scale(1.0); }
.hslide.leaving { opacity: 0; transform: scale(1.01); transition: opacity .8s var(--ease-in); }
.hslide img { width: 100%; height: 100%; object-fit: cover; }
/* Subtle dark left-edge fade on image for blend with copy panel */
.hslide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,15,28,.4) 0%, transparent 40%);
  pointer-events: none;
}
/* Reveal wipe — slides up on load */
.hero-wipe {
  position: absolute; inset: 0; z-index: 5;
  background: var(--navy-deep);
  animation: wipeUp 1.1s var(--ease) 1.6s forwards;
}
@keyframes wipeUp { from { transform: translate3d(0,0,0); } to { transform: translate3d(0,-100%,0); } }
/* Counter bottom-right */
.hero-ctr {
  position: absolute; bottom: 2.5rem; right: 2.5rem;
  font-family: var(--mono); font-size: .7rem; color: rgba(255,255,255,.45);
  z-index: 10; display: flex; align-items: center; gap: 1rem;;
  animation: hIn .6s var(--ease) 3.1s both;
}
.hero-ctr-n { color: var(--white); font-size: 1.15rem; }
.hero-ctr-l { width: 30px; height: 1px; background: rgba(255,255,255,.3); }
/* Dot nav */
.hero-dots {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem; z-index: 10;
  animation: hIn .6s var(--ease) 3.1s both;
}
.hero-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.3); border: none;
  transition: background .3s, transform .3s; cursor: pointer;
}
.hero-dot.on { background: var(--white); transform: scale(1.4); }


/* ============================================================
   8. STATS STRIP
============================================================ */
.stats {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
  display: grid; grid-template-columns: repeat(4,1fr);
}
.st {
  padding: 1.2rem var(--pad);
  border-right: 1px solid rgba(255,255,255,.06);
  transition: background .3s;
}
.st:last-child { border-right: none; }
.st:hover { background: rgba(255,255,255,.035); }
.st-n { font-family: var(--serif); font-size: 3.2rem; font-weight: 300; color: var(--green-lite); line-height: 1; }
.st-l { font-family: var(--mono); font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.38); margin-top: .4rem; }


/* ============================================================
   9. MARQUEE BAR
============================================================ */
.mq { background: var(--green); overflow: hidden; padding: .95rem 0; }
.mq-t { display: flex; gap: 3rem; width: max-content; animation: mqScroll 34s linear infinite; }
.mq:hover .mq-t { animation-play-state: paused; }
@keyframes mqScroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.mq-i {
  font-family: var(--mono); font-size: .66rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.88); white-space: nowrap;
  display: flex; align-items: center; gap: .7rem;
}
.mq-d { width: 3px; height: 3px; background: rgba(255,255,255,.35); border-radius: 50%; }


/* ============================================================
   10. SHARED LAYOUT + TYPOGRAPHY
============================================================ */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.wrap-x { margin: 0 auto; padding: 0 var(--pad); }


/* Section eyebrow tag */
.tag {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .22em;
  text-transform: uppercase; margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: .75rem;
}
.tag::before { content: ''; display: block; width: 20px; height: 1px; }
.tag-green { color: var(--green-lite); } .tag-green::before { background: var(--green-lite); }
.tag-lt    { color: rgba(255,255,255,.38); } .tag-lt::before { background: rgba(255,255,255,.25); }
.tag-dk    { color: var(--green); } .tag-dk::before { background: var(--green); }

/* Display heading */
.dh { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 300; line-height: 1.0; letter-spacing: -.01em; }
.dh em       { font-style: italic; }
.dh-light    { color: var(--white); } .dh-light em { color: rgba(255,255,255,.25); }
.dh-dark     { color: var(--navy);  } .dh-dark  em { color: rgba(11,31,56,.28); }


/* ============================================================
   11. BUTTONS
============================================================ */
.btn-p {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
  background: var(--green); color: var(--white);
  padding: 1.2rem; 2.1rem; border-radius: 2px; border: none;
  display: inline-flex; align-items: center; gap: .85rem;
  transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn-p:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(30,70,32,.5); }

.btn-g {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
  background: transparent; color: rgba(255,255,255,.68);
  padding: 1.2rem; 2.1rem; border-radius: 2px; border: 1px solid rgba(255,255,255,.22);
  display: inline-flex; align-items: center; gap: .85rem;
  transition: all .3s var(--ease);
}
.btn-g:hover { border-color: rgba(255,255,255,.65); color: var(--white); }

.btn-g-dk {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
  background: transparent; color: var(--navy);
  padding: 1.2rem; 2.1rem; border-radius: 2px; border: 1px solid rgba(11,31,56,.35);
  display: inline-flex; align-items: center; gap: .85rem;
  transition: all .3s var(--ease);
}
.btn-g-dk:hover { background: var(--navy); color: var(--white); }

.btn-ws {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
  background: var(--white); color: var(--green);
  padding: 1.2rem; 2.1rem; border-radius: 2px; border: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: .85rem;
  transition: all .3s var(--ease);
}
.btn-ws:hover { background: var(--grey-pale); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.2); }

.btn-gw {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
  background: transparent; color: rgba(255,255,255,.8);
  padding: 1.2rem; 2.1rem; border-radius: 2px; border: 1px solid rgba(255,255,255,.38);
  display: inline-flex; align-items: center; gap: .85rem;
  transition: all .3s var(--ease);
}
.btn-gw:hover { border-color: var(--white); color: var(--white); }

/* Arrow icon inside all buttons */
.btn-p svg, .btn-g svg, .btn-g-dk svg, .btn-ws svg, .btn-gw svg { transition: transform .3s var(--ease); }
.btn-p:hover svg, .btn-g:hover svg, .btn-g-dk:hover svg, .btn-ws:hover svg, .btn-gw:hover svg { transform: translateX(5px); }


/* ============================================================
   12. WHO WE SERVE
============================================================ */
#serve       { padding: var(--sec) 0; background: var(--cream); }
#venetian    { background: var(--cream); }
#maintenance { background: var(--cream); }
#intro       { background: var(--cream); }

.serve-grid {
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--grey-light);
  border-radius: 3px; overflow: hidden;
}
.sc {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--grey-light);
  border-bottom: 1px solid var(--grey-light);
  display: flex; flex-direction: column; gap: 1rem;
  position: relative; overflow: hidden;
  transition: background .3s; cursor: pointer;
}
.sc:nth-child(3n)   { border-right: none; }
.sc:nth-child(n+4)  { border-bottom: none; }
.sc::after { content: ''; position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--green); transition: width .5s var(--ease); }
.sc:hover::after { width: 100%; }
.sc:hover { background: rgba(237,241,245,.6); }
.sc-n { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; color: var(--grey); }
.sc-t { font-family: var(--serif); font-size: 1.55rem; font-weight: 400; color: var(--navy); line-height: 1.15; }
.sc-d { font-size: 1rem; color: var(--grey); line-height: 1.78; flex: 1; margin-bottom:0; }
.sc-l {
  font-family: var(--mono); font-size: .63rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); display: flex; align-items: center; gap: .5rem;
  transition: gap .3s var(--ease);
}
.sc:hover .sc-l { gap: .95rem; }
.sc-l svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; }


/* ============================================================
   13. ABOUT
============================================================ */
#about { padding: var(--sec) 0; background: var(--navy-deep); overflow: hidden; }

.about-grid { display: grid; grid-template-columns: 3fr 6fr; gap: 5rem; align-items: center; }

.about-imgs { position: relative; }
.ab-main {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 2px;
  transition: transform .8s var(--ease);
}
.about-imgs:hover .ab-main { transform: scale(1.02); }
.ab-float {
  position: absolute; bottom: -3rem; right: -3rem;
  width: 52%; aspect-ratio: 1; object-fit: cover;
  border-radius: 2px; border: 5px solid var(--navy-deep);
  box-shadow: 0 28px 70px rgba(0,0,0,.65);
  transition: transform .8s var(--ease) .1s;
}
.about-imgs:hover .ab-float { transform: translate(-8px,-8px); }
.ab-badge {
  position: absolute; top: 2rem; left: -2rem;
  background: var(--green); padding: 1.5rem 1.7rem;
  border-radius: 2px; box-shadow: 0 18px 52px rgba(30,70,32,.55);
}
.ab-big { font-family: var(--serif); font-size: 2.8rem; font-weight: 300; color: var(--white); line-height: 1; }
.ab-sml { font-family: var(--mono); font-size: .55rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: .3rem; }

.about-copy .dh { color: var(--white); }
.ab-lead { font-size: 1.2rem;; color: rgba(255,255,255,.62); line-height: 1.85; margin: 1.75rem 0; }
.ab-p    { font-size: 1rem;;   color: rgba(255,255,255,.42); line-height: 1.9;  margin-bottom: 1.5rem; }
.ab-checks { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2.5rem; }
.ab-checks li { display: flex; align-items: center; gap: 1rem;; font-size: 1rem;; color: rgba(255,255,255,.68); }
.ab-checks li svg { flex-shrink: 0; width: 18px; height: 18px; }


/* ============================================================
   14. SERVICES ACCORDION
============================================================ */
#services { padding: var(--sec) 0; background: var(--navy); }

.svc-hd {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 2rem; margin-bottom: 3rem;
}
.svc-hd .dh { color: var(--white); }
.svc-hd .dh em { color: rgba(255,255,255,.2); }

.svc-list { border-top: 1px solid rgba(255,255,255,.08); }
.svc-row  {
  border-bottom: 1px solid rgba(255,255,255,.08);
  cursor: pointer; transition: background .3s;
}
.svc-row:hover { background: rgba(255,255,255,.03); }
.svc-row.open  { background: rgba(30,70,32,.12); }

.svc-top {
  display: grid; grid-template-columns: 48px 1fr 48px;
  align-items: center; gap: 2rem; padding: 1.75rem 0;
}
.sv-n { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .1em; color: rgba(255,255,255,.2); text-align:right; }
.svc-row.open .sv-n { color: var(--green-lite); }
.sv-t { font-family: var(--serif); font-size: 1.6rem; font-weight: 300; color: rgba(255,255,255,.65); transition: color .3s; }
.svc-row:hover .sv-t, .svc-row.open .sv-t { color: var(--white); }
.sv-img { width: 140px; height: 88px; object-fit: cover; border-radius: 2px; opacity: .35; transition: opacity .35s; }
.svc-row:hover .sv-img, .svc-row.open .sv-img { opacity: 1; }
.sv-tog {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: none; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .35s var(--ease);
}
.sv-tog svg { stroke: rgba(255,255,255,.4); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease), stroke .3s; }
.svc-row.open .sv-tog { background: var(--green); border-color: var(--green); }
.svc-row.open .sv-tog svg { transform: rotate(45deg); stroke: var(--white); }
.sv-body { max-height: 0; overflow: hidden; transition: max-height .6s var(--ease), padding .4s; }
.sv-body.open { max-height: 200px; padding-bottom: 1.75rem; }
.sv-body p { font-size: 1rem;; color: rgba(255,255,255,.45); line-height: 1.85; max-width: 80ch; margin-left: calc(48px + 2rem); }
.sv-body a { color: var(--green-lite); }


/* ============================================================
   15. GALLERY + LIGHTBOX
============================================================ */
#gallery { padding: var(--sec) 0; background: var(--navy-deep); }
#gallery .dh { color: var(--white); }
#gallery .dh em { color: rgba(255,255,255,.22); }

.gal-hd {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 2rem; margin-bottom: 2.5rem;
}

/* Asymmetric bento grid */
.gal-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /*grid-template-rows: 260px 200px 240px;*/
  grid-template-rows: 28svh 35svh 28svh;
  gap: 6px;
}
.g-cell:nth-child(1) { grid-column: 1/3; grid-row: 1; }
.g-cell:nth-child(2) { grid-column: 3;   grid-row: 1; }
.g-cell:nth-child(3) { grid-column: 4;   grid-row: 1; }
.g-cell:nth-child(4) { grid-column: 1;   grid-row: 2; }
.g-cell:nth-child(5) { grid-column: 2/4; grid-row: 2; }
.g-cell:nth-child(6) { grid-column: 4;   grid-row: 2; }
.g-cell:nth-child(7) { grid-column: 1;   grid-row: 3; }
.g-cell:nth-child(8) { grid-column: 2;   grid-row: 3; }
.g-cell:nth-child(9) { grid-column: 3/5; grid-row: 3; }

.g-cell { position: relative; overflow: hidden; cursor: zoom-in; border-radius: 2px; }
.g-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.g-cell:hover img { transform: scale(1.08); }
.g-ov {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,15,28,.9) 100%);
  opacity: 0; transition: opacity .4s;
  display: flex; align-items: flex-end; padding: 1.1rem;
}
.g-cell:hover .g-ov { opacity: 1; }
.g-lbl {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--white);
  transform: translate3d(0, 8px, 0); transition: transform .4s var(--ease);
}
.g-cell:hover .g-lbl { transform: translate3d(0, 0, 0); }

/* Lightbox */
#lb {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(6,15,28,.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
}
#lb.open { opacity: 1; pointer-events: all; }
#lb img  { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 2px; transform: scale(.92); transition: transform .4s var(--ease); }
#lb.open img { transform: scale(1); }
.lb-x {
  position: absolute; top: 2rem; right: 2rem;
  background: none; border: 1px solid rgba(255,255,255,.2); color: var(--white);
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-x:hover { background: rgba(255,255,255,.1); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(255,255,255,.2); color: var(--white);
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.3rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-nav:hover { background: rgba(255,255,255,.1); }
.lb-prev { left: 2rem; } .lb-next { right: 2rem; }


/* ============================================================
   16. TESTIMONIALS
============================================================ */
#testi { padding: var(--sec) 0; background: var(--cream); }
.ti-hd { text-align: center; margin-bottom: 3.5rem; }
.ti-hd .tag { justify-content: center; }

.t-wrap { overflow: hidden; }
.t-track { display: flex; gap: 2rem; transition: transform .7s var(--ease); }
.t-card {
  flex: 0 0 calc(33.333% - 1.35rem);
  background: var(--white); padding: 2.5rem;
  border-radius: 2px; border: 1px solid var(--grey-light);
  display: flex; flex-direction: column; gap: 1.5rem;
  transition: box-shadow .35s, transform .35s var(--ease);
}
.t-card:hover { box-shadow: 0 16px 48px rgba(11,31,56,.1); transform: translateY(-6px); }
.t-stars { display: flex; gap: 3px; }
.t-star  { color: var(--green); font-size: .85rem; }
.t-q { font-family: var(--serif); font-size: 1.2rem;; font-weight: 300; font-style: italic; color: rgba(11,31,56,.75); line-height: 1.85; flex: 1; }
.t-auth { display: flex; align-items: center; gap: 1rem; }
.t-av { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .7rem; flex-shrink: 0; }
.t-nm { font-family: var(--sans); font-weight: 600; font-size: .85rem; color: var(--navy); }
.t-rl { font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; color: var(--grey); }

.t-ctrl { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 3rem; }
.t-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--grey-light); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .3s var(--ease);
}
.t-btn:hover { background: var(--navy); border-color: var(--navy); }
.t-btn svg { stroke: var(--navy); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.t-btn:hover svg { stroke: var(--white); }
.t-dots { display: flex; gap: .5rem; }
.t-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grey-light); border: none; cursor: pointer; transition: background .3s, transform .3s; }
.t-dot.on { background: var(--navy); transform: scale(1.4); }


/* ============================================================
   17. WHY MCPHERSON
============================================================ */
#why { padding: var(--sec) 0; background: var(--navy-deep); }

.why-2c { display: grid; grid-template-columns: 9fr 6fr; gap: 3rem; align-items: start; }
.why-st { position: sticky; top: 8rem; }
.why-st .dh     { color: var(--white); }
.why-st .dh em  { color: rgba(255,255,255,.2); }
.why-ld { font-size: 1rem; color: rgba(255,255,255,.48); line-height: 1.85; margin: 1.75rem 0 2.5rem; }

/* Sticky image stack */
.wi-stack { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.wi-img   { overflow: hidden; border-radius: 2px; }
.wi-img:first-child { grid-column: span 2; }
.wi-img img { width: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.wi-img:first-child img { aspect-ratio: 11/8; }
.wi-img:not(:first-child) img { aspect-ratio: 1; }
.wi-img:hover img { transform: scale(1.06); }

/* Numbered list */
.why-list { list-style: none; }
.why-item {
  display: flex; gap: 2rem;
  padding: 2.25rem 0; border-bottom: 1px solid rgba(255,255,255,.07);
  transition: padding-left .3s var(--ease); cursor: default;
}
.why-item:last-child { border-bottom: none; }
.why-item:hover { padding-left: .75rem; }
.wi-n {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 600;
  color: rgba(255,255,255,.25); line-height: 1;
  flex-shrink: 0; width: 56px; text-align: right;
  transition: color .35s;
}
.why-item:hover .wi-n { color: var(--green-lite); }
.wi-b h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: rgba(255,255,255,.78); margin-bottom: .5rem; transition: color .3s; }
.why-item:hover .wi-b h3 { color: var(--white); }
.wi-b p  { font-size: 1rem; color: rgba(255,255,255,.4); line-height: 1.85; }


/* ============================================================
   18. CTA BAND
============================================================ */
#cta {
  padding: 5rem 0; background: var(--green);
  position: relative; overflow: hidden; text-align: center;
}
#cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px; pointer-events: none;
}
.cta-in { position: relative; z-index: 1; }
.cta-in .dh     { color: var(--white); font-size: clamp(2.5rem, 5vw, 4.5rem); }
.cta-in .dh em  { color: rgba(255,255,255,.38); }
.cta-in p { font-size: 1rem; color: rgba(255,255,255,.72); max-width: 44ch; margin: .25rem auto .5rem; }
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }


/* ============================================================
   19. FOOTER
============================================================ */
#footer { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.06); padding: 4rem 0 2rem; }

.ft-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1.5fr; gap: 4rem; margin-bottom: 3rem; }
.ft-logo-n { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; letter-spacing: .09em; color: var(--white); }
.ft-logo-t { font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); display: block; margin-top: 2px; }
.ft-desc   { font-size: .85rem; color: rgba(255,255,255,.4); line-height: 1.85; margin-top: 1.25rem; max-width: 28ch; }





.ft-soc-row { display: flex; gap: .5rem; margin-top: 1.5rem; }
.ft-s { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.12); border-radius: 2px; display: flex; align-items: center; justify-content: center; transition: all .25s; }
.ft-s:hover { background: var(--green); border-color: var(--green); }
.ft-s svg   { width: 15px; height: 15px; stroke: rgba(255,255,255,.5); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.ft-s:hover svg { stroke: var(--white); }

.fc h4 { font-family: var(--sans); font-size: 1rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: 1rem; }
.fc ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.fc li a { font-size: .95rem; color: rgba(255,255,255,.42); transition: color .2s; }
.fc li a:hover { color: var(--white); }

.fc-ci { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; color: rgba(255,255,255,.42); margin-bottom: .85rem; }
.fc-ci svg { width: 14px; height: 14px; stroke: var(--green-lite); flex-shrink: 0; margin-top: 2px; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fc-ci a:hover { color: var(--white); }

.ft-bot {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 2rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.22);
}


/* ============================================================
   20. RESPONSIVE
============================================================ */

/* Prevent any horizontal overflow at root level */
html, body { max-width: 100%; overflow-x: clip; }

/* Ensure every section and wrap is bounded */
section, header, footer, nav { max-width: 100vw; }

@media (max-width: 1024px) {
  /* Hero: collapse to single column with background image */
  #hero { grid-template-columns: 1fr; min-height: calc(100svh - 265px); } 
  .hero-r { display: none; }
  .hero-l {
    min-height: calc(100svh - 265px);;
    justify-content: flex-end;
    overflow: hidden;
    background:
      linear-gradient(to bottom, rgba(6,15,28,.55) 0%, rgba(6,15,28,.80) 55%, var(--navy-deep) 100%),
	  url('https://www.mcphersonpainting.com.au/img/mcpherson-painting/hero5.webp') center center / cover no-repeat;
      /*url('https://img1.wsimg.com/isteam/stock/98118/:/') center center / cover no-repeat;*/
    background-attachment: scroll;
  }
  /* Hero heading: slightly smaller so it doesn't crowd on tablet */
  .hero-h1 { font-size: clamp(3.2rem, 9vw, 5.5rem); }
  /* Vertical text accent: hide on mobile — causes overflow */
  .hero-vert { display: none; }

  /* About + Why: single column */
  .about-grid, .why-2c { grid-template-columns: 1fr; }
  .about-imgs { max-width: 500px; margin-bottom: 4rem; }
  /* Float image repositioned so it doesn't escape container */
  .ab-float { right: 0; bottom: -2rem; }
  .ab-badge { left: 0; }
  .why-st { position: static; }

  /* Gallery: 2-column 4-row */
  .gal-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px 220px; }
  .g-cell:nth-child(1) { grid-column: 1/3; grid-row: 1; }
  .g-cell:nth-child(2) { grid-column: 1;   grid-row: 2; }
  .g-cell:nth-child(3) { grid-column: 2;   grid-row: 2; }
  .g-cell:nth-child(4) { grid-column: 1;   grid-row: 3; }
  .g-cell:nth-child(5) { grid-column: 2;   grid-row: 3; }
  .g-cell:nth-child(6) { grid-column: 1;   grid-row: 4; }
  .g-cell:nth-child(7) { grid-column: 2;   grid-row: 4; }
  .g-cell:nth-child(8), .g-cell:nth-child(9) { display: none; }

  /* Serve grid: 2-col */
  .serve-grid { grid-template-columns: 1fr 1fr; }
  .sc:nth-child(3n)  { border-right: 1px solid var(--grey-light); }
  .sc:nth-child(2n)  { border-right: none; }
  .sc:nth-child(n+4) { border-bottom: 1px solid var(--grey-light); }
  .sc:nth-child(n+5) { border-bottom: none; }

  /* Footer: 2-col */
  .ft-grid { grid-template-columns: 1fr 1fr; }

  /* Stats */
  .stats { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  /* Tighten global padding on small screens */
  :root { --pad: 1.5rem; --sec: clamp(3.5rem, 8vw, 5.5rem); }

  /* Nav: hamburger only */
  .hdr-nav a:not(.hdr-cta) { display: none; }
  
  .hdr-nav a {font-size:.6rem;}
  .hdr-nav a.hdr-cta {padding: .58rem .9rem;}
  .ham { display: flex; }

  /* Hero heading size on small phones */
  .hero-h1 { font-size: clamp(2.8rem, 11vw, 4.5rem); }
  /* Hero stats: 2-col grid instead of flex row so they don't overflow */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* Stats strip: 2-col */
  .stats { grid-template-columns: repeat(2,1fr); }
  .st { border-right: 1px solid rgba(255,255,255,.06); }
  .st:nth-child(2n) { border-right: none; }

  /* Serve: 1-col */
  .serve-grid { grid-template-columns: 1fr; }
  .sc:nth-child(n)  { border-right: none; border-bottom: 1px solid var(--grey-light); }
  .sc:last-child    { border-bottom: none; }
  
  /* Services: hide thumbnail, fix grid */
  .svc-top { grid-template-columns: 36px 1fr 32px; gap: 1rem; }
  .sv-img  { display: none; }
  .sv-body p { margin-left: calc(36px + 1rem); }

  /* Gallery: 1-col with natural height */
  .gal-bento { grid-template-columns: 1fr; grid-template-rows: auto; }
  .g-cell     { grid-column: auto !important; grid-row: auto !important; }
  .g-cell img { aspect-ratio: 4/3; height: auto; }
  .g-cell:nth-child(8), .g-cell:nth-child(9) { display: block; }

  /* Testimonials: 1-card visible */
  .t-card { flex: 0 0 calc(100% - 0px); }

  /* Why McPherson: stack properly */
  .why-2c { gap: 2.5rem; }
  .wi-stack { grid-template-columns: 1fr 1fr; }

  /* About: float image contained */
  .about-imgs { overflow: visible; padding-bottom: 3rem; }
  .ab-float   { width: 45%; right: 0; bottom: 0; }
  .ab-badge   { left: .5rem; top: 1.5rem; }

  /* CTA band */
  .cta-in .dh { font-size: clamp(2rem, 8vw, 3rem); }
  .cta-btns   { flex-direction: column; align-items: center; }

  /* Footer: 1-col */
  .ft-grid { grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2rem;  }

  /* Lightbox nav: hide on small screens */
  .lb-nav { display: none; }

  /* Marquee: slightly smaller text */
  .mq-i { font-size: .6rem; }
  
  .logo-img  { width:45px; }
  .logo-name { font-size: 1.15rem; }
  .logo-tag  { font-size: .48rem; letter-spacing: .16em; }

  .about-grid { gap: 0rem; }

  #cta { padding: 3rem 0; }
  #why { padding: 3rem 0 0.5rem; }
  #footer { padding: 3rem 0 2rem; }
  .ft-desc { width:100%; max-width: unset; }
  .ft-bot { padding: 1rem 1rem 0 1rem; }
  
}

