/* =========================================================
   HUWGA - RENOVATION SUB-SITE
   Earthy, warm, material-led: raw linen, aged oak, ochre.
   Sibling of house-building but grittier, more tactile.
   ========================================================= */

:root {
  --rv-linen:    #F4EFE6;
  --rv-linen-dk: #E8E0D0;
  --rv-ochre:    #C4842A;
  --rv-ochre-dk: #A36C1F;
  --rv-bark:     #5C4A30;
  --rv-bark-dk:  #3E3120;
  --rv-ink:      #2A2420;
  --rv-white:    #FFFFFF;
}

.rv-body {
  background: var(--rv-linen);
  color: var(--rv-ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
}

.rv-body h1,.rv-body h2,.rv-body h3 {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  color: var(--rv-ink);
}

/* ---------- nav ---------- */
.rv-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(244,239,230,0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42,36,32,.1);
  transition: box-shadow .3s var(--ease);
}
.rv-nav.is-scrolled { box-shadow: 0 12px 28px -20px rgba(42,36,32,.4); }

.rv-nav__inner {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding:24px 0; 
  gap: 24px;
}
.rv-nav__brand {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.rv-nav__h {
  width:40px;height:40px;
  border-radius:50%;
  background:var(--hb-slate);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}

.rv-nav__wordmark {
  font-family: 'Jost', sans-serif; font-size: .92rem; letter-spacing: .28em;
  font-weight: 500; color: var(--rv-ink); line-height: 1.15;
}
.rv-nav__wordmark small {
  display: block; font-size: .52rem; letter-spacing: .22em;
  font-weight: 400; opacity: .6;
}

.rv-nav__links { display: none; align-items: center; gap: 34px; }
.rv-nav__links a {
  font-size: .85rem; font-weight: 400; color: var(--rv-ink);
  position: relative; padding: 6px 0;
}
.rv-nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--rv-ochre);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.rv-nav__links a:hover::after, .rv-nav__links a.is-active::after { transform: scaleX(1); }
.rv-nav__links a.is-active { font-weight: 600; }

.rv-nav__switch {
  font-weight: 400;
  display: flex; align-items: center; gap: 8px;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rv-bark); border: 1px solid var(--rv-bark);
  border-radius: 4px; padding: 8px 14px;
  transition: background .3s, color .3s; white-space: nowrap;
}
.rv-nav__switch:hover { background: var(--rv-bark); color: #fff; }

.rv-nav__cta {
  font-weight: 400;
  display: none; background: var(--rv-bark); color: #fff;
  padding: 11px 24px; border-radius: 100px;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  transition: background .3s; white-space: nowrap;
}
.rv-nav__cta:hover { background: var(--rv-bark-dk); color: #fff; }

.rv-nav__toggle {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(42,36,32,.2); border-radius: 50%; background: none; flex-shrink: 0;
}

@media (min-width: 992px) {
  .rv-nav__links { display: flex; }
  .rv-nav__cta   { display: inline-block; }
  .rv-nav__toggle { display: none; }
}

/* mobile menu */
.rv-mobile-menu {
  position: fixed; inset: 0; background: var(--rv-linen);
  z-index: 300; display: flex; flex-direction: column; padding: 24px;
  transform: translateX(100%); transition: transform .4s var(--ease);
}
.rv-mobile-menu.is-open { transform: translateX(0); }
.rv-mobile-menu__top {
  display: flex; justify-content: flex-end; margin-bottom: 48px;
}
.rv-mobile-menu__close {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(42,36,32,.2); background: none; font-size: 1.1rem;
}
.rv-mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.rv-mobile-menu nav a {
  font-family: 'Comfortaa', sans-serif; font-size: 1.7rem;
  padding: 14px 0; border-bottom: 1px solid rgba(42,36,32,.1);
}
.rv-mobile-menu__foot {
  margin-top: auto; display: flex; flex-direction: column; gap: 14px;
}

/* ---------- hero ---------- */
.rv-hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: flex-end; overflow: hidden; color: #fff;
}
.rv-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06);
}
.rv-hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(50,40,28,.18) 0%, rgba(50,40,28,.32) 45%, rgba(38,30,20,.88) 100%);
}
.rv-hero__content {
  position: relative; z-index: 2; padding-bottom: 80px; width: 100%;
}
.rv-hero__eyebrow {
  font-size: .75rem; letter-spacing: .32em; text-transform: uppercase;
  color: #d4a96a; margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.rv-hero__eyebrow::before {
  content: ''; width: 28px; height: 2px; background: #d4a96a;
}
.rv-hero__title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.06; 
  margin: 0 0 22px; 
  max-width: 14ch; 
  color: #fff !important;
}
.rv-hero__desc {
  font-size: 1.05rem; 
  line-height: 1.7; 
  max-width: 540px; 
  opacity: .92; 
  margin-bottom: 34px;
}

/* ---------- buttons ---------- */
.rv-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 100px;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 500; transition:background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.rv-btn--primary { background: var(--rv-ochre); color: #fff; }
.rv-btn--primary:hover { background: var(--rv-ochre-dk); transform: translateY(-2px); color: #fff; }
.rv-btn--ghost { background: transparent; border: 1px solid currentColor; }
.rv-btn--ghost:hover { background: rgba(255,255,255,.12); }
.rv-btn--dark { border: 1px solid var(--rv-ink); color: var(--rv-ink); }
.rv-btn--dark:hover { background: var(--rv-ink); color: #fff; }
.rv-btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- sections ---------- */
.rv-section { padding: 96px 0; }
.rv-section--linen { background: var(--rv-linen); }
.rv-section--linen-dk { background: var(--rv-linen-dk); }
.rv-section--bark { background: var(--rv-bark); color: #fff; }
.rv-section--bark h2,.rv-section--bark h3 { color: #fff; }
.rv-section--ink { background: var(--rv-ink); color: #fff; }
.rv-section--ink h2,.rv-section--ink h3 { color: #fff; }

.rv-eyebrow {
  font-size: .72rem; 
  font-weight: 700;
  letter-spacing: .32em; 
  text-transform: uppercase;
  color: var(--rv-ochre); 
  margin-bottom: 14px;
  display: inline-flex; 
  align-items: center; 
  gap: 10px;
}
.rv-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--rv-ochre); }

.rv-section__title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 22px; line-height: 1.1; }
.rv-section__lead { font-size: 1.05rem; line-height: 1.75; max-width: 680px; opacity: .85; }

/* ---------- split layout ---------- */
.rv-split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 992px) {
  .rv-split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .rv-split--reverse .rv-split__media { order: 2; }
}

.rv-img { border-radius: var(--radius-lg); overflow: hidden; }

/* ---------- value cards ---------- */
.rv-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 40px 32px; height: 100%;
  box-shadow: 0 18px 40px -28px rgba(42,36,32,.3);
}
.rv-card__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--rv-linen-dk); color: var(--rv-ochre);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 22px;
}
.rv-card h3 { font-size: 1.25rem; margin: 0 0 12px; }
.rv-card p  { font-size: .94rem; line-height: 1.7; opacity: .8; margin: 0; }

/* ============================================================
   CASE STUDY COMPONENT - shared across all 3 sub-sites
   before / during / after triptych + quote
   ============================================================ */
.case-study { padding: 80px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.case-study:last-child { border-bottom: none; }
.case-study--alt { background: rgba(0,0,0,.03); }

.case-study__header { margin-bottom: 40px; }
.case-study__num {
  font-family: 'Comfortaa', sans-serif;
  font-size: 4rem; font-weight: 700; line-height: 1;
  opacity: .07; margin-bottom: -20px;
}
.case-study__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; }
.case-study__meta {
  font-size: .8rem; letter-spacing: .06em; opacity: .6; text-transform: uppercase;
  display: flex; flex-wrap: wrap; gap: 16px;
}
.case-study__meta span { display: flex; align-items: center; gap: 6px; }

/* triptych - before/during/after */
.triptych { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 32px 0; }
@media (min-width: 600px) { .triptych { grid-template-columns: repeat(3, 1fr); } }

.triptych__img {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 4/3;
}
.triptych__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.triptych__img:hover img { transform: scale(1.05); }
.triptych__label {
  position: absolute; bottom: 10px; left: 12px;
  font-family: 'Jost', sans-serif;
  font-size: .65rem; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(0,0,0,.55); color: #fff;
  padding: 5px 12px; border-radius: 100px;
  backdrop-filter: blur(4px);
}

/* inline testimonial pull-quote */
.case-study__quote {
  border-left: 3px solid var(--rv-ochre);
  padding: 20px 28px;
  background: var(--rv-linen-dk);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
}
.case-study__quote p {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.1rem; line-height: 1.65; font-weight: 500;
  margin: 0 0 10px; color: var(--rv-ink);
}
.case-study__quote cite {
  font-style: normal; font-size: .8rem; opacity: .65;
}

/* case-study body text */
.case-study__body { font-size: .97rem; line-height: 1.8; opacity: .85; max-width: 680px; }

/* hb and co variants of the quote accent colour */
.hb-case .case-study__quote { border-color: var(--hb-slate); background: var(--hb-sand); }
.co-case .case-study__quote { border-color: var(--co-amber); background: var(--co-base); }

/* ---------- stats ---------- */
.rv-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
@media (min-width: 768px) { .rv-stats { grid-template-columns: repeat(4,1fr); } }
.rv-stat { text-align: center; }
.rv-stat__num {
  font-family: 'Comfortaa', sans-serif; font-size: clamp(2rem,4vw,2.8rem);
  font-weight: 700; color: var(--rv-ochre);
}
.rv-section--bark .rv-stat__num { color: #fff; }
.rv-stat__label { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-top: 6px; }

/* ---------- CTA banner ---------- */
.rv-cta-banner {
  background: var(--rv-ink); color: #fff;
  border-radius: var(--radius-lg); padding: 64px 40px; text-align: center;
}
.rv-cta-banner h2 { color: #fff; }

/* ---------- form ---------- */
.rv-form .form-control, .rv-form .form-select {
  background: #fff; border: 1px solid rgba(42,36,32,.18);
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: .95rem;
}
.rv-form .form-control:focus, .rv-form .form-select:focus {
  border-color: var(--rv-ochre); box-shadow: 0 0 0 3px rgba(196,132,42,.15);
}
.rv-form label {
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 8px; display: block; opacity: .7;
}

/* ---------- contact info ---------- */
.rv-contact-info { display: flex; flex-direction: column; gap: 22px; }
.rv-contact-info__item { display: flex; gap: 16px; align-items: flex-start; }
.rv-contact-info__icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--rv-bark); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rv-contact-info__item h4 { font-family: 'Jost',sans-serif; font-weight: 500; font-size: .95rem; margin: 0 0 4px; }
.rv-contact-info__item p { margin: 0; opacity: .75; font-size: .92rem; line-height: 1.6; }

/* ---------- footer ---------- */
.rv-footer { background: var(--rv-ink); color: rgba(255,255,255,.82); padding: 72px 0 28px; }
.rv-footer h4 {
  font-family: 'Jost', sans-serif; font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: #fff; margin-bottom: 20px;
}
.rv-footer a { opacity: .75; transition: opacity .25s; font-size: .92rem; }
.rv-footer a:hover { opacity: 1; }
.rv-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.rv-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .8rem; opacity: .55;
}
.rv-footer__social { display: flex; gap: 14px; }
.rv-footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- process steps ---------- */
.rv-step { display: flex; gap: 24px; padding: 34px 0; border-bottom: 1px solid rgba(42,36,32,.1); }
.rv-step:last-child { border-bottom: none; }
.rv-step__num { font-family:'Comfortaa',sans-serif; font-size:1.6rem; font-weight:700; color:var(--rv-ochre); flex-shrink:0; width:64px; }
.rv-step h3 { font-size:1.25rem; margin:0 0 10px; }
.rv-step p   { font-size:.95rem; line-height:1.75; opacity:.8; margin:0; max-width:620px; }

.reveal:not(.is-in){ opacity:0; transform:translateY(36px); }

@media (max-width: 767.98px) {
  .rv-section { padding: 64px 0; }
  .rv-hero { min-height: 78vh; }
}
