/* ==========================================================================
   Radhey Enterprises - single stylesheet
   No framework, no page builder. ~1 request, no render-blocking JS.
   ========================================================================== */

/* ---------- fonts: self-hosted, woff2 only, swap ---------------------------
   Archivo, SIL Open Font License 1.1, licence text in assets/fonts/.
   Replaced Telegraf, which is free for personal use only and needed a paid
   licence for a commercial site. One variable file spans 100 to 900, so this
   is three requests and 59 220 bytes down to one request and 34 928.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --gold: #ba8645;
  --gold-dark: #8f6631;
  --gold-tint: #f6efe6;
  --cta: #d2691e;
  --ink: #16130f;
  --ink-soft: #4b453d;
  --ink-faint: #7c756b;
  --line: #e4ded5;
  --bg: #ffffff;
  --bg-alt: #faf7f2;
  --bg-dark: #16130f;

  --font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.83rem, 0.81rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.9rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.55rem + 2.6vw, 3.5rem);

  --gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --section-y: clamp(3rem, 2rem + 5vw, 6rem);
  --shell: 1180px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22, 19, 15, 0.05), 0 8px 24px rgba(22, 19, 15, 0.07);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* the live site scrolls sideways on phones; this makes that impossible */
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
  font-weight: 400;
}
p {
  margin: 0 0 1em;
  max-width: 68ch;
  text-wrap: pretty;
}
ul {
  margin: 0 0 1em;
  padding-left: 1.15em;
}
li {
  margin-bottom: 0.35em;
}
a {
  color: var(--gold-dark);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--cta);
}
:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 3px;
  border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- helpers ---------- */
.shell {
  width: min(100% - 2 * var(--gap), var(--shell));
  margin-inline: auto;
}
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  font-weight: 200;
}
.section {
  padding-block: var(--section-y);
}
.section--alt {
  background: var(--bg-alt);
}
.section--dark {
  background: var(--bg-dark);
  color: #f4f1ec;
}
.section--dark .eyebrow {
  color: #e0be93;
}
.section--dark p {
  color: #cfc9c0;
}
.section-head {
  max-width: 60ch;
  margin-bottom: clamp(1.75rem, 1rem + 2.5vw, 3rem);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 50%;
  translate: -50% -150%;
  z-index: 100;
  padding: 0.6rem 1.1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus {
  translate: -50% 0;
}

/* ---------- buttons ---------------------------------------------------------
   The live site inherits the H1 global typography here, so "Contact" and
   "Download Brochure" render at 59px/65px and overlap. Button text is sized
   explicitly and never inherits a heading scale.
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--cta);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px; /* touch target */
  padding: 0.7rem 1.35rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, translate 0.18s ease;
}
.btn:hover {
  color: var(--btn-fg);
  background: color-mix(in srgb, var(--btn-bg) 84%, #000);
  border-color: color-mix(in srgb, var(--btn-bg) 84%, #000);
  translate: 0 -1px;
}
.btn--gold {
  --btn-bg: var(--gold);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: currentColor;
}
.btn--ghost:hover {
  background: var(--ink);
  --btn-fg: #fff;
}
.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--on-dark:hover {
  background: #fff;
  --btn-fg: var(--ink);
  border-color: #fff;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-dark);
}
.link-more::after {
  content: "\2192";
  transition: translate 0.18s ease;
}
.link-more:hover::after {
  translate: 4px 0;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-height: 72px;
  padding-block: 0.6rem;
}
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  width: 104px;
  height: auto;
}
.nav {
  flex: 1 1 auto;
}
.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}
.nav__link:hover {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}
.nav__link[aria-current="page"] {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}
.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5em;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle__bars {
  display: grid;
  gap: 3px;
}
.nav-toggle__bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: wrap;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav {
    flex-basis: 100%;
    order: 3;
  }
  /* With JS: collapsed by default, toggled by the button.
     Without JS (.no-js): always open, so the menu is never unreachable. */
  html:not(.no-js) .nav[data-collapsed="true"] {
    display: none;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.5rem;
    border-top: 1px solid var(--line);
  }
  .nav__link {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__link:hover,
  .nav__link[aria-current="page"] {
    border-bottom-color: var(--line);
  }
  .header-actions {
    order: 2;
  }
  .header-actions .btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.85rem;
  }
}
@media (max-width: 480px) {
  .brand img {
    width: 84px;
  }
  .header-actions .btn--brochure {
    display: none; /* keep one clear CTA on small screens */
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(78vh, 640px);
  padding-block: clamp(3rem, 2rem + 6vw, 7rem);
  overflow: hidden;
  color: #fff;
  background: var(--bg-dark);
  isolation: isolate;
}
.hero__media,
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(8, 6, 4, 0.9) 0%,
    rgba(8, 6, 4, 0.62) 45%,
    rgba(8, 6, 4, 0.22) 100%
  );
}
.hero__inner {
  /* 44ch left Archivo breaking the h1 onto five lines with "AND" alone on
     one of them; 50ch is the widest measure that keeps it to four. */
  max-width: 50ch;
}
.hero h1 {
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--step-1);
  font-weight: 200;
}

/* page hero (inner pages) */
.page-hero {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 8vw, 7rem);
  color: #fff;
  background: var(--bg-dark);
  isolation: isolate;
  overflow: hidden;
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(10, 8, 6, 0.8) 0%,
    rgba(10, 8, 6, 0.45) 70%,
    rgba(10, 8, 6, 0.3) 100%
  );
}
.page-hero h1 {
  margin-bottom: 0.35em;
}
.page-hero p {
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--step-1);
  font-weight: 200;
  margin-bottom: 0;
}
.breadcrumb {
  margin-bottom: 1rem;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5em;
  color: rgba(255, 255, 255, 0.45);
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- generic layouts ---------- */
.grid {
  display: grid;
  gap: var(--gap);
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.split {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.split__media img {
  width: 100%;
  border-radius: var(--radius);
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card--flat {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--gold);
  border-radius: 0;
  padding-inline: 0;
}
.card h3 {
  margin-bottom: 0.4em;
}
.card p:last-of-type {
  margin-bottom: 0;
}
.card__media {
  margin: calc(-1 * clamp(1.25rem, 1rem + 1vw, 1.75rem));
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-alt);
}
.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.card > .link-more {
  margin-top: auto;
  padding-top: 1rem;
}

/* product spec lists */
.spec {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  padding-block: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-top: 1px solid var(--line);
}
.spec:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.spec__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.spec ul {
  list-style: none;
  padding: 0;
}
.spec li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.5em;
  color: var(--ink-soft);
}
.spec li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  rotate: 45deg;
}

/* stats */
.stats {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.stat__value {
  display: block;
  font-size: var(--step-3);
  font-weight: 200;
  color: var(--gold);
  line-height: 1;
}
.stat__label {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.section--dark .stat__label {
  color: rgba(255, 255, 255, 0.66);
}

/* client logos: a plain wrapping strip, not a JS carousel */
ul.logo-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.logo-wall li {
  margin: 0;
  flex: 0 0 auto;
}
.logo-wall img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

/* ---------- FAQ: <details>, works with JS disabled ---------- */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: var(--step-1);
  font-weight: 400;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  color: var(--gold-dark);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq summary:hover {
  color: var(--gold-dark);
}
.faq details > p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list > li {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.contact-list .label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-list .value {
  display: block;
  font-size: var(--step-1);
  font-weight: 200;
}
.contact-list a {
  text-decoration: none;
}
.contact-list a:hover {
  text-decoration: underline;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-card__head {
  padding: 1.25rem clamp(1.25rem, 1rem + 1vw, 1.75rem);
  color: #fff;
  background: var(--gold);
}
.form-card__head h2 {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 400;
}
.form-card__head p {
  margin: 0.2rem 0 0;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.9);
}
.form-card form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field label {
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem; /* >=16px so iOS does not zoom on focus */
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: #fff;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field-note {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-faint);
}
.form-status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  font-size: var(--step--1);
  border-radius: 6px;
  background: var(--gold-tint);
  border: 1px solid var(--gold);
}
.form-status--error {
  background: #fdecec;
  border-color: #c0392b;
}
.form-status[hidden] {
  display: none;
}

/* footer profile links, rendered only when real URLs exist */
.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social-list li {
  margin: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  display: grid;
  gap: var(--gap);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.cta-band h2 {
  margin-bottom: 0.25em;
}

/* ---------- footer ---------- */
.site-footer {
  padding-block: var(--section-y) 1.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}
.site-footer__top {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.site-footer h2 {
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 0.5em;
}
.site-footer li ul {
  margin: 0.4em 0 0.6em;
  padding-left: 0.9em;
  border-left: 1px solid var(--line);
}
.site-footer li ul a {
  color: var(--ink-faint);
}
.site-footer a {
  color: var(--ink);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}
.site-footer img {
  width: 96px;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  color: var(--ink-faint);
}
.site-footer__bottom p {
  margin: 0;
}

/* ---------- reveal on scroll -----------------------------------------------
   The live site uses Elementor entrance animations, which set
   visibility:hidden until JS runs. LiteSpeed delays that JS until the first
   user interaction, so 41 blocks on the homepage are invisible on arrival.
   Here the animation is CSS-only and opt-in, and content is visible by
   default: if anything fails, text still shows.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 22%;
    }
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---------- print ---------- */
@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .hero__media {
    display: none;
  }
  body {
    color: #000;
  }
}
