/**
* HomeSure Property Management — brand stylesheet
* Black & gold identity, built around the HS monogram.
*
* Structure:
*   1.  Tokens
*   2.  Base & shared utilities
*   3.  Header / navigation
*   4.  Hero
*   5.  About
*   6.  Services
*   7.  Call to action
*   8.  Contact
*   9.  Footer
*   10. Page title / breadcrumbs (interior pages)
*   11. Long-form legal pages
*   12. Interior template pages (service & portfolio details)
*   13. Chrome (preloader, scroll-to-top)
*
* Base template: OnePage by BootstrapMade (https://bootstrapmade.com/license/)
*/

/*--------------------------------------------------------------
# 1. Tokens
--------------------------------------------------------------*/
:root {
  /* Type — a Didone display against a Swiss-engineering sans:
     the wordmark's tracked serif caps meet the software half of the business. */
  --ff-display: "Bodoni Moda", "Times New Roman", Times, serif;
  --ff-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Ground — near-black, warmed a few degrees toward the gold so the two
     never read as a cold UI grey sitting under a warm accent. */
  --ink: #0b0a08;
  --ink-raised: #121009;
  --ink-plate: #17140d;
  --rule: #2a2418;
  --rule-lit: #423823;

  /* Ink on that ground */
  --bone: #ede7da;
  --muted: #a79e8b;
  --dim: #8a8271;

  /* Gold, sampled from the monogram's gradient */
  --gold: #d4ab48;
  --gold-lift: #f0cb66;
  --gold-deep: #a8812c;
  --gold-veil: rgba(212, 171, 72, 0.12);
  --gold-veil-soft: rgba(212, 171, 72, 0.06);

  /* The struck-metal gradient the mark itself is filled with */
  --metal: linear-gradient(168deg, #f6e1a4 0%, #d9b457 24%, #a8812c 50%, #e6cd7d 72%, #b8912f 100%);

  /* Rhythm */
  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: dark;
}

/*--------------------------------------------------------------
# 2. Base & shared utilities
--------------------------------------------------------------*/
body {
  margin: 0;
  background-color: var(--ink);
  color: var(--muted);
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--bone);
  font-family: var(--ff-display);
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.95rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  line-height: 1.25;
}

p {
  margin: 0 0 1.15rem;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--gold-lift);
}

img {
  max-width: 100%;
  height: auto;
}

strong {
  color: var(--bone);
  font-weight: 600;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold-lift);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Bootstrap's .container family, retuned to this page's shell */
.container,
.container-fluid,
.container-xl {
  --bs-gutter-x: 0;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-fluid.container-xl {
  max-width: var(--shell);
}

.section {
  padding-block: var(--section-y);
  position: relative;
  scroll-margin-top: 80px;
}

/* Hairline separators do the work that background-colour blocks used to */
.section + .section {
  border-top: 1px solid var(--rule);
}

/* Legacy preset classes from the template — neutralised so no section
   silently reverts to the old light/blue palette. */
.light-background,
.dark-background,
.accent-background {
  background-color: transparent;
}

/* The eyebrow: tracked mono caps, the page's smallest voice */
.eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Metallic type — filled with the same gradient as the mark */
.metal {
  color: var(--gold);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .metal {
    background: var(--metal);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* Section heading block. Note: this also carries .container, so it must not
   set its own max-width — that would re-centre the whole block. Constrain the
   lines instead. */
.section-title {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-title h1,
.section-title h2 {
  margin: 0;
  max-width: 20ch;
}

.section-title > p {
  margin: 1.15rem 0 0;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 58ch;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
}

/* Buttons ------------------------------------------------- */
.btn-solid,
.btn-getstarted,
.btn-get-started,
.cta-btn,
.btn-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-solid:hover,
.btn-getstarted:hover,
.btn-get-started:hover,
.cta-btn:hover,
.btn-visit:hover {
  background: var(--gold-lift);
  border-color: var(--gold-lift);
  color: var(--ink);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--rule-lit);
  color: var(--bone);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-veil-soft);
}

/* The ring bullet — a direct echo of the monogram's hairline circle */
.ring-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.ring-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--muted);
  line-height: 1.6;
}

.ring-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.ring-list li strong {
  color: var(--bone);
}

/*--------------------------------------------------------------
# 3. Header / navigation
--------------------------------------------------------------*/
.header {
  position: sticky;
  top: 0;
  z-index: 9996;
  padding-block: 0.9rem;
  background: rgba(11, 10, 8, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.scrolled .header {
  background: rgba(11, 10, 8, 0.94);
  border-bottom-color: var(--rule);
}

.header .container-fluid {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Lockup: the monogram, then the wordmark typeset alongside it so the
   stacked logo doesn't have to shrink to nothing in a 60px bar. */
.header .logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-right: auto;
}

.header .logo img {
  width: 46px;
  height: auto;
  flex-shrink: 0;
}

.logo-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-word .name {
  font-family: var(--ff-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
}

.logo-word .sub {
  margin-top: 0.42rem;
  font-family: var(--ff-mono);
  font-size: 0.53rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.navmenu ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navmenu a {
  position: relative;
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.navmenu a::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.28rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--bone);
}

.navmenu a:hover::after,
.navmenu a.active::after {
  transform: scaleX(1);
}

.header .btn-getstarted {
  padding: 0.7rem 1.4rem;
  font-size: 0.74rem;
}

.mobile-nav-toggle {
  display: none;
  position: relative;
  z-index: 9999;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--bone);
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.mobile-nav-toggle:hover {
  color: var(--gold);
}

/* Dropdowns (interior template pages) */
.navmenu .dropdown ul {
  display: none;
  position: absolute;
  margin-top: 0.5rem;
  padding: 0.5rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: var(--ink-plate);
  border: 1px solid var(--rule);
  z-index: 99;
}

.navmenu .dropdown:hover > ul,
.navmenu .dropdown ul.dropdown-active {
  display: flex;
}

.navmenu .toggle-dropdown {
  margin-left: 0.35rem;
  font-size: 0.7rem;
}

@media (max-width: 1199px) {
  /* backdrop-filter makes an element the containing block for its fixed
     descendants, which would trap the full-screen menu panel inside the
     header's own box. The header is opaque on mobile anyway. */
  .header {
    backdrop-filter: none;
    background: rgba(11, 10, 8, 0.95);
  }

  .mobile-nav-toggle {
    display: block;
  }

  /* The toggle lives inside <nav>, so the nav is what has to move past the
     Log In button in the header's flex order. */
  .header .navmenu {
    order: 3;
  }

  /* The panel paints inside the header's stacking context, so the bar's own
     contents need a stacking order of their own to stay on top of it. */
  .header .logo,
  .header .btn-getstarted {
    position: relative;
    z-index: 9995;
  }

  .header .btn-getstarted {
    order: 2;
  }

  .navmenu > ul {
    position: fixed;
    inset: 0;
    /* Below the header (9996) so the lockup and Log In stay visible and the
       panel reads as the page opening up, not replacing itself. */
    z-index: 9990;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 5rem var(--gutter) 3rem;
    background: var(--ink);
    overflow-y: auto;
    /* Fades rather than sliding in from off-screen: a fixed element parked
       at translateX(100%) is not clipped by body overflow and would give the
       whole document a phantom second screen of horizontal scroll. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  .mobile-nav-active .navmenu > ul {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .navmenu > ul > li + li {
    border-top: 1px solid var(--rule);
  }

  .navmenu > ul > li > a {
    padding: 1.15rem 0;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
  }

  .navmenu a::after {
    left: 0;
    right: auto;
    width: 2rem;
    bottom: 0.7rem;
  }

  .navmenu .dropdown ul {
    position: static;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--rule);
    margin-left: 0.5rem;
  }
}

@media (max-width: 575px) {
  .header .logo img {
    width: 38px;
  }

  .logo-word .name {
    font-size: 1rem;
  }

  .logo-word .sub {
    font-size: 0.46rem;
    letter-spacing: 0.26em;
  }

  .header .btn-getstarted {
    padding: 0.6rem 1rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
}

/*--------------------------------------------------------------
# 4. Hero
--------------------------------------------------------------*/
.hero {
  position: relative;
  padding-block: clamp(4.5rem, 11vw, 9rem) 0;
  overflow: hidden;
  border-top: 0;
}

/* Ambient light, as if the mark were catching a lamp off-frame */
.hero-glow {
  position: absolute;
  top: -18%;
  right: -12%;
  width: min(1100px, 105vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--gold-veil) 0%, rgba(212, 171, 72, 0.04) 42%, transparent 68%);
  pointer-events: none;
}

.hero-monogram {
  position: absolute;
  top: 50%;
  right: -8%;
  width: min(720px, 68vw);
  transform: translateY(-58%);
  opacity: 0.09;
  pointer-events: none;
  user-select: none;
}

/* Carries .container, so no max-width here — the lines inside are what get
   measured, otherwise the whole column re-centres. */
.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.hero h1 {
  margin: 0 0 1.75rem;
  max-width: 15ch;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero .lead {
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Capability strip — four columns divided by hairlines, sitting on the
   rule that closes the hero. Not four floating cards. */
.hero-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* Rule inset to the container's own padding so it starts on the same
   vertical as the headline above it. */
.hero-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--rule);
}

.hero-strip .icon-box {
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--rule);
  transition: background-color 0.35s var(--ease);
}

.hero-strip .icon-box:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero-strip .icon-box:hover {
  background: var(--gold-veil-soft);
}

.hero-strip .icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--rule-lit);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.05rem;
  transition: border-color 0.35s var(--ease);
}

.hero-strip .icon-box:hover .icon {
  border-color: var(--gold);
}

.hero-strip .title {
  margin: 0 0 0.5rem;
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-strip .title a {
  color: var(--bone);
}

.hero-strip .icon-box:hover .title a {
  color: var(--gold);
}

.hero-strip .description {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--dim);
}

@media (max-width: 991px) {
  .hero-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-strip .icon-box:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .hero-strip .icon-box:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 575px) {
  .hero-strip {
    grid-template-columns: 1fr;
  }

  .hero-strip .icon-box {
    border-left: 0;
    padding-inline: 0;
  }

  .hero-strip .icon-box + .icon-box {
    border-top: 1px solid var(--rule);
  }

  .hero-monogram {
    top: 34%;
    right: -32%;
    width: 88vw;
    opacity: 0.05;
  }
}

/*--------------------------------------------------------------
# 5. About
--------------------------------------------------------------*/
.about .about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about .about-aside {
  position: sticky;
  top: 130px;
}

.about .about-aside h2 {
  margin: 0 0 1.5rem;
}

.about .about-aside .rule {
  width: 4rem;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

.about .about-aside p {
  color: var(--dim);
  font-size: 0.98rem;
  max-width: 34ch;
}

.about .about-body p {
  max-width: 62ch;
}

.about .ring-list {
  margin: 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.about .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  width: 100%;
  font-family: var(--ff-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about .read-more i {
  transition: transform 0.3s var(--ease);
}

.about .read-more:hover i {
  transform: translateX(0.35rem);
}

@media (max-width: 991px) {
  .about .about-grid {
    grid-template-columns: 1fr;
  }

  .about .about-aside {
    position: static;
  }
}

/*--------------------------------------------------------------
# 6. Services
--------------------------------------------------------------*/
.services .service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.service-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 3.25rem);
  background: var(--ink-raised);
  border: 1px solid var(--rule);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}

.service-item:hover {
  border-color: var(--rule-lit);
  background: var(--ink-plate);
}

/* The managed service is the flagship offer — it carries the gold ground. */
.service-item.is-flagship {
  background: linear-gradient(160deg, rgba(212, 171, 72, 0.07) 0%, rgba(212, 171, 72, 0.015) 55%, transparent 100%), var(--ink-raised);
  border-color: var(--rule-lit);
}

.service-item.is-flagship:hover {
  border-color: var(--gold-deep);
}

.service-item .service-kind {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 2rem;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.service-item .service-kind::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.service-item .icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.4rem;
}

.service-item h3 {
  margin: 0 0 1rem;
}

.service-item > p:not(.service-kind) {
  color: var(--muted);
  max-width: 44ch;
}

/* margin-top:auto bottom-aligns both lists, so the pair reads as a matched
   set even when the intro copy runs to different line counts. */
.service-item .ring-list {
  margin-top: auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.service-item .ring-list li {
  font-size: 0.97rem;
}

/* The three things that separate us from a boxed product. Same hairline-rail
   treatment as the hero strip, so it reads as part of the same system. */
.services .service-notes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--rule);
}

.services .note {
  padding: clamp(2rem, 3.5vw, 2.75rem) clamp(1.25rem, 2.5vw, 2.25rem);
  border-left: 1px solid var(--rule);
}

.services .note:first-child {
  border-left: 0;
  padding-left: 0;
}

.services .note .icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--rule-lit);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.05rem;
}

.services .note h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
}

.services .note p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 991px) {
  .services .service-notes {
    grid-template-columns: 1fr;
  }

  .services .note {
    border-left: 0;
    padding-inline: 0;
  }

  .services .note + .note {
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 767px) {
  .services .service-grid {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# 7. Call to action
--------------------------------------------------------------*/
.call-to-action .cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 6vw, 5rem);
  background: linear-gradient(135deg, rgba(212, 171, 72, 0.1) 0%, rgba(212, 171, 72, 0.02) 48%, transparent 100%), var(--ink-raised);
  border: 1px solid var(--rule-lit);
}

.call-to-action .cta-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.call-to-action .cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.call-to-action h2 {
  margin: 0 0 1rem;
  max-width: 24ch;
}

.call-to-action p {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
}

.call-to-action .cta-mark {
  position: absolute;
  right: -6rem;
  bottom: -11rem;
  width: 400px;
  opacity: 0.07;
  pointer-events: none;
}

@media (max-width: 991px) {
  .call-to-action .cta-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/*--------------------------------------------------------------
# 8. Contact
--------------------------------------------------------------*/
.contact .map-frame {
  position: relative;
  border: 1px solid var(--rule);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  line-height: 0;
}

.contact .map-frame iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
  /* Google's embed can't be themed, so it's inverted into the dark palette */
  filter: invert(0.91) hue-rotate(185deg) saturate(0.6) brightness(0.96) contrast(0.92);
}

.contact .contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.contact .info-item {
  display: flex;
  gap: 1.25rem;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2.25rem);
  border-left: 1px solid var(--rule);
}

.contact .info-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.contact .info-item i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--rule-lit);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1rem;
}

.contact .info-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact .info-item p {
  margin: 0;
  color: var(--bone);
  font-size: 0.98rem;
  line-height: 1.55;
}

.contact .info-item a {
  color: var(--bone);
}

.contact .info-item a:hover {
  color: var(--gold);
}

@media (max-width: 991px) {
  .contact .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact .info-item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .contact .info-item:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 767px) {
  .contact .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact .info-item {
    border-left: 0;
    padding-inline: 0;
  }

  .contact .info-item + .info-item {
    border-top: 1px solid var(--rule);
  }
}

/*--------------------------------------------------------------
# 9. Footer
--------------------------------------------------------------*/
.footer {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--rule);
  background: var(--ink);
  font-size: 0.95rem;
}

.footer .footer-top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(2, minmax(0, 2fr)) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.footer .logo img {
  width: 132px;
  height: auto;
  margin-bottom: 1.5rem;
}

.footer .footer-about p {
  color: var(--dim);
  max-width: 40ch;
}

.footer h4 {
  margin: 0 0 1.5rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer .footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.footer .footer-links a {
  color: var(--muted);
}

.footer .footer-links a:hover {
  color: var(--bone);
}

.footer .footer-contact p {
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.footer .footer-contact .pair {
  margin-top: 1.25rem;
}

.footer .footer-contact strong {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer .footer-contact a {
  color: var(--bone);
}

.footer .social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.footer .social-links a {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.footer .social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer .copyright {
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
  color: var(--dim);
  font-size: 0.85rem;
}

.footer .copyright p {
  margin: 0;
}

.footer .copyright .sitename {
  color: var(--muted);
  font-weight: 500;
}

.footer .credits {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--dim);
}

.footer .credits a {
  color: var(--dim);
}

.footer .credits a:hover {
  color: var(--muted);
}

@media (max-width: 991px) {
  .footer .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .footer .footer-top {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# 10. Page title / breadcrumbs (interior pages)
--------------------------------------------------------------*/
.page-title {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.page-title::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -5%;
  width: 620px;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--gold-veil-soft) 0%, transparent 65%);
  pointer-events: none;
}

.page-title h1 {
  position: relative;
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

.breadcrumbs ol {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.breadcrumbs ol li + li::before {
  content: "/";
  padding-right: 0.75rem;
  color: var(--rule-lit);
}

.breadcrumbs .current {
  color: var(--muted);
}

/*--------------------------------------------------------------
# 11. Long-form legal pages
--------------------------------------------------------------*/
.privacy-policy .legal,
.terms .legal {
  max-width: 72ch;
}

.privacy-policy .legal h2,
.terms .legal h2 {
  margin: 3.5rem 0 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.privacy-policy .legal h2:first-child,
.terms .legal h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.privacy-policy .legal h3,
.terms .legal h3 {
  margin: 2.25rem 0 0.85rem;
  font-family: var(--ff-body);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.privacy-policy .legal p,
.terms .legal p {
  color: var(--muted);
}

.privacy-policy .legal ul,
.terms .legal ul {
  margin: 0 0 1.5rem;
  padding-left: 1.15rem;
}

.privacy-policy .legal li,
.terms .legal li {
  margin-bottom: 0.55rem;
  color: var(--muted);
}

.privacy-policy .legal li::marker,
.terms .legal li::marker {
  color: var(--gold-deep);
}

.privacy-policy .legal a,
.terms .legal a {
  border-bottom: 1px solid var(--gold-deep);
}

/*--------------------------------------------------------------
# 12. Interior template pages
--------------------------------------------------------------*/
.service-details .services-list {
  padding: 1.75rem;
  background: var(--ink-raised);
  border: 1px solid var(--rule);
}

.service-details .services-list a {
  display: block;
  padding: 0.6rem 0;
  color: var(--muted);
}

.service-details .services-list a.active,
.service-details .services-list a:hover {
  color: var(--gold);
}

.service-details .services-img {
  border: 1px solid var(--rule);
  margin-bottom: 1.75rem;
}

.service-details ul {
  list-style: none;
  padding: 0;
}

.service-details ul i {
  margin-right: 0.6rem;
  color: var(--gold);
}

.portfolio-details .portfolio-info {
  padding: 1.75rem;
  background: var(--ink-raised);
  border: 1px solid var(--rule);
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
}

.portfolio-details .portfolio-info li {
  padding-bottom: 0.6rem;
}

.portfolio-details .portfolio-description h2 {
  margin-bottom: 1.25rem;
}

.portfolio-details .swiper-pagination-bullet {
  background: var(--dim);
  opacity: 1;
}

.portfolio-details .swiper-pagination-bullet-active {
  background: var(--gold);
}

.portfolio-details .quote-icon-left,
.portfolio-details .quote-icon-right {
  color: var(--gold-deep);
}

.starter-section p {
  max-width: 68ch;
}

/*--------------------------------------------------------------
# 13. Chrome
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--ink);
  display: grid;
  place-items: center;
}

#preloader::before {
  content: "";
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule-lit);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: hs-spin 1s linear infinite;
}

@keyframes hs-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Persistent WhatsApp action, parked opposite the back-to-top control so the
   two never collide. Gold-filled because it is a primary action, not chrome. */
.whatsapp-float {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 99999;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.whatsapp-float:hover {
  background: var(--gold-lift);
  border-color: var(--gold-lift);
  color: var(--ink);
  transform: translateY(-2px);
}

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 99999;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--ink-plate);
  border: 1px solid var(--rule-lit);
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s, border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}
