/* ─── The Azar Team — Root Variables & Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@200;300;400;500&display=swap');

:root {
  /* Brand colours — dark theme is the site default */
  --onyx:      #0c0c0e;   /* near-black */
  --char:      #151518;   /* raised dark surface */
  --brass:     #b99a5f;   /* champagne brass */
  --brass-pale:#d6bd8c;
  --ivory:     #f4f1ea;
  --porcelain: var(--onyx);   /* was #faf9f5 — base canvas now onyx */
  --ink:       var(--ivory);  /* was #1a1a1c — body copy now ivory */
  --ink-soft:  rgba(244, 241, 234, .72);  /* was #55555a */
  --ink-muted: rgba(244, 241, 234, .5);   /* was #8f8f93 */
  --hairline:  rgba(244, 241, 234, .14);  /* was rgba(26,26,28,.12) */
  --hairline-l:rgba(244,241,234,.16);

  /* Typography */
  --serif:  'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans:   'Jost', system-ui, sans-serif;

  /* Spacing */
  --wrap:   1240px;
  --gap:    clamp(28px, 5vw, 80px);
  --sec-py: clamp(50px, 6vw, 100px);

  /* Transitions */
  --ease:     cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,0,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--porcelain);
}

body {
  font-family: var(--sans);
  background: var(--porcelain);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
  /* Reset any WordPress global-styles injected layout constraints */
  --wp--style--global--content-size: 100% !important;
  --wp--style--global--wide-size: 100% !important;
}

/* WordPress admin bar offset */
.admin-bar .azar-hero  { padding-top: 32px; }
.admin-bar #azar-hdr   { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .azar-hero { padding-top: 46px; }
  .admin-bar #azar-hdr  { top: 46px; }
}

/* Ensure nothing WP injects constrains full-width sections */
#azar-main, .wp-site-blocks, body > div { max-width: none !important; padding: 0 !important; margin: 0 !important; }

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .005em;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--brass);
}


/* Shared wrappers */
.azar-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(22px, 5vw, 64px);
}

/* Eyebrow label */
.azar-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
}

/* ─── Button system ─── */
.azar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .20em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), letter-spacing .35s var(--ease);
  white-space: nowrap;
}
.azar-btn:hover { letter-spacing: .24em; }

.azar-btn-brass {
  background: var(--brass);
  color: var(--onyx);
  border: 1px solid var(--brass);
}
.azar-btn-brass:hover { background: var(--brass-pale); border-color: var(--brass-pale); }

.azar-btn-ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid #fff;
}
.azar-btn-ghost:hover { border-color: var(--ivory); background: rgba(244,241,234,.07); }

.azar-btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.azar-btn-outline-dark:hover { border-color: var(--brass); background: var(--brass); color: var(--onyx); }

.azar-btn-hairline {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  padding: 11px 26px;
  font-size: 12px;
}

.azar-btn-block { width: 100%; }

/* ─── Section heading block ─── */
.azar-sec-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto var(--gap);
}
.azar-sec-head h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  margin-bottom: 18px;
}
.azar-sec-head p { color: var(--brass); font-size: 12px; font-weight: 400; }

/* Left-aligned section heading */
.azar-sec-head-left {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.azar-sec-head-left h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  margin-bottom: 14px;
}
.azar-sec-head-left .azar-sec-sub,
.azar-sec-sub { color: var(--ink-soft); font-size: 17px; font-weight: 400; max-width: 52ch; }

/* Arrow link */
.azar-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: inherit;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 6px;
  transition: gap .3s var(--ease), color .3s;
}
.azar-link-arrow span { color: var(--brass); transition: transform .3s var(--ease); }
.azar-link-arrow:hover { color: var(--brass); }
.azar-link-arrow:hover span { transform: translateX(5px); }
.azar-link-arrow-light { color: var(--ivory); }

/* ─── SVG Draw animations ─── */
[class*="azar-bp-draw"] {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: azar-draw 1.6s var(--ease-out) both;
  animation-delay: var(--bp-d, 0s);
}
[class*="azar-emblem-el"] {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: azar-draw 1.3s var(--ease-out) both;
  animation-delay: var(--ed, 0s);
}
.azar-emblem-fade, .azar-bp-fade {
  opacity: 0;
  animation: azar-fade-in .5s ease both;
  animation-delay: var(--ed, var(--bp-d, 0s));
}

/* Scroll-triggered draw — hidden states only when JS is running (html.azar-anim) */
html.azar-anim .azar-draw-on-scroll .azar-sdraw {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.8s var(--ease-out);
}
html.azar-anim .azar-draw-on-scroll.azar-drawing .azar-sdraw { stroke-dashoffset: 0; }
html.azar-anim .azar-draw-on-scroll .azar-sfade {
  opacity: 0;
  transition: opacity .6s ease 1.5s;
}
html.azar-anim .azar-draw-on-scroll.azar-drawing .azar-sfade { opacity: 1; }

/* Reveal on scroll — hidden states only when JS is running */
html.azar-anim .azar-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
html.azar-anim .azar-reveal.azar-visible { opacity: 1; transform: none; }

/* Print: everything visible, no motion */
@media print {
  .azar-reveal, .azar-draw-on-scroll .azar-sfade { opacity: 1 !important; transform: none !important; }
  .azar-draw-on-scroll .azar-sdraw { stroke-dashoffset: 0 !important; }
}

@keyframes azar-draw    { to { stroke-dashoffset: 0; } }
@keyframes azar-fade-in { to { opacity: 1; } }

/* ─── Breadcrumb ─── */
.azar-breadcrumb {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244,241,234,.55);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.azar-breadcrumb a { color: rgba(244,241,234,.7); }
.azar-breadcrumb a:hover { color: var(--ivory); }
.azar-breadcrumb span { opacity: .5; }
