/* ==========================================================================
   Puning Jiadi International Trading FZCO: main stylesheet
   Logical properties (inline/block) are used throughout so an Arabic (RTL)
   version can be added later by switching dir="rtl".
   ========================================================================== */

/* ---------- Self-hosted fonts (latin subset, variable weight) ---------- */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 300 400; font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}
/* Metric-matched fallbacks keep text the same size while web fonts load (less layout shift) */
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); size-adjust: 104%; ascent-override: 96%; descent-override: 25%; }
@font-face { font-family: "Manrope Fallback"; src: local("Arial"); size-adjust: 103%; ascent-override: 102%; descent-override: 29%; }

:root {
  /* Palette */
  --white: #FFFFFF;
  --emerald: #008B5A;        /* brand; large text and graphics */
  --emerald-ink: #007F52;    /* AA-compliant buttons, links, small text */
  --emerald-deep: #0B3B2C;
  --emerald-mist: #E8F3EE;
  --gold: #D4AF62;           /* decorative only on light backgrounds */
  --gold-ink: #8A6A26;
  --charcoal: #252525;
  --muted: #5B5F58;
  --grey: #F4F5F3;
  --line: #E4E6E1;

  /* Type */
  --font-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --font-body: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 11vw, 148px);
  --header-h: 76px;
  --radius: 4px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur: 700ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-inline-size: 100%; }
img { block-size: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; }
:target { scroll-margin-block-start: calc(var(--header-h) + 16px); }

:focus-visible {
  outline: 2px solid var(--emerald-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important; inline-size: 1px; block-size: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; inset-block-start: -60px; z-index: 100;
  padding: 10px 16px; background: var(--charcoal); color: var(--white); text-decoration: none;
  transition: inset-block-start .2s;
}
.skip-link:focus { inset-block-start: 16px; }

.container {
  inline-size: 100%;
  max-inline-size: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section-grey { background: var(--grey); }
.muted { color: var(--muted); font-size: .875em; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--emerald-ink);
  margin-block-end: 20px;
}
.eyebrow::before { content: ""; inline-size: 28px; block-size: 1px; background: var(--gold); }
.eyebrow-light { color: var(--white); }

.display-2, .display-3, .hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.display-2 { font-size: clamp(2.25rem, 4.6vw, 4rem); }
.display-3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.display-2 em, .hero-title em, .cta-band em { font-style: italic; color: var(--emerald); }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--muted); max-inline-size: 36em; }

.gold-rule { inline-size: 72px; block-size: 1px; background: var(--gold); margin-block: 32px; transform-origin: left center; }
[dir="rtl"] .gold-rule { transform-origin: right center; }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--emerald-ink); --btn-fg: var(--white); --btn-bd: var(--emerald-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-block-size: 52px; padding: 14px 28px;
  font-size: .9375rem; font-weight: 600; letter-spacing: .01em; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out), transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover, var(--emerald-deep));
  transform: scaleX(0); transform-origin: right center;
  transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left center; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgb(11 59 44 / .45); }
.btn:active { transform: translateY(0); }
.btn-sm { min-block-size: 44px; padding: 10px 20px; font-size: .875rem; }
.btn-primary { --btn-hover: var(--emerald-deep); }
.btn-glass {
  --btn-bg: rgb(255 255 255 / .08); --btn-fg: var(--white); --btn-bd: rgb(255 255 255 / .55); --btn-hover: var(--white);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-glass:hover { --btn-fg: var(--charcoal); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--charcoal); --btn-bd: var(--line); --btn-hover: var(--grey); }
.btn-ghost:hover { box-shadow: none; }
.btn-light { --btn-bg: var(--white); --btn-fg: var(--emerald-deep); --btn-bd: var(--white); --btn-hover: var(--gold); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgb(255 255 255 / .6); --btn-hover: rgb(255 255 255 / .12); }

.icon-arrow { inline-size: 18px; block-size: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); flex: none; }
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }
.btn:hover .icon-arrow, .link-arrow:hover .icon-arrow, .cat-link:hover .icon-arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; margin-block-start: 32px;
  font-weight: 600; color: var(--emerald-ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px;
  padding-block-end: 4px; transition: background-size .5s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1px; }

/* ---------- Preview helpers (removed for production) ---------- */
.preview-bar { display: none; }
.pending-dot, .pending-tag { display: none; }
.is-preview .preview-bar {
  display: block; position: relative; z-index: 60;
  padding: 8px var(--gutter); font-size: .8125rem; text-align: center;
  background: #FFF4CC; color: #4A3B00;
}
.is-preview .pending-dot { display: inline; color: #C99A00; font-size: .35em; vertical-align: super; margin-inline-start: .2em; }
.is-preview .preview-bar .pending-dot { font-size: 1em; vertical-align: baseline; }
.is-preview .pending-tag {
  display: inline-block; padding: 3px 8px; font-size: .6875rem; font-weight: 700; letter-spacing: .04em;
  background: #FFF4CC; color: #4A3B00; border-radius: 2px;
}
.pending-inline { margin-inline-start: 8px; vertical-align: middle; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  block-size: var(--header-h);
  margin-block-end: calc(var(--header-h) * -1);
  color: var(--white);
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.site-header::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .4s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the position:fixed mobile menu inside the header box. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgb(255 255 255 / .92);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  transition: opacity .4s var(--ease-out);
}
.site-header.is-solid, .menu-open .site-header { color: var(--charcoal); }
.site-header.is-solid::before, .menu-open .site-header::before { opacity: 1; }
.site-header.is-solid::after { opacity: .5; }
.header-inner { display: flex; align-items: center; gap: 32px; block-size: 100%; }

.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.1; margin-inline-end: auto; }
.wordmark-name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 400; letter-spacing: -.01em; }
.wordmark-sub { font-size: .625rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .75; margin-block-start: 4px; }
.wordmark-light { color: var(--white); }

.primary-nav ul { display: flex; gap: 36px; list-style: none; padding: 0; margin: 0; }
.primary-nav a {
  position: relative; display: inline-block; padding-block: 8px;
  font-size: .9375rem; font-weight: 500; text-decoration: none;
}
.primary-nav a::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 2px; block-size: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right center;
  transition: transform .45s var(--ease-out);
}
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left center; }

.menu-toggle { display: none; inline-size: 48px; block-size: 48px; margin-inline-end: -8px; background: none; border: 0; padding: 0; }
.menu-toggle-lines { position: relative; display: block; inline-size: 26px; block-size: 10px; margin: auto; }
.menu-toggle-lines span {
  position: absolute; inset-inline: 0; block-size: 1.5px; background: currentColor;
  transition: transform .45s var(--ease-out), inset-block-start .45s var(--ease-out);
}
.menu-toggle-lines span:first-child { inset-block-start: 0; }
.menu-toggle-lines span:last-child { inset-block-start: 8.5px; inline-size: 70%; inset-inline-start: auto; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:first-child { inset-block-start: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:last-child { inset-block-start: 4.25px; inline-size: 100%; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px var(--gutter) 40px; background: var(--white); color: var(--charcoal);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { border-block-end: 1px solid var(--line); }
.mobile-menu nav a {
  display: block; padding-block: 18px;
  font-family: var(--font-display); font-size: 2rem; font-weight: 300; text-decoration: none;
}
.mobile-menu nav a[aria-current="page"] { color: var(--emerald-ink); }
.mobile-menu-contact { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-block-start: 32px; font-weight: 600; }
.mobile-menu-contact a { color: var(--emerald-ink); text-decoration: none; }

@media (max-width: 899px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: flex-start;
  min-block-size: clamp(600px, 88svh, 860px);
  color: var(--white); background: var(--charcoal); overflow: hidden;
  isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease-in-out); }
.hero-slide.is-active { opacity: 1; }
/* <picture> wrappers must fill their frame so object-fit:cover works */
.hero-slide picture, .showroom-media picture { block-size: 100%; }
.cat-media picture { position: absolute; inset: 0; }
.hero-slide img {
  inline-size: 100%; block-size: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* black shade over every slide so white text stays readable */
  background:
    linear-gradient(90deg, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / .2) 70%),
    linear-gradient(to top, rgb(0 0 0 / .55) 0%, transparent 45%),
    rgb(0 0 0 / .42);
}
[dir="rtl"] .hero-scrim {
  background:
    linear-gradient(-90deg, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / .2) 70%),
    linear-gradient(to top, rgb(0 0 0 / .55) 0%, transparent 45%),
    rgb(0 0 0 / .42);
}
.hero-content { padding-block: calc(var(--header-h) + clamp(32px, 6vh, 72px)) 40px; }
.hero-title, .hero-lead, .hero .eyebrow { text-shadow: 0 2px 18px rgb(0 0 0 / .35); }
.hero-title { font-size: clamp(2.5rem, 5.4vw, 5rem); max-inline-size: 11em; margin-block-end: 24px; }
.hero-title .line { display: block; overflow: hidden; padding-block-end: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { color: #7FD3B0; }
.hero-lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); max-inline-size: 34em; color: rgb(255 255 255 / .86); margin-block-end: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-controls {
  margin-block-start: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 28px 36px; border-block-start: 1px solid rgb(255 255 255 / .16);
}
.hero-controls[hidden] { display: none; }
.hero-dots { display: flex; gap: 10px; }
.hero-dot { inline-size: 64px; block-size: 32px; padding: 0; background: none; border: 0; display: grid; align-items: center; }
.hero-dot span { position: relative; display: block; block-size: 2px; background: rgb(255 255 255 / .3); overflow: hidden; }
.hero-dot span::after {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  transform: scaleX(0); transform-origin: left center;
}
[dir="rtl"] .hero-dot span::after { transform-origin: right center; }
.hero-dot.is-active span::after { animation: dot-progress var(--slide-ms, 6500ms) linear forwards; }
.hero.is-paused .hero-dot.is-active span::after, .hero.no-auto .hero-dot.is-active span::after { animation: none; transform: scaleX(1); }
@keyframes dot-progress { to { transform: scaleX(1); } }

.hero-buttons { display: flex; gap: 8px; }
@media (max-width: 599px) {
  .hero-dot { inline-size: 36px; }
  .hero-dots { gap: 6px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero .eyebrow { letter-spacing: .1em; }
  .hero .eyebrow::before { display: none; }
  .hero-slide img { object-position: var(--pos-sm, var(--pos, 50% 50%)); }
  .hero-scrim { background: linear-gradient(to top, rgb(0 0 0 / .6) 0%, transparent 50%), rgb(0 0 0 / .5); }
}
.hero-btn {
  inline-size: 44px; block-size: 44px; display: grid; place-items: center;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .3); border-radius: 50%;
  transition: background-color .3s, border-color .3s, transform .3s var(--ease-out);
}
.hero-btn:hover { background: rgb(255 255 255 / .16); border-color: var(--gold); }
.hero-btn svg { inline-size: 18px; block-size: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-btn .i-play { fill: currentColor; stroke: none; display: none; }
.hero.is-paused .hero-btn .i-play { display: block; }
.hero.is-paused .hero-btn .i-pause { display: none; }
[dir="rtl"] [data-prev] svg, [dir="rtl"] [data-next] svg { transform: scaleX(-1); }

/* ---------- Intro ---------- */
.intro-grid { display: grid; gap: clamp(48px, 7vw, 112px); align-items: center; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1.05fr .95fr; } }
.intro-media { position: relative; }
.intro-media .parallax { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); }
.intro-media picture { position: absolute; inset: -8% 0; }
.intro-media img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 60% 50%; }
.media-caption {
  position: absolute; inset-inline-start: -1px; inset-block-end: -1px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px 24px; background: var(--white); font-size: .875rem; font-weight: 600;
  border-start-end-radius: var(--radius);
}
.media-caption span { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
@media (min-width: 900px) { .intro-media { margin-block-start: 80px; } }

/* ---------- Categories ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-block-end: clamp(40px, 6vw, 72px); }
.section-head-note { max-inline-size: 26em; color: var(--muted); }
.section-head-center { flex-direction: column; align-items: center; text-align: center; }

.cat-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(12, 1fr); }
  .cat-a { grid-column: 1 / span 7; }
  .cat-b { grid-column: 8 / span 5; }
  .cat-c { grid-column: 1 / span 5; }
  .cat-d { grid-column: 6 / span 7; }
}
.cat-link {
  display: flex; flex-direction: column; block-size: 100%;
  text-decoration: none; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out);
}
.cat-link:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgb(11 59 44 / .35); }
.cat-media { position: relative; flex-grow: 1; aspect-ratio: 16 / 10; overflow: hidden; background: var(--emerald-mist); }
.cat-media img {
  inline-size: 100%; block-size: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  transition: transform 1.1s var(--ease-out);
}
.cat-link:hover .cat-media img { transform: scale(1.05); }
.cat-body { position: relative; display: grid; gap: 8px; padding: clamp(24px, 3vw, 36px); align-content: start; }
.cat-body::before {
  content: ""; position: absolute; inset-inline-start: clamp(24px, 3vw, 36px); inset-block-start: 0;
  inline-size: 48px; block-size: 2px; background: var(--gold);
  transform: scaleX(.4); transform-origin: left center; transition: transform .6s var(--ease-out);
}
[dir="rtl"] .cat-body::before { transform-origin: right center; }
.cat-link:hover .cat-body::before { transform: scaleX(1); }
.cat-num { font-size: .75rem; font-weight: 700; letter-spacing: .16em; color: var(--gold-ink); }
.cat-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.01em; line-height: 1.15; }
.cat-text { color: var(--muted); max-inline-size: 30em; }
.cat-cta { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 12px; font-weight: 600; font-size: .9375rem; color: var(--emerald-ink); }

/* ---------- Showroom ---------- */
.showroom { position: relative; min-block-size: clamp(560px, 80vh, 820px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.showroom-media { position: absolute; inset: 0; z-index: -1; }
.showroom-media .parallax { position: absolute; inset: -12% 0; }
.showroom-media img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 30%; }
.showroom-media img { filter: grayscale(.7) contrast(1.05); }
.showroom-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .6), rgb(0 0 0 / .35)); }
.showroom-inner { padding-block: 64px; }
.visit-card {
  max-inline-size: 460px; padding: clamp(28px, 4vw, 48px);
  background: rgb(255 255 255 / .96); border-radius: var(--radius);
  border-block-start: 2px solid var(--gold);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .5);
}
.visit-card .display-3 { margin-block-end: 20px; }
.visit-address { font-size: 1.0625rem; line-height: 1.7; margin-block-end: 28px; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--white); padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); transition: background-color .5s var(--ease-out); }
.step:hover { background: var(--emerald-mist); }
.step-num { display: block; font-family: var(--font-display); font-size: 3rem; font-weight: 300; line-height: 1; color: var(--emerald); margin-block-end: 28px; }
.step h3 { font-size: 1.1875rem; font-weight: 700; margin-block-end: 8px; }
.step p { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--emerald-ink); color: var(--white); padding-block: clamp(64px, 9vw, 112px); overflow: hidden; isolation: isolate; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(60% 120% at 100% 0%, rgb(255 255 255 / .14), transparent 60%),
    linear-gradient(115deg, transparent 55%, rgb(212 175 98 / .18) 55.1%, transparent 75%);
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band .display-2 { max-inline-size: 14em; }
.cta-band em { color: #F1DDAF; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgb(255 255 255 / .78); padding-block: clamp(64px, 8vw, 96px) 32px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 40px; padding-block-end: 48px; border-block-end: 1px solid rgb(255 255 255 / .12); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr .8fr; } }
.footer-note { margin-block-start: 16px; max-inline-size: 24em; }
.footer-head { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-block-end: 16px; }
.footer-list { display: grid; gap: 10px; }
.footer-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.site-footer a { text-decoration: none; color: var(--white); overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--gold); }
.site-footer .muted { color: rgb(255 255 255 / .55); }
.footer-base { padding-block: 24px 72px; font-size: .8125rem; color: rgb(255 255 255 / .55); }
@media (min-width: 900px) { .footer-base { padding-block-end: 0; } }

/* ---------- WhatsApp floating button ---------- */
.wa-fab {
  position: fixed; inset-inline-end: 16px; inset-block-end: 16px; z-index: 40;
  inline-size: 56px; block-size: 56px; display: grid; place-items: center;
  background: var(--emerald-ink); color: var(--white); border-radius: 50%;
  box-shadow: 0 12px 28px -10px rgb(11 59 44 / .6);
  transition: transform .4s var(--ease-out), background-color .3s, opacity .4s, visibility .4s;
}
/* stays out of the way of the hero controls until the visitor scrolls */
.js .wa-fab:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(12px); }
.wa-fab:hover { transform: translateY(-3px) scale(1.04); background: var(--emerald-deep); }
.wa-fab svg { inline-size: 28px; block-size: 28px; fill: currentColor; }
@media (min-width: 900px) { .wa-fab { inset-inline-end: 28px; inset-block-end: 28px; } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; display: flex; align-items: flex-end;
  min-block-size: clamp(380px, 56svh, 560px);
  color: var(--white); background: var(--charcoal); overflow: hidden; isolation: isolate;
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media picture { block-size: 100%; }
.page-hero-media img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(0 0 0 / .6) 0%, rgb(0 0 0 / .25) 75%), linear-gradient(to top, rgb(0 0 0 / .5), transparent 55%), rgb(0 0 0 / .3);
}
[dir="rtl"] .page-hero::after {
  background: linear-gradient(-90deg, rgb(0 0 0 / .6) 0%, rgb(0 0 0 / .25) 75%), linear-gradient(to top, rgb(0 0 0 / .5), transparent 55%), rgb(0 0 0 / .3);
}
.page-hero-plain { min-block-size: clamp(300px, 40svh, 420px); background: var(--emerald-deep); }
.page-hero-plain::after { background: radial-gradient(70% 120% at 100% 0%, rgb(255 255 255 / .1), transparent 60%), linear-gradient(115deg, transparent 60%, rgb(212 175 98 / .14) 60.1%, transparent 80%); }
.page-hero-inner { padding-block: calc(var(--header-h) + 48px) clamp(40px, 6vw, 72px); }
.page-title {
  font-family: var(--font-display); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(2.5rem, 5.6vw, 4.75rem); line-height: 1.04; letter-spacing: -.02em;
  max-inline-size: 14em; text-shadow: 0 2px 18px rgb(0 0 0 / .3);
}
.page-title em { font-style: italic; color: #7FD3B0; }
.page-lead { margin-block-start: 20px; max-inline-size: 38em; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: rgb(255 255 255 / .86); }

.breadcrumb { margin-block-end: 22px; font-size: .8125rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; padding: 0; margin: 0; color: rgb(255 255 255 / .7); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 10px; color: var(--gold); }
.breadcrumb a { color: var(--white); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Generic content blocks ---------- */
.prose { max-inline-size: 40em; }
.prose p + p { margin-block-start: 1.1em; }
.prose p { color: var(--muted); }
.prose .lead { color: var(--charcoal); }

.split { display: grid; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split > * { min-inline-size: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split-wide { grid-template-columns: 1.15fr .85fr; } }

.fact-list { display: grid; border-block-start: 1px solid var(--line); margin: 0; }
.fact-list > div { display: grid; gap: 4px 24px; padding-block: 20px; border-block-end: 1px solid var(--line); }
@media (min-width: 600px) { .fact-list > div { grid-template-columns: 11em 1fr; } }
.fact-list dt { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); padding-block-start: 3px; }
.fact-list dd { margin: 0; font-weight: 500; }
.fact-list a { color: var(--emerald-ink); text-decoration: none; }
.fact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.feature-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature {
  position: relative; padding: clamp(24px, 3vw, 32px); background: var(--white);
  border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -30px rgb(11 59 44 / .35); }
.feature-icon {
  display: grid; place-items: center; inline-size: 48px; block-size: 48px; margin-block-end: 24px;
  border-radius: 50%; background: var(--emerald-mist); color: var(--emerald-ink);
  transition: background-color .4s, color .4s, transform .5s var(--ease-out);
}
.feature:hover .feature-icon { background: var(--emerald-ink); color: var(--white); transform: rotate(-8deg); }
.feature-icon svg { inline-size: 22px; block-size: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.125rem; font-weight: 700; margin-block-end: 8px; }
.feature p { color: var(--muted); font-size: .9688rem; }

/* ---------- Product listing (alternating rows) ---------- */
.product-rows { display: grid; gap: clamp(64px, 9vw, 120px); }
.product-row { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .product-row { grid-template-columns: 1.1fr .9fr; }
  .product-row:nth-child(even) .product-row-media { order: 2; }
}
.product-row-media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.product-row-media picture { position: absolute; inset: 0; }
.product-row-media img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.2s var(--ease-out); }
.product-row-media:hover img { transform: scale(1.05); }
.product-row-num { display: block; font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); font-weight: 300; line-height: 1; color: var(--emerald); margin-block-end: 16px; }
.product-row h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.875rem, 3.2vw, 2.75rem); letter-spacing: -.015em; line-height: 1.1; margin-block-end: 16px; }
.product-row p { color: var(--muted); max-inline-size: 30em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }

/* ---------- Related categories ---------- */
.related-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; color: var(--white); text-decoration: none; isolation: isolate; }
.related-card picture { position: absolute; inset: 0; z-index: -2; }
.related-card img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.related-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / .75), rgb(0 0 0 / .1) 65%); }
.related-card:hover img { transform: scale(1.06); }
.related-card span { position: absolute; inset-inline: 24px; inset-block-end: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-display); font-size: 1.375rem; }

/* ---------- Notice ---------- */
.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  background: var(--emerald-mist); border-inline-start: 3px solid var(--emerald-ink); border-radius: var(--radius);
  font-size: .9375rem; color: var(--charcoal);
}
.notice svg { flex: none; inline-size: 20px; block-size: 20px; margin-block-start: 2px; fill: none; stroke: var(--emerald-ink); stroke-width: 1.8; stroke-linecap: round; }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card {
  display: flex; flex-direction: column; gap: 6px; padding: 28px;
  background: var(--white); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line);
  text-decoration: none; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--emerald-ink), 0 24px 48px -30px rgb(11 59 44 / .4); }
.contact-card .feature-icon { margin-block-end: 18px; }
a.contact-card:hover .feature-icon { background: var(--emerald-ink); color: var(--white); }
.contact-label { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.contact-value { font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; }
.contact-hint { color: var(--muted); font-size: .875rem; }

/* ---------- Forms ---------- */
.form-card { padding: clamp(24px, 4vw, 48px); background: var(--white); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -60px rgb(11 59 44 / .5); border-block-start: 2px solid var(--gold); }
.form-card h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.15; margin-block-end: 8px; }
.form-intro { color: var(--muted); margin-block-end: 28px; }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: .875rem; font-weight: 600; }
.field .req { color: var(--emerald-ink); margin-inline-start: 2px; }
.field .opt { color: var(--muted); font-weight: 400; font-size: .8125rem; }
.field input, .field select, .field textarea {
  inline-size: 100%; min-block-size: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--charcoal);
  background: var(--white); border: 1px solid #C9CDC6; border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { min-block-size: 140px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23252525' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
[dir="rtl"] .field select { background-position: left 14px center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9FA59B; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald-ink); box-shadow: 0 0 0 3px rgb(0 127 82 / .18); }
.field [aria-invalid="true"] { border-color: #B42318; background: #FFFBFA; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgb(180 35 24 / .15); }
.field-error { display: flex; gap: 6px; align-items: center; font-size: .8125rem; font-weight: 600; color: #B42318; }
.field-error:empty { display: none; }
.field-error::before { content: "!"; display: grid; place-items: center; inline-size: 16px; block-size: 16px; border-radius: 50%; background: #B42318; color: #fff; font-size: .625rem; flex: none; }
.field-hint { font-size: .8125rem; color: var(--muted); }
.hp-field { position: absolute !important; inset-inline-start: -10000px; inline-size: 1px; block-size: 1px; overflow: hidden; }

.form-recipient {
  display: flex; align-items: flex-start; gap: 10px; margin-block-start: 24px;
  padding: 12px 14px; background: var(--emerald-mist); border-radius: var(--radius);
  font-size: .875rem; color: var(--charcoal);
}
.form-recipient svg { flex: none; inline-size: 18px; block-size: 18px; margin-block-start: 1px; fill: none; stroke: var(--emerald-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.form-recipient a { color: var(--emerald-ink); font-weight: 600; text-decoration: none; }
@media (max-width: 479px) { .form-recipient { font-size: .8125rem; } .form-recipient svg { display: none; } .form-recipient a { display: block; } }
.form-recipient a:hover { text-decoration: underline; text-underline-offset: 3px; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-block-start: 28px; }
.form-privacy { font-size: .8125rem; color: var(--muted); max-inline-size: 30em; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.btn .spinner { display: none; inline-size: 16px; block-size: 16px; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .icon-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin-block-start: 24px; padding: 18px 20px; border-radius: var(--radius); font-size: .9375rem; }
.form-status:empty { display: none; }
.form-status[data-state="success"] { background: var(--emerald-mist); border-inline-start: 3px solid var(--emerald-ink); }
.form-status[data-state="error"] { background: #FEF3F2; border-inline-start: 3px solid #B42318; }
.form-status[data-state="info"] { background: #FFF8E6; border-inline-start: 3px solid #C99A00; }
.form-status strong { display: block; margin-block-end: 4px; }
.form-status a { color: inherit; font-weight: 600; }

.aside-stack { display: grid; gap: 16px; align-content: start; }
.aside-card { padding: 28px; background: var(--grey); border-radius: var(--radius); }
.aside-card h3 { font-size: 1.0625rem; font-weight: 700; margin-block-end: 14px; }
.aside-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.aside-list a { color: var(--emerald-ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.fact-list dd { overflow-wrap: anywhere; }
.aside-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.aside-list .muted { display: block; }
.steps-mini { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; color: var(--muted); font-size: .9375rem; }
.steps-mini li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-size: 1.125rem; color: var(--emerald); }

/* ---------- Contact card with several links ---------- */
.contact-card-multi .contact-value { display: grid; gap: 6px; font-size: .9375rem; }
.contact-card-multi .contact-value a { color: var(--emerald-ink); text-decoration: none; }
.contact-card-multi .contact-value a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cookie notice ---------- */
.cookie-notice {
  position: fixed; z-index: 45; inset-inline: 12px; inset-block-end: 12px;
  display: grid; gap: 10px; justify-items: start;
  max-inline-size: 420px; padding: 20px 22px;
  background: var(--white); color: var(--charcoal);
  border-radius: var(--radius); border-block-start: 2px solid var(--gold);
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -20px rgb(0 0 0 / .35);
  opacity: 0; transform: translateY(16px); visibility: hidden;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), visibility .45s;
}
.cookie-notice.is-visible { opacity: 1; transform: none; visibility: visible; }
.cookie-title { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.cookie-text { font-size: .875rem; line-height: 1.55; color: var(--muted); }
@media (min-width: 640px) { .cookie-notice { inset-inline: 24px auto; inset-block-end: 24px; } }
/* on phones the notice and the WhatsApp button would overlap: hide the button until the notice is closed */
@media (max-width: 639px) { .has-cookie-notice .wa-fab { opacity: 0; visibility: hidden; } }

/* ---------- 404 ---------- */
.not-found { min-block-size: 70svh; display: grid; place-items: center; text-align: center; padding-block: calc(var(--header-h) + 64px) 80px; }
.not-found .display-2 { margin-block: 12px 16px; }
.not-found p { color: var(--muted); margin-inline: auto; max-inline-size: 30em; }
.not-found .btn-row { justify-content: center; }
.site-header.on-light { color: var(--charcoal); }
.site-header.on-light::before { opacity: 1; }

/* ==========================================================================
   Motion: only when JS is running AND the visitor hasn't asked for less motion.
   Without JS everything is simply visible.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance */
  .js .hero-anim { opacity: 0; transform: translateY(24px); }
  .js .hero-title .hero-anim { transform: translateY(105%); opacity: 1; }
  .js .is-loaded .hero-anim {
    opacity: 1; transform: none;
    transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
    transition-delay: calc(200ms + var(--d, 0) * 120ms);
  }
  .js .hero-slide.is-active img, .js .page-hero-media img { animation: kenburns 8s var(--ease-out) both; }
  .js .page-title .line { display: block; overflow: hidden; padding-block-end: .06em; }
  .js .page-title .hero-anim { display: inline-block; transform: translateY(105%); opacity: 1; }
  .js .is-loaded .page-title .hero-anim { transform: none; }
  .js .hero.is-paused .hero-slide.is-active img { animation-play-state: paused; }
  @keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

  /* Scroll reveals: several distinct treatments */
  .js [data-reveal] { transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), clip-path 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
  .js [data-reveal="fade"]:not(.is-in) { opacity: 0; }
  .js [data-reveal="rise"]:not(.is-in) { opacity: 0; transform: translateY(28px); }
  .js [data-reveal="slide"]:not(.is-in) { opacity: 0; transform: translateX(-40px); }
  [dir="rtl"].js [data-reveal="slide"]:not(.is-in) { transform: translateX(40px); }
  .js [data-reveal="draw"] { transition: transform 1.2s var(--ease-out) .2s; }
  .js [data-reveal="draw"]:not(.is-in) { transform: scaleX(0); }
  .js [data-reveal="mask"] .parallax { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--ease-out); }
  .js [data-reveal="mask"]:not(.is-in) .parallax { clip-path: inset(100% 0 0 0); }
  .js [data-reveal="mask"] img { transition: transform 1.8s var(--ease-out); }
  .js [data-reveal="mask"]:not(.is-in) img { transform: scale(1.15); }
  .js [data-reveal="mask"] .media-caption { transition: opacity .8s var(--ease-out) .8s, transform .8s var(--ease-out) .8s; }
  .js [data-reveal="mask"]:not(.is-in) .media-caption { opacity: 0; transform: translateY(12px); }

  /* Mobile menu */
  .mobile-menu:not([hidden]) li, .mobile-menu:not([hidden]) .mobile-menu-contact {
    animation: menu-in .7s var(--ease-out) both; animation-delay: calc(80ms + var(--i, 0) * 60ms);
  }
  @keyframes menu-in { from { opacity: 0; transform: translateY(20px); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
