/* ==========================================================================
   Kingsleigh Homes Design System
   Premium home builder | Somerset & Devon
   ========================================================================== */

:root {
  /* Brand palette */
  --slate:        #2f374c;   /* primary brand (from original site theme) */
  --slate-900:    #20283a;
  --slate-700:    #3a435c;
  --slate-500:    #5b6685;
  --ink:          #1c2230;
  --brass:        #b08d57;   /* refined metallic accent */
  --brass-dark:   #95743f;
  --cream:        #f7f5f1;
  --stone:        #efece6;
  --line:         #e2ddd4;
  --white:        #ffffff;
  --muted:        #6c7180;
  --success:      #2f7d54;

  /* Typography */
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans:  "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --shadow-sm: 0 2px 10px rgba(28,34,48,.06);
  --shadow-md: 0 10px 30px rgba(28,34,48,.10);
  --shadow-lg: 0 24px 60px rgba(28,34,48,.16);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Reset ------------------------------------------------------------------ */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--slate); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brass-dark); }
ul { list-style: none; padding: 0; }

/* Typography ------------------------------------------------------------- */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--slate-900); letter-spacing: .2px; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 700; letter-spacing: .3px; }
p { margin-bottom: 1.1rem; color: #3b4151; }
.lead { font-size: 1.2rem; color: var(--slate-700); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--brass-dark);
  display: inline-block;
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; display:inline-block; width: 26px; height:1px; background: var(--brass); vertical-align: middle; margin-right: .6rem; }

/* Layout helpers --------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--cream { background: var(--cream); }
.section--slate { background: var(--slate); color: #e9ecf3; }
.section--slate h1,.section--slate h2,.section--slate h3 { color: #fff; }
.section--slate p { color: #c4cad8; }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure.center { margin-inline: auto; }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px){ .grid-3,.grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  letter-spacing: .02em;
  padding: .9rem 1.7rem; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: all .25s var(--ease);
}
.btn--primary { background: var(--brass-dark); color: #fff; }
.btn--primary:hover { background: #7d6135; color:#fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--dark { background: var(--slate); color:#fff; }
.btn--dark:hover { background: var(--slate-900); color:#fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn--ghost:hover { background: var(--slate); color:#fff; }
.btn--light { background:#fff; color: var(--slate); }
.btn--light:hover { background: var(--cream); color: var(--slate-900); transform: translateY(-2px); }
.btn--block { width:100%; justify-content:center; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 104px; }
.brand { display:flex; align-items:center; gap:.7rem; font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--slate-900); letter-spacing:.3px; }
.brand b { color: var(--brass-dark); font-weight:600; }
.brand small { display:block; font-family: var(--sans); font-size:.58rem; letter-spacing:.28em; text-transform:uppercase; color: var(--muted); font-weight:600; }
.nav-links { display:flex; align-items:center; gap: 2rem; }
.nav-links a { font-family: var(--sans); font-weight: 500; font-size: .98rem; color: var(--slate-700); position: relative; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background: var(--brass); transition: width .25s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }
.nav-cta { display:flex; align-items:center; gap: .8rem; }
.nav-toggle { display:none; background:none; border:0; cursor:pointer; padding:.4rem; }
.nav-toggle span { display:block; width:26px; height:2px; background: var(--slate); margin:5px 0; transition: .3s; }
@media (max-width: 980px){
  .nav-links, .nav-cta .btn { display:none; }
  .nav-toggle { display:block; }
  .nav-cta { gap:.5rem; }
}
/* Mobile menu */
.mobile-menu { display:none; position: fixed; inset: 78px 0 0 0; background: var(--slate); z-index: 49; padding: 2rem var(--gut); flex-direction: column; gap: .4rem; }
.mobile-menu.open { display:flex; }
.mobile-menu a { color:#fff; font-size: 1.3rem; font-family: var(--serif); padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu .btn { margin-top: 1.2rem; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; min-height: 88vh; display:flex; align-items:center; color:#fff; overflow:hidden; }
.hero__bg { position:absolute; inset:0; background-size: cover; background-position: center; }
.hero__bg::after { content:""; position:absolute; inset:0; background: linear-gradient(105deg, rgba(28,34,48,.86) 0%, rgba(28,34,48,.6) 45%, rgba(28,34,48,.25) 100%); }
.hero .container { position: relative; z-index:2; }
.hero h1 { color:#fff; max-width: 16ch; }
.hero p { color:#dfe3ec; font-size:1.25rem; max-width: 44ch; margin-top: 1rem; }
.hero__cta { display:flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero__badges { display:flex; gap:1.6rem; margin-top: 2.6rem; flex-wrap:wrap; align-items:center; }
.hero__badges span { font-size:.85rem; letter-spacing:.04em; color:#cfd5e2; display:flex; align-items:center; gap:.5rem; }
.hero__badges svg { width:18px;height:18px; fill: var(--brass); }
@media (max-width: 600px){ .hero { min-height: 78vh; } }

/* Page banner (interior pages) ------------------------------------------ */
.page-banner { position: relative; color:#fff; padding: clamp(3.5rem,9vw,6.5rem) 0 clamp(3rem,7vw,5rem); overflow:hidden; background: var(--slate-900); }
.page-banner__bg { position:absolute; inset:0; background-size:cover; background-position:center; opacity:.4; }
.page-banner .container { position:relative; z-index:2; }
.page-banner h1 { color:#fff; }
.page-banner p { color:#cfd5e2; max-width: 60ch; }
.breadcrumbs { font-size:.85rem; color:#aeb6c7; margin-bottom:1rem; }
.breadcrumbs a { color:#cfd5e2; }
.breadcrumbs span { color: var(--brass); }

/* Cards ------------------------------------------------------------------ */
.card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__img { aspect-ratio: 4/3; background: var(--stone) center/cover no-repeat; position: relative; }
.card--featured { border: 2px solid var(--brass); }
.card__badge { position: absolute; top: 12px; left: 12px; background: var(--brass-dark); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .35rem .7rem; border-radius: 4px; }
.card__body { padding: 1.5rem 1.5rem 1.7rem; }
.card__body h3 { margin-bottom:.5rem; }
.card__body p { font-size:.97rem; margin-bottom:1rem; }
.card a.more { font-weight:600; color: var(--brass-dark); font-size:.92rem; }
.card a.more::after { content:" →"; }

/* Service feature row ---------------------------------------------------- */
.feature { display:grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem,5vw,4rem); align-items:center; }
.feature--rev { grid-template-columns: 1fr 1.05fr; }
.feature--rev .feature__media { order: 2; }
.feature__media { aspect-ratio: 5/4; border-radius: var(--radius); background: var(--stone) center/cover no-repeat; box-shadow: var(--shadow-md); }
@media (max-width: 800px){ .feature, .feature--rev { grid-template-columns:1fr; } .feature--rev .feature__media{ order:0; } }

/* Stats ------------------------------------------------------------------ */
.stats { display:grid; grid-template-columns: repeat(4,1fr); gap:1.5rem; text-align:center; }
.stat .num { font-family: var(--serif); font-size: clamp(2.2rem,4vw,3.2rem); color: var(--brass); line-height:1; }
.stat .lbl { font-size:.85rem; text-transform:uppercase; letter-spacing:.12em; color: var(--muted); margin-top:.5rem; }
@media (max-width:600px){ .stats{ grid-template-columns: repeat(2,1fr); gap:2rem; } }

/* Testimonials ----------------------------------------------------------- */
.quote { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.quote__stars { color: var(--brass); letter-spacing:2px; margin-bottom:.8rem; }
.quote p { font-style: italic; color: var(--slate-700); font-size: 1.02rem; }
.quote cite { display:block; margin-top:1rem; font-style:normal; font-weight:700; color: var(--slate-900); font-size:.95rem; }
.quote cite span { display:block; font-weight:400; color: var(--muted); font-size:.85rem; }

/* Gallery ---------------------------------------------------------------- */
.gallery { display:grid; grid-template-columns: repeat(3,1fr); gap: .6rem; }
.gallery a { display:block; aspect-ratio:1; background: var(--stone) center/cover no-repeat; border-radius: 3px; overflow:hidden; position:relative; }
.gallery a::after{ content:""; position:absolute; inset:0; background: rgba(28,34,48,0); transition:.3s; }
.gallery a:hover::after{ background: rgba(28,34,48,.18); }
@media (max-width:700px){ .gallery{ grid-template-columns: repeat(2,1fr);} }

/* Partner logos ---------------------------------------------------------- */
.partners { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap: clamp(1.5rem,5vw,3.5rem); }
.partners a, .partners img { filter: grayscale(1); opacity:.7; transition:.3s; max-height: 56px; width:auto; }
.partners a:hover img { filter: grayscale(0); opacity:1; }

/* Forms ------------------------------------------------------------------ */
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width:600px){ .form-grid { grid-template-columns:1fr; } }
.field label { display:block; font-size:.85rem; font-weight:600; color: var(--slate-700); margin-bottom:.4rem; }
.field label .req { color: var(--brass-dark); }
.field input, .field select, .field textarea {
  width:100%; padding:.8rem .95rem; border:1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size:1rem; color: var(--ink); background:#fff; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176,141,87,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.field input[type=file] { padding:.55rem; background: var(--cream); cursor:pointer; }
.fieldset { border:1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom:1.4rem; }
.fieldset legend { font-family: var(--sans); font-weight:700; font-size:.8rem; text-transform:uppercase; letter-spacing:.12em; color: var(--brass-dark); padding:0 .5rem; }
.checks { display:grid; grid-template-columns: repeat(2,1fr); gap:.5rem .9rem; }
@media (max-width:600px){ .checks{ grid-template-columns:1fr; } }
.check { display:flex; align-items:flex-start; gap:.55rem; font-size:.95rem; color:#3b4151; }
.check input { width:auto; margin-top:.25rem; }
.form-note { font-size:.82rem; color: var(--muted); }
.req-list { background: var(--cream); border-left: 3px solid var(--brass); padding: 1.1rem 1.3rem; border-radius: 3px; margin-bottom: 1.5rem; }
.req-list li { padding:.25rem 0 .25rem 1.6rem; position:relative; font-size:.95rem; }
.req-list li::before { content:"✓"; position:absolute; left:0; color: var(--success); font-weight:700; }

/* Info / contact tiles --------------------------------------------------- */
.info-tile { display:flex; gap:1rem; align-items:flex-start; }
.info-tile .ic { flex:0 0 44px; height:44px; border-radius:50%; background: var(--cream); display:flex; align-items:center; justify-content:center; }
.info-tile .ic svg { width:20px; height:20px; fill: var(--brass-dark); }
.info-tile h4 { margin-bottom:.2rem; }
.info-tile a, .info-tile p { color:#3b4151; font-size:.97rem; }

/* Floating ask button + modal ------------------------------------------- */
.ask-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  background: var(--brass-dark); color:#fff; border:0; border-radius: 50px;
  padding: .9rem 1.4rem; font-family: var(--sans); font-weight:600; font-size:.95rem;
  box-shadow: var(--shadow-lg); cursor:pointer; display:flex; align-items:center; gap:.5rem;
  transition: transform .2s var(--ease), background .2s;
}
.ask-fab:hover { background: #7d6135; transform: translateY(-2px); }
.ask-fab svg { width:18px;height:18px;fill:#fff; }
.modal-overlay { position: fixed; inset:0; background: rgba(28,34,48,.55); z-index: 70; display:none; align-items:center; justify-content:center; padding: 1.2rem; backdrop-filter: blur(3px); }
.modal-overlay.open { display:flex; }
.modal { background:#fff; border-radius: 8px; max-width: 540px; width:100%; max-height: 92vh; overflow:auto; box-shadow: var(--shadow-lg); position:relative; }
.modal__head { padding: 1.6rem 1.8rem 0; }
.modal__head h3 { margin-bottom:.3rem; }
.modal__head p { font-size:.95rem; color: var(--muted); }
.modal__body { padding: 1.2rem 1.8rem 1.9rem; }
.modal__close { position:absolute; top:.9rem; right:1rem; background:none; border:0; font-size:1.6rem; line-height:1; cursor:pointer; color: var(--muted); }
.modal__close:hover { color: var(--ink); }

/* Lightbox --------------------------------------------------------------- */
.lightbox { position: fixed; inset:0; background: rgba(20,24,34,.92); z-index: 80; display:none; align-items:center; justify-content:center; padding: 2rem; cursor: zoom-out; }
.lightbox.open { display:flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 4px; box-shadow: var(--shadow-lg); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--slate-900); color:#aeb6c7; padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width:820px){ .footer-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid { grid-template-columns:1fr; } }
.site-footer h4 { color:#fff; margin-bottom:1rem; font-family: var(--sans); font-size:.85rem; text-transform:uppercase; letter-spacing:.14em; }
.site-footer a { color:#aeb6c7; font-size:.95rem; }
.site-footer a:hover { color: var(--brass); }
.site-footer p { color:#c4cad8; }
.site-footer .brand { color:#fff; margin-bottom:1rem; }
.site-footer .brand b{ color: var(--brass); }
.footer-li li { margin-bottom:.55rem; }
.socials { display:flex; gap:.8rem; margin-top:1rem; }
.socials a { width:38px;height:38px;border-radius:50%; background: rgba(255,255,255,.07); display:flex;align-items:center;justify-content:center; }
.socials a:hover { background: var(--brass); }
.socials svg { width:18px;height:18px; fill:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top:2.5rem; padding-top:1.5rem; display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; font-size:.85rem; color:#7e879b; }

/* Reveal on scroll ------------------------------------------------------- */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity:1; transform:none; }

/* Header logo (solid white header, always legible) ----------------------- */
.brand { padding: .2rem 0; }
.brand-logo { height: 92px; width: auto; display: block; }
.site-header { background: #fff; backdrop-filter: none; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
@media (max-width: 600px){ .brand-logo { height: 60px; } }

/* Hero subtle Ken Burns zoom */
@keyframes kenburns { from { transform: scale(1.001); } to { transform: scale(1.09); } }
.hero__bg { animation: kenburns 20s ease-out forwards; will-change: transform; }
@media (prefers-reduced-motion: reduce){ .hero__bg{ animation:none; } }

/* Hero refinement */
.hero { min-height: 92vh; }
.hero h1 { max-width: 15ch; line-height: 1.05; letter-spacing: -.5px; text-shadow: 0 2px 24px rgba(8,11,18,.45); }
.hero p { max-width: 46ch; text-shadow: 0 1px 14px rgba(8,11,18,.5); }
.hero__badges span { text-shadow: 0 1px 10px rgba(8,11,18,.55); }
.hero__bg::after { background:
  linear-gradient(100deg, rgba(14,18,26,.94) 0%, rgba(14,18,26,.78) 40%, rgba(14,18,26,.45) 72%, rgba(14,18,26,.3) 100%),
  linear-gradient(to top, rgba(14,18,26,.55) 0%, rgba(14,18,26,0) 38%); }

/* Plans upload box */
.plans-box { background: var(--cream); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-top: 1.6rem; }
.plans-box__head { display: flex; gap: 1rem; align-items: flex-start; }
.plans-box__head svg { width: 30px; height: 30px; fill: var(--brass-dark); flex: 0 0 auto; margin-top: .25rem; }
.plans-box__head h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.plans-box__head p { font-size: .95rem; margin: 0; }

/* Gallery interaction + animated reveal */
.gallery a { transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .6s var(--ease); cursor: zoom-in; }
.gallery a:hover { transform: scale(1.03); z-index: 2; box-shadow: var(--shadow-md); }
.gallery a::before { content: "\002b"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; font-weight: 300; opacity: 0; transform: scale(.6); transition: .35s var(--ease); z-index: 3; }
.gallery a:hover::before { opacity: 1; transform: scale(1); }
.gallery.reveal-stagger a { opacity: 0; transform: translateY(18px); }
.gallery.reveal-stagger.in a { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }

/* Lightbox with navigation */
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .2s; z-index: 2; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 20px; right: 24px; width: 46px; height: 46px; font-size: 1.6rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; }
.lightbox__nav.prev { left: 20px; } .lightbox__nav.next { right: 20px; }
.lightbox__counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .9rem; letter-spacing: .05em; background: rgba(255,255,255,.1); padding: .35rem 1rem; border-radius: 50px; }
.lightbox img { transition: opacity .25s var(--ease); cursor: default; }
@media (max-width: 600px){ .lightbox__nav { width: 44px; height: 44px; } .lightbox__nav.prev{left:8px} .lightbox__nav.next{right:8px} }

/* Call-now button */
.btn--call { background: var(--slate); color: #fff; border-color: var(--slate); }
.btn--call:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn--call svg { width: 16px; height: 16px; fill: currentColor; }

/* Accreditations band */
.accred-eyebrow { text-align: center; font-size: .98rem; color: var(--slate-700); margin: 0 auto 1.9rem; max-width: 58ch; }
.section--slate .accred-eyebrow { color: #cdd3e0; }
.accred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 760px){ .accred-grid { grid-template-columns: repeat(2, 1fr); } }
.accred-grid > a { display: block; }
.accred { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem 1rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .8rem; height: 100%; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.accred-grid > a:hover .accred { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.accred img { height: 66px; width: auto; object-fit: contain; }
.accred__t strong { display: block; font-size: .95rem; color: var(--slate-900); font-weight: 600; }
.accred__t span { font-size: .8rem; color: var(--muted); }
.sc-badge { width: 66px; height: 66px; border-radius: 50%; background: var(--slate-900); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: .62rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.sc-badge span { color: var(--brass); } .sc-badge small { font-size: .5rem; color: var(--brass); margin-top: 2px; }

/* Editorial masonry gallery */
.masonry { columns: 3; column-gap: .7rem; }
@media (max-width: 900px){ .masonry { columns: 2; } }
.masonry .gtile { display: block; margin: 0 0 .7rem; break-inside: avoid; border-radius: 6px; overflow: hidden; position: relative; cursor: zoom-in; box-shadow: var(--shadow-sm); }
.masonry .gtile img { width: 100%; display: block; transition: transform .5s var(--ease); }
.masonry .gtile:hover img { transform: scale(1.05); }
.masonry .gtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,24,34,.5), transparent 46%); opacity: 0; transition: .35s var(--ease); }
.masonry .gtile:hover::after { opacity: 1; }
.masonry .gtile::before { content: "\002b"; position: absolute; right: 12px; bottom: 8px; z-index: 2; color: #fff; font-size: 1.5rem; font-weight: 300; opacity: 0; transform: translateY(6px); transition: .35s var(--ease); }
.masonry .gtile:hover::before { opacity: 1; transform: none; }
.reveal-stagger .gtile { opacity: 0; transform: translateY(18px); }
.reveal-stagger.in .gtile { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }

/* Slideshow / carousel gallery */
.slideshow { position: relative; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--slate-900); }
.ss-track { display: flex; transition: transform .6s var(--ease); will-change: transform; }
.ss-track .slide { flex: 0 0 100%; display: block; aspect-ratio: 16/10; cursor: zoom-in; position: relative; }
.ss-track .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.88); border: 0; cursor: pointer; font-size: 1.7rem; line-height: 1; color: var(--slate-900); display: flex; align-items: center; justify-content: center; z-index: 3; transition: background .2s, transform .2s; box-shadow: var(--shadow-sm); }
.ss-arrow:hover { background: #fff; }
.ss-arrow.prev { left: 16px; } .ss-arrow.next { right: 16px; }
.ss-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.ss-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: all .25s var(--ease); }
.ss-dot.active { background: #fff; width: 26px; border-radius: 5px; }
.ss-count { position: absolute; top: 16px; right: 18px; z-index: 3; color: #fff; font-size: .85rem; letter-spacing: .06em; background: rgba(20,24,34,.4); padding: .3rem .8rem; border-radius: 50px; backdrop-filter: blur(4px); }
@media (max-width: 600px){ .ss-track .slide { aspect-ratio: 4/3; } .ss-arrow { width: 42px; height: 42px; } .ss-arrow.prev{left:8px} .ss-arrow.next{right:8px} }

/* Utility ---------------------------------------------------------------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.pill { display:inline-block; background: var(--cream); border:1px solid var(--line); color: var(--slate-700); font-size:.8rem; padding:.3rem .8rem; border-radius:50px; margin:.2rem .2rem 0 0; }
.divider { height:1px; background: var(--line); border:0; margin: 2.5rem 0; }
.text-brass { color: var(--brass-dark); }
.skip-link { position:absolute; left:-999px; top:0; background:#fff; padding:.6rem 1rem; z-index:100; }
.skip-link:focus { left:8px; top:8px; }

/* CIOB member badge (accreditation trust band) */
.ciob-badge { height: 66px; min-width: 66px; padding: 0 1rem; border-radius: 10px; background: var(--slate-900); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; letter-spacing: .04em; }
.ciob-badge span { font-size: 1.08rem; color: var(--brass); line-height: 1; }
.ciob-badge small { font-size: .5rem; letter-spacing: .18em; margin-top: 3px; color: #cdd3e0; }

/* Header sizing + hero spacing fixes */
.mobile-menu { top: 104px; }
@media (max-width: 600px){ .nav { height: 76px; } .mobile-menu { top: 76px; } .brand-logo { height: 60px; } }
.hero { padding-top: clamp(2.5rem, 7vh, 5.5rem); padding-bottom: clamp(2.5rem, 7vh, 5.5rem); }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
.hero .kicker, .hero__kicker { margin-top: .4rem; }

/* Instagram feed grid */
.ig-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:.7rem; }
.ig-item { position:relative; display:block; aspect-ratio:1/1; overflow:hidden; border-radius:12px; background:#e9e6df; box-shadow:0 1px 4px rgba(38,49,71,.08); }
.ig-item img { width:100%; height:100%; object-fit:cover; transition:transform .45s var(--ease); }
.ig-item:hover img { transform:scale(1.06); }
.ig-item .ig-play { position:absolute; top:9px; right:11px; color:#fff; font-size:.95rem; text-shadow:0 1px 6px rgba(0,0,0,.7); }
@media (max-width:520px){ .ig-grid { grid-template-columns:repeat(2,1fr); } }
