/* =========================================================
   MOON FURNITURE — design system
   Off-white + deep petrol green + restrained gold
   Logical properties (inline-start/end) keep RTL/LTR ready.
   ========================================================= */

:root {
  --bg: #f7f4ee;
  --bg-2: #f1ece3;
  --surface: #fffdf9;
  --ink: #16201a;
  --ink-2: #2b3630;
  --muted: #646d66;
  --line: rgba(22, 32, 26, 0.09);
  --line-strong: rgba(22, 32, 26, 0.16);

  --green: #113a24;
  --green-2: #1b4d33;
  --green-ink: #0b2a19;
  --gold: #b8975a;
  --gold-soft: #e7d9bb;
  --cream: #f4efe4;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(17, 30, 22, 0.04), 0 2px 8px rgba(17, 30, 22, 0.04);
  --shadow: 0 1px 2px rgba(17, 30, 22, 0.04), 0 8px 24px -6px rgba(17, 30, 22, 0.08), 0 24px 48px -16px rgba(17, 30, 22, 0.08);
  --shadow-lg: 0 2px 4px rgba(17, 30, 22, 0.04), 0 20px 40px -12px rgba(17, 30, 22, 0.14), 0 40px 80px -24px rgba(17, 30, 22, 0.12);

  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Cormorant Garamond", "Times New Roman", serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(80px, 11vw, 136px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.section--alt { background: var(--bg-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.35; letter-spacing: -0.005em; }
.display { font-size: clamp(2.2rem, 5.2vw, 4.1rem); font-weight: 500; line-height: 1.25; }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 600; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.latin { font-family: var(--font-latin); letter-spacing: 0.04em; }
.gold { color: var(--gold); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head > div { max-width: 640px; }
.section-head .h2 { margin-top: 14px; }
.section-head .lead { margin-top: 14px; }

/* ---------- Pills & badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(255, 253, 249, 0.7); border: 1px solid var(--line);
  font-size: 0.82rem; font-weight: 500; color: var(--ink-2);
  box-shadow: var(--shadow-sm); backdrop-filter: blur(8px);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(184, 151, 90, 0.18); }
.pill--dark { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); color: var(--cream); }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: 0.76rem; font-weight: 500; background: rgba(255, 253, 249, 0.88); color: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px);
}
.tag--concept { background: rgba(184, 151, 90, 0.95); color: #fff; border-color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--b-bg);
  font-weight: 500; font-size: 0.98rem; cursor: pointer; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  color: var(--cream); border-color: transparent;
  background: radial-gradient(120% 140% at 50% 0%, #2a6044 0%, var(--green) 55%, var(--green-ink) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 18px -6px rgba(17, 58, 36, 0.55);
}
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 30px -10px rgba(17, 58, 36, 0.6); }
.btn--gold { color: var(--green-ink); border-color: transparent; background: linear-gradient(180deg, #e9d8b0, #cfb27a); }
.btn--ghost { background: transparent; }
.btn--light { background: var(--cream); color: var(--green-ink); border-color: transparent; }
.btn--outline-light { background: transparent; color: var(--cream); border-color: rgba(244, 239, 228, 0.3); }
.btn--wa { background: #1f7a4a; color: #fff; border-color: transparent; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--green); }
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(-4px); }
[dir="ltr"] .link-arrow svg { transform: scaleX(-1); }

/* ---------- Brand mark (text recreation of the logo) ---------- */
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--green); }
.brand__name { font-family: var(--font-latin); font-weight: 500; font-size: 1.7rem; letter-spacing: 0.06em; }
.brand__sub { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-family: var(--font); font-size: 0.5rem; letter-spacing: 0.42em; font-weight: 500; padding-inline-start: 0.42em; }
.brand__sub::before, .brand__sub::after { content: ""; width: 14px; height: 1px; background: currentColor; opacity: 0.8; }
.brand--light { color: var(--cream); }

/* ---------- Header (floating glass) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: 14px; height: 0; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 66px; padding: 8px 10px; padding-inline-start: 22px;
  border-radius: var(--radius-pill);
  background: rgba(250, 247, 241, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, var(--shadow);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  transition: background 0.4s, box-shadow 0.4s;
}
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; padding: 8px 14px; border-radius: var(--radius-pill); font-size: 0.94rem; color: var(--ink-2); transition: background 0.3s, color 0.3s; }
.nav__links a:hover { background: rgba(17, 58, 36, 0.06); }
.nav__links a[aria-current="page"] { color: var(--green); background: rgba(17, 58, 36, 0.08); font-weight: 500; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.35s var(--ease), background 0.2s; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; inset-inline: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.menu-open .nav__toggle span { background: transparent; }
.menu-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(247, 244, 238, 0.97);
  backdrop-filter: blur(12px); padding: 110px var(--gutter) 120px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { font-size: 1.5rem; padding: 12px 4px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.mobile-menu a[aria-current="page"] { color: var(--green); }
.mobile-menu .btn { margin-top: 18px; font-size: 1rem; }

main { padding-top: 100px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(20px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 96px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 720px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 85% 20%, rgba(184, 151, 90, 0.13), transparent 70%),
    radial-gradient(45% 55% at 10% 30%, rgba(17, 58, 36, 0.08), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__text .display { margin-top: 22px; }
.hero__text .display em { font-style: normal; color: var(--green); position: relative; white-space: nowrap; }
.hero__text .display em::after { content: ""; position: absolute; inset-inline: 0; bottom: 0.08em; height: 0.14em; background: var(--gold-soft); z-index: -1; border-radius: 4px; }
.hero__text .lead { margin-top: 22px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg); background: var(--bg-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.is-ready .hero__media img { transform: scale(1); }
.hero__chip {
  position: absolute; inset-inline-end: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px; border-radius: 18px; background: rgba(250, 247, 241, 0.82);
  backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: var(--shadow); font-size: 0.88rem; line-height: 1.5;
}
.hero__chip b { display: block; font-weight: 600; font-size: 0.95rem; }
.hero__chip .dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--green); color: var(--cream); flex: none; }
.hero__chip .dot svg { width: 18px; height: 18px; }

.hero__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(36px, 5vw, 56px); }
.point { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; gap: 14px; align-items: flex-start; }
.point .ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--green); border: 1px solid var(--line); }
.point .ico svg { width: 20px; height: 20px; }
.point b { display: block; font-weight: 600; font-size: 0.98rem; }
.point span { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* Page hero (inner pages) */
.page-hero { padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 72px); position: relative; }
.page-hero::before { content: ""; position: absolute; inset: -120px 0 auto; height: 520px; z-index: -1; background: radial-gradient(40% 60% at 80% 10%, rgba(184, 151, 90, 0.12), transparent 70%), radial-gradient(40% 60% at 15% 20%, rgba(17, 58, 36, 0.07), transparent 70%); }
.page-hero .display { margin-top: 18px; font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 18ch; }
.page-hero .lead { margin-top: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--green); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* ---------- Cards & Bento ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: clamp(24px, 3vw, 34px); overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card--hover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(184, 151, 90, 0.10), transparent 45%);
}
.card--hover:hover::after { opacity: 1; }
.card--green { background: radial-gradient(120% 120% at 100% 0%, #1f5238 0%, var(--green) 50%, var(--green-ink) 100%); color: var(--cream); border-color: transparent; }
.card--green h3, .card--green h2 { color: var(--cream); }
.card--green .muted { color: rgba(244, 239, 228, 0.72); }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }

.ico-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--cream); color: var(--green); border: 1px solid var(--line); margin-bottom: 22px; }
.ico-box svg { width: 22px; height: 22px; }
.card--green .ico-box { background: rgba(255, 255, 255, 0.08); color: var(--gold-soft); border-color: rgba(255, 255, 255, 0.12); }

/* Service card with image */
.svc { display: flex; flex-direction: column; padding: 0; min-height: 100%; }
.svc__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.04); }
.svc__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc__body .muted { font-size: 0.95rem; line-height: 1.8; }
.svc__num { font-family: var(--font-latin); color: var(--gold); font-size: 1.1rem; letter-spacing: 0.08em; }
.svc--wide { flex-direction: row; }
.svc--wide .svc__media { aspect-ratio: auto; flex: 1.15; min-height: 320px; }
.svc--wide .svc__body { flex: 1; justify-content: center; padding: clamp(28px, 4vw, 48px); }

/* ---------- About band ---------- */
.about-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.about-band__media { position: relative; }
.about-band__media .main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.about-band__media .main img { width: 100%; height: 100%; object-fit: cover; }
.about-band__media .float { position: absolute; inset-inline-start: -18px; bottom: -28px; width: 42%; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; border: 6px solid var(--bg); box-shadow: var(--shadow-lg); }
.about-band__media .float img { width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: ""; width: 22px; height: 22px; flex: none; margin-top: 4px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e7d9bb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- Project cards ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.proj:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.proj__media { position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--bg-2); }
.proj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.proj:hover .proj__media img { transform: scale(1.05); }
.proj__tags { position: absolute; top: 14px; inset-inline-start: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.proj__body { padding: 18px 20px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proj__body h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.55; }
.proj__body small { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.proj__go { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: background 0.35s, color 0.35s, transform 0.35s var(--ease); }
.proj__go svg { width: 16px; height: 16px; }
.proj:hover .proj__go { background: var(--green); color: var(--cream); border-color: transparent; transform: rotate(-45deg); }
[dir="ltr"] .proj__go svg { transform: scaleX(-1); }

.projects-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.projects-bento .proj:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.projects-bento .proj:nth-child(1) .proj__media { aspect-ratio: auto; height: calc(100% - 82px); min-height: 420px; }
.projects-bento .proj:nth-child(1) { display: flex; flex-direction: column; }
.projects-bento .proj:nth-child(2), .projects-bento .proj:nth-child(3) { grid-column: span 5; }
.projects-bento .proj:nth-child(2) .proj__media, .projects-bento .proj:nth-child(3) .proj__media { aspect-ratio: 16 / 9.4; }
.projects-bento .proj:nth-child(n+4) { grid-column: span 6; }
.projects-bento .proj:nth-child(n+4) .proj__media { aspect-ratio: 16 / 10; }

/* Filters */
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 6px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); width: max-content; max-width: 100%; }
.filters::-webkit-scrollbar { display: none; }
.filters button { border: 0; background: transparent; padding: 9px 18px; border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap; font-size: 0.92rem; color: var(--ink-2); transition: background 0.3s, color 0.3s; }
.filters button:hover { background: rgba(17, 58, 36, 0.06); }
.filters button[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.filters button .count { opacity: 0.55; font-size: 0.8em; margin-inline-start: 4px; }
.concept-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--radius); background: rgba(184, 151, 90, 0.10); border: 1px solid rgba(184, 151, 90, 0.25); margin-bottom: 26px; font-size: 0.95rem; }
.concept-note b { color: #8a6b32; }
.empty { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- Project detail ---------- */
.pd { display: grid; grid-template-columns: 1.65fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); cursor: zoom-in; border: 1px solid var(--line); }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery figure img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.02); }
.gallery figcaption { position: absolute; bottom: 12px; inset-inline-start: 12px; }
.pd__aside { position: sticky; top: 104px; display: grid; gap: 14px; }
.spec { display: grid; gap: 0; margin: 18px 0 0; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.94rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 500; text-align: end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--cream); border: 1px solid var(--line); font-size: 0.85rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 20, 14, 0.94); display: none; align-items: center; justify-content: center; padding: 64px 16px; }
.lightbox.open { display: flex; animation: fade 0.35s var(--ease); }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(8px); }
.lightbox button svg { width: 20px; height: 20px; }
.lb-close { top: 16px; inset-inline-end: 16px; }
.lb-prev { inset-inline-start: 16px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 16px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 20px; left: 50%; translate: -50% 0; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step__n { font-family: var(--font-latin); font-size: 2.4rem; line-height: 1; color: var(--gold); display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.04rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px);
  background: radial-gradient(70% 120% at 100% 0%, #24593d 0%, var(--green) 45%, var(--green-ink) 100%);
  color: var(--cream); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; box-shadow: var(--shadow-lg);
}
.cta::after { content: ""; position: absolute; width: 420px; height: 420px; inset-inline-start: -120px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(184, 151, 90, 0.28), transparent 65%); pointer-events: none; }
.cta h2 { color: var(--cream); font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-top: 16px; }
.cta p { color: rgba(244, 239, 228, 0.76); margin-top: 14px; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }

/* ---------- Values / Goals ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.value { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.value .n { font-family: var(--font-latin); color: var(--gold); font-size: 1.05rem; letter-spacing: 0.1em; }
.value p { margin-top: 10px; font-weight: 500; line-height: 1.75; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.92rem; font-weight: 500; }
.field label .opt { color: var(--muted); font-weight: 400; font-size: 0.85em; }
.field label .req { color: var(--gold); }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: #fff; transition: border-color 0.25s, box-shadow 0.25s; font-size: 1rem;
}
textarea.input { min-height: 130px; resize: vertical; line-height: 1.7; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23646d66' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: left 14px center; padding-inline-end: 44px; }
[dir="ltr"] select.input { background-position: right 14px center; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(17, 58, 36, 0.1); }
.input[aria-invalid="true"] { border-color: #b4553f; box-shadow: 0 0 0 4px rgba(180, 85, 63, 0.1); }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field .err { font-size: 0.82rem; color: #b4553f; display: none; }
.field .input[aria-invalid="true"] ~ .err { display: block; }
.drop {
  display: grid; place-items: center; text-align: center; gap: 6px; padding: 28px 18px; border-radius: 16px;
  border: 1.5px dashed var(--line-strong); background: var(--cream); cursor: pointer; transition: border-color 0.25s, background 0.25s;
}
.drop:hover, .drop.drag { border-color: var(--green); background: #efe9dc; }
.drop svg { width: 28px; height: 28px; color: var(--green); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.files .chip { display: inline-flex; align-items: center; gap: 6px; }
.form-status { grid-column: 1 / -1; padding: 16px 18px; border-radius: 14px; display: none; font-size: 0.95rem; }
.form-status.ok { display: block; background: rgba(17, 58, 36, 0.08); border: 1px solid rgba(17, 58, 36, 0.2); color: var(--green); }
.form-status.warn { display: block; background: rgba(184, 151, 90, 0.12); border: 1px solid rgba(184, 151, 90, 0.3); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.ref-banner { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.ref-banner img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.ref-banner small { color: var(--muted); display: block; }

/* ---------- Contact ---------- */
.contact-card { display: flex; flex-direction: column; gap: 6px; }
.contact-card .label { font-size: 0.85rem; color: var(--muted); }
.contact-card .value-lg { font-size: 1.25rem; font-weight: 600; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.contact-card .btn { margin-top: 14px; align-self: flex-start; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: background 0.3s, color 0.3s; }
.social a:hover { background: var(--green); color: var(--cream); }
.social svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-ink); color: rgba(244, 239, 228, 0.78); padding: clamp(56px, 8vw, 88px) 0 28px; margin-top: var(--section); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 90% 0%, rgba(184, 151, 90, 0.12), transparent 70%); pointer-events: none; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; position: relative; }
.site-footer h4 { color: var(--cream); font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.94rem; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .brand { align-items: flex-start; }
.site-footer .brand__name { font-size: 2.1rem; }
.footer__about { font-size: 0.94rem; margin-top: 18px; max-width: 34ch; }
.footer__bottom { position: relative; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(244, 239, 228, 0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: rgba(244, 239, 228, 0.55); }
.site-footer .social a { border-color: rgba(244, 239, 228, 0.18); }
.site-footer .social a:hover { background: var(--cream); color: var(--green-ink); }
.ltr { direction: ltr; unicode-bidi: plaintext; display: inline-block; }

/* ---------- Floating WhatsApp + mobile bar ---------- */
.wa-float {
  position: fixed; z-index: 40; bottom: 24px; inset-inline-end: 24px; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 25%, #34c172, #1f8a52 70%);
  box-shadow: 0 10px 30px -8px rgba(31, 138, 82, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.35s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #34c172; animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.5); opacity: 0; } }

.mobile-bar { display: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 45%, #174a2b 0%, #0f3a1b 55%, #0a2c14 100%);
  color: #fbf8f1; transition: clip-path 1.1s cubic-bezier(0.77, 0, 0.18, 1);
  clip-path: inset(0 0 0 0);
}
.intro.leave { clip-path: inset(0 0 100% 0); }
.intro__inner { text-align: center; position: relative; }
.intro__name { font-family: var(--font-latin); font-weight: 500; font-size: clamp(3.6rem, 13vw, 8.4rem); letter-spacing: 0.04em; line-height: 1; display: flex; justify-content: center; direction: ltr; }
.intro__name span { display: inline-block; opacity: 0; transform: translateY(40%); filter: blur(8px); animation: letter 1.1s var(--ease) forwards; }
.intro__name span:nth-child(1) { animation-delay: 0.15s; }
.intro__name span:nth-child(2) { animation-delay: 0.27s; }
.intro__name span:nth-child(3) { animation-delay: 0.39s; }
.intro__name span:nth-child(4) { animation-delay: 0.51s; }
@keyframes letter { to { opacity: 1; transform: none; filter: blur(0); } }
.intro__sub { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 26px); margin-top: clamp(18px, 3vw, 30px); direction: ltr; }
.intro__sub i { display: block; height: 1px; width: clamp(48px, 9vw, 92px); background: currentColor; transform: scaleX(0); animation: line 1s var(--ease) 0.9s forwards; }
.intro__sub i:first-child { transform-origin: right; }
.intro__sub i:last-child { transform-origin: left; }
.intro__sub b { font-family: var(--font); font-weight: 500; font-size: clamp(0.78rem, 1.6vw, 1.05rem); letter-spacing: 0.5em; padding-left: 0.5em; opacity: 0; animation: fadeup 0.9s var(--ease) 1.1s forwards; }
.intro__ar { margin-top: 26px; font-size: clamp(0.92rem, 1.6vw, 1.05rem); color: rgba(251, 248, 241, 0.7); opacity: 0; animation: fadeup 0.9s var(--ease) 1.45s forwards; }
.intro__glow { position: absolute; width: 60vmin; height: 60vmin; border-radius: 50%; background: radial-gradient(circle, rgba(231, 217, 187, 0.16), transparent 60%); opacity: 0; animation: glow 2.4s var(--ease) 0.2s forwards; pointer-events: none; }
.intro__skip { position: absolute; bottom: 28px; inset-inline-end: 28px; background: none; border: 1px solid rgba(251, 248, 241, 0.25); color: rgba(251, 248, 241, 0.8); padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 0.85rem; }
@keyframes line { to { transform: scaleX(1); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes glow { 40% { opacity: 1; } to { opacity: 0.6; } }
.intro-lock { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav__links, .nav__actions .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .hero__grid, .about-band, .pd, .form-wrap, .cta { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 4 / 3.6; order: -1; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .bento > * { grid-column: span 6; }
  .bento > .span-12, .bento > .span-8, .bento > .span-7 { grid-column: span 12; }
  .projects-bento .proj:nth-child(n) { grid-column: span 6; grid-row: auto; }
  .projects-bento .proj:nth-child(1) { grid-column: span 12; }
  .projects-bento .proj:nth-child(1) .proj__media { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .projects-bento .proj:nth-child(n+2) .proj__media { aspect-ratio: 4 / 3.4; }
  .svc--wide { flex-direction: column; }
  .svc--wide .svc__media { min-height: 0; aspect-ratio: 16 / 10; }
  .pd__aside { position: static; }
  .about-band__media .float { inset-inline-start: auto; inset-inline-end: 12px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  main { padding-top: 92px; }
  .nav { min-height: 60px; padding-inline-start: 18px; }
  .nav__actions .btn--primary { display: none; }
  .hero__points { grid-template-columns: 1fr; }
  .projects-grid, .projects-bento { grid-template-columns: 1fr; }
  .projects-bento .proj:nth-child(n) { grid-column: 1 / -1; }
  .bento > * { grid-column: 1 / -1 !important; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; }
  .step__n { margin: 0; grid-row: span 2; font-size: 2rem; }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__chip { inset-inline: 12px; bottom: 12px; }
  .about-band__media .float { display: none; }
  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; position: fixed; z-index: 40;
    inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 8px; border-radius: 22px;
    background: rgba(250, 247, 241, 0.86); border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-lg);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border-radius: 15px; font-size: 0.88rem; font-weight: 500; }
  .mobile-bar a svg { width: 18px; height: 18px; }
  .mobile-bar .mb-wa { background: #1f7a4a; color: #fff; }
  .mobile-bar .mb-call { background: var(--surface); border: 1px solid var(--line); }
  .mobile-bar .mb-quote { background: var(--green); color: var(--cream); }
  .site-footer { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
