/* The Panda Paw — website styles
   Palette (brand guidelines v1.0): Teal leads, Turquoise supports, one warm accent.
   Light and dark mode: page colours are tokens below; [data-theme="dark"] swaps them. */
:root {
  --teal: #006D6F;
  --teal-dark: #00585A;
  --turq: #3DBCA8;
  --yellow: #FFC857;
  --coral: #FF6F61;
  --pink: #FF4D8D;
  --ink: #111414;           /* text on bright colours: same in both modes */
  --white: #FFFFFF;         /* white on teal: same in both modes */

  --bg: #FFFFFF;            /* page */
  --surface: #FFFFFF;       /* cards, form */
  --mist: #EEF4F3;          /* alternate sections, soft boxes */
  --text: #111414;
  --text-2: #4A5556;
  --line: #DCE6E5;
  --accent-text: #006D6F;   /* teal used as text on the page */
  --brand-bg: #006D6F;      /* header, hero, teal sections */
  --brand-bg-2: #00585A;
  --on-brand: #E3F4F1;
  --on-brand-2: #BFE9E1;
  --field: #B9C9C8;
  --dash: #9DB5B4;
  --ph: #B4302A;
  --pk3: #111414;
  --footer: #111414;
  --shadow: rgba(0, 60, 60, .12);

  --font: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --px: 14px;               /* size of one decorative pixel */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --header-h: 72px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0C1313;
  --surface: #132020;
  --mist: #0F1A1A;
  --text: #E7EFEE;
  --text-2: #A5B8B6;
  --line: #233532;
  --accent-text: #63D6C3;
  --brand-bg: #08494B;
  --brand-bg-2: #063B3D;
  --field: #3A5452;
  --dash: #3F5C59;
  --ph: #FF9C92;
  --pk3: #1C2C2C;
  --footer: #060A0A;
  --shadow: rgba(0, 0, 0, .45);
  color-scheme: dark;
}
html[lang="ar"] {
  --font: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.6; overflow-x: hidden;
}
/* smooth switch between light and dark (only while switching) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease, fill .45s ease !important;
}
/* Arabic visitors: hide the English text for a moment until Arabic is applied */
html.pp-ar-pending body { visibility: hidden; }
html[lang="ar"] body { font-size: 17.5px; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--yellow); color: var(--ink); padding: 10px 16px; z-index: 100; font-weight: 700; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.section:not(.dark) :focus-visible { outline-color: var(--accent-text); }

/* ---------- labels / eyebrow ---------- */
.label {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-text);
}
.label b { font-weight: 700; color: var(--text); letter-spacing: 0.1em; }
html[lang="ar"] .label { letter-spacing: 0; font-size: 15px; }
.dark .label, .dark .label b { color: var(--on-brand-2); }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: var(--coral); color: var(--ink);
}
html[lang="ar"] .tag { letter-spacing: 0; font-size: 13px; }
.ph { color: var(--ph); font-weight: 700; } /* placeholder value, easy to spot */
.dark .ph { color: var(--yellow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; min-height: 48px;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffd47a; }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); }
[data-theme="dark"] .btn-teal { background: #00807F; }
[data-theme="dark"] .btn-teal:hover { background: #009391; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ink { background: var(--ink); color: var(--white); }
[data-theme="dark"] .btn-ink { background: var(--yellow); color: var(--ink); }
.btn .arrow { display: inline-block; transition: transform .15s ease; }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--brand-bg); color: var(--white);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,40,40,.25); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--white); flex: none; }
.brand img { width: 44px; height: auto; }
.brand span { font-weight: 700; font-size: 13px; letter-spacing: 0.32em; white-space: nowrap; }
html[lang="ar"] .brand span { letter-spacing: 0; font-size: 18px; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; white-space: nowrap; text-decoration: none; }
.menu > li { position: relative; }
.menu .top {
  display: inline-flex; align-items: center; padding: 10px 12px; font-size: 15px; font-weight: 700; color: var(--on-brand); border-radius: 8px;
}
.menu .top:hover, .menu .top.active { color: var(--white); background: rgba(255,255,255,.1); }
.menu .top.active { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 8px 8px 2px 2px; }
.has-sub { display: flex; align-items: center; }
.sub-toggle {
  display: inline-grid; place-items: center; width: 30px; height: 36px; margin-inline-start: -6px; padding: 0;
  background: transparent; border: 0; color: var(--on-brand); cursor: pointer; border-radius: 6px;
}
.sub-toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }
.sub-toggle:hover { color: var(--white); }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.menu .sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 230px;
  background: var(--surface); color: var(--text); border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,30,30,.25);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.menu .sub::before { content: ""; position: absolute; top: -10px; inset-inline: 0; height: 10px; } /* keeps hover alive across the gap */
.menu .sub a { padding: 11px 14px; font-size: 15px; font-weight: 600; border-radius: 8px; color: var(--text); }
.menu .sub a:hover { background: var(--mist); color: var(--accent-text); }
.menu .sub a::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 10px; background: var(--turq); vertical-align: middle; }
.menu .sub li:nth-child(2) a::before { background: var(--yellow); }
.menu .sub li:nth-child(3) a::before { background: var(--coral); }
@media (hover: hover) and (min-width: 901px) {
  .has-sub:hover .sub { opacity: 1; visibility: visible; transform: none; }
}
@media (min-width: 901px) {
  .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
}
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lang-btn, .theme-btn {
  font: inherit; font-weight: 700; font-size: 14px; background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.5); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px;
}
.lang-btn:hover, .theme-btn:hover { border-color: var(--white); }
.lang-btn [lang="ar"] { font-family: "Tajawal", sans-serif; font-size: 16px; }
.lang-btn [lang="en"] { font-family: "Montserrat", sans-serif; }
.theme-btn { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }
.nav .btn { padding: 10px 18px; min-height: 42px; font-size: 14px; }
.burger {
  display: none; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; padding: 10px; color: var(--white);
}
.burger span { display: block; height: 3px; background: currentColor; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav .nav-cta { display: none; }
  .mainnav { order: 3; }
  .menu {
    position: absolute; inset-inline: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0;
    background: var(--brand-bg); padding: 8px var(--gutter) 24px; border-top: 1px solid rgba(255,255,255,.15);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; display: none;
  }
  .menu.open { display: flex; }
  .menu > li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .has-sub { flex-wrap: wrap; }
  .menu .top { flex: 1; padding: 14px 4px; font-size: 18px; border-radius: 0; background: none; }
  .menu .top.active { box-shadow: none; color: var(--yellow); background: none; }
  .sub-toggle { display: none; }
  .menu .sub {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent;
    min-width: 0; width: 100%; padding: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  }
  .menu .sub::before { display: none; }
  .menu .sub a { color: var(--on-brand); background: rgba(255,255,255,.08); font-size: 15px; padding: 10px 12px; white-space: normal; }
  .menu .sub a:hover { background: rgba(255,255,255,.16); color: var(--white); }
  .menu .menu-cta { display: block; margin-top: 18px; border: 0; }
  .menu .menu-cta a { text-align: center; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 14px; font-size: 17px; font-weight: 700; }
}
@media (min-width: 901px) { .menu .menu-cta { display: none; } }
@media (min-width: 901px) and (max-width: 1120px) { .brand span { display: none; } .menu .top { padding-inline: 9px; } }
@media (max-width: 420px) { .brand span { display: none; } .nav-actions { gap: 6px; } .lang-btn { padding: 8px 11px; } }

/* ---------- pixel motif ---------- */
.pixels { position: absolute; pointer-events: none; display: grid; grid-template-columns: repeat(var(--cols, 4), var(--px)); grid-auto-rows: var(--px); }
.pixels i { display: block; width: var(--px); height: var(--px); }
.pixels .t { background: var(--teal); } .pixels .q { background: var(--turq); } .pixels .y { background: var(--yellow); }
.pixels .c { background: var(--coral); } .pixels .p { background: var(--pink); } .pixels .w { background: var(--white); } .pixels .d { background: var(--brand-bg-2); }
.corner-steps { --px: clamp(18px, 2.6vw, 34px); }

/* ---------- hero (home) ---------- */
.hero { position: relative; background: var(--brand-bg); color: var(--white); overflow: hidden; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-block: clamp(56px, 8vw, 110px) clamp(72px, 9vw, 130px); }
.hero-mark { width: 84px; margin-bottom: 36px; }
.hero .label { color: var(--on-brand-2); letter-spacing: .5em; }
html[lang="ar"] .hero .label { letter-spacing: 0; }
.hero h1 { font-size: clamp(40px, 6.4vw, 78px); margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-brand); max-width: 36ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-ctas .btn-ghost { color: var(--white); }
.hero-art { position: relative; min-height: 520px; }
.hero-art .phone { position: absolute; width: 52%; filter: drop-shadow(0 30px 40px rgba(0,30,30,.35)); }
.hero-art .phone-a { inset-inline-start: 4%; top: 0; }
.hero-art .phone-b { inset-inline-start: 44%; top: 70px; }
.hero .corner-steps, .page-hero .corner-steps { inset-inline-end: 0; bottom: 0; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; height: clamp(360px, 92vw, 640px); max-width: 560px; width: 100%; margin-inline: auto; }
  .hero-art .phone { width: 50%; }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--brand-bg); color: var(--white); overflow: hidden; }
.page-hero .wrap { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(60px, 8vw, 110px); }
.page-hero .label { color: var(--on-brand-2); letter-spacing: .4em; }
html[lang="ar"] .page-hero .label { letter-spacing: 0; }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 68px); margin: 16px 0 18px; max-width: 18ch; }
.page-hero h1 em { font-style: normal; color: var(--yellow); }
.page-hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-brand); max-width: 52ch; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; list-style: none; padding: 0; }
.jump a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.3); color: var(--white); text-decoration: none; font-weight: 600; font-size: 14px; }
.jump a:hover { background: rgba(255,255,255,.2); }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(72px, 9vw, 128px); overflow: hidden; }
.section.mist { background: var(--mist); }
.section.dark { background: var(--brand-bg); color: var(--white); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 52px); margin-top: 16px; max-width: 18ch; }
.sec-head .sub { color: var(--text-2); max-width: 52ch; font-size: 17px; margin-top: 14px; }
.dark .sec-head .sub { color: var(--on-brand); }
.sec-head .tag { align-self: flex-start; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-copy p.big { font-size: clamp(18px, 1.8vw, 21px); color: var(--text-2); margin: 22px 0 34px; max-width: 44ch; }
.about-copy h2 { font-size: clamp(34px, 5vw, 56px); margin-top: 16px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pillar { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--mist); border-radius: 10px; }
.pillar strong { display: block; font-size: 16px; }
.pillar span { font-size: 14px; color: var(--text-2); }
.ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; color: var(--white); background: var(--teal); }
.ico svg { width: 22px; height: 22px; }
.ico.q { background: var(--turq); color: var(--ink); }
.ico.y { background: var(--yellow); color: var(--ink); }
.ico.c { background: var(--coral); color: var(--ink); }
.ico.p { background: var(--pink); color: var(--ink); }
.about-art { position: relative; display: flex; justify-content: center; padding: 30px 0; }
.about-art .phone { width: min(58%, 300px); filter: drop-shadow(0 24px 36px rgba(0,40,40,.22)); position: relative; z-index: 1; }
.about-art .card { position: absolute; width: min(44%, 230px); inset-inline-end: 0; bottom: 4%; z-index: 2; transform: rotate(4deg); filter: drop-shadow(0 18px 30px rgba(0,40,40,.2)); }
html[dir="rtl"] .about-art .card { transform: rotate(-4deg); }
.about-art .pixels { inset-inline-start: 6%; top: 0; --px: 22px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pillars { grid-template-columns: 1fr; } }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  position: relative; background: var(--surface); border-radius: var(--radius); padding: 28px 24px 24px; min-height: 250px;
  display: flex; flex-direction: column; border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 36px var(--shadow); }
.service::after { content: ""; position: absolute; top: -1px; inset-inline-end: -1px; width: 18px; height: 18px; background: var(--acc, var(--turq)); border-start-end-radius: var(--radius); }
.service h3 { font-size: 19px; margin: 22px 0 10px; }
.service p { color: var(--text-2); font-size: 15px; }
.service .num { margin-top: auto; padding-top: 24px; font-weight: 700; font-size: 13px; color: var(--accent-text); letter-spacing: .1em; }
.service .more { margin-top: auto; padding-top: 20px; font-weight: 700; font-size: 14px; color: var(--accent-text); text-decoration: none; }
.service .more:hover { text-decoration: underline; }
@media (max-width: 980px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .service { min-height: 0; } }

/* how we work */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps .n { width: 56px; height: 56px; display: grid; place-items: center; font-weight: 700; color: var(--white); background: var(--teal); }
.steps li:nth-child(2) .n { background: var(--turq); color: var(--ink); }
.steps li:nth-child(3) .n { background: var(--yellow); color: var(--ink); }
.steps li:nth-child(4) .n { background: var(--coral); color: var(--ink); }
.steps h3 { font-size: 20px; margin-bottom: 4px; }
.steps p { color: var(--text-2); }
.plan-art { position: relative; }
.plan-art img { width: 100%; filter: drop-shadow(0 20px 40px rgba(0,60,60,.14)); border-radius: 16px; }
.plan-art p, .how-note { margin-top: 22px; color: var(--text-2); font-size: 15px; max-width: 46ch; padding-inline-start: 16px; border-inline-start: 4px solid var(--turq); }
.receive { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); position: relative; }
.receive::before { content: ""; position: absolute; top: -1px; inset-inline-end: -1px; width: 22px; height: 22px; background: var(--yellow); border-start-end-radius: var(--radius); }
.receive h3 { font-size: 22px; margin-bottom: 16px; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

/* ---------- packages ---------- */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.packages.two { grid-template-columns: repeat(2, minmax(0, 460px)); justify-content: center; }
.pkg {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
}
.pkg-top { padding: 24px 22px 22px; background: var(--pk, var(--turq)); color: var(--pk-ink, var(--ink)); min-height: 150px; position: relative; }
.pkg-top .num { font-size: 12px; font-weight: 700; letter-spacing: .14em; opacity: .85; }
.pkg-top h3 { font-size: 24px; margin-top: 12px; }
.pkg-top .ar-name { display: block; font-family: "Tajawal", sans-serif; font-size: 17px; font-weight: 500; margin-top: 4px; opacity: .9; }
html[lang="ar"] .pkg-top .ar-name { display: none; }
.pkg-top p { font-size: 14px; margin-top: 10px; opacity: .92; }
.pkg-top::after { content: ""; position: absolute; top: 0; inset-inline-end: 0; width: 16px; height: 16px; background: var(--pk-px, var(--yellow)); }
.pkg-top .badge { position: absolute; top: 18px; inset-inline-end: 26px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--yellow); color: var(--ink); padding: 4px 10px; border-radius: 999px; }
html[lang="ar"] .pkg-top .badge { letter-spacing: 0; font-size: 12px; }
.pkg-list { list-style: none; margin: 0; padding: 6px 22px; }
.pkg-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.pkg-list li:last-child { border-bottom: 0; }
.pkg-list li small { display: block; font-size: 12px; color: var(--text-2); opacity: .85; }
.pkg-list b { font-size: 20px; color: var(--text); font-weight: 700; white-space: nowrap; text-align: end; }
.pkg-list b span { font-size: 12px; font-weight: 600; color: var(--text-2); margin-inline-start: 4px; }
.pkg-list b.dash { color: var(--dash); }
.pkg-list b.yes { color: var(--accent-text); }
.pkg-incl { list-style: none; margin: 0 22px 18px; padding: 14px 16px; background: var(--mist); border-radius: 10px; display: grid; gap: 8px; }
.pkg-incl li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); }
.pkg-incl li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 4px; background: var(--teal)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pkg-incl li.bonus::before { background-color: var(--coral); }
.pkg-incl li small { display: block; color: var(--text-2); font-size: 12.5px; }
.pkg-spacer { flex: 1; }
.pkg-price { padding: 18px 22px 22px; background: var(--mist); border-top: 1px solid var(--line); }
.pkg-price small { display: block; font-size: 11px; letter-spacing: .18em; font-weight: 700; color: var(--accent-text); text-transform: uppercase; }
html[lang="ar"] .pkg-price small { letter-spacing: 0; font-size: 13px; }
.pkg-price .amount { font-size: 30px; font-weight: 700; margin: 4px 0 2px; color: var(--text); }
.pkg-price .per { font-size: 13px; color: var(--text-2); }
.pkg-price .btn { width: 100%; margin-top: 16px; }
.pkg.featured { border: 2px solid var(--teal); }
[data-theme="dark"] .pkg.featured { border-color: var(--turq); }
.pkg-1 { --pk: var(--turq); --pk-ink: var(--ink); --pk-px: var(--teal); }
.pkg-2 { --pk: var(--teal); --pk-ink: var(--white); --pk-px: var(--yellow); }
.pkg-3 { --pk: var(--pk3); --pk-ink: var(--white); --pk-px: var(--coral); }
.pkg-4 { --pk: var(--yellow); --pk-ink: var(--ink); --pk-px: var(--pink); }
.pkg-b1 { --pk: var(--coral); --pk-ink: var(--ink); --pk-px: var(--yellow); }
.pkg-b2 { --pk: var(--teal); --pk-ink: var(--white); --pk-px: var(--pink); }
.note { margin-top: 22px; font-size: 14px; color: var(--text-2); display: flex; gap: 10px; align-items: center; }
.note::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--teal); }
@media (max-width: 1000px) { .packages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .packages, .packages.two { grid-template-columns: 1fr; } }
.pkg-dots { display: none; }

/* ---------- range sliders (Build Your Bamboo) ---------- */
input[type="range"] {
  --p: 9%; -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px; background: linear-gradient(to right, var(--turq) var(--p), var(--line) var(--p));
}
html[dir="rtl"] input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(to left, var(--turq) var(--p), var(--line) var(--p)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--turq); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%;
  background: var(--teal); border: 4px solid var(--white); box-shadow: 0 2px 8px rgba(0,40,40,.35); transition: transform .15s ease;
}
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--teal); border: 4px solid var(--white); box-shadow: 0 2px 8px rgba(0,40,40,.35); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--yellow); outline-offset: 2px; }
input[type="range"]:focus-visible::-moz-range-thumb { outline: 3px solid var(--yellow); outline-offset: 2px; }
.check { display: inline-flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--text); }
.check input { -webkit-appearance: none; appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--field); border-radius: 6px; background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.check input:checked { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--teal); }
.check input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.check small { display: block; font-weight: 500; font-size: 13px; color: var(--text-2); }

/* ---------- Build Your Bamboo: floating bamboo → glass question card ---------- */
.bamboo-game {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 26px; border-radius: 28px; color: var(--white);
  background: radial-gradient(110% 90% at 88% 8%, #12938C 0%, transparent 55%), linear-gradient(160deg, var(--brand-bg) 0%, var(--brand-bg-2) 100%);
  display: grid; grid-template-columns: minmax(250px, .85fr) 1.15fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(24px, 4vw, 48px); min-height: 540px;
}
.bg-blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bg-blobs span { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; animation: bgDrift 16s ease-in-out infinite alternate; }
.bg-blobs .b1 { width: 280px; height: 280px; background: var(--turq); top: -60px; inset-inline-end: 8%; }
.bg-blobs .b2 { width: 190px; height: 190px; background: var(--yellow); bottom: -50px; inset-inline-end: 30%; opacity: .45; animation-duration: 19s; }
.bg-blobs .b3 { width: 150px; height: 150px; background: var(--coral); top: 40%; inset-inline-end: -40px; opacity: .4; animation-duration: 13s; }
.bg-blobs i { position: absolute; width: 14px; height: 14px; animation: bgFloat 5s ease-in-out infinite; }
.bg-blobs .p1 { background: var(--yellow); top: 18%; inset-inline-end: 44%; }
.bg-blobs .p2 { background: var(--turq); bottom: 22%; inset-inline-end: 12%; animation-delay: -2s; }
.bg-blobs .p3 { background: var(--coral); top: 12%; inset-inline-end: 10%; width: 10px; height: 10px; animation-delay: -1s; }
@keyframes bgDrift { to { transform: translate(-40px, 30px) scale(1.12); } }
.bg-intro .num { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--on-brand-2); }
html[lang="ar"] .bg-intro .num { letter-spacing: 0; font-size: 13px; }
.bg-intro h3 { font-size: clamp(30px, 3.6vw, 44px); margin: 12px 0 4px; }
.bg-intro .ar-name { display: block; font-family: "Tajawal", sans-serif; font-size: 18px; font-weight: 500; color: var(--on-brand-2); }
html[lang="ar"] .bg-intro .ar-name { display: none; }
.bg-intro p { color: var(--on-brand); font-size: 16px; max-width: 38ch; margin-top: 14px; }
.bg-facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bg-facts li { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }

.bg-stage { position: relative; min-height: 440px; display: grid; place-items: center; }
.bg-stage.playing { min-height: 0; }
.bg-bamboo { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bg-stage.playing .bg-bamboo { display: none; }
.bamboo-float { width: 128px; animation: bgFloat 4.2s ease-in-out infinite; filter: drop-shadow(0 18px 22px rgba(0,0,0,.28)); }
.bamboo-float svg { width: 100%; height: auto; display: block; overflow: visible; }
.bamboo-float .leaf { transform-box: fill-box; animation: bgSway 3.6s ease-in-out infinite; }
.bamboo-float .l1 { transform-origin: left center; }
.bamboo-float .l2 { transform-origin: right center; animation-delay: -1.2s; }
.bamboo-float .l3 { transform-origin: left bottom; animation-delay: -2s; }
.bg-ground { width: 92px; height: 14px; margin-top: -4px; border-radius: 50%; background: rgba(0,0,0,.28); filter: blur(5px); animation: bgGround 4.2s ease-in-out infinite; }
@keyframes bgFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
@keyframes bgSway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(6deg); } }
@keyframes bgGround { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(.72); opacity: .3; } }
.bg-start { min-width: 176px; font-size: 17px; margin-top: 8px; box-shadow: 0 12px 30px rgba(255,200,87,.4); animation: bgPulse 2.6s ease-in-out infinite; }
.bg-start svg { width: 18px; height: 18px; }
html[dir="rtl"] .bg-start svg { transform: scaleX(-1); }
@keyframes bgPulse { 0%, 100% { box-shadow: 0 12px 30px rgba(255,200,87,.35), 0 0 0 0 rgba(255,200,87,.45); } 50% { box-shadow: 0 12px 30px rgba(255,200,87,.35), 0 0 0 12px rgba(255,200,87,0); } }
.bg-tap { font-size: 13px; color: var(--on-brand-2); }

/* the stalk that stretches into the card (sized and moved by js/main.js) */
.bg-morph { position: absolute; z-index: 3; pointer-events: none; overflow: hidden; border-radius: 14px; box-shadow: 0 24px 50px rgba(0,30,30,.3); }
.bg-morph[hidden] { display: none; }
.bg-morph i { position: absolute; inset: 0; border-radius: inherit; }
.bg-morph .m-bamboo { background: linear-gradient(90deg, #2FA996, #6BDCC9 45%, #278F7F); }
.bg-morph .m-bamboo b { position: absolute; left: 0; right: 0; height: 4.2%; background: #1F8C7C; }
.bg-morph .m-bamboo b:first-child { top: 28%; }
.bg-morph .m-bamboo b + b { top: 62.2%; }
.bg-morph .m-glass { opacity: 0; background: linear-gradient(145deg, rgba(255,255,255,.80), rgba(255,255,255,.52)); border: 1px solid rgba(255,255,255,.75); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95); }
[data-theme="dark"] .bg-morph .m-glass { background: linear-gradient(145deg, rgba(40,80,80,.9), rgba(8,26,26,.85)); border-color: rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }

/* the iOS-style glass card */
.glass {
  position: relative; width: min(100%, 520px); border-radius: 30px; padding: 24px 26px 22px; color: var(--ink);
  background: linear-gradient(145deg, rgba(255,255,255,.80), rgba(255,255,255,.52));
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.35), 0 26px 60px rgba(0,30,30,.38);
  --acc: var(--teal); --soft: rgba(0,109,111,.16); --tile: rgba(255,255,255,.55);
}
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 60% at 18% 0%, rgba(255,255,255,.6), transparent 55%); }
[data-theme="dark"] .glass {
  color: var(--white); background: linear-gradient(145deg, rgba(40,80,80,.58), rgba(8,26,26,.52)); border-color: rgba(255,255,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.06), 0 26px 60px rgba(0,0,0,.5);
  --acc: #63D6C3; --soft: rgba(255,255,255,.16); --tile: rgba(255,255,255,.08);
}
[data-theme="dark"] .glass::before { background: radial-gradient(120% 60% at 18% 0%, rgba(255,255,255,.14), transparent 55%); }
.glass[hidden] { display: none; }
.glass > * { position: relative; }
.bg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bg-count { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
html[lang="ar"] .bg-count { letter-spacing: 0; font-size: 13px; }
.bg-close { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--soft); color: inherit; font-size: 20px; line-height: 1; }
.bg-progress { display: flex; gap: 5px; margin-bottom: 22px; }
.bg-progress i { flex: 1; height: 8px; border-radius: 4px; background: var(--soft); position: relative; overflow: hidden; }
.bg-progress i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--turq), #2FA996); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
html[dir="rtl"] .bg-progress i::after { transform-origin: right; }
.bg-progress i.now::after { transform: scaleX(.45); }
.bg-progress i.on::after { transform: none; }
.bg-step[hidden] { display: none; }
.bg-step.anim { animation: bgIn .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes bgIn { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * var(--rtl, 1) * 30px)); } }
html[dir="rtl"] .glass { --rtl: -1; }
.bg-q { font-size: clamp(20px, 2.3vw, 24px); line-height: 1.25; margin: 0 0 14px; outline: none; }
.bg-q small { display: block; font-size: 14px; font-weight: 500; opacity: .7; margin-top: 4px; }
.bg-num { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 12px; }
.bg-pm {
  width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font: inherit; font-size: 26px; font-weight: 700; line-height: 1;
  color: var(--acc); background: var(--tile); border: 1px solid rgba(255,255,255,.8); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 14px rgba(0,40,40,.14); transition: transform .12s ease;
}
[data-theme="dark"] .bg-pm { border-color: rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.bg-pm:active { transform: scale(.9); }
.bg-big {
  width: 2.4em; font: inherit; font-size: 64px; font-weight: 700; line-height: 1.1; text-align: center; color: inherit; background: transparent;
  border: 0; border-bottom: 3px solid var(--soft); border-radius: 0; padding: 0; -moz-appearance: textfield; appearance: textfield;
}
.bg-big::-webkit-outer-spin-button, .bg-big::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bg-big:focus { outline: none; border-bottom-color: var(--acc); }
.bg-big.bump { animation: bgBump .28s ease; }
@keyframes bgBump { 40% { transform: scale(1.14); } }
.glass .scale { display: flex; justify-content: space-between; font-size: 11.5px; opacity: .6; margin-top: 2px; }
.bg-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.bg-chips button { font: inherit; font-size: 14px; font-weight: 700; padding: 7px 15px; border-radius: 999px; cursor: pointer; color: var(--acc); background: var(--tile); border: 1px solid var(--soft); transition: background-color .15s, color .15s; }
.bg-chips button.on { background: var(--teal); border-color: var(--teal); color: var(--white); }
.bg-help { text-align: center; font-size: 13px; opacity: .7; margin-top: 12px; }
.bg-choices { display: grid; gap: 12px; }
.bg-choice {
  display: flex; align-items: center; gap: 14px; text-align: start; padding: 15px 16px; border-radius: 18px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px; color: inherit; background: var(--tile); border: 1.5px solid var(--soft); transition: border-color .15s, background-color .15s, transform .12s;
}
.bg-choice:active { transform: scale(.98); }
.bg-choice small { display: block; font-size: 13px; font-weight: 500; opacity: .75; }
.bg-choice .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); }
.bg-choice .ic svg { width: 22px; height: 22px; }
.bg-choice + .bg-choice .ic { background: var(--turq); }
.bg-choice.on { border-color: var(--acc); background: rgba(61,188,168,.22); }
.bg-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.bg-nav[hidden], .bg-help[hidden] { display: none; }
.bg-back { font: inherit; font-weight: 700; font-size: 15px; color: inherit; opacity: .75; background: none; border: 0; cursor: pointer; padding: 10px 4px; }
.bg-back.off { visibility: hidden; }
.bg-back .arrow { display: inline-block; }
html[dir="rtl"] .bg-back .arrow { transform: scaleX(-1); }
.bg-next { min-width: 150px; }
.bg-sum { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bg-sum button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; cursor: pointer; text-align: start;
  font: inherit; font-size: 13.5px; color: inherit; background: var(--tile); border: 1px solid var(--soft);
}
.bg-sum button:hover { border-color: var(--acc); }
.bg-sum b { font-size: 18px; color: var(--acc); white-space: nowrap; }
.bg-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.bg-actions .btn { flex: 1 1 220px; }
.glass .link-btn { color: var(--acc); }
.bg-confetti { position: absolute !important; inset: 0; pointer-events: none; overflow: visible; }
.bg-confetti i { position: absolute; left: 50%; top: 30%; width: 10px; height: 10px; animation: bgPop 1.1s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes bgPop { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
@media (max-width: 860px) {
  .bamboo-game { grid-template-columns: 1fr; min-height: 0; }
  .bg-stage { min-height: 360px; }
  .bg-stage.playing { min-height: 0; }
  .glass { margin-inline: auto; }
}
@media (max-width: 600px) {
  .bamboo-game { padding: 24px 16px; border-radius: 22px; gap: 18px; }
  .bg-intro p { font-size: 15px; }
  .bamboo-float { width: 104px; }
  .glass { padding: 20px 16px 18px; border-radius: 24px; }
  .bg-big { font-size: 52px; }
  .bg-pm { width: 46px; height: 46px; font-size: 24px; }
  .bg-num { gap: 12px; }
  .bg-sum { grid-template-columns: 1fr; }
  .bg-next { min-width: 130px; }
}

/* compare table */
.compare { margin-top: 48px; }
.compare summary { cursor: pointer; font-weight: 700; color: var(--accent-text); display: inline-flex; gap: 10px; align-items: center; padding: 8px 0; list-style: none; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::before { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; background: var(--teal); color: var(--white); font-size: 18px; line-height: 1; }
.compare[open] summary::before { content: "−"; }
.table-scroll { overflow-x: auto; margin-top: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
th, td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: start; color: var(--text-2); font-weight: 500; }
thead th { font-size: 14px; background: var(--mist); color: var(--text); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; font-weight: 700; color: var(--text); }
td.choose { color: var(--accent-text); font-weight: 700; font-size: 13px; }
td.yes { color: var(--accent-text); font-weight: 700; }

/* add-ons */
.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.addon { display: flex; gap: 16px; padding: 22px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.addon h3 { font-size: 17px; }
.addon p { font-size: 14px; color: var(--text-2); margin: 6px 0 10px; }
.addon > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
/* add-ons are requested, not priced: each card has a toggle; the bar below links to the request form */
.addon { transition: border-color .15s ease, box-shadow .15s ease; }
.addon.on { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
[data-theme="dark"] .addon.on { border-color: var(--turq); box-shadow: inset 0 0 0 1px var(--turq); }
.addon-pick {
  margin-top: auto; align-self: flex-start; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--accent-text); color: var(--accent-text); background: transparent;
  transition: background-color .15s ease, color .15s ease;
}
.addon-pick:hover { background: var(--mist); }
.addon-pick .ap-on { display: none; }
.addon-pick[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.addon-pick[aria-pressed="true"] .ap-add { display: none; }
.addon-pick[aria-pressed="true"] .ap-on { display: inline; }
.addon-bar { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 18px; border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); }
.addon-bar p { font-weight: 600; color: var(--text); }
.addon-bar .btn { min-height: 44px; padding: 10px 20px; }
.addon-bar.empty .btn { opacity: .55; }
/* add-on choices in the request form */
.addons-field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.addons-field legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.addons-field legend .opt { font-weight: 500; color: var(--text-2); }
.addon-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.addons-field .check.mini { display: flex; margin: 0; font-size: 14px; font-weight: 500; align-items: center; gap: 10px; line-height: 1.3; }
.check.mini input { width: 20px; height: 20px; border-radius: 5px; }
.check.mini input:checked { background-size: 13px; }
.addons-hint { margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
 (max-width: 420px) { .addon-checks { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .addons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .addons { grid-template-columns: 1fr; } }

/* offer */
.offer-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.offer-grid h2 { font-size: clamp(36px, 5.4vw, 62px); margin: 16px 0 22px; }
.offer-grid h2 em { font-style: normal; color: var(--yellow); }
.offer-grid .big { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-brand); max-width: 40ch; }
.pill { display: inline-block; margin: 30px 0 14px; padding: 12px 22px; background: var(--yellow); color: var(--ink); font-weight: 700; border-radius: 999px; }
.offer-grid .fine { font-size: 14px; color: var(--on-brand-2); max-width: 46ch; margin-bottom: 28px; }
.offer-cards { position: relative; height: clamp(320px, 42vw, 500px); }
.offer-cards img { position: absolute; width: 44%; filter: drop-shadow(0 22px 34px rgba(0,30,30,.35)); }
.offer-cards img:nth-child(1) { inset-inline-start: 0; top: 18%; transform: rotate(-6deg); }
.offer-cards img:nth-child(2) { inset-inline-start: 28%; top: 0; z-index: 2; }
.offer-cards img:nth-child(3) { inset-inline-start: 56%; top: 14%; transform: rotate(6deg); }
html[dir="rtl"] .offer-cards img:nth-child(1) { transform: rotate(6deg); }
html[dir="rtl"] .offer-cards img:nth-child(3) { transform: rotate(-6deg); }
.section.dark .corner-steps { inset-inline-start: 0; bottom: 0; }
@media (max-width: 860px) { .offer-grid { grid-template-columns: 1fr; } }

/* policies accordion */
.policy-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.policy-grid .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 28px); display: block; }
.acc-tools { margin-top: 26px; }
.link-btn { font: inherit; font-weight: 700; font-size: 14px; color: var(--accent-text); background: none; border: 2px solid currentColor; border-radius: 999px; padding: 9px 18px; cursor: pointer; min-height: 42px; }
.link-btn:hover { background: var(--surface); }
.acc { border-top: 2px solid var(--text); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3 { font-size: inherit; }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: start;
  background: none; border: 0; font: inherit; font-weight: 700; font-size: clamp(17px, 1.8vw, 20px); color: var(--text);
  padding: 20px 0; cursor: pointer; min-height: 48px;
}
.acc-btn .t { display: flex; align-items: center; gap: 14px; }
.acc-btn .k { flex: none; min-width: 26px; font-size: 13px; color: var(--accent-text); letter-spacing: .08em; }
.acc-btn .plus { flex: none; width: 32px; height: 32px; display: grid; place-items: center; background: var(--teal); color: var(--white); font-size: 20px; transition: transform .2s ease, background-color .2s; }
.acc-btn[aria-expanded="true"] .plus { transform: rotate(45deg); background: var(--coral); color: var(--ink); }
.acc-panel { padding: 0 0 24px; padding-inline-start: 40px; color: var(--text-2); font-size: 15.5px; max-width: 70ch; }
.acc-panel p + p { margin-top: 10px; }
.acc-panel[hidden] { display: none; }
.small-print { font-size: 14px; color: var(--text-2); }
@media (max-width: 860px) { .policy-grid { grid-template-columns: 1fr; } .policy-grid .sec-head { position: static; } .acc-panel { padding-inline-start: 0; } }

/* ---------- portfolio carousel ---------- */
.folio-head { display: flex; align-items: center; gap: 10px; }
.folio-nav { display: flex; gap: 10px; }
.folio-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--accent-text); border: 2px solid var(--line); transition: background-color .15s, border-color .15s, opacity .15s, transform .15s;
}
.folio-btn:hover:not(:disabled) { border-color: var(--teal); background: var(--teal); color: var(--white); transform: translateY(-2px); }
.folio-btn:disabled { opacity: .35; cursor: default; }
.folio-btn svg { width: 22px; height: 22px; }
.folio-btn .back, html[dir="rtl"] .folio-btn svg { transform: scaleX(-1); }
html[dir="rtl"] .folio-btn .back { transform: none; }
.folio {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 3); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 6px;
  overscroll-behavior-x: contain;
}
.folio::-webkit-scrollbar { display: none; }
.folio figure { scroll-snap-align: start; margin: 0; position: relative; border: 2px dashed var(--dash); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; aspect-ratio: 4 / 5; overflow: hidden; }
.folio figure.has-img { border-style: solid; border-color: var(--line); padding: 0; }
.folio figure.has-img img { width: 100%; height: 100%; object-fit: cover; }
.folio figure.has-img figcaption { position: absolute; bottom: 10px; inset-inline-start: 10px; background: var(--surface); color: var(--text); padding: 4px 10px; border-radius: 6px; margin: 0; }
.folio figure:first-child::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 22px; height: 22px; background: var(--yellow); z-index: 1; }
.folio .ph-img { font-size: 13px; color: var(--accent-text); font-weight: 700; }
.folio svg { width: 34px; height: 34px; color: var(--accent-text); margin-bottom: 10px; }
.folio figcaption { font-size: 14px; color: var(--text-2); margin-top: 6px; font-weight: 600; }
.folio-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.folio-dots i { width: 8px; height: 8px; background: var(--line); transition: background-color .2s, width .2s; }
.folio-dots i.on { background: var(--teal); width: 22px; }
@media (max-width: 900px) { .folio { grid-auto-columns: calc((100% - 14px) / 2); } }
@media (max-width: 560px) { .folio { grid-auto-columns: 82%; } }

/* ---------- contact ---------- */
.contact-page { min-height: calc(100vh - var(--header-h)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 72px); align-items: start; position: relative; z-index: 1; }
.contact-grid h1, .contact-grid h2 { font-size: clamp(36px, 5.4vw, 60px); margin: 16px 0 18px; }
.contact-grid .big { color: var(--on-brand); font-size: 18px; max-width: 40ch; }
.quick { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.quick .btn-ghost { color: var(--white); }
.btn-wa { background: #FFFFFF; color: var(--teal); }
.details { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.2); }
.details li { display: grid; grid-template-columns: 40px 110px 1fr; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.details .di { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.details .di svg { width: 20px; height: 20px; }
.details .k { font-size: 14px; color: var(--on-brand-2); }
.details a, .details span.v { color: var(--white); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.details a:hover { text-decoration: underline; }
.details .ph { color: var(--yellow); }
html[dir="rtl"] .details [dir="ltr"] { text-align: right; }
.form-card { background: var(--surface); color: var(--text); border-radius: 18px; padding: clamp(22px, 3.4vw, 36px); box-shadow: 0 30px 60px rgba(0,30,30,.3); position: relative; }
.form-card::before { content: ""; position: absolute; top: -14px; inset-inline-end: 28px; width: 28px; height: 28px; background: var(--yellow); box-shadow: 28px 0 0 var(--coral); }
html[dir="rtl"] .form-card::before { box-shadow: -28px 0 0 var(--coral); }
.form-card h2 { font-size: 24px; margin: 0 0 6px; }
.form-card .hint { font-size: 14px; color: var(--text-2); margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field label .opt { font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--field); border-radius: 10px; background: var(--surface); color: var(--text);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(61,188,168,.35); }
.field.bad input, .field.bad textarea { border-color: var(--coral); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.plan-box { margin-bottom: 16px; padding: 14px 16px; border-radius: 12px; background: var(--mist); border: 1.5px dashed var(--turq); }
.plan-box[hidden] { display: none; }
.plan-box strong { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 8px; }
.plan-box strong a { color: var(--accent-text); font-size: 13px; }
.plan-box ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 14px; color: var(--text-2); }
.plan-box li b { color: var(--text); }
.terms-check { margin: 6px 0 18px; font-size: 14.5px; }
.terms-check a { color: var(--accent-text); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; background: rgba(255, 200, 87, .35); padding: 0 3px; border-radius: 3px; }
[data-theme="dark"] .terms-check a { color: var(--yellow); background: rgba(255, 200, 87, .14); }
.terms-check.bad input { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,111,97,.3); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; }
.form-status { margin-top: 12px; font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: var(--accent-text); font-weight: 700; }
.form-status.err { color: var(--ph); font-weight: 700; }
#contact .corner-steps { inset-inline-end: 0; bottom: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .details li { grid-template-columns: 40px 1fr; } .details li > :last-child { grid-column: 2; } .details .k { font-size: 13px; } .plan-box ul { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--footer); color: #C9D3D3; padding-block: 36px; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.site-footer .brand img { width: 36px; }
.site-footer a { color: #C9D3D3; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.foot-links a { text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--white); text-decoration: underline; }

/* floating WhatsApp */
.wa-float {
  position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal); color: var(--white); box-shadow: 0 10px 26px rgba(0,30,30,.35);
  border: 3px solid var(--white); transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- motion (parallax + tilt, driven by js/motion.js) ---------- */
[data-depth] { will-change: translate; }
.pkg.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, opacity .6s ease; }
.motion-btn {
  position: fixed; bottom: 26px; inset-inline-start: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--text); background: var(--surface);
  border: 2px solid var(--teal); border-radius: 999px; padding: 9px 16px 9px 12px; min-height: 44px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,30,30,.22);
}
.motion-btn[hidden] { display: none; }
.motion-dots { display: grid; grid-template-columns: 8px 8px; gap: 3px; }
.motion-dots i { width: 8px; height: 8px; background: var(--turq); animation: ppnudge 1.6s ease-in-out infinite; }
.motion-dots i + i { background: var(--yellow); animation-delay: .3s; }
@keyframes ppnudge { 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { [data-depth] { translate: none !important; } .pkg.in { transform: none; } }
/* corner steps bleed a little further so motion never opens a gap at the edge */
.hero .corner-steps, #contact .corner-steps, .section.dark .corner-steps, .page-hero .corner-steps { margin: -10px; }

/* =====================================================================
   PHONES AND TABLETS ONLY (900px wide and below).
   Everything here is inside a max-width query, so computers are unchanged.
   ===================================================================== */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  /* header: logo on one side, three equal round buttons on the other */
  .nav { gap: 10px; }
  .brand img { width: 40px; }
  .mainnav { position: absolute; inset-inline: 0; top: var(--header-h); order: 0; }
  .menu { position: static; top: auto; box-shadow: 0 18px 30px rgba(0,0,0,.25); max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); }
  .nav-actions { margin-inline-start: auto; gap: 8px; }
  .theme-btn, .lang-btn, .burger { height: 40px; min-height: 40px; }
  .lang-btn { display: inline-flex; align-items: center; padding: 0 14px; }
  .burger {
    width: 40px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border: 2px solid rgba(255,255,255,.5); border-radius: 999px;
  }
  .burger span { width: 16px; height: 2.5px; margin: 0; border-radius: 2px; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .burger[aria-expanded="true"] { border-color: var(--white); }
  /* the iPhone "Enable motion" bubble covered the page: not used on phones */
  .motion-btn { display: none !important; }
}
@media (max-width: 600px) {
  /* calmer spacing */
  .section { padding-block: 56px; }
  .hero .wrap { padding-block: 40px 56px; gap: 28px; }
  .hero-mark { width: 64px; margin-bottom: 24px; }
  .page-hero .wrap { padding-block: 40px 56px; }
  .sec-head { margin-bottom: 28px; gap: 14px; }
  .sec-head .sub { font-size: 16px; }
  /* page shortcuts: one neat row you can swipe, instead of three wrapped rows */
  .jump { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 4px; scrollbar-width: none; }
  .jump::-webkit-scrollbar { display: none; }
  .jump a { white-space: nowrap; }
  /* main buttons full width and stacked */
  .hero-ctas, .quick { flex-direction: column; }
  .hero-ctas .btn, .quick .btn, .offer-grid .btn, .pkg-price .btn { width: 100%; }
  .pill { display: block; text-align: center; }
  /* package cards on phones: a swipeable row of compact cards (dots below are added by js/main.js) */
  .packages, .packages.two {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86%; gap: 12px; align-items: stretch; justify-content: start;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 6px; scroll-padding-inline: var(--gutter);
  }
  .packages::-webkit-scrollbar { display: none; }
  .packages .pkg { scroll-snap-align: start; }
  .pkg.featured { border-width: 1.5px; }
  .pkg-top { min-height: 0; padding: 12px 14px 11px; }
  .pkg-top .num { font-size: 10.5px; }
  .pkg-top h3 { font-size: 18px; margin-top: 3px; }
  .pkg-top .ar-name { font-size: 13.5px; margin-top: 0; }
  .pkg-top p { font-size: 12px; line-height: 1.4; margin-top: 4px; }
  .pkg-top::after { width: 10px; height: 10px; }
  .pkg-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 12px 8px; }
  .pkg-list li { flex-direction: column-reverse; align-items: flex-start; justify-content: flex-end; gap: 0; padding: 6px 7px; border: 1px solid var(--line); border-radius: 9px; font-size: 10.5px; line-height: 1.25; }
  .pkg-list li:last-child { border-bottom: 1px solid var(--line); }
  .pkg-list li small { display: none; }
  .pkg-list b { font-size: 16px; line-height: 1.25; text-align: start; }
  .pkg-list b span { font-size: 10px; margin-inline-start: 0; margin-inline-end: 2px; }
  .pkg-incl { margin: 0 12px 10px; padding: 0; background: none; display: flex; flex-wrap: wrap; gap: 5px; }
  .pkg-incl li { font-size: 11px; font-weight: 600; gap: 5px; align-items: center; padding: 4px 8px 4px 5px; border-radius: 999px; background: var(--mist); }
  html[dir="rtl"] .pkg-incl li { padding: 4px 5px 4px 8px; }
  .pkg-incl li::before { width: 13px; height: 13px; margin-top: 0; border-radius: 50%; background-size: 9px; }
  .pkg-incl li small { display: inline; font-size: 10px; font-weight: 500; }
  .pkg-incl li small::before { content: " · "; }
  .pkg-incl li span { display: inline; }
  .pkg-price { padding: 10px 12px 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; }
  .pkg-price small { display: none; }
  .pkg-price .amount { font-size: 21px; margin: 0; line-height: 1.15; white-space: nowrap; }
  .pkg-price .per { grid-column: 1; grid-row: 2; font-size: 10.5px; line-height: 1.3; }
  .pkg-price .btn { grid-column: 2; grid-row: 1 / span 2; width: auto; margin-top: 0; min-height: 40px; padding: 8px 13px; font-size: 13px; white-space: nowrap; }
  .pkg-incl li { font-size: 10.5px; padding: 3px 7px 3px 4px; }
  html[dir="rtl"] .pkg-incl li { padding: 3px 4px 3px 7px; }
  .sec-head > div { flex: 1 1 100%; }
  .pkg-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .pkg-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .25s ease, background-color .25s ease; }
  .pkg-dots i.on { width: 20px; background: var(--teal); }
  [data-theme="dark"] .pkg-dots i.on { background: var(--turq); }
  .compare { margin-top: 32px; }
  /* policies */
  .acc-btn { font-size: 16px; padding: 16px 0; gap: 12px; }
  .acc-btn .t { gap: 10px; }
  .acc-btn .plus { width: 28px; height: 28px; font-size: 18px; }
  .acc-panel { font-size: 15px; }
  /* portfolio heading: title on top, label and arrows on one line below */
  .folio-head { width: 100%; justify-content: space-between; }
  /* footer: centred and tidy */
  .site-footer .wrap { flex-direction: column; text-align: center; gap: 14px; }
  .foot-links { justify-content: center; gap: 8px 16px; }
  /* floating WhatsApp a little smaller */
  .wa-float { width: 52px; height: 52px; bottom: 14px; inset-inline-end: 14px; }
  .wa-float svg { width: 25px; height: 25px; }
}
