/* Funun — V5 "Elegant" theme
   Loaded after styles.css. A quieter palette, Cormorant Garamond display type,
   hairline borders instead of offset shadows, no tilted cards, slower motion. */

:root, :host {
  --cream: #FAF7F2;
  --ivory: #FFFDF9;
  --ink: #1F1B24;
  --ink-soft: #4B4550;
  --ink-muted: #6B6470;
  --ink-strong: #35303A;
  --teal: #2E5E62;
  --teal-dark: #234B4E;
  --teal-bright: #7FA8A9;
  --teal-light: #A9C6C6;
  --teal-soft: #E9F0EF;
  --rose: #8E4A55;
  --rose-deep: #743A44;
  --rose-light: #C9A0A3;
  --rose-soft: #F4E9E7;
  --gold: #B08D57;
  --gold-light: #D8C29B;
  --gold-soft: #F3ECDF;
  --sage: #A9B59B;
  --sage-soft: #F1EFE9;
  --peach: #F4ECE5;
  --line: rgba(31, 27, 36, .12);
  --line-light: rgba(255, 255, 255, .22);
  --footer-text: #C9C2CE;
  --footer-line: #3A3440;

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-label: 'Jost', sans-serif;
  --font-body: 'Jost', system-ui, sans-serif;
  --ease-snap: cubic-bezier(.16, 1, .3, 1);
}

body { font-weight: 300; font-size: 17px; line-height: 1.75; letter-spacing: .005em; }
strong, b { font-weight: 500; }
::selection { background: var(--gold-soft); color: var(--ink); }

/* ---------- Type ---------- */
.display { font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; }
.display em { font-weight: 500; font-style: italic; }
.h1 { font-size: clamp(48px, 6.4vw, 96px); line-height: 1; }
.h2 { font-size: clamp(38px, 4.2vw, 60px); }
.h2-lg { font-size: clamp(44px, 5vw, 76px); }
.h3 { font-size: clamp(28px, 2.8vw, 38px); }
.em-gold { color: var(--gold-light); }
.lede { font-size: 19px; line-height: 1.7; font-weight: 300; }

.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--gold);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.eyebrow::before, .kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; flex: none; }
.about-copy .eyebrow, .hero-copy .eyebrow { background: none; color: var(--gold); }

.prose { font-weight: 300; font-size: 18px; line-height: 1.85; }
.prose h2, .prose h3, .prose h4 { font-weight: 500; }
.prose h2 { font-size: 36px; }
.prose blockquote { background: none; border-left: 1px solid var(--gold); border-radius: 0; padding: 4px 0 4px 28px; font-size: 26px; color: var(--ink-strong); }
.prose img { border-radius: 6px; }

/* ---------- Buttons, chips ---------- */
.btn {
  min-height: 52px;
  padding: 15px 32px;
  border-width: 1px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: none !important;
}
.btn:hover { transform: none; }
.btn::before { background: rgba(255, 255, 255, .14); }
.btn-lg { font-size: 13px; padding: 17px 36px; }
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: 12px; }
.btn-gold { background: var(--ink); color: var(--ivory); font-weight: 500; }
.btn-gold:hover { color: var(--ivory); }
.btn-rose { background: var(--rose); }
.btn-ink { background: var(--ink); }
.btn-teal { background: var(--teal); }
.btn-outline { border-color: rgba(31, 27, 36, .5); }
.btn-outline::before { background: var(--ink); opacity: .06; }
.pricing .btn-ink, .page-hero--teal .btn-gold, .section--teal .btn-gold { background: var(--gold); color: var(--ink); }

.link-arrow { font-family: var(--font-label); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }

.chip, .chips li { background: transparent; border: 1px solid var(--line); font-weight: 400; font-size: 13px; letter-spacing: .04em; }
.hero .chips li:nth-child(n) { background: transparent; }
.chip--sm { border: 0; padding: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); background: none; }

/* ---------- Loader ---------- */
.loader { background: var(--cream); animation: none; }
.loader img { width: 84px; height: 84px; animation: loader-breathe 2.4s ease-in-out infinite; }
@keyframes loader-breathe { 50% { opacity: .55; transform: scale(.96); } }

/* ---------- Header ---------- */
.announce { background: var(--ink); color: var(--footer-text); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.announce a { color: var(--gold-light); font-weight: 500; }
.announce .ar { letter-spacing: 0; text-transform: none; font-size: 16px; }
.site-header__bar {
  background: rgba(250, 247, 242, .86);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(31, 27, 36, .06);
}
.brand-name { font-family: var(--font-label); font-weight: 400; letter-spacing: .24em; font-size: 14px; }
.brand-by { font-family: var(--font-display); font-size: 16px; color: var(--ink-muted); }
.main-nav__link {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  position: relative;
}
.main-nav__link:hover, .has-sub:hover > .main-nav__link, .main-nav__link[aria-expanded="true"] { background: transparent; color: var(--rose); }
.main-nav__link[aria-current="page"] { background: transparent; color: var(--ink); }
.main-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
}
.sub-menu { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(31, 27, 36, .1); }
.sub-menu a { font-weight: 400; border-radius: 8px; }
.sub-menu a:hover { background: var(--sage-soft); color: var(--rose); }
.lang-switch { background: transparent; border: 1px solid var(--line); }
.burger { background: var(--ink); }
.mobile-menu { background: var(--ink); }
.mobile-menu__list > li { border-color: rgba(255, 255, 255, .12); }
.mobile-menu__list a, .mobile-menu summary { font-weight: 500; font-size: 34px; }
.mobile-menu details a { font-family: var(--font-label); font-weight: 300; }

/* ---------- Sections ---------- */
.section { padding: 136px 0; }
.section--sage { background: var(--sage-soft); }
.section--peach { background: var(--peach); }
.section--rose { background: var(--rose-soft); }
.section--teal { background: var(--teal); }
.section-head { margin-bottom: 64px; }
.section-head > p { font-size: 17px; }

/* ---------- Home hero ---------- */
.hero { padding-top: 56px; padding-bottom: 120px; }
.hero h1 { font-weight: 500; font-size: clamp(56px, 7vw, 108px); line-height: .98; letter-spacing: -0.02em; }
.swash { font-weight: 500; color: var(--rose); padding: 0; }
.swash svg { display: none; }
.hero-lede { font-size: 19px; }

/* fill-opacity, because GSAP's intro sets opacity on the svg and blobs */
.hero-art > svg, .page-hero__art > svg { filter: saturate(.55); }
.hero-art .blob, .page-hero__art .blob { fill-opacity: .3; }
.hero-art .brush, .hero-art .dots { display: none; }
.hero-photo, .page-hero__photo {
  border: 0;
  box-shadow: none;
  outline: 1px solid var(--gold);
  outline-offset: 14px;
}
.hero-tag {
  transform: none;
  padding: 12px 22px;
  border-radius: 2px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(31, 27, 36, .08);
  color: var(--gold);
  font-size: 26px;
}

/* ---------- Page hero ---------- */
.page-hero { padding: 72px 0 112px; }
.page-hero--teal { background: var(--teal); }

/* ---------- Photo marquee & tabs ---------- */
.photo-marquee { border-radius: 4px; }
.photo-marquee figure,
.photo-marquee figure:nth-child(n) { border: 0; border-radius: 160px 160px 6px 6px; box-shadow: none; }

.tabs__nav { background: transparent; border: 1px solid var(--line-light); }
.tabs__btn { font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.tabs__indicator { background: var(--ivory); }
.tabs__copy li::before { width: 18px; height: 1px; border-radius: 0; margin-top: 14px; background: var(--gold-light); }
.tabs__media img { border: 0; border-radius: 160px 160px 6px 6px; box-shadow: none; }
.tabs__media img:nth-child(1), .tabs__media img:nth-child(2) { transform: none; }
.tabs__media img:nth-child(1) { outline: 1px solid var(--gold-light); outline-offset: 10px; }

/* ---------- Image strip ---------- */
.cta-strip { background: var(--peach); }
.cta-strip__card::before { display: none; }
.cta-strip__card img { border: 0; border-radius: 200px 200px 6px 6px; }

/* ---------- Cards ---------- */
.card,
.card.bg-teal, .card.bg-rose, .card.bg-gold, .card.bg-sage-soft, .card.bg-peach {
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px 32px 44px;
}
.card > svg { opacity: .14; width: 110px; height: 110px; right: -18px; bottom: -18px; }
.card h3 { font-weight: 500; font-size: 30px; }
.card p { color: var(--ink-muted); }
.card .kicker { color: var(--gold) !important; }
a.card:hover { transform: translateY(-4px); }

.post-card { border: 1px solid var(--line); border-radius: 4px; background: var(--ivory); }
.post-card:hover { transform: none; box-shadow: 0 24px 50px rgba(31, 27, 36, .08); }
.post-card__title { font-weight: 500; font-size: 26px; line-height: 1.15; }

.product-card__media { border-radius: 4px; }
.product-card__title { font-family: var(--font-display); font-weight: 500; font-size: 22px; }
.price-now { color: var(--ink); font-weight: 400; letter-spacing: .04em; }

.info-card { border-radius: 4px; border: 1px solid var(--line); }
.info-card strong { font-weight: 500; font-size: 26px; }
.bg-teal-soft, .bg-gold-soft, .bg-rose-soft { background: var(--ivory); }

/* ---------- Features & pricing ---------- */
.feature svg path:first-child { opacity: .35; }
.feature h3 { font-family: var(--font-display); font-weight: 500; font-size: 26px; }
.pricing { background: var(--ink); }
.pricing .wave { opacity: .25; }
.pricing > svg circle { display: none; }
.plan, .plan-beginner, .plan-full { transform: none !important; box-shadow: none; border-radius: 4px; }
.plan-beginner { background: var(--ivory); }
.plan-full { background: var(--teal); color: var(--ivory); }
.plan-full s { color: var(--teal-light) !important; }
.plan h3 { font-weight: 500; font-size: 36px; }
.plan .badge { background: transparent; border: 1px solid currentColor; color: inherit; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; }
.price-amount { font-weight: 500; }
.plan-full .btn-rose { background: var(--gold); color: var(--ink); }
.pricing-note { color: var(--footer-text); }
.pricing .section-head .ar { color: var(--gold-light); }

/* ---------- Testimonials ---------- */
.quote, .quote:nth-child(n) { background: var(--ivory); border: 1px solid var(--line); border-radius: 4px; transform: none !important; }
.quote-mark { color: var(--gold) !important; font-size: 72px; }
.quote blockquote { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 24px; line-height: 1.4; }
.quote[dir="rtl"] blockquote, .rtl-page .quote blockquote { font-style: normal; }
.quote figcaption { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }

/* ---------- About & story ---------- */
.about { background: var(--peach); }
.about > svg { display: none; }
.about-blob { background: var(--gold-soft); border-radius: 50% 50% 8px 8px; }
.about-photo { border: 0; }
.story__media img { border: 0; }
.story__media img:nth-child(1) { box-shadow: none; outline: 1px solid var(--gold); outline-offset: 12px; }
.story__media img:nth-child(2) { border-radius: 4px; transform: none; box-shadow: 0 30px 60px rgba(31, 27, 36, .14); }
.pull-quote { font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); }

/* ---------- Tiles, gallery, events ---------- */
.tile .tile__media, .tile:nth-child(n) .tile__media { border-radius: 180px 180px 4px 4px; }
.tile:hover .tile__media { transform: translateY(-4px); }
.tile-title { font-family: var(--font-display); font-weight: 500; font-size: 26px; }
.gallery__item { border-radius: 2px; }
.event-card { border-radius: 4px; border: 1px solid var(--line); background: var(--ivory); }
.event-card__date { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 2px; }
.event-card__date strong { color: var(--rose); font-weight: 500; }
.event-card__media { border-radius: 2px; }
.event-card__body h3 { font-weight: 500; font-size: 30px; }
.event-card__meta { color: var(--gold); font-weight: 400; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Shop, blog, product ---------- */
.filter-chip { border-width: 1px; border-color: var(--line); font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); }
.product-gallery__main { border-radius: 4px; }
.product-gallery__thumb { border-radius: 2px; border-width: 1px; }
.product-gallery__thumb.is-active { border-color: var(--gold); }
.product__price .price-now { font-weight: 500; }
.featured-post { border-radius: 4px; }
.post-hero__media img { border-radius: 4px; }
.post-nav__link strong { font-weight: 500; font-size: 22px; }
.accordion details { border-radius: 4px; border: 1px solid var(--line); background: var(--ivory); }
.accordion summary { font-weight: 500; font-size: 26px; }
.accordion summary::after { color: var(--gold); font-weight: 300; }
.check-list li::before { background: none; border: 1px solid var(--gold); width: 18px; height: 18px; margin-top: 6px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B08D57' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }

/* ---------- Forms & embeds ---------- */
.form input, .form textarea, .form select, .select { border-radius: 2px; border: 1px solid var(--line); background: var(--ivory); }
.embed-frame { border-radius: 4px; border: 1px solid var(--line); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); }
.footer-wave path { stroke: var(--gold); stroke-width: 1.5; opacity: .7; }
.footer-wave path:nth-child(2), .footer-wave path:nth-child(3) { display: none; }
.newsletter-form button { background: var(--gold); border-radius: 999px; font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.field input { border-width: 1px; }
.footer-col strong { font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.footer-logo div { border-radius: 4px; }

/* ---------- Arabic pages keep their own type ---------- */
.rtl-page .display { font-family: var(--font-arabic); }
.rtl-page .eyebrow, .rtl-page .kicker { letter-spacing: 0; font-size: 14px; }

/* ---------- Slower, softer scroll reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-animate]:not([data-animate="stagger"]),
  .js [data-animate="stagger"] > * {
    transform: translateY(28px);
    transition: transform 1.2s var(--ease-snap), opacity 1s ease;
  }
  .js [data-animate].is-in:not([data-animate="stagger"]),
  .js [data-animate="stagger"].is-in > * { transform: none; }
  .js [data-animate="stagger"].is-in > *:nth-child(2) { transition-delay: .18s; }
  .js [data-animate="stagger"].is-in > *:nth-child(3) { transition-delay: .3s; }
  .js [data-animate="stagger"].is-in > *:nth-child(4) { transition-delay: .42s; }
}

@media (max-width: 860px) {
  .section { padding: 96px 0; }
  .hero-photo, .page-hero__photo { outline-offset: 8px; }
  .story__media img:nth-child(1) { outline-offset: 8px; }
}
