/* ============================================
   HOOLA Agency — shared styles
   Sizes are expressed in --u (1vw, capped) so the layout
   scales like the 1920px XD artboard on desktop.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --u: min(1vw, 22px);
  --black: #000;
  --white: #fff;
  --blue: #157ff6;
  --blue-btn: #37a2ff;
  --gray-box: #dedede;
  --gray-mid: #8a8a8a;
  --gray-line: #d6d6d6;
  --font-display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Poppins', sans-serif;
  --container: 1320px;
  --gutter: clamp(24px, 5vw, 76px);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* The header is fixed, so an anchor would otherwise land with the
     target's top hidden behind it. Keep this in step with the header
     height below. */
  scroll-padding-top: max(96px, calc(var(--u) * 5.6));
}
@media (max-width: 900px) {
  html { scroll-padding-top: 78px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

/* Inner pages (work / case studies) container */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.display { font-family: var(--font-display); font-weight: 400; line-height: .9; margin: 0; }
.accent { color: var(--blue); }

/* Eyebrow used on inner pages */
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray-mid); margin-bottom: 18px;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .45; flex: none; }
.eyebrow.light { color: rgba(255,255,255,.65); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 34px; height: 46px;
  font-family: var(--font-body); font-weight: 400; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--blue-btn); color: var(--white); }
.btn-blue:hover { background: #1b8bf0; }
.btn-gray { background: #808080; color: var(--white); }
.btn-gray:hover { background: #6f6f6f; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: calc(var(--u) * 2.1) 0;
  transition: background .35s ease, padding .35s ease;
}
.site-header .wrap {
  max-width: none; margin: 0;
  padding: 0 calc(var(--u) * 4.5) 0 calc(var(--u) * 3.9);
  display: flex; align-items: center; justify-content: space-between;
}
.site-header.solid {
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(6px);
  padding: calc(var(--u) * 1.1) 0;
}
.logo { display: block; width: max(118px, calc(var(--u) * 11.65)); }
.logo img { width: 100%; height: auto; }
.nav-links { display: flex; gap: calc(var(--u) * 5.2); }
.nav-links a {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: max(11.5px, calc(var(--u) * .81));
  font-weight: 300; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

@media (max-width: 900px) {
  .site-header { padding: 18px 0; }
  .site-header .wrap { padding: 0 20px; }
  .logo { width: 112px; }
  .nav-links {
    position: fixed; inset: 0 0 0 28%;
    background: #000;
    flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 40px; gap: 26px;
    transform: translateX(100%); transition: transform .35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 16px; color: #fff; }
  .nav-toggle { display: block; z-index: 110; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--white); color: #8a8a8a; padding-bottom: calc(var(--u) * 3.3); }
.footer-cta {
  margin: 0 calc(var(--u) * 3.97);
  background: #000; color: rgba(255,255,255,.88);
  height: max(calc(var(--u) * 31.6), 300px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: calc(var(--u) * 1.6);
  text-align: center;
}
.footer-logo { display: block; width: max(72px, calc(var(--u) * 5.2)); height: auto; }
.footer-address { font-size: max(11px, calc(var(--u) * .62)); line-height: 1.4; color: rgba(255,255,255,.88); }
.footer-address a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: calc(var(--u) * 1.7) calc(var(--u) * 3.97) 0;
  font-size: max(10px, calc(var(--u) * .52)); color: #8a8a8a;
}
.footer-bottom ul { text-align: right; line-height: 1.5; }
.footer-bottom a:hover { color: #000; }

@media (max-width: 900px) {
  .footer-cta { margin: 0 16px; height: 300px; gap: 18px; }
  .footer-logo { width: 72px; }
  .footer-bottom { padding: 18px 16px 0; font-size: 11px; }
}

/* ---- Scroll reveal (see assets/js/reveal.js) ---- */
@keyframes rv-up   { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rv-zoom { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes rv-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.js-reveal .reveal:not(.in) { opacity: 0; }
.js-reveal .reveal-line:not(.in) { opacity: 1; transform: scaleX(0); }
.js-reveal .reveal-zoom:not(.in) { transform: scale(1.04); }
.js-reveal .reveal.in {
  animation: rv-up .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms) backwards;
}
.js-reveal .reveal-fade.in { animation-name: rv-fade; animation-duration: 1s; }
.js-reveal .reveal-zoom.in { animation-name: rv-zoom; animation-duration: 1.3s; }
.js-reveal .reveal-line.in { animation-name: rv-line; animation-duration: 1.1s; transform-origin: left center; }
.js-reveal .reveal-logo.in { animation-duration: .7s; }
.reveal-soft.js-reveal .reveal.in,
.reveal-soft.js-reveal .reveal-zoom.in,
.reveal-soft.js-reveal .reveal-line.in { animation-name: rv-fade; animation-duration: .8s; }
.reveal-soft.js-reveal .reveal-line:not(.in), .reveal-soft.js-reveal .reveal-zoom:not(.in) { transform: none; }
.reveal-soft.js-reveal .reveal-line:not(.in) { opacity: 0; }
@media print { .js-reveal .reveal { opacity: 1 !important; transform: none !important; animation: none !important; } }

/* The off-canvas mobile menu is parked to the right of the viewport, and
   visibility: hidden keeps it out of the tab order but not out of the
   layout — so it still stretched the document sideways. Clip that.
   `clip` rather than `hidden`: hidden would turn the body into a scroll
   container, which breaks the fixed header and scroll-padding-top.
   It goes on html rather than body: the panel is fixed, so only a clip
   at the viewport level contains it. Fixed-position descendants are
   measured against the viewport, so the header, progress bar and dialog
   are unaffected. */
html { overflow-x: clip; }
