/* ============================================================
   Alaa Shameseddine — landing page styles
   Tokens (colors, type scale, spacing, radii, shadows) live in
   tokens.css and come from the brand design system.
   ============================================================ */

/* ---- Fonts: Setar L (trial files — swap for licensed release) ---- */
@font-face { font-family: "Setar"; src: url("../assets/fonts/SetarLTrial-Thin.ttf") format("truetype"); font-weight: 100; font-display: swap; }
@font-face { font-family: "Setar"; src: url("../assets/fonts/SetarLTrial-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Setar"; src: url("../assets/fonts/SetarLTrial-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Setar"; src: url("../assets/fonts/SetarLTrial-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Setar"; src: url("../assets/fonts/SetarLTrial-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Setar"; src: url("../assets/fonts/SetarLTrial-Heavy.ttf") format("truetype"); font-weight: 900; font-display: swap; }

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--as-paper);
  color: var(--as-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, fieldset { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--as-terracotta-press); text-decoration: none; }
a:hover { color: var(--as-ochre-press); }
::selection { background: var(--as-terracotta); color: var(--as-paper); }
:focus-visible { outline: 3px solid var(--as-terracotta); outline-offset: 3px; }
section[id] { scroll-margin-top: 16px; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---- Layout helpers ---- */
.container { max-width: 1248px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 112px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 56px 72px; }
.stack { display: flex; flex-direction: column; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--as-ochre);
}
.eyebrow--dark { color: var(--as-ochre-press); }
.h2 {
  font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08;
  letter-spacing: -0.02em; text-wrap: balance;
}
.lead { font-size: 18px; line-height: 1.7; color: var(--as-ink-70); text-wrap: pretty; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; margin-bottom: 56px; }

/* ---- Button (design-system pill) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1; letter-spacing: 0.005em;
  height: 44px; padding: 11px 22px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  background: var(--brand-primary); color: var(--text-on-color);
  transition: background var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--brand-primary-press); color: var(--text-on-color); }
.btn:active { transform: scale(0.97); }
.btn--lg { height: 54px; padding: 15px 30px; font-size: 18px; gap: 10px; }
.btn--block { width: 100%; }
.btn--secondary { background: transparent; color: var(--brand-secondary); border-color: var(--brand-secondary); }
.btn--secondary:hover { background: color-mix(in oklab, var(--brand-secondary) 8%, transparent); color: var(--brand-secondary); }
.btn--light { background: var(--as-paper); color: var(--as-ink); }
.btn--light:hover { background: var(--as-sand); color: var(--as-ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn:disabled:hover { background: var(--brand-primary); }

/* ---- Tag ---- */
.tag {
  display: inline-flex; align-items: center; font-size: 15px; font-weight: 500;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--surface-card); color: var(--text-body); border: 1px solid var(--border-subtle);
}

/* ---- Nav ---- */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 22px; }
.nav__logo img { height: 52px; width: auto; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.nav__links a:not(.btn) { color: var(--as-ink); font-weight: 500; font-size: 15px; padding: 12px 0; }
.nav__links a:not(.btn):hover { color: var(--as-terracotta-press); }
@media (max-width: 720px) {
  .nav__links a:not(.btn) { display: none; }
  .nav__logo img { height: 44px; }
}

/* ---- Hero ---- */
.hero { padding-block: 40px 104px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero h1 {
  font-weight: 900; font-size: clamp(2.75rem, 6.2vw, 5.5rem); line-height: 1.02;
  letter-spacing: -0.02em; text-wrap: balance;
}
.dot { color: var(--as-terracotta); }
.hero__sub { max-width: 520px; font-size: 20px; line-height: 1.6; color: var(--as-ink-70); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.link-underline { font-weight: 600; font-size: 17px; text-decoration: underline; text-underline-offset: 4px; padding: 12px 0; }
.hero__note { font-size: 15px; color: var(--as-ink-70); }
.hero__media { position: relative; }
.hero__frame {
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg);
  transition: box-shadow var(--dur-slow) var(--ease-out);
}
.hero__frame img {
  width: 100%; height: clamp(360px, 48vw, 620px); object-fit: cover;
  transition: transform 900ms var(--ease-out), filter var(--dur-slow) var(--ease-out);
}
.hero__stamp {
  position: absolute; left: 24px; bottom: 24px; width: 84px; height: 84px; border-radius: 50%;
  background: var(--as-paper); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  transition: transform var(--dur-slow) var(--ease-out);
}
.hero__stamp img { width: 52px; height: auto; }

/* ---- Quote band (design-system QuoteBlock) ---- */
.quote { background: var(--as-ink); padding: 112px 24px; }
.quote__inner {
  max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0.4em; color: var(--as-paper); font-size: clamp(14px, 1.9vw, 22px);
}
.quote__accent { font-family: var(--font-arabic-script); font-weight: 700; font-size: 1.5em; line-height: 1.2; color: var(--as-gold); }
.quote__text { font-weight: 900; font-size: 3em; line-height: 1.08; letter-spacing: -0.02em; color: var(--as-paper); text-wrap: balance; }
.quote__text em { color: var(--as-gold); font-style: normal; }

/* ---- About ---- */
.about { align-items: center; gap: 56px 88px; }
/* A clay outline sits behind the portrait; on hover the photo lifts off it. */
.about__frame { position: relative; isolation: isolate; width: 100%; max-width: 480px; justify-self: center; }
.about__frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--radius-xl);
  border: 2px solid var(--as-clay); background: var(--as-paper-2);
  transform: translate(16px, 16px);
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out);
}
.about__photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}
.about__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Services (design-system Card) ---- */
.services { background: var(--as-paper-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px; }
.card {
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out);
}
.card__frame { position: relative; overflow: hidden; }
/* Warm wash that fades in over the photo on hover. */
.card__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, color-mix(in oklab, var(--as-ochre) 35%, transparent), transparent 60%);
  opacity: 0; transition: opacity var(--dur-slow) var(--ease-out);
}
.card__media {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__num { font-weight: 900; font-size: 36px; line-height: 1; color: var(--as-terracotta); transition: color var(--dur-slow) var(--ease-out); }
.card h3 { font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.card p { font-size: 16px; line-height: 1.65; color: var(--as-ink-70); text-wrap: pretty; }
/* Length and fee: pinned to the bottom of the card, above a hairline. */
.card__meta {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--as-line);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.card__length {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px;
  border-radius: var(--radius-pill); background: var(--as-sand); color: var(--as-ink);
  font-size: 15px; font-weight: 600;
}
.card__length svg { color: var(--as-ochre-press); flex: none; }
.card__fee { font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: -0.02em; color: var(--as-terracotta-press); }
.card__fee small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--as-ink-70); }

/* Hover effects: only on devices with a real pointer, and only when motion is welcome. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero__media:hover .hero__frame { box-shadow: 0 26px 60px rgba(100, 70, 30, 0.22); }
  .hero__media:hover .hero__frame img { transform: scale(1.04); filter: saturate(1.08); }
  .hero__media:hover .hero__stamp { transform: rotate(-12deg) scale(1.06); }

  .about__frame:hover .about__photo { transform: translate(-6px, -6px); box-shadow: var(--shadow-lg); }
  .about__frame:hover::before { transform: translate(22px, 22px); border-color: var(--as-terracotta); }

  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--as-sand-deep); }
  .card:hover .card__media { transform: scale(1.07); }
  .card:hover .card__frame::after { opacity: 1; }
  .card:hover .card__num { color: var(--as-ochre); }
}

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 56px; }
.step { display: flex; flex-direction: column; gap: 14px; border-top: 1.5px solid var(--as-line); padding-top: 28px; }
.step__num { font-weight: 900; font-size: 104px; line-height: 0.9; letter-spacing: -0.04em; color: var(--as-terracotta); }
.step:nth-child(2) .step__num { color: var(--as-mustard); }
.step:nth-child(3) .step__num { color: var(--as-ochre); }
.step h3 { font-weight: 800; font-size: 22px; line-height: 1.25; }
.step p { font-size: 16px; line-height: 1.65; color: var(--as-ink-70); text-wrap: pretty; }

/* ---- Booking ---- */
.booking { background: var(--as-sand); }
.booking__grid { align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); }
.booking__intro { display: flex; flex-direction: column; gap: 24px; }
.booking__intro h2 { font-weight: 900; font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; }
.booking__intro .dot { color: var(--as-terracotta-press); }
.booking__intro .lead { color: var(--as-ink); max-width: 460px; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.checks svg { flex: none; color: var(--as-ochre-press); }
.booking__photo { width: 100%; max-width: 480px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-xl); margin-top: 16px; }

.booking__panel {
  background: var(--surface-card); border: 1px solid var(--as-line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 40px);
}
.booking__form { display: flex; flex-direction: column; gap: 28px; }
.booking__form fieldset { border: 0; min-width: 0; }
.booking__form legend, .group-label { padding: 0; margin-bottom: 12px; font-size: 15px; font-weight: 600; color: var(--as-ink); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 8px; }

/* Selectable pills are real radio inputs; the label is the visible control. */
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice > span {
  display: flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; background: var(--surface-card); color: var(--as-ink);
  border: 1.5px solid var(--as-line);
  transition: background var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.choice input:hover + span { border-color: var(--as-clay); }
.choice input:checked + span { background: var(--as-terracotta-press); color: var(--as-paper); border-color: var(--as-terracotta-press); }
.choice input:focus-visible + span { outline: 3px solid var(--as-terracotta); outline-offset: 3px; }
.choice input:disabled { cursor: not-allowed; }
.choice input:disabled + span { color: var(--as-ink-45); background: var(--as-paper-2); border-color: var(--as-line); text-decoration: line-through; }
.choice-hint { font-size: 15px; color: var(--as-ink-70); }
.choice--time span { min-width: 84px; padding: 0 16px; }
.choice--day > span { flex-direction: column; gap: 2px; min-height: 72px; padding: 8px 4px; border-radius: var(--radius-lg); }
.choice--day .dow { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.choice--day .dom { font-size: 22px; font-weight: 900; line-height: 1.1; }
.choice--day .mon { font-size: 12px; font-weight: 500; }

.fields { display: flex; flex-direction: column; gap: 16px; }
.fields__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; color: var(--text-strong); }
.field input, .field textarea {
  font-family: inherit; font-size: 16px; line-height: 1.5; color: var(--text-strong);
  background: var(--surface-card); border: 1.5px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 11px 14px; width: 100%; outline: none;
  transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand-secondary); box-shadow: 0 0 0 3px var(--focus-ring); }
.field input::placeholder, .field textarea::placeholder { color: var(--as-ink-45); }

.booking__submit { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--as-line); padding-top: 24px; }
.booking__summary { font-size: 15px; font-weight: 500; color: var(--as-ink-70); }
.booking__error {
  font-size: 15px; font-weight: 600; color: var(--as-ochre-press); background: var(--as-terracotta-tint);
  border-radius: var(--radius-md); padding: 12px 16px;
}
/* Honeypot field for bots; kept off-screen rather than display:none. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.booking__done { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 0; }
.booking__done-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--as-terracotta-tint); color: var(--as-terracotta-press);
  display: flex; align-items: center; justify-content: center;
}
.booking__done h3 { font-weight: 900; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.booking__done-summary {
  align-self: stretch; font-size: 17px; font-weight: 600; background: var(--as-paper-2);
  border-radius: var(--radius-lg); padding: 16px 20px;
}
.booking__done-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- FAQ ---- */
.faq { align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.faq__head { display: flex; flex-direction: column; gap: 16px; }
.faq details { border-top: 1.5px solid var(--as-line); padding: 8px 0; }
.faq details:last-child { border-bottom: 1.5px solid var(--as-line); }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 800; font-size: 20px; line-height: 1.3; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-weight: 400; font-size: 28px; line-height: 1; color: var(--as-terracotta-press); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; font-size: 16px; line-height: 1.7; color: var(--as-ink-70); max-width: 560px; }

/* ---- Footer ---- */
.footer { background: var(--as-olive-deep); color: var(--as-paper); padding: 88px 0 40px; }
.footer__inner { display: flex; flex-direction: column; gap: 56px; }
.footer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.footer__cta h2 { max-width: 620px; font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.footer__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px;
  border-top: 1px solid rgba(248, 244, 243, 0.3); padding-top: 40px; font-size: 15px; line-height: 1.6;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col img { height: 56px; width: auto; align-self: flex-start; margin-bottom: 6px; }
.footer__title { font-weight: 800; font-size: 16px; }
.footer a:not(.btn) { color: var(--as-paper); text-decoration: underline; text-underline-offset: 3px; }
.footer a:not(.btn):hover { color: var(--as-sand); }
.footer__legal { font-size: 14px; }

@media (max-width: 600px) {
  .section { padding-block: 72px; }
  .quote { padding-block: 80px; }
  .hero { padding-block: 16px 72px; }
  .section-head { margin-bottom: 40px; }
}
