/*
  HERMES FRAMING — ZOHO SITES CUSTOM CSS
  Add the hf-* classes shown in the accompanying build guide to each Zoho element.
  Brand direction: premium black, warm construction gold, strong editorial typography.
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --hf-black: #070707;
  --hf-black-soft: #101010;
  --hf-charcoal: #181818;
  --hf-gold: #c9a15a;
  --hf-gold-light: #e0bd78;
  --hf-gold-dark: #8d6b32;
  --hf-ivory: #f6f2e9;
  --hf-white: #ffffff;
  --hf-muted: #b9b5ac;
  --hf-line: rgba(201, 161, 90, 0.28);
  --hf-line-light: rgba(255, 255, 255, 0.12);
  --hf-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --hf-radius: 3px;
  --hf-max: 1240px;
  --hf-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --hf-body: "Inter", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--hf-black);
  color: var(--hf-ivory);
  font-family: var(--hf-body);
  -webkit-font-smoothing: antialiased;
}

body:has(.hf-hero) .theme-header-area {
  background: rgba(7, 7, 7, 0.96) !important;
  border-bottom: 1px solid var(--hf-line) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

body:has(.hf-hero) .theme-navigation-and-icons a,
body:has(.hf-hero) .theme-menu-area a {
  color: var(--hf-ivory) !important;
  font-family: var(--hf-body) !important;
  font-size: 0.79rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

body:has(.hf-hero) .theme-navigation-and-icons a:hover,
body:has(.hf-hero) .theme-menu-area a:hover {
  color: var(--hf-gold-light) !important;
}

.hf-container {
  width: min(calc(100% - 40px), var(--hf-max));
  margin-inline: auto;
}

.hf-section {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 9vw, 132px) 20px;
  background: var(--hf-ivory);
  color: var(--hf-black);
}

.hf-section--dark {
  background:
    radial-gradient(circle at 88% 12%, rgba(201, 161, 90, 0.10), transparent 28%),
    var(--hf-black-soft);
  color: var(--hf-ivory);
}

.hf-section--black {
  background: var(--hf-black);
  color: var(--hf-ivory);
}

.hf-section--gold {
  background: var(--hf-gold);
  color: var(--hf-black);
}

.hf-kicker,
.hf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--hf-gold);
  font-family: var(--hf-body);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hf-kicker::before,
.hf-eyebrow::before {
  width: 38px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hf-section--gold .hf-kicker {
  color: var(--hf-black);
}

.hf-section-title,
.hf-hero__title,
.hf-card h3,
.hf-project-card h3,
.hf-step h3,
.hf-proof h3 {
  margin: 0;
  font-family: var(--hf-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.96;
  text-transform: uppercase;
}

.hf-section-title {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 6vw, 5.25rem);
}

.hf-lead {
  max-width: 740px;
  margin: 0;
  color: #54514b;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

.hf-section--dark .hf-lead,
.hf-section--black .hf-lead {
  color: var(--hf-muted);
}

/* HERO */
.hf-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(880px, 92vh);
  align-items: end;
  overflow: hidden;
  padding: clamp(140px, 19vh, 220px) 20px clamp(72px, 10vh, 112px);
  background-color: var(--hf-black);
  background-position: center;
  background-size: cover;
  color: var(--hf-white);
}

.hf-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.74) 48%, rgba(5, 5, 5, 0.30) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.82), transparent 42%);
  content: "";
}

.hf-hero::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 34%;
  height: 7px;
  background: var(--hf-gold);
  content: "";
}

.hf-hero__inner {
  width: min(100%, var(--hf-max));
  margin-inline: auto;
}

.hf-hero__content {
  max-width: 920px;
}

.hf-hero__title {
  max-width: 900px;
  margin-bottom: 26px;
  font-size: clamp(3.6rem, 8.5vw, 8rem);
  text-wrap: balance;
}

.hf-hero__title em {
  color: var(--hf-gold-light);
  font-style: normal;
}

.hf-hero__copy {
  max-width: 690px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 1.55vw, 1.28rem);
  line-height: 1.68;
}

.hf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
}

.hf-btn,
a.hf-btn,
.hf-btn .zpbutton,
.hf-btn.zpbutton {
  display: inline-flex !important;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 16px 25px !important;
  border: 1px solid var(--hf-gold) !important;
  border-radius: var(--hf-radius) !important;
  background: var(--hf-gold) !important;
  box-shadow: none !important;
  color: var(--hf-black) !important;
  font-family: var(--hf-body) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease !important;
}

.hf-btn:hover,
a.hf-btn:hover,
.hf-btn .zpbutton:hover,
.hf-btn.zpbutton:hover {
  border-color: var(--hf-gold-light) !important;
  background: var(--hf-gold-light) !important;
  color: var(--hf-black) !important;
  transform: translateY(-2px);
}

.hf-btn--outline,
a.hf-btn--outline,
.hf-btn--outline .zpbutton,
.hf-btn--outline.zpbutton {
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: rgba(0, 0, 0, 0.22) !important;
  color: var(--hf-white) !important;
}

.hf-btn--outline:hover,
a.hf-btn--outline:hover,
.hf-btn--outline .zpbutton:hover,
.hf-btn--outline.zpbutton:hover {
  border-color: var(--hf-white) !important;
  background: var(--hf-white) !important;
  color: var(--hf-black) !important;
}

/* CREDIBILITY STRIP */
.hf-trust-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--hf-gold);
  color: var(--hf-black);
}

.hf-trust-item {
  min-height: 132px;
  padding: 26px clamp(18px, 3vw, 44px);
  border-right: 1px solid rgba(7, 7, 7, 0.22);
}

.hf-trust-item:last-child {
  border-right: 0;
}

.hf-trust-value {
  display: block;
  margin-bottom: 3px;
  font-family: var(--hf-display);
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.hf-trust-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* SERVICE CARDS */
.hf-grid {
  display: grid;
  gap: 20px;
}

.hf-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hf-card {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid #ddd5c7;
  border-radius: var(--hf-radius);
  background: #fffdf8;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hf-card:hover {
  border-color: var(--hf-gold);
  box-shadow: 0 20px 52px rgba(21, 16, 8, 0.10);
  transform: translateY(-4px);
}

.hf-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54px;
  height: 4px;
  background: var(--hf-gold);
  content: "";
  transition: width 180ms ease;
}

.hf-card:hover::after {
  width: 100%;
}

.hf-card__number {
  display: block;
  margin-bottom: 42px;
  color: var(--hf-gold-dark);
  font-family: var(--hf-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hf-card h3 {
  margin-bottom: 15px;
  color: var(--hf-black);
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
}

.hf-card p {
  margin: 0;
  color: #625d54;
  font-size: 0.96rem;
  line-height: 1.65;
}

/* PROJECT GALLERY */
.hf-project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 46px;
}

.hf-project-card {
  position: relative;
  grid-column: span 4;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius);
  background: var(--hf-charcoal);
}

.hf-project-card--wide {
  grid-column: span 8;
}

.hf-project-card img,
.hf-project-card .zpimage,
.hf-project-card .zpimage-container,
.hf-project-card .zpimage-container img {
  width: 100% !important;
  height: 100% !important;
  min-height: 420px;
  object-fit: cover !important;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 400ms ease;
}

.hf-project-card:hover img {
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.035);
}

.hf-project-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 78px 26px 25px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
  pointer-events: none;
}

.hf-project-tag {
  display: block;
  margin-bottom: 8px;
  color: var(--hf-gold-light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hf-project-card h3 {
  color: var(--hf-white);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
}

/* CAPABILITY / SAFETY */
.hf-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 46px;
  border: 1px solid var(--hf-line);
  background: var(--hf-line);
}

.hf-proof {
  min-height: 235px;
  padding: clamp(30px, 4vw, 52px);
  background: var(--hf-black-soft);
}

.hf-proof__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid var(--hf-gold);
  color: var(--hf-gold-light);
  font-weight: 800;
}

.hf-proof h3 {
  margin-bottom: 13px;
  color: var(--hf-ivory);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.hf-proof p {
  margin: 0;
  color: var(--hf-muted);
  line-height: 1.7;
}

.hf-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 26px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hf-checklist li {
  position: relative;
  padding: 13px 15px 13px 46px;
  border: 1px solid var(--hf-line-light);
  color: var(--hf-ivory);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.hf-checklist li::before {
  position: absolute;
  top: 12px;
  left: 15px;
  color: var(--hf-gold-light);
  content: "✓";
  font-size: 1.05rem;
  font-weight: 800;
}

/* PROCESS */
.hf-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 46px;
  border-top: 1px solid #cfc5b3;
}

.hf-step {
  position: relative;
  padding: 36px 28px 10px 0;
}

.hf-step::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hf-gold-dark);
  content: "";
}

.hf-step__number {
  display: block;
  margin-bottom: 22px;
  color: var(--hf-gold-dark);
  font-family: var(--hf-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.hf-step h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
}

.hf-step p {
  max-width: 260px;
  margin: 0;
  color: #625d54;
  font-size: 0.92rem;
  line-height: 1.62;
}

/* SERVICE AREA */
.hf-service-area {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
}

.hf-area-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hf-area-pill {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--hf-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--hf-ivory);
  font-family: var(--hf-display);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}

/* LEAD FORM */
.hf-lead-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.hf-form-shell {
  overflow: hidden;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid var(--hf-line);
  border-top: 5px solid var(--hf-gold);
  border-radius: var(--hf-radius);
  background: var(--hf-white);
  box-shadow: var(--hf-shadow);
}

.hf-form-shell iframe {
  display: block;
  width: 100% !important;
  min-height: 720px;
  border: 0 !important;
  background: var(--hf-white);
}

.hf-form-note {
  margin-top: 18px;
  color: var(--hf-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

/* FAQ */
.hf-faq {
  max-width: 920px;
  margin: 44px auto 0;
  border-top: 1px solid var(--hf-line);
}

.hf-faq details {
  border-bottom: 1px solid var(--hf-line);
}

.hf-faq summary {
  position: relative;
  padding: 24px 54px 24px 0;
  color: var(--hf-ivory);
  cursor: pointer;
  font-family: var(--hf-display);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-weight: 700;
  list-style: none;
  text-transform: uppercase;
}

.hf-faq summary::-webkit-details-marker {
  display: none;
}

.hf-faq summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--hf-gold-light);
  content: "+";
  font-family: var(--hf-body);
  font-size: 1.6rem;
  transform: translateY(-50%);
}

.hf-faq details[open] summary::after {
  content: "−";
}

.hf-faq details p {
  max-width: 760px;
  margin: -2px 0 25px;
  color: var(--hf-muted);
  line-height: 1.7;
}

/* FINAL CTA + FOOTER */
.hf-final-cta {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(38px, 6vw, 72px);
  border: 1px solid rgba(7, 7, 7, 0.20);
}

.hf-final-cta h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--hf-display);
  font-size: clamp(2.35rem, 5.2vw, 4.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-transform: uppercase;
}

.hf-section--gold .hf-btn {
  border-color: var(--hf-black) !important;
  background: var(--hf-black) !important;
  color: var(--hf-white) !important;
}

.hf-section--gold .hf-btn:hover {
  background: #252525 !important;
}

.hf-footer,
body:has(.hf-hero) .theme-footer-area {
  border-top: 1px solid var(--hf-line) !important;
  background: var(--hf-black) !important;
  color: var(--hf-muted) !important;
}

.hf-footer a,
body:has(.hf-hero) .theme-footer-area a {
  color: var(--hf-ivory) !important;
}

.hf-footer a:hover,
body:has(.hf-hero) .theme-footer-area a:hover {
  color: var(--hf-gold-light) !important;
}

/* MOBILE LEAD BUTTON */
.hf-mobile-cta {
  position: fixed;
  z-index: 9999;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: none;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hf-gold-light);
  border-radius: var(--hf-radius);
  background: var(--hf-gold);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.48);
  color: var(--hf-black) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none !important;
  text-transform: uppercase;
}

/* ACCESSIBILITY */
.hf-btn:focus-visible,
.hf-mobile-cta:focus-visible,
.hf-faq summary:focus-visible,
.hf-project-card a:focus-visible {
  outline: 3px solid var(--hf-gold-light);
  outline-offset: 4px;
}

/* TABLET */
@media (max-width: 980px) {
  .hf-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hf-trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hf-trust-item:nth-child(2) {
    border-right: 0;
  }

  .hf-trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(7, 7, 7, 0.22);
  }

  .hf-project-card,
  .hf-project-card--wide {
    grid-column: span 6;
  }

  .hf-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .hf-service-area,
  .hf-lead-section {
    grid-template-columns: 1fr;
  }

  .hf-lead-section {
    gap: 46px;
  }
}

/* MOBILE */
@media (max-width: 680px) {
  body {
    padding-bottom: 76px;
  }

  .hf-container {
    width: min(calc(100% - 28px), var(--hf-max));
  }

  .hf-section {
    padding: 70px 14px;
  }

  .hf-hero {
    min-height: 780px;
    padding: 130px 14px 64px;
    background-position: 62% center;
  }

  .hf-hero::before {
    background: linear-gradient(0deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.68) 68%, rgba(5, 5, 5, 0.38) 100%);
  }

  .hf-hero__title {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .hf-actions,
  .hf-final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .hf-btn {
    width: 100%;
  }

  .hf-trust-item {
    min-height: 112px;
    padding: 22px 17px;
  }

  .hf-grid--3,
  .hf-proof-grid,
  .hf-checklist,
  .hf-process,
  .hf-area-pills {
    grid-template-columns: 1fr;
  }

  .hf-card {
    min-height: 240px;
    padding: 28px;
  }

  .hf-project-card,
  .hf-project-card--wide {
    grid-column: 1 / -1;
    min-height: 360px;
  }

  .hf-project-card img,
  .hf-project-card .zpimage,
  .hf-project-card .zpimage-container,
  .hf-project-card .zpimage-container img {
    min-height: 360px;
  }

  .hf-process {
    border-top: 0;
  }

  .hf-step {
    padding: 26px 0;
    border-top: 1px solid #cfc5b3;
  }

  .hf-step::before {
    top: -5px;
  }

  .hf-form-shell iframe {
    min-height: 800px;
  }

  .hf-mobile-cta {
    display: flex;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}