/* ==========================================================================
   HAZIKA INTERNATIONAL — DESIGN SYSTEM (v6 — final)
   --------------------------------------------------------------------------
   Pure black, white and grey — no accent hue. Contrast, scale and
   negative space carry the identity instead of colour: a heavy,
   confident serif for every display headline, a clean sans for
   everything functional, sharp (unrounded) geometry throughout, and the
   facet-cut corner — echoing the angled panels in the Hazika mark — as
   the one recurring structural signature against otherwise perfectly
   square edges.
   ========================================================================== */

:root {
  /* Core palette — true black / true white / grey only */
  --charcoal: #0a0a0a;
  --charcoal-soft: #161616;
  --graphite: #1f1f1f;
  --graphite-line: #2b2b2b;
  --stone: #ffffff;
  --stone-deep: #f1f1f1;
  --white: #ffffff;
  --silver: #aaaaaa;
  --silver-soft: #d8d8d8;
  --ink: #0a0a0a;
  --ink-soft: #58585a;

  /* "Accent" = maximum contrast, not a hue: near-black on light, white on dark */
  --accent: #0a0a0a;
  --accent-deep: #000000;
  --accent-light: #ffffff;

  /* Type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1280px;
  --container-narrow: 860px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius-s: 0px;
  --radius-m: 0px;
  --radius-l: 0px;
  --nav-h: 82px;

  /* Spacing scale — an 8px base unit, used for the site's most repeated
     measurements (card padding, row padding, component gaps) so the
     rhythm reads as deliberate rather than ad-hoc */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* Motion */
  --ease: cubic-bezier(.16,.8,.24,1);
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --dur-s: .3s;
  --dur-m: .6s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

html, body { width: 100%; overflow-x: hidden; }
body {
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.on-dark :focus-visible { outline-color: var(--white); }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
h4 {
  font-family: var(--font-body);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}
h1 { font-size: clamp(3.2rem, 7vw, 6.6rem); }
h2 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
h4 { font-size: 1rem; }
p { color: var(--ink-soft); }
.lede { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1.9vw, 1.6rem); color: var(--ink-soft); max-width: 46ch; line-height: 1.4; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-body); font-size: .76rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; display: inline-block; }
.on-dark .eyebrow { color: var(--silver); }

/* One huge display moment — used once or twice per page, never as decoration */
.display-mega {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; line-height: 0.92;
  font-size: clamp(3.6rem, 11vw, 10.5rem);
}

.section-head { max-width: 640px; margin-bottom: clamp(2.4rem, 5.5vw, 4rem); }
.section-head h2 { margin-top: .6rem; }
.section-head p { margin-top: 1rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; max-width: none; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }

.section { position: relative; padding: clamp(4.5rem, 11vw, 10rem) 0; }
.section.tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.on-dark { background: var(--charcoal); color: var(--silver-soft); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-fog { background: var(--stone-deep); }

.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Signature: facet-cut corner ---------- */
/* A single clipped corner, echoing the angled panel lines in the Hazika
   mark. Used sparingly on interactive elements (buttons, badges) rather
   than as a full-width section divider. */
.facet-cut { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.facet-cut-sm { clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); }

/* A quiet section transition: a single thin accent rule with a small
   triangular tick at its centre, standing in for a decorative divider. */
.section-mark { display: flex; align-items: center; justify-content: center; padding-block: 6px; }
.section-mark svg { width: 22px; height: 14px; color: var(--accent); }

/* ---------- Buttons — solid inverts against its own section, ghost fills solid on hover ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 1rem 1.9rem;
  font-family: var(--font-body); font-weight: 700; font-size: .88rem; letter-spacing: .02em;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  border: 1.5px solid transparent;
  transition: background var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out), transform .15s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; transition: transform var(--dur-s) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--primary:hover { background: transparent; color: var(--ink); }
.on-dark .btn--primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.on-dark .btn--primary:hover { background: transparent; color: var(--white); }

.btn--ghost-dark { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn--ghost-dark:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn--ghost-light { border-color: var(--ink); color: var(--ink); }
.btn--ghost-light:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.btn--block { width: 100%; }
.btn--sm { padding: .72rem 1.4rem; font-size: .82rem; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .92rem; color: var(--ink);
  padding-bottom: 2px; border-bottom: 1.5px solid currentColor; transition: gap var(--dur-s) var(--ease), opacity var(--dur-s) var(--ease);
}
.text-link svg { width: 15px; height: 15px; }
.text-link:hover { gap: .7rem; }
.on-dark .text-link { color: var(--white); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 22px 0;
  transition: padding var(--dur-s) var(--ease), background var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.navbar.is-scrolled {
  padding: 13px 0;
  background: rgba(10,10,10,.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(255,255,255,.08);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.6);
}
.navbar__logo { display: flex; align-items: center; gap: .7rem; }
.navbar__logo img { height: 32px; width: auto; }
.navbar__logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: 0; color: var(--white); }
.navbar__logo-text span { color: var(--white); }

.navbar__links { display: flex; align-items: center; gap: 2.2rem; }
.navbar__links a {
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; letter-spacing: 0; color: rgba(255,255,255,.72);
  transition: color var(--dur-s) var(--ease);
}
.navbar__links a:hover, .navbar__links a[aria-current="page"] { color: var(--white); }

.navbar__actions { display: flex; align-items: center; gap: 1rem; }
.navbar__toggle { display: none; color: var(--white); }

.navbar__mobile {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 199;
  background: var(--charcoal);
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem var(--gutter);
  transform: translateY(-100%); opacity: 0;
  transition: transform var(--dur-m) var(--ease), opacity var(--dur-m) var(--ease);
  pointer-events: none;
}
.navbar__mobile.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.navbar__mobile a:not(.btn) { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--white); padding: .5rem 0; border-bottom: 1px solid var(--graphite-line); }
.navbar__mobile .btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; margin-top: 2rem; }

@media (max-width: 940px) {
  .navbar__links { display: none; }
  .navbar__actions .btn { display: none; }
  .navbar__toggle { display: inline-flex; }
}

/* ---------- Page hero (every page: dark, consistent) ---------- */
.page-hero {
  background: var(--charcoal); color: var(--white);
  padding-top: clamp(7.5rem, 12vw, 9.5rem); padding-bottom: clamp(3.4rem, 7vw, 5rem);
  position: relative; overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0px, rgba(255,255,255,.045) 2px, transparent 2px, transparent 46px);
  mask-image: linear-gradient(200deg, black, transparent 65%);
  -webkit-mask-image: linear-gradient(200deg, black, transparent 65%);
}
.page-hero .breadcrumb { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .82rem; color: var(--silver); margin-bottom: 1.4rem; }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero h1 { color: var(--white); }
.page-hero p.lede { color: var(--silver-soft); margin-top: 1.1rem; }

/* ---------- Floating UI ---------- */
.float-whatsapp {
  position: fixed; right: 24px; bottom: 24px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4);
  transition: transform var(--dur-s) var(--ease);
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp svg { width: 28px; height: 28px; }

.back-to-top {
  position: fixed; right: 24px; bottom: 92px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%; background: var(--charcoal); color: #fff; border: 1px solid var(--graphite-line);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur-s) var(--ease), transform var(--dur-s) var(--ease), visibility var(--dur-s);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .float-whatsapp { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .float-whatsapp svg { width: 24px; height: 24px; }
  .back-to-top { right: 16px; bottom: 78px; width: 42px; height: 42px; }
}

/* ---------- Page loader ---------- */
.loader {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 999; background: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s var(--ease), visibility .5s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mark { width: 46px; height: 46px; animation: pulse-mark 1.1s ease-in-out infinite; }
@keyframes pulse-mark { 0%,100% { opacity: .35; transform: scale(.92); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px) scale(.99); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0) scale(1); }
[data-reveal-group] [data-reveal]:nth-child(1) { transition-delay: 0s; }
[data-reveal-group] [data-reveal]:nth-child(2) { transition-delay: .08s; }
[data-reveal-group] [data-reveal]:nth-child(3) { transition-delay: .16s; }
[data-reveal-group] [data-reveal]:nth-child(4) { transition-delay: .24s; }
[data-reveal-group] [data-reveal]:nth-child(5) { transition-delay: .32s; }
[data-reveal-group] [data-reveal]:nth-child(6) { transition-delay: .4s; }
[data-reveal-group] [data-reveal]:nth-child(7) { transition-delay: .48s; }
[data-reveal-group] [data-reveal]:nth-child(8) { transition-delay: .56s; }
[data-reveal-group] [data-reveal]:nth-child(9) { transition-delay: .64s; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.tag-pill {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  padding: .4rem 1rem .4rem .8rem; border: 1px solid var(--graphite-line); color: var(--silver-soft);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.on-fog .tag-pill, .canvas .tag-pill { border-color: var(--stone-deep); color: var(--ink-soft); }
.divider { height: 1px; background: var(--stone-deep); border: 0; margin: 0; }
.divider.on-dark-line { background: var(--graphite-line); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.empty-state { text-align: center; padding-block: 90px; }

/* ---------- Image ratio utilities ---------- */
.ratio-cinema { height: 300px; }
@supports (aspect-ratio: 16/9) { .ratio-cinema { aspect-ratio: 16/9; height: auto; } }
.ratio-portrait { height: 360px; }
@supports (aspect-ratio: 4/5) { .ratio-portrait { aspect-ratio: 4/5; height: auto; } }
.ratio-tall { height: 320px; }
@supports (aspect-ratio: 3/4) { .ratio-tall { aspect-ratio: 3/4; height: auto; } }
.ratio-square { height: 260px; }
@supports (aspect-ratio: 1/1) { .ratio-square { aspect-ratio: 1/1; height: auto; } }
@supports (aspect-ratio: 1/1) {
  .frame.ratio-cinema, .frame.ratio-portrait, .frame.ratio-tall, .frame.ratio-square { height: auto; }
}
