/* ==========================================================================
   Homes by Valentino — "Sartoria Warm" redesign
   Foundation layer: design tokens + reusable primitives.
   Loaded AFTER template.css so it overrides the legacy TemplateMonster styles.
   Source of truth: design_handoff_valentino_redesign/ (README.md + BrandStyleTile).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Grounds */
  --hbv-travertine: #F5F1E8;   /* primary light page bg */
  --hbv-sand:       #E6DDCD;   /* image placeholders / arch wells */
  --hbv-efe:        #EFE9DC;   /* alternating / page-header band */
  --hbv-espresso:   #1F1A15;   /* dark sections, footer, headings on light */

  /* Text */
  --hbv-body:       #5D564C;   /* body on light */
  --hbv-muted:      #6A6459;   /* labels, breadcrumbs, captions — WCAG AA (>=4.8:1 on light grounds) */

  /* Accents */
  --hbv-bordeaux:      #7C2A33; /* primary accent on LIGHT grounds */
  --hbv-champagne:     #C4A46A; /* metallic accent on DARK grounds only */
  --hbv-champagne-lt:  #D9BD8A; /* lighter champagne for dark-ground text */
  --hbv-gold-eyebrow:  #E7CBA1; /* eyebrow over photos */
  --hbv-cta-subtext:   #FFE0DD; /* subtext inside bordeaux CTA band */

  /* Hairlines */
  --hbv-border-light:  #E4DCCB; /* borders on light grounds */
  --hbv-border-dark:   #3A352D; /* dividers on espresso */

  /* Type families */
  --hbv-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --hbv-sans:  'Lato', Arial, Helvetica, sans-serif;

  /* Rhythm */
  --hbv-maxw:        1200px;   /* content max width */
  --hbv-maxw-text:   900px;    /* narrow text blocks (820–960) */
  --hbv-pad-x:       32px;     /* page side padding */
  --hbv-section-y:   96px;     /* major section top/bottom (84–110) */

  /* Motion */
  --hbv-ease:        cubic-bezier(.2,.7,.2,1);
}

/* --------------------------------------------------------------------------
   2. Base — applies the warm system over the legacy template
   -------------------------------------------------------------------------- */
body {
  font-family: var(--hbv-sans);
  color: var(--hbv-body);
  background: var(--hbv-travertine);
}

h1, h2, h3, h4, h5,
.hbv-serif {
  font-family: var(--hbv-serif);
  font-weight: 500;           /* 500 max — never 600/700 for the serif */
  color: var(--hbv-espresso);
  text-wrap: balance;          /* no orphan/widow lines in headings */
}

a        { color: var(--hbv-bordeaux); text-decoration: none; }
a:hover  { color: var(--hbv-espresso); }

/* Fluid display scale (handoff values are exact) */
.hbv-h1        { font-size: clamp(40px, 7vw, 86px); line-height: 1.02; font-weight: 400; }
.hbv-h1--detail{ font-size: clamp(40px, 6vw, 72px); line-height: 1.05; font-weight: 400; }
.hbv-h2        { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
.hbv-stat-num  { font-family: var(--hbv-serif); font-weight: 500;
                 font-size: clamp(48px, 6vw, 68px); line-height: 1; }

/* Body copy */
.hbv-lead      { font-weight: 300; font-size: 16.5px; line-height: 1.75; }
.hbv-body      { font-size: 15.5px; line-height: 1.75; }

/* --------------------------------------------------------------------------
   3. Eyebrows & labels (Lato, tracked caps)
   -------------------------------------------------------------------------- */
.hbv-eyebrow {
  font-family: var(--hbv-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hbv-bordeaux);       /* on LIGHT grounds */
}
.hbv-eyebrow--heavy    { font-weight: 900; letter-spacing: 4px; }
.hbv-eyebrow--on-dark  { color: var(--hbv-champagne-lt); }  /* espresso/footer */
.hbv-eyebrow--on-photo { color: var(--hbv-gold-eyebrow); }  /* over imagery */

/* --------------------------------------------------------------------------
   4. Grounds — section backgrounds
   -------------------------------------------------------------------------- */
.hbv-ground-light  { background: var(--hbv-travertine); color: var(--hbv-body); }
.hbv-ground-cream  { background: var(--hbv-efe);        color: var(--hbv-body); }
.hbv-ground-dark   { background: var(--hbv-espresso);   color: #E7E1D5; }
.hbv-ground-dark  h1, .hbv-ground-dark  h2,
.hbv-ground-dark  h3, .hbv-ground-dark  h4 { color: #F3EEE2; }

/* Bordeaux CTA band */
.hbv-cta-band       { background: var(--hbv-bordeaux); color: #fff; }
.hbv-cta-band h2    { color: #fff; }
.hbv-cta-band .hbv-cta-sub { color: var(--hbv-cta-subtext); }

/* Section rhythm helpers */
.hbv-section { padding: var(--hbv-section-y) var(--hbv-pad-x); }
.hbv-wrap    { max-width: var(--hbv-maxw); margin: 0 auto; }
.hbv-wrap--text { max-width: var(--hbv-maxw-text); margin: 0 auto; }

/* --------------------------------------------------------------------------
   5. The Arch — signature image device (top-only rounding = true semicircle)
   -------------------------------------------------------------------------- */
.hbv-arch {
  border-radius: 9999px 9999px 0 0;
  overflow: hidden;
  background: var(--hbv-sand);      /* well shows while image loads */
}
.hbv-circle {                        /* Services page uses full circles */
  border-radius: 50%;
  overflow: hidden;
  background: var(--hbv-sand);
}

/* --------------------------------------------------------------------------
   6. Photo grade + zoom-on-hover
   -------------------------------------------------------------------------- */
.hbv-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* unify decades of mismatched photography */
  filter: saturate(.92) contrast(1.03) brightness(1.02) sepia(.04);
  transition: transform .7s var(--hbv-ease);
}
.hbv-zoom { overflow: hidden; }
.hbv-zoom:hover .hbv-img { transform: scale(1.06); }

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.hbv-btn {
  display: inline-block;
  font-family: var(--hbv-sans);
  font-weight: 900;
  font-size: 12.5px;
  letter-spacing: 1.75px;
  text-transform: uppercase;
  padding: 15px 38px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.hbv-btn--primary {
  background: var(--hbv-bordeaux);
  color: #fff;
}
.hbv-btn--primary:hover {
  background: var(--hbv-espresso);
  color: #fff;
}
.hbv-btn--outline {
  background: transparent;
  color: var(--hbv-bordeaux);
  border-color: var(--hbv-bordeaux);
}
.hbv-btn--outline:hover {
  background: var(--hbv-bordeaux);
  color: #fff;
}
/* Cream button for use inside the bordeaux CTA band */
.hbv-btn--cream {
  background: var(--hbv-travertine);
  color: var(--hbv-bordeaux);
}
.hbv-btn--cream:hover {
  background: var(--hbv-espresso);
  color: #fff;
}

/* --------------------------------------------------------------------------
   8. Brass rule — short centered divider under eyebrows/headings
   -------------------------------------------------------------------------- */
.hbv-rule {
  width: 54px;
  height: 2px;
  background: var(--hbv-champagne);
  border: 0;
  margin: 20px auto;
}
.hbv-rule--dark { background: var(--hbv-espresso); }

/* --------------------------------------------------------------------------
   9. Focus visibility (WCAG 2.2 AA — 3:1 non-text contrast)
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--hbv-bordeaux);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   10. Motion safety
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hbv-img,
  .hbv-zoom:hover .hbv-img { transition: none; transform: none; }
}

/* ==========================================================================
   GLOBAL CHROME — header (two-tier, sticky, travertine) + espresso footer.
   Targets the stable wrapper IDs in index.php and the IceMegaMenu desktop
   classes. Module *content* (FB glyph, language links, crest, accreditation
   logos) is DB-driven — see the build notes; these rules style it generically.
   ========================================================================== */

/* --- Sticky two-tier stack -------------------------------------------------- */
#hbv-header-stack {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--hbv-travertine);
  border-bottom: 1px solid var(--hbv-border-light);
  box-shadow: 0 1px 0 rgba(31,26,21,.04), 0 6px 18px rgba(31,26,21,.05);
}

/* --- Tier 1: logo · Facebook · language ------------------------------------ */
#hbv-header-stack #top {
  max-width: var(--hbv-maxw);
  margin: 0 auto;
  padding: 18px var(--hbv-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  border: 0;
  min-height: 0;
}
#hbv-header-stack #logo { float: none; width: auto; margin: 0; }
/* Same lockup as the footer: emblem cropped from the logo + typed wordmark
   (dark here for the light header). .hbv-mark clips to just the crest. */
#hbv-header-stack #logo a { display: inline-flex; align-items: center; gap: 14px; }
#hbv-header-stack #logo .hbv-mark {
  flex: 0 0 auto; width: 47px; height: 50px;
  overflow: hidden; display: inline-flex; align-items: center;
}
#hbv-header-stack #logo .hbv-mark img { height: 50px; width: auto; max-width: none; display: block; object-position: left center; }
#hbv-header-stack #logo .hbv-name {
  font-family: var(--hbv-serif); font-weight: 500; font-size: 22px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--hbv-espresso);
  white-space: nowrap; line-height: 1;
}
/* Fallback path: bare logo image (if markup isn't updated) still sizes right */
#hbv-header-stack #logo > a > img { height: 50px; width: auto; display: block; }
#hbv-header-stack #logo h1 {   /* sitename is a fallback only */
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

/* The `top` module position holds the FB glyph + language selector (right side) */
#hbv-header-stack #top .moduletable,
#hbv-header-stack #top .custom {
  display: flex; align-items: center; gap: 20px; margin: 0;
}
/* Bare Facebook "f" — SVG glyph (13x20) letter-only, espresso, fades on hover.
   Works whether the module outputs an <svg> (preferred) or an icon-font <i>. */
#hbv-header-stack #top a[href*="facebook"] {
  display: inline-flex;
  align-items: center;
  color: var(--hbv-espresso);
  font-size: 18px;
  line-height: 1;
  transition: opacity .2s ease;
}
#hbv-header-stack #top a[href*="facebook"]:hover { opacity: .6; }
#hbv-header-stack #top a[href*="facebook"] svg {
  width: 13px; height: 20px; display: block;
}
#hbv-header-stack #top a[href*="facebook"] svg path { fill: currentColor; }
/* Language selector: 简体 · 繁體 · EN (active = bordeaux) */
#hbv-header-stack #top .hbv-lang,
#hbv-header-stack #top .lang-inline {
  font-family: var(--hbv-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  white-space: nowrap;
  color: #B0A894;
}
/* Roomier tap targets for the language links (WCAG 2.2 target size) */
#hbv-header-stack #top .hbv-lang a {
  display: inline-block;
  padding: 4px 2px;
}
#hbv-header-stack #top .hbv-lang a { color: var(--hbv-muted); }
#hbv-header-stack #top .hbv-lang a:hover,
#hbv-header-stack #top .hbv-lang .active,
#hbv-header-stack #top .hbv-lang a.active { color: var(--hbv-bordeaux); }

/* --- Tier 2: centered nav with its own top rule ---------------------------- */
#hbv-header-stack #navigation {
  background: var(--hbv-travertine);
  border-top: 1px solid var(--hbv-border-light);
  padding: 0 var(--hbv-pad-x);
}
#hbv-header-stack #navigation .row-container,
#hbv-header-stack #navigation .row-container > div {
  max-width: var(--hbv-maxw); margin: 0 auto;
}

/* IceMegaMenu desktop bar — centered, tracked caps */
.icemegamenu > ul {
  float: none !important;
  margin: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  flex-wrap: nowrap;
}
.icemegamenu > ul > li { float: none !important; }
.icemegamenu > ul > li > a.iceMenuTitle,
#icemegamenu > li > a.iceMenuTitle {
  display: block !important;          /* don't rely on template.css for this */
  font-family: var(--hbv-sans) !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  line-height: 1 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #4A443C !important;          /* softer ink than headings */
  background: none !important;
  padding: 15px 4px !important;
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 2px solid transparent !important;
  text-decoration: none !important;
}
/* Active + hover = bordeaux with 2px bordeaux underline */
.icemegamenu > ul > li > a.iceMenuTitle.hover,
.icemegamenu > ul > li > a.iceMenuTitle.icemega_active,
.icemegamenu > ul > li.hover > a.iceMenuTitle,
.icemegamenu ul.active > a.iceMenuTitle,
.icemegamenu li.active > a.iceMenuTitle,
.level_1.active > a {
  color: var(--hbv-bordeaux) !important;
  background: none !important;
  border-bottom-color: var(--hbv-bordeaux) !important;
  text-decoration: none !important;
}
html[lang|='zh'] .icemegamenu > ul > li > a.iceMenuTitle {
  font-family: var(--hbv-sans) !important;
  font-size: 13px !important;
  letter-spacing: 2px !important;
}

/* --- Footer: espresso ground ----------------------------------------------- */
#footer,
#footer-wrapper,
#copyright {
  background: var(--hbv-espresso) !important;
  color: #B7AF9F;
}
#footer { padding: 70px var(--hbv-pad-x) 34px; }
#footer .row-container,
#copyright .row-container { max-width: 1180px; margin: 0 auto; }
#footer h1, #footer h2, #footer h3, #footer h4 { color: #F3EEE2; }
#footer a, #copyright a { color: var(--hbv-champagne-lt); }
#footer a:hover, #copyright a:hover { color: #fff; }

/* Footer content structure (skeleton: a Custom HTML module in the footer position) */
.hbv-foot { max-width: 1180px; margin: 0 auto; }
.hbv-foot__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--hbv-border-dark);
}
.hbv-foot__brand { display: flex; align-items: center; gap: 16px; }
.hbv-foot__crest {
  width: 48px; height: 48px; flex: 0 0 auto;
  border: 1.5px solid #6B6252; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--hbv-serif); font-weight: 500; font-size: 25px; line-height: 1; color: var(--hbv-champagne-lt);
}
/* Footer brand = the logo EMBLEM (cropped from the transparent logo.png; its
   colours read fine on dark) + the wordmark typed in light — same lockup as the
   header, legible on the espresso ground, no background/plate. */
.hbv-foot__mark {
  flex: 0 0 auto; width: 51px; height: 54px;
  overflow: hidden; display: inline-flex; align-items: center;
}
.hbv-foot__mark img { height: 54px; width: auto; max-width: none; display: block; object-position: left center; }
.hbv-foot__wordmark {
  font-family: var(--hbv-serif); font-weight: 500; font-size: 20px;
  letter-spacing: 1.5px; text-transform: uppercase; color: #F3EEE2; line-height: 1.1;
}
.hbv-foot__tagline { font-family: var(--hbv-sans); font-weight: 700; font-size: 9.5px; letter-spacing: 3px; color: var(--hbv-champagne-lt); margin-top: 4px; }
.hbv-foot__accred { display: flex; gap: 34px; align-items: center; flex-wrap: wrap; }
.hbv-foot__accred img { height: 50px; width: auto; filter: brightness(0) invert(.72); }
.hbv-foot__bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; padding-top: 26px;
  font-family: var(--hbv-sans); font-size: 12.5px; line-height: 1.8; color: #8F8676;
}
.hbv-foot__bottom a { color: #8F8676; }
.hbv-foot__bottom a[href^="mailto"] { color: var(--hbv-champagne-lt); }
.hbv-foot__bottom .hbv-foot__right { text-align: right; }

/* Accreditation logos — muted to a uniform tone (legacy hook) */
#footer img.hbv-accred,
#footer .hbv-accreditations img {
  height: 50px; width: auto;
  filter: brightness(0) invert(.72);
}

/* Divider between footer bands */
#footer .hbv-footer-divider,
#footer-wrapper #copyright { border-top: 1px solid var(--hbv-border-dark); }

/* Copyright band: small muted type */
#copyright { padding: 22px var(--hbv-pad-x); }
#copyright, #copyright .copyright, #copyright span {
  font-family: var(--hbv-sans);
  font-size: 12.5px;
  line-height: 1.7;
  color: #8F8878;
}
#copyright .copyright a { color: var(--hbv-champagne-lt); }

/* --- Mobile: IceMegaMenu already ships a hamburger (rd-mobilemenu).
   Restyle its dropdown to espresso + champagne at the template breakpoint. --- */
@media (max-width: 1024px) {
  .icemegamenu > ul { gap: 0; }
  .rd-mobilemenu,
  .rd-mobilemenu_ul,
  .rd-mobilemenu_submenu { background: var(--hbv-espresso) !important; }
  .rd-mobilemenu_ul .level_1 > a,
  .rd-mobilemenu_ul a.iceMenuTitle {
    color: #E7E1D5 !important;
    font-family: var(--hbv-sans) !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-color: var(--hbv-border-dark) !important;
  }
  .rd-mobilemenu_ul a.iceMenuTitle:hover,
  .rd-mobilemenu_ul .active > a { color: var(--hbv-champagne-lt) !important; }
}

/* ==========================================================================
   PAGE COMPONENTS — mod_articles_news_adv cards (projects / services / gallery).
   Markup (from the html/ overrides):
     .mod-newsflash-adv[.services|.gallery].cols-N
       > .row-fluid (or .masonry)
         > article.spanN.item
             figure.item_img > a > img (+ figcaption)
             .item_content > .item_title > a
   Scope hooks: variant class (.services/.gallery) + column count (.cols-N).
   ========================================================================== */

/* --- Grid: replace the Bootstrap-2 float grid with a responsive CSS grid --- */
.mod-newsflash-adv .row-fluid,
.mod-newsflash-adv .masonry.row-fluid {
  display: grid;
  gap: 34px 30px;
  margin: 0;
}
.mod-newsflash-adv [class*="span"] {
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  float: none !important;
}
/* Column count driven by the module's own .cols-N wrapper class + variant, kept
   fluid. Values match each prototype (ServicesV2 / GalleryV2 / ResidentialV2 /
   MultiUnitV2). */
.mod-newsflash-adv .row-fluid          { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 28px; }  /* Residential */
.mod-newsflash-adv.cols-2 .row-fluid   { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 44px; }   /* Multi-unit */
.mod-newsflash-adv.cols-3 .row-fluid   { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 34px; }   /* Home Selected Work */
.mod-newsflash-adv.services .row-fluid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 52px 30px; }
.mod-newsflash-adv.gallery .row-fluid  { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 34px; }
@media (max-width: 560px) {
  .mod-newsflash-adv .row-fluid,
  .mod-newsflash-adv.cols-2 .row-fluid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* --- Residential filter bar (region / featured) --------------------------- */
.hbv-filter {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: var(--hbv-maxw); margin: 0 auto 40px; padding: 0 var(--hbv-pad-x);
}
.hbv-filter__btn {
  font-family: var(--hbv-sans); font-weight: 700; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--hbv-muted); background: none; border: 1px solid var(--hbv-border-light);
  padding: 9px 20px; cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.hbv-filter__btn:hover { color: var(--hbv-espresso); border-color: var(--hbv-espresso); }
.hbv-filter__btn.is-active { color: #fff; background: var(--hbv-bordeaux); border-color: var(--hbv-bordeaux); }

/* --- Shared card treatment ------------------------------------------------- */
.mod-newsflash-adv .item { margin: 0; text-align: center; }
.mod-newsflash-adv .item_img {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--hbv-sand);
}
.mod-newsflash-adv .item_img a { display: block; width: 100%; height: 100%; }
.mod-newsflash-adv .item_img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.03) brightness(1.02) sepia(.04);
  transition: transform .7s var(--hbv-ease);
}
.mod-newsflash-adv .item_img:hover img { transform: scale(1.06); }
.mod-newsflash-adv figcaption { display: none; }

/* Title = project code / service name, centered Spectral below the image */
.mod-newsflash-adv .item_title {
  font-family: var(--hbv-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: .3px;
  margin: 16px 0 0;
}
.mod-newsflash-adv .item_title a { color: var(--hbv-espresso); }
.mod-newsflash-adv .item_title a:hover { color: var(--hbv-bordeaux); }
/* De-clutter: this design shows image + title only */
.mod-newsflash-adv .item_introtext,
.mod-newsflash-adv .item_published,
.mod-newsflash-adv .item_createdby,
.mod-newsflash-adv .readmore { display: none; }

/* --- Projects (default _item.php): THE ARCH ------------------------------- */
/* Default = Residential dense grid (fixed 172px arched tiles, ResidentialV2). */
.mod-newsflash-adv:not(.services):not(.gallery) .item_img {
  border-radius: 9999px 9999px 0 0;
  height: 172px;
}
/* Multi-unit: two large arches, 16:11 (MultiUnitV2) */
.mod-newsflash-adv.cols-2:not(.services):not(.gallery) .item_img {
  height: auto;
  aspect-ratio: 16 / 11;
}
.mod-newsflash-adv.cols-2 .item_title { font-size: 24px; line-height: 1.35; margin: 22px 0 0; }
/* Home "Selected Work": three tall arches (HomeV2) */
.mod-newsflash-adv.cols-3:not(.services):not(.gallery) .item_img { height: 400px; }
.mod-newsflash-adv.cols-3 .item_title { font-size: 23px; }

/* --- Services (_services.php): full CIRCLE medallions (220px, bordered) ---- */
.mod-newsflash-adv.services .item_img {
  border-radius: 50%;
  width: 220px; height: 220px;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid var(--hbv-border-light);
}
.mod-newsflash-adv.services .item_content { text-align: center; }
.mod-newsflash-adv.services .item_title {
  font-size: 22px; line-height: 1.3; margin: 24px auto 0; max-width: 280px;
}
/* Services show a short description under the title (module: Show Introtext = Yes) */
.mod-newsflash-adv.services .item_introtext {
  display: block;
  margin: 10px auto 0;
  max-width: 300px;
  font-family: var(--hbv-sans);
  font-weight: 300;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--hbv-body);
}
.mod-newsflash-adv.services .item_introtext p { margin: 0; }

/* --- Gallery (_gallery.php): arch (220px) + bordeaux play badge ------------ */
.mod-newsflash-adv.gallery .item_img {
  border-radius: 9999px 9999px 0 0;
  height: 220px;
  background: var(--hbv-espresso);
}
.mod-newsflash-adv.gallery .item_img img { opacity: .94; }
.mod-newsflash-adv.gallery .item_img a::after {   /* disc */
  content: "";
  position: absolute;
  top: 52%; left: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  background: rgba(124,42,51,.92);
  border-radius: 50%;
  transition: transform .3s var(--hbv-ease), background-color .25s ease;
}
.mod-newsflash-adv.gallery .item_img a::before {  /* play triangle */
  content: "";
  position: absolute;
  top: 52%; left: 50%;
  margin: -9px 0 0 -3px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
  z-index: 2;
}
.mod-newsflash-adv.gallery .item_img a:hover::after {
  transform: scale(1.08);
  background: var(--hbv-espresso);
}

/* Module "view all" button → outline button */
.mod-newsflash-adv_custom-link { text-align: center; margin-top: 44px; }
.mod-newsflash-adv_custom-link .btn,
.mod-newsflash-adv_custom-link .btn-info {
  display: inline-block;
  font-family: var(--hbv-sans); font-weight: 900; font-size: 12.5px;
  letter-spacing: 1.75px; text-transform: uppercase;
  color: var(--hbv-bordeaux); background: transparent;
  border: 1.5px solid var(--hbv-bordeaux); padding: 14px 36px;
  transition: background-color .25s ease, color .25s ease;
}
.mod-newsflash-adv_custom-link .btn:hover { background: var(--hbv-bordeaux); color: #fff; }

/* ==========================================================================
   FLOATING "GET IN TOUCH" — pill launcher + card (wraps the slide module)
   ========================================================================== */
#hbv-getintouch { position: fixed; right: 24px; bottom: 24px; z-index: 1200; }

/* Launcher pill */
.hbv-git-launcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 12px;
  background: var(--hbv-bordeaux);
  color: #FBF7EF;
  border: 0;
  border-radius: 0;                 /* squared to match the sharp button system */
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(31,26,21,.3);
  transform-origin: bottom right;
  transition: background-color .2s ease, transform .28s cubic-bezier(.22,1,.36,1), box-shadow .2s ease, opacity .2s ease;
}
.hbv-git-launcher:hover {
  background: var(--hbv-espresso);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(31,26,21,.4);
}
.hbv-git-launcher__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--hbv-champagne); color: var(--hbv-espresso);
  font-size: 16px; line-height: 1; flex: 0 0 auto;
}
.hbv-git-launcher__icon svg { width: 17px; height: 17px; display: block; stroke: currentColor; }
.hbv-git-launcher__label {
  font-family: var(--hbv-sans); font-weight: 900; font-size: 12.5px;
  letter-spacing: 1.5px; text-transform: uppercase;
}
#hbv-getintouch.is-open .hbv-git-launcher {
  opacity: 0;
  transform: scale(.9);
  pointer-events: none;
}

/* Card — absolutely positioned, so it needs no max-height animation. A pure
   transform + opacity reveal from the pill corner stays GPU-composited/smooth. */
.hbv-git-card {
  position: absolute;
  right: 0; bottom: 0;
  width: min(384px, calc(100vw - 32px));
  background: #FAF6EE;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(31,26,21,.32);
  border: 1px solid rgba(31,26,21,.08);
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(10px) scale(.94);
  pointer-events: none;
  will-change: transform, opacity;
  transition: opacity .22s ease, transform .4s cubic-bezier(.22,1,.36,1);
}
#hbv-getintouch.is-open .hbv-git-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .hbv-git-card, .hbv-git-launcher { transition: opacity .15s ease; transform: none !important; }
}
.hbv-git-card__head {
  position: relative;
  background: var(--hbv-bordeaux);
  color: #FBF7EF;
  padding: 22px 24px;
}
.hbv-git-card__head .hbv-eyebrow {
  display: block; margin-bottom: 7px;
  font-size: 10.5px; letter-spacing: 3px; color: #E6C99A;
}
.hbv-git-card__title { font-family: var(--hbv-serif); font-weight: 500; font-size: 24px; line-height: 1; color: #FBF7EF; }
.hbv-git-close {
  position: absolute; top: 20px; right: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; border: 1px solid rgba(255,255,255,.35); color: #FBF7EF;
  font-size: 17px; line-height: 1; cursor: pointer;
  transition: background-color .2s ease;
}
.hbv-git-close:hover { background: rgba(255,255,255,.14); }
.hbv-git-card__body { padding: 24px; background: #FAF6EE; }

/* Restyle the wrapped slide contact module's form to the cream spec */
.hbv-git-card__body input[type="text"],
.hbv-git-card__body input[type="email"],
.hbv-git-card__body input[type="tel"],
.hbv-git-card__body textarea {
  width: 100%;
  font-family: var(--hbv-sans); font-size: 14px;
  color: #3A352D;
  background: #fff;
  border: 1px solid #E0D7C4;
  border-radius: 6px;
  padding: 13px 14px;
  margin-bottom: 12px;
}
.hbv-git-card__body textarea { min-height: 96px; resize: vertical; }
.hbv-git-card__body input:focus,
.hbv-git-card__body textarea:focus {
  outline: none;
  border-color: var(--hbv-champagne);
  box-shadow: 0 0 0 3px rgba(196,164,106,.25);
}
.hbv-git-card__body button,
.hbv-git-card__body input[type="submit"],
.hbv-git-card__body .btn {
  width: 100%;
  font-family: var(--hbv-sans); font-weight: 900; font-size: 12.5px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #fff; background: var(--hbv-bordeaux);
  border: 0; border-radius: 6px; padding: 13px; cursor: pointer;
  transition: background-color .25s ease;
}
.hbv-git-card__body button:hover,
.hbv-git-card__body input[type="submit"]:hover,
.hbv-git-card__body .btn:hover { background: var(--hbv-espresso); }

@media (prefers-reduced-motion: reduce) {
  .mod-newsflash-adv .item_img img,
  .mod-newsflash-adv .item_img:hover img,
  .hbv-git-launcher, .hbv-git-card { transition: none; transform: none; }
}

/* ==========================================================================
   PROJECT DETAIL (com_content single article).
   Base article override: article.page-item > header.item_header > .item_title,
   figure.item-image (fulltext image), .item_fulltext (authored body).
   The rich layout is authored HTML inside .item_fulltext wrapped in .hbv-detail
   (paste-ready skeleton: html/com_content/article/project-detail.reference.html).
   ========================================================================== */

/* Base single-article typography (applies even without the skeleton) */
.page-item { max-width: var(--hbv-maxw); margin: 0 auto; padding: 0 var(--hbv-pad-x); }
.page-item .item_title {
  font-family: var(--hbv-serif); font-weight: 500; color: var(--hbv-espresso);
}
.page-item .item_fulltext { font-size: 16.5px; line-height: 1.8; color: var(--hbv-body); }
.page-item .item_fulltext img { max-width: 100%; height: auto; }

/* When the full skeleton is used, let it break out of the constrained article
   wrapper so the hero + CTA can go full-bleed. Author: set Show Title = No. */
.page-item:has(.hbv-detail) { max-width: none; padding: 0; }
.page-item .hbv-detail { font-family: var(--hbv-sans); color: var(--hbv-body); }
.page-item .hbv-detail :where(h1,h2) { color: var(--hbv-espresso); }

/* --- Breadcrumb strip ------------------------------------------------------ */
.hbv-detail .hbv-crumb {
  background: var(--hbv-efe);
  border-bottom: 1px solid var(--hbv-border-light);
}
.hbv-detail .hbv-crumb__inner {
  max-width: var(--hbv-maxw); margin: 0 auto; padding: 14px var(--hbv-pad-x);
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--hbv-muted);
}
.hbv-detail .hbv-crumb a { color: var(--hbv-muted); }
.hbv-detail .hbv-crumb a:hover { color: var(--hbv-bordeaux); }
.hbv-detail .hbv-crumb .is-current { color: var(--hbv-espresso); }

/* --- Hero (full-bleed graded photo + gradient, eyebrow + Spectral title) --- */
.hbv-detail .hbv-detail-hero {
  position: relative;
  height: clamp(520px, 72vh, 820px);
  overflow: hidden;
  background: var(--hbv-espresso);
}
.hbv-detail .hbv-detail-hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
  filter: saturate(.9) contrast(1.03) brightness(1.02) sepia(.05);
}
.hbv-detail .hbv-detail-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,32,28,.5) 0%, rgba(35,32,28,.34) 45%, rgba(24,21,17,.9) 100%);
}
.hbv-detail .hbv-detail-hero__inner {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: var(--hbv-maxw);
  padding: 0 var(--hbv-pad-x) 56px; z-index: 2;
}
.hbv-detail .hbv-detail-hero__eyebrow {
  font-family: var(--hbv-sans); font-weight: 700; font-size: 12px;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--hbv-gold-eyebrow); text-shadow: 0 1px 16px rgba(0,0,0,.7);
  margin-bottom: 18px;
}
.hbv-detail .hbv-detail-hero h1 {
  font-family: var(--hbv-serif); font-weight: 500;
  font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -.5px;
  color: #FAF6EE; margin: 0; text-shadow: 0 2px 26px rgba(0,0,0,.55);
  text-wrap: balance;
}

/* --- Overview + specs (two columns, stacks ≤820px) ------------------------- */
.hbv-detail .hbv-detail-overview {
  max-width: var(--hbv-maxw); margin: 0 auto;
  padding: 88px var(--hbv-pad-x) 90px;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start;
}
.hbv-detail .hbv-detail-overview__lede {
  font-family: var(--hbv-serif); font-weight: 400; font-style: italic;
  font-size: clamp(21px, 2.6vw, 28px); line-height: 1.5;
  color: var(--hbv-espresso); margin: 0 0 30px;
}
.hbv-detail .hbv-detail-overview p:not(.hbv-detail-overview__lede) {
  font-weight: 300; font-size: 16.5px; line-height: 1.8; color: var(--hbv-body);
  margin: 0 0 20px;
}
.hbv-detail .hbv-detail-specs { border-top: 2px solid var(--hbv-espresso); padding-top: 24px; }
.hbv-detail .hbv-spec {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--hbv-border-light);
}
.hbv-detail .hbv-spec__k {
  font-family: var(--hbv-sans); font-weight: 700; font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--hbv-muted);
}
.hbv-detail .hbv-spec__v {
  font-family: var(--hbv-serif); font-size: 17px; color: var(--hbv-espresso); text-align: right;
}

/* --- Gallery mosaic (6-col with span tiles; ≤640 → 2-col all arched) ------- */
.hbv-detail .hbv-detail-gallery {
  max-width: var(--hbv-maxw); margin: 0 auto; padding: 0 var(--hbv-pad-x) 96px;
}
.hbv-detail .hbv-detail-gallery__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid #E0D7C4; padding-bottom: 18px; margin-bottom: 32px;
}
.hbv-detail .hbv-detail-gallery__head h2 {
  font-family: var(--hbv-serif); font-weight: 500;
  font-size: clamp(26px, 3.4vw, 38px); color: var(--hbv-espresso); margin: 0;
}
.hbv-detail .hbv-detail-gallery__count {
  font-family: var(--hbv-sans); font-weight: 700; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--hbv-bordeaux);
}
.hbv-detail .hbv-detail-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.hbv-detail .hbv-gtile {
  grid-column: span 2; height: 320px; overflow: hidden; background: var(--hbv-sand);
}
.hbv-detail .hbv-gtile--span3 { grid-column: span 3; }
.hbv-detail .hbv-gtile--span4 { grid-column: span 4; }
.hbv-detail .hbv-gtile--tall  { height: 440px; }
.hbv-detail .hbv-gtile--arch  { border-radius: 9999px 9999px 0 0; }
.hbv-detail .hbv-gtile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.92) contrast(1.03) brightness(1.02) sepia(.04);
  transition: transform .7s var(--hbv-ease);
}
.hbv-detail .hbv-gtile:hover img { transform: scale(1.05); }

/* --- Prev / next ----------------------------------------------------------- */
.hbv-detail .hbv-detail-prevnext { border-top: 1px solid #E0D7C4; }
.hbv-detail .hbv-detail-prevnext__inner {
  max-width: var(--hbv-maxw); margin: 0 auto; padding: 34px var(--hbv-pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.hbv-detail .hbv-detail-prevnext a {
  font-family: var(--hbv-sans); font-weight: 700; font-size: 12.5px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--hbv-espresso);
}
.hbv-detail .hbv-detail-prevnext a:hover { color: var(--hbv-bordeaux); }

/* --- CTA band (reuses tokens) --------------------------------------------- */
.hbv-detail .hbv-cta {
  background: var(--hbv-bordeaux); color: #fff;
  padding: 92px var(--hbv-pad-x); text-align: center;
}
.hbv-detail .hbv-cta h2 {
  font-family: var(--hbv-serif); font-weight: 500; color: #fff;
  font-size: clamp(32px, 4.6vw, 50px); line-height: 1.1; margin: 0 0 14px;
  text-wrap: balance;
}
.hbv-detail .hbv-cta p { font-size: 16px; color: var(--hbv-cta-subtext); margin: 0 0 34px; }
.hbv-detail .hbv-cta .hbv-btn--cream { background: var(--hbv-travertine); color: var(--hbv-bordeaux); }

@media (max-width: 820px) {
  .hbv-detail .hbv-detail-overview { grid-template-columns: 1fr; gap: 44px; padding-top: 60px; padding-bottom: 64px; }
}
@media (max-width: 640px) {
  .hbv-detail .hbv-detail-grid { grid-template-columns: 1fr 1fr; }
  .hbv-detail .hbv-gtile {
    grid-column: auto !important; height: 220px !important;
    border-radius: 9999px 9999px 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hbv-detail .hbv-gtile img, .hbv-detail .hbv-gtile:hover img { transition: none; transform: none; }
}

/* ==========================================================================
   HOME + SHARED SECTION BANDS.
   Authored content (custom HTML module or article) using these classes.
   Skeleton: html/com_content/article/home-sections.reference.html
   Shared components (.hbv-cta, .hbv-section-head, .hbv-quote, stats band) are
   reused by inner pages too.
   ========================================================================== */

/* --- Full-screen hero (video slot fallback = background image) ------------- */
.hbv-hero {
  position: relative;
  height: clamp(600px, 90vh, 940px);
  overflow: hidden;
  background: var(--hbv-espresso);
}
.hbv-hero > img,
.hbv-hero > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
}
/* YouTube (or any 16:9) background video, scaled to cover the hero */
.hbv-hero__video { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.hbv-hero__video iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 177.78vh; height: 100vh; min-width: 100%; min-height: 56.25vw; border: 0;
}
.hbv-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(35,32,28,.55) 0%, rgba(35,32,28,.4) 45%, rgba(24,21,17,.9) 100%);
}
.hbv-hero__inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px; gap: 30px;
}
.hbv-hero__eyebrow {
  font-family: var(--hbv-sans); font-weight: 700; font-size: 13px;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--hbv-gold-eyebrow); text-shadow: 0 1px 16px rgba(0,0,0,.7);
}
.hbv-hero h1 {
  font-family: var(--hbv-serif); font-weight: 500;
  font-size: clamp(40px, 7vw, 86px); line-height: 1.02; letter-spacing: -.5px;
  color: #FAF6EE; margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,.35);
  text-wrap: balance;
}
.hbv-hero__play {
  width: 88px; height: 88px; border-radius: 50%;
  border: 1.5px solid rgba(250,246,238,.85);
  background: rgba(124,42,51,.9);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .25s var(--hbv-ease), background-color .25s ease;
}
.hbv-hero__play:hover { background: var(--hbv-bordeaux); transform: scale(1.06); }
.hbv-hero__play::before {
  content: ""; display: block;
  border-style: solid; border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent #fff; margin-left: 6px;
}

/* --- Philosophy (centered italic statement with side rules) ---------------- */
.hbv-philosophy { padding: 110px var(--hbv-pad-x); max-width: 1010px; margin: 0 auto; text-align: center; }
.hbv-philosophy__eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 28px;
}
.hbv-philosophy__eyebrow span:first-child,
.hbv-philosophy__eyebrow span:last-child { width: 28px; height: 1px; background: var(--hbv-bordeaux); }
.hbv-philosophy__eyebrow em {
  font-style: normal; font-family: var(--hbv-sans); font-weight: 700; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--hbv-bordeaux);
}
.hbv-philosophy p {
  font-family: var(--hbv-serif); font-weight: 500; font-style: italic;
  font-size: clamp(24px, 3.5vw, 40px); line-height: 1.4; color: var(--hbv-espresso);
  margin: 0; text-wrap: balance;
}

/* --- Section head (title left + link right, hairline under) ---------------- */
.hbv-section-head {
  max-width: var(--hbv-maxw); margin: 0 auto 38px;
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid #E0D7C4; padding-bottom: 20px;
}
.hbv-section-head h2 {
  font-family: var(--hbv-serif); font-weight: 500;
  font-size: clamp(28px, 4vw, 42px); color: var(--hbv-espresso); margin: 0;
}
.hbv-section-head a {
  font-family: var(--hbv-sans); font-weight: 700; font-size: 12.5px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--hbv-bordeaux);
  white-space: nowrap;
}

/* --- Selected Work (static arched cards) ----------------------------------- */
.hbv-work { max-width: var(--hbv-maxw); margin: 0 auto; padding: 0 var(--hbv-pad-x) 104px; }
.hbv-work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.hbv-work-card { display: block; }
.hbv-work-card__img {
  height: 400px; overflow: hidden; border-radius: 9999px 9999px 0 0; background: var(--hbv-sand);
}
.hbv-work-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.92) contrast(1.03) brightness(1.02) sepia(.04);
  transition: transform .7s var(--hbv-ease);
}
.hbv-work-card:hover .hbv-work-card__img img { transform: scale(1.06); }
.hbv-work-card__body { text-align: center; margin-top: 18px; }
.hbv-work-card__title { font-family: var(--hbv-serif); font-size: 23px; color: var(--hbv-espresso); }
.hbv-work-card__loc {
  font-family: var(--hbv-sans); font-weight: 700; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--hbv-bordeaux); margin-top: 5px;
}

/* --- Services teaser (cream band, roman numerals) -------------------------- */
.hbv-teaser { background: var(--hbv-efe); padding: 96px var(--hbv-pad-x); }
.hbv-teaser__inner { max-width: var(--hbv-maxw); margin: 0 auto; }
.hbv-teaser__head { text-align: center; margin-bottom: 56px; }
.hbv-teaser__head h2 {
  font-family: var(--hbv-serif); font-weight: 500;
  font-size: clamp(28px, 4vw, 42px); color: var(--hbv-espresso); margin: 0;
}
.hbv-teaser__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 44px; }
.hbv-teaser__col { text-align: center; }
.hbv-numeral { font-family: var(--hbv-serif); font-size: 44px; color: var(--hbv-bordeaux); line-height: 1; }
.hbv-teaser__col h3 {
  font-family: var(--hbv-serif); font-weight: 500; font-size: 24px;
  color: var(--hbv-espresso); margin: 18px 0 12px;
}
.hbv-teaser__col p { font-size: 15px; line-height: 1.7; color: #6B6355; margin: 0; }
.hbv-teaser__cta { text-align: center; margin-top: 52px; }

/* --- Stats band (espresso, champagne numerals, count-up) ------------------- */
.hbv-statsband { background: var(--hbv-espresso); color: var(--hbv-travertine); padding: 84px var(--hbv-pad-x); }
.hbv-statsband__grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center;
}
.hbv-statsband .hbv-stat-num { color: var(--hbv-champagne-lt); }
.hbv-statsband .hbv-stat-num span { font-size: .55em; }
.hbv-statsband__label {
  font-family: var(--hbv-sans); font-weight: 700; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase; color: #A79D89; margin-top: 12px;
}
@media (max-width: 640px) {
  .hbv-statsband__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
}

/* --- Testimonial (centered pull-quote) ------------------------------------- */
.hbv-quote { padding: 104px var(--hbv-pad-x); max-width: 960px; margin: 0 auto; text-align: center; }
.hbv-quote__mark { font-family: var(--hbv-serif); font-size: 72px; line-height: 0; color: var(--hbv-bordeaux); height: 36px; }
.hbv-quote p {
  font-family: var(--hbv-serif); font-weight: 500; font-style: italic;
  font-size: clamp(23px, 3vw, 34px); line-height: 1.42; color: var(--hbv-espresso);
  margin: 0 0 26px; text-wrap: balance;
}
.hbv-quote__author {
  font-family: var(--hbv-sans); font-weight: 700; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--hbv-bordeaux);
}

/* --- CTA band (GLOBAL component — Home, detail, inner pages) ---------------- */
.hbv-cta { background: var(--hbv-bordeaux); color: #fff; padding: 100px var(--hbv-pad-x); text-align: center; }
.hbv-cta h2 {
  font-family: var(--hbv-serif); font-weight: 500; color: #fff;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 0 0 14px; text-wrap: balance;
}
.hbv-cta h2 em { font-style: italic; }
.hbv-cta p { font-family: var(--hbv-sans); font-size: 16px; color: var(--hbv-cta-subtext); margin: 0 0 36px; }

/* ==========================================================================
   INNER-PAGE BANDS — shared page header, About marquee, Testimonials, Contacts.
   Skeleton: html/com_content/article/inner-pages.reference.html
   ========================================================================== */

/* --- Cream page-header band (About / Services / Gallery / Residential /
       Contacts / Testimonials) ------------------------------------------- */
.hbv-pagehead {
  background: var(--hbv-efe);
  border-bottom: 1px solid var(--hbv-border-light);
  padding: 66px var(--hbv-pad-x) 54px;
  text-align: center;
}
.hbv-pagehead__eyebrow {
  font-family: var(--hbv-sans); font-weight: 700; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--hbv-bordeaux);
  margin-bottom: 16px;
}
.hbv-pagehead h1 {
  font-family: var(--hbv-serif); font-weight: 500;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.05;
  color: var(--hbv-espresso); margin: 0 0 18px; text-wrap: balance;
}
.hbv-pagehead__rule { width: 60px; height: 1px; background: var(--hbv-bordeaux); margin: 0 auto; }

/* Wide, light lead paragraph under a page header */
.hbv-page-lead {
  max-width: 820px; margin: 0 auto; padding: 76px var(--hbv-pad-x) 20px; text-align: center;
}
.hbv-page-lead p {
  font-family: var(--hbv-sans); font-weight: 300;
  font-size: clamp(17px, 2.2vw, 21px); line-height: 1.75; color: #4F483E; margin: 0;
  text-wrap: pretty;
}

/* --- About: auto-scrolling arched photo marquee --------------------------- */
@keyframes hbv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hbv-marquee { padding: 56px 0 8px; }
.hbv-marquee__label {
  text-align: center; margin-bottom: 30px;
  font-family: var(--hbv-sans); font-weight: 700; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--hbv-bordeaux);
}
.hbv-marquee__viewport { overflow: hidden; width: 100%; }
.hbv-marquee__track {
  display: flex; gap: 16px; width: max-content; padding: 0 8px;
  animation: hbv-marquee 55s linear infinite;
}
.hbv-marquee:hover .hbv-marquee__track { animation-play-state: paused; }
.hbv-marquee__item {
  flex: 0 0 auto; width: 300px; height: 212px;
  overflow: hidden; background: var(--hbv-sand); border-radius: 9999px 9999px 0 0;
}
.hbv-marquee__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.92) contrast(1.03) brightness(1.02) sepia(.04);
}
@media (prefers-reduced-motion: reduce) {
  .hbv-marquee__track { animation: none; }
  .hbv-marquee__viewport { overflow-x: auto; }
}

/* --- Testimonials: narrow column of Spectral-italic pull-quotes ----------- */
.hbv-testimonials { max-width: 840px; margin: 0 auto; padding: 84px var(--hbv-pad-x) 100px; }
.hbv-testimonial {
  margin: 0 0 64px; padding: 0 0 0 30px; border-left: 2px solid #D9C39A;
}
.hbv-testimonial p {
  font-family: var(--hbv-serif); font-weight: 400; font-style: italic;
  font-size: clamp(19px, 2.2vw, 24px); line-height: 1.55; color: #2C2820; margin: 0 0 18px;
}
.hbv-testimonial footer {
  font-family: var(--hbv-sans); font-weight: 700; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--hbv-bordeaux);
}

/* --- Contacts: grayscale map + three columns ----------------------------- */
.hbv-map { width: 100%; background: var(--hbv-sand); }
.hbv-map iframe { width: 100%; height: 400px; border: 0; display: block; filter: grayscale(.35); }
.hbv-contacts { max-width: 1080px; margin: 0 auto; padding: 82px var(--hbv-pad-x) 104px; }
.hbv-contacts__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px;
}
.hbv-contacts__col h3 {
  font-family: var(--hbv-serif); font-weight: 500; font-size: 24px;
  color: var(--hbv-espresso); margin: 0 0 14px;
}
.hbv-contacts__col .hbv-contacts__rule { width: 36px; height: 1px; background: var(--hbv-bordeaux); margin-bottom: 18px; }
.hbv-contacts__col p {
  margin: 0; font-family: var(--hbv-sans); font-size: 16px; line-height: 1.75; color: var(--hbv-body);
}
.hbv-contacts__col p.hbv-contacts__phones { line-height: 1.9; }
.hbv-contacts__col a { color: var(--hbv-body); }
.hbv-contacts__col a:hover { color: var(--hbv-bordeaux); }
.hbv-contacts__col .hbv-contacts__vcard { margin-top: 16px; font-size: 14px; color: var(--hbv-muted); font-style: italic; }
.hbv-contacts__col .hbv-contacts__vcard a { color: var(--hbv-bordeaux); }
.hbv-contacts__close {
  text-align: center; margin-top: 72px; padding-top: 56px; border-top: 1px solid #E0D7C4;
}
.hbv-contacts__close p {
  font-family: var(--hbv-serif); font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px); color: var(--hbv-espresso); margin: 0; text-wrap: balance;
}
.hbv-contacts__close em { font-style: italic; color: var(--hbv-bordeaux); }
