/* ==========================================================================
   Design tokens — change colors and fonts here and the whole page follows.
   ========================================================================== */
:root {
  --deep: #06232a;         /* dark sections */
  --deeper: #041a1f;       /* footer */
  --ink: #0b2b33;         /* text on light */
  --porcelain: #f2f6f6;    /* light page background */
  --mist: #dcebed;         /* pale tint behind illustrations */
  --white: #ffffff;
  --lagoon: #12a0b0;       /* water accent (borders, highlights) */
  --lagoon-deep: #0a6672;  /* water accent for text on light backgrounds */
  --aqua: #5fd0dc;         /* water accent on dark backgrounds */
  --brass: #d1a44e;        /* brass accent */
  --brass-text: #7f5b17;   /* brass dark enough for text on light backgrounds */
  --muted: #476169;        /* secondary text on light */
  --muted-dark: #9fc0c6;   /* secondary text on dark */
  --line: #c4d4d7;

  --font-head: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Almarai", "Segoe UI", Tahoma, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 76px;
  --radius: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); }
body {
  margin: 0; background: var(--porcelain); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.85;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.7rem); font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 60ch; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section-head { margin-bottom: clamp(32px, 5vw, 64px); max-width: 680px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.dark { background: var(--deep); color: var(--white); }
.dark .section-head p { color: var(--muted-dark); }
.tint { background: #e6eff0; }

/* ==========================================================================
   Fade animations
   - Elements marked data-reveal fade in when they scroll into view and fade
     out when they leave. Delete the attribute to turn it off for one element.
   - Everything is switched off for visitors who prefer reduced motion.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.92); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition-delay: var(--d, 0s); }

/* Page-load intro: the logo appears, then the veil fades away */
.veil {
  position: fixed; inset: 0; z-index: 100; background: var(--deep);
  display: grid; place-items: center; pointer-events: none;
  animation: veil-out .7s ease .8s forwards;
}
.veil img { width: 76px; height: 76px; animation: veil-logo .8s var(--ease) both; }
@keyframes veil-logo { from { opacity: 0; transform: scale(.78); } to { opacity: 1; transform: none; } }
@keyframes veil-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Buttons ---------- */
.steps {
  white-space: pre-line;
}
.btn {
  display: inline-block; padding: .85em 2em; border-radius: 999px;
  background: var(--deep); color: var(--white); border: 2px solid var(--deep);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.btn:hover { background: var(--lagoon-deep); border-color: var(--lagoon-deep); transform: translateY(-2px); }
.btn-brass { background: var(--brass); border-color: var(--brass); color: var(--deep); }
.btn-brass:hover { background: var(--white); border-color: var(--white); color: var(--deep); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--deep); }
.btn-small { padding: .55em 1.4em; font-size: .88rem; }

/* ---------- Header: transparent over the hero, solid after scrolling ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 30; height: var(--header-h);
  color: var(--white); border-bottom: 1px solid transparent;
  transition: background .4s, color .4s, border-color .4s, backdrop-filter .4s;
}
.site-header.scrolled, .site-header.menu-open {
  background: rgba(242, 246, 246, .92); backdrop-filter: blur(10px);
  color: var(--ink); border-bottom-color: var(--line);
}
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; }
.brand-text small { opacity: .72; font-size: .78rem; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.main-nav a:not(.btn) { text-decoration: none; font-weight: 700; font-size: .95rem; padding-block: 6px; border-bottom: 2px solid transparent; transition: border-color .3s; }
.main-nav a:not(.btn):hover { border-color: currentColor; }
.main-nav a[aria-current="true"] { border-color: var(--brass); }
.nav-toggle { display: none; background: none; border: 2px solid currentColor; font-weight: 700; padding: .3em 1em; border-radius: 999px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  --hero-delay: 1.1s;
  position: relative; min-height: 100svh; background: var(--deep); color: var(--white);
  display: grid; align-items: center; overflow: hidden;
  padding-block: calc(var(--header-h) + 32px) 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 7vw, 96px); align-items: center; position: relative; z-index: 1; }
.hero-text, .hero-visual { will-change: opacity, transform; }
.hero h1 { margin-bottom: .5em; }
.hero h1 .w { display: inline-block; opacity: 0; animation: word-in .9s var(--ease) forwards; animation-delay: calc(var(--hero-delay) + var(--i) * .08s); }
@keyframes word-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-lead { font-size: 1.2rem; color: var(--muted-dark); max-width: 46ch; animation: fade-up 1s var(--ease) calc(var(--hero-delay) + .7s) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; animation: fade-up 1s var(--ease) calc(var(--hero-delay) + .9s) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; width: min(100%, 440px); margin-inline: auto; animation: fade-in 1.2s ease calc(var(--hero-delay) + .3s) backwards; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Concentric water rings behind the arch; each fades in and out in turn */
.rings { position: absolute; left: 50%; top: 46%; width: 155%; max-width: none; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; overflow: visible; }
.rings circle { fill: none; stroke: #5fd0dc; stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ring 6s ease-in-out infinite; animation-delay: calc(var(--hero-delay) + var(--i) * 1.1s); }
@keyframes ring { 0%, 100% { opacity: 0; transform: scale(.94); } 45% { opacity: .38; transform: scale(1); } 80% { opacity: 0; transform: scale(1.06); } }

/* The arch window crossfades through the collections */
.arch-frame { position: relative; z-index: 1; }
.arch-frame::before { content: ""; position: absolute; inset: -14px -14px 0 -14px; border: 1.5px solid rgba(209, 164, 78, .75); border-radius: 999px 999px 0 0; pointer-events: none; }
.arch-main { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; background: var(--mist); overflow: hidden; }
.slide { position: absolute; inset: 14% 12% 6%; width: 76%; height: 80%; object-fit: contain; object-position: center bottom; opacity: 0; transform: scale(.94); transition: opacity 1.1s ease, transform 1.6s var(--ease); }
.slide.is-active { opacity: 1; transform: none; }
.hero-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; position: relative; z-index: 1; }
.hero-name { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; transition: opacity .3s; }
.hero-name.out { opacity: 0; }
.dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .5s var(--ease), background .5s; }
.dot[aria-current="true"] { width: 30px; background: var(--brass); }

/* ---------- Marquee band ---------- */
.marquee { background: var(--brass); color: var(--deep); overflow: hidden; padding-block: 16px; white-space: nowrap; }
.marquee-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; padding-inline: 22px; display: inline-flex; align-items: center; gap: 44px; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--deep); }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 7vw, 100px); align-items: center; }
.statement { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.5; margin: 0 0 1em; max-width: 24ch; }
.about-text p { color: var(--muted); }
.pledge { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.pledge li { border: 1.5px solid var(--lagoon); color: var(--lagoon-deep); padding: .35em 1.2em; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.about-art { background: var(--mist); border-radius: var(--radius); padding: clamp(20px, 4vw, 48px); }

/* ---------- Collections (bento grid + pop-up) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  appearance: none; text-align: start; cursor: pointer; background: var(--white);
  border: 1.5px solid transparent; border-radius: var(--radius); padding: 18px 18px 22px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .5s var(--ease), border-color .3s, opacity .9s var(--ease);
}
.tile:hover { transform: translateY(-6px); border-color: var(--lagoon); }
.js .tile[data-reveal].is-in:hover { transform: translateY(-6px); }
.tile-art { background: var(--mist); border-radius: 999px 999px 16px 16px; height: 240px; display: grid; place-items: end center; padding: 30px 0 12px; overflow: hidden; transition: background .4s; }
.tile:hover .tile-art { background: #c9e4e8; }
.tile-art img { height: 100%; width: auto; max-width: 72%; object-fit: contain; transition: transform .7s var(--ease); }
.tile:hover .tile-art img { transform: scale(1.06); }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: 6px; }
.tile-foot h3 { margin: 0; font-size: 1.15rem; }
.go { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.go::before { content: ""; width: 9px; height: 9px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(1px, -1px); }
.tile:hover .go { background: var(--brass); border-color: var(--brass); }

.dialog {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: var(--gutter);
  border: 0; background: rgba(4, 26, 31, .78); color: var(--ink);
  opacity: 0; transition: opacity .35s ease; place-items: center; overflow-y: auto;
}
.dialog[open] { display: grid; }
.dialog.is-open { opacity: 1; }
.dialog::backdrop { background: transparent; }
.dialog-card { position: relative; background: var(--porcelain); border-radius: var(--radius); width: min(100%, 880px); padding: clamp(22px, 4vw, 44px); transform: translateY(24px) scale(.97); transition: transform .5s var(--ease); }
.dialog.is-open .dialog-card { transform: none; }
.dialog-close { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: .35em 1.1em; font-weight: 700; font-size: .9rem; cursor: pointer; transition: border-color .3s; }
.dialog-close:hover { border-color: var(--ink); }
.dialog-body { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; }
.dialog-arch { background: var(--mist); border-radius: 999px 999px 0 0; aspect-ratio: 3 / 4; display: grid; place-items: end center; padding: 16% 10% 6%; overflow: hidden; }
.dialog-arch img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.dialog-body h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
.dialog-body p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2em 0 1.8em; }
.chips li { border: 1.5px solid var(--lagoon); color: var(--lagoon-deep); padding: .2em 1em; border-radius: 999px; font-weight: 700; font-size: .92rem; }

/* ---------- Why us ---------- */
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reason { border: 1px solid rgba(255, 255, 255, .15); border-radius: 24px; padding: 30px 26px 34px; transition: border-color .4s, transform .5s var(--ease), background .4s, opacity .9s var(--ease); }
.reason:hover { border-color: var(--brass); background: rgba(255, 255, 255, .04); }
.reason h3 { color: var(--white); font-size: 1.25rem; margin-bottom: .6em; }
.reason p { color: var(--muted-dark); margin: 0; }

/* ---------- Process ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); position: relative; }
.steps::before { content: ""; position: absolute; top: 30px; inset-inline: 0; height: 2px; background: var(--line); transform: scaleX(0); transform-origin: right center; transition: transform 1.8s var(--ease); }
.steps.is-in::before { transform: scaleX(1); }
.steps li { counter-increment: step; position: relative; padding-top: 76px; }
.steps li::before { content: counter(step); position: absolute; top: 0; inset-inline-start: 0; z-index: 1; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--deep); color: var(--brass); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-info h2 { color: var(--white); }
.contact-info > p { color: var(--muted-dark); font-size: 1.1rem; }
.contact-list { display: grid; gap: 22px; margin: 32px 0; }
.contact-list h3 { margin: 0; font-family: var(--font-body); font-size: .92rem; font-weight: 700; color: var(--aqua); }
.contact-list a, .contact-list p { margin: 0; font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.form { background: var(--porcelain); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4.5vw, 52px); }
.form h3 { font-size: 1.4rem; margin-bottom: 1em; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: inherit; padding: .8em 1em; background: var(--white); border: 1.5px solid transparent; border-radius: 14px; transition: border-color .3s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lagoon); outline: none; }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { margin: 14px 0 0; min-height: 1.6em; font-weight: 700; }
.form-status.ok { color: #17663f; }
.form-status.err { color: #a32a2a; }
.map { margin-top: clamp(40px, 6vw, 72px); border-radius: var(--radius); background: rgba(255, 255, 255, .06); aspect-ratio: 16 / 6; display: grid; place-items: center; color: var(--muted-dark); text-align: center; padding: 16px; overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deeper); color: #cfe0e3; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-block: 44px 28px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-nav a { text-decoration: none; font-weight: 700; font-size: .95rem; transition: color .3s; }
.footer-nav a:hover { color: var(--brass); }
.footer-bottom { border-top: 1px solid #14383f; padding-block: 18px; font-size: .9rem; color: #7fa3aa; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 40; background: #1f9d55; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .9rem; text-decoration: none; padding: .7em 1.3em; border-radius: 999px; box-shadow: 0 6px 18px rgba(4, 26, 31, .35); transition: background .3s, transform .3s var(--ease); }
.wa-float:hover { background: #17824a; transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-visual { width: min(100%, 340px); order: -1; margin-inline: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .reasons, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--porcelain); color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .main-nav.is-open { display: flex; }
  .main-nav a:not(.btn) { padding-block: 12px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; text-align: center; }
  .dialog-body { grid-template-columns: 1fr; }
  .dialog-arch { max-width: 240px; margin-inline: auto; }
  .bento, .reasons, .steps, .field-row { grid-template-columns: 1fr; }
  .tile-art { height: 210px; }
  .map { aspect-ratio: 4 / 3; }
}

/* ---------- Reduced motion: no animation, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .veil { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .w, .hero-lead, .hero-actions, .hero-visual { opacity: 1; }
  .steps::before { transform: none; }
  .rings { display: none; }
}
