/*
Theme Name: Ròya International
Theme URI: https://royainternational.com
Author: Ròya International
Description: Custom bilingual (EN/AR) theme for Ròya International — MEA's leading hospitality consultancy. All pages self-contained; activate and go.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: Proprietary
Text Domain: roya
*/

:root {
  /* Brand palette — Roya identity guidelines 01.03.
     Two colours only: Roya orange PMS 165 C and Roya black. */
  --accent: #f58220;                 /* Roya orange, PMS 165 C, RGB 245/130/32 */
  --accent-rgb: 245,130,32;          /* channel triple for alpha usages */
  --accent-ink: #b35309;             /* darker shade of the brand orange; AA on light backgrounds */
  --accent-hover: #d96c12;
  --accent-light: #fef4ec;
  --accent-glow: rgba(var(--accent-rgb),0.35);

  --black: #000000;                  /* Roya black, PMS Black C */
  --bg-dark: #0d0d0d;
  --bg-darker: #000000;
  --bg-main: #fafafa;
  --bg-white: #ffffff;
  --bg-cream: #f2f2f2;

  --text-main: #000000;              /* house style: body text default black */
  --text-muted: #5a5a5a;
  --text-light: #9a9a9a;
  --text-on-dark: #d6d6d6;
  --text-on-dark-strong: #f5f5f5;

  --border: #e2e2e2;
  --border-dark: #232323;
  --color-error: #c0392b;

  --maxw: 1240px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 12px 40px rgba(0,0,0,0.10);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.16);
  --ease: cubic-bezier(0.16,1,0.3,1);

  /* Century Gothic / Barmeno / Myriad Pro are licensed desktop faces.
     Jost and Source Sans 3 are the closest freely-licensable web equivalents. */
  --font-display: 'Jost', 'Century Gothic', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
}
[dir="rtl"] {
  --font-display: 'Noto Kufi Arabic', 'Jost', system-ui, sans-serif;
  --font-body: 'Noto Kufi Arabic', 'Source Sans 3', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { letter-spacing: -0.03em; font-weight: 700; color: var(--text-main); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.serif { font-family: var(--font-display); font-weight: 600; }
.accent-txt { color: var(--accent); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent);
  z-index: 2000; transition: width 0.1s linear;
}


/* ===== PRELOADER ===== */
.preloader {
  position: fixed; inset: 0; z-index: 5000; background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.pre-logo {
  opacity: 0; animation: preIn 0.8s var(--ease) forwards;
}
.pre-logo .roya-logo { width: 150px; }
.pre-bar { width: 180px; height: 2px; background: var(--border-dark); margin-top: 22px; overflow: hidden; border-radius: 2px; }
.pre-bar i { display: block; height: 100%; width: 0; background: var(--accent); animation: preLoad 1.3s ease forwards; }
@keyframes preIn { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(14px); } }
@keyframes preLoad { to { width: 100%; } }

/* ===== BUTTONS ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 15px 30px; border-radius: 100px; font-weight: 600; font-size: 14px;
  transition: all 0.35s var(--ease); cursor: pointer; border: 1px solid transparent;
  overflow: hidden; white-space: nowrap; font-family: inherit;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
[dir="rtl"] .btn svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -8px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 18px 40px -10px var(--accent-glow); }
.btn-secondary { background: var(--bg-white); color: var(--text-main); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--text-main); color: #fff; }
.btn-dark:hover { background: #1a1a1a; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.2); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.4); }
.btn-sm { padding: 9px 18px; font-size: 12.5px; gap: 7px; }
.btn-sm svg { width: 14px; height: 14px; }

/* ===== BADGE ===== */
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px;
  background: var(--accent-light); color: var(--text-main); border-radius: 100px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 22px; border: 1px solid rgba(var(--accent-rgb),0.15);
}
[dir="rtl"] .badge { letter-spacing: 0; }
.badge::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.badge.light { background: rgba(255,255,255,0.08); color: var(--accent); border-color: rgba(255,255,255,0.14); }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 var(--accent-glow);} 50%{ box-shadow: 0 0 0 6px transparent;} }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 11px 0; transition: all 0.4s var(--ease);
  background: transparent;
}
body.admin-bar .site-header { top: 32px; }
.site-header.scrolled {
  padding: 6px 0; background: rgba(255,255,255,0.8);
  backdrop-filter: blur(18px) saturate(180%); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* ===== LOGO =====
   Drawn artwork per identity guidelines 01.01 — never typeset.
   One asset, brand orange on transparent, used on every surface. The artwork is
   trimmed to the ink (aspect ~1.67:1) so it reads at full size inside a slim
   header; sized by width, since height-based sizing makes the wordmark illegible.
   Header width is matched to the wordmark it replaced, keeping the original bar
   height. */
.logo { display: block; line-height: 0; flex-shrink: 0; }
.roya-logo { display: block; width: 70px; height: auto; transition: width 0.4s var(--ease); }
.site-header.scrolled .roya-logo { width: 60px; }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav li { position: relative; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center;
  color: #fff; font-family: var(--font-display); font-size: 15px; font-weight: 600;
  letter-spacing: 0.005em; padding: 7px 13px; white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0,0,0,0.45); /* holds up over the hero photography */
  transition: color 0.25s var(--ease);
}
[dir="rtl"] .main-nav a { letter-spacing: 0; }
.main-nav > ul > li > a::after { content:""; position: absolute; left: 13px; right: 13px; bottom: 1px; height: 2.5px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform 0.3s var(--ease); }
.main-nav a:hover { color: var(--accent); }
.main-nav > ul > li:hover > a::after, .main-nav > ul > li > a.current::after { transform: scaleX(1); }
/* On the white scrolled bar the drop shadow is dead weight and black reads strongest. */
.site-header.scrolled .main-nav a { color: var(--text-main); text-shadow: none; }
.site-header.scrolled .main-nav a:hover { color: var(--accent-ink); }
.site-header.scrolled .hamburger span { background: var(--text-main); }

/* dropdowns */
.main-nav .sub-menu {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 250px; z-index: 10;
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; display: block;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all 0.3s var(--ease);
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(4px); }
.main-nav .sub-menu li { display: block; }
/* The panel sits on white, so it drops the glow .main-nav a carries for legibility
   over the hero photograph - that shadow only muddies dark text. */
.main-nav .sub-menu a {
  display: block; padding: 10px 14px; border-radius: 9px; color: var(--text-main) !important;
  font-size: 14.5px; font-weight: 600; white-space: nowrap; text-shadow: none;
}
.main-nav .sub-menu a:hover { background: var(--accent-light); color: var(--accent-ink) !important; }
.nav-caret { width: 12px; height: 12px; margin-inline-start: 5px; vertical-align: -1px; }

.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 100px; backdrop-filter: blur(6px);
}
.lang-switch a {
  padding: 4px 11px; border-radius: 100px; font-size: 11.5px; font-weight: 700; line-height: 1.5;
  color: rgba(255,255,255,0.75); letter-spacing: 0.04em; transition: all 0.3s var(--ease);
}
.lang-switch a.active { background: var(--accent); color: #fff; }
.lang-switch a:not(.active):hover { color: #fff; }
.site-header.scrolled .lang-switch { border-color: var(--border); }
.site-header.scrolled .lang-switch a { color: var(--text-muted); }
.site-header.scrolled .lang-switch a.active { color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s var(--ease); }
.hamburger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity: 0; }
.hamburger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100;
  background: linear-gradient(160deg, #141414 0%, var(--bg-darker) 100%);
  display: flex; flex-direction: column; padding: 20px 26px 34px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease), transform 0.45s var(--ease);
}
.mobile-menu::before { content:""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at 88% 10%, rgba(var(--accent-rgb),0.18), transparent 55%),
              radial-gradient(380px circle at 0% 100%, rgba(var(--accent-rgb),0.10), transparent 50%); }
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }

.mm-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; }
.mm-top .logo { padding: 6px 0; }
.mm-top .roya-logo { width: 84px; }
.mm-close {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s var(--ease);
}
.mm-close:hover { background: rgba(var(--accent-rgb),0.16); border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }
.mm-close svg { width: 20px; height: 20px; }

.mm-links { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; padding: 20px 0; }
.mm-links .mm-item > a {
  display: flex; align-items: center; gap: 18px; padding: 12px 2px; color: var(--text-on-dark-strong);
  font-family: var(--font-display); font-size: clamp(22px, 6vw, 30px); font-weight: 700; letter-spacing: -0.03em;
  border-bottom: 1px solid rgba(255,255,255,0.08); transition: color 0.25s;
}
[dir="rtl"] .mm-links .mm-item > a { letter-spacing: 0; }
.mm-links .mm-item { opacity: 0; transform: translateX(-26px); }
[dir="rtl"] .mm-links .mm-item { transform: translateX(26px); }
.mm-links .mm-idx { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--accent); width: 24px; letter-spacing: 0.1em; }
.mm-links .mm-arrow { margin-inline-start: auto; width: 24px; height: 24px; color: var(--accent); opacity: 0; transform: translateX(-10px); transition: all 0.3s var(--ease); }
.mm-links .mm-item > a:active, .mm-links .mm-item > a:hover { color: var(--accent); }
.mm-links .mm-item > a:active .mm-arrow, .mm-links .mm-item > a:hover .mm-arrow { opacity: 1; transform: translateX(0); }
.mobile-menu.open .mm-links .mm-item { animation: mmIn 0.55s var(--ease) forwards; }
.mobile-menu.open .mm-links .mm-item:nth-child(1){ animation-delay: .08s; }
.mobile-menu.open .mm-links .mm-item:nth-child(2){ animation-delay: .13s; }
.mobile-menu.open .mm-links .mm-item:nth-child(3){ animation-delay: .18s; }
.mobile-menu.open .mm-links .mm-item:nth-child(4){ animation-delay: .23s; }
.mobile-menu.open .mm-links .mm-item:nth-child(5){ animation-delay: .28s; }
.mobile-menu.open .mm-links .mm-item:nth-child(6){ animation-delay: .33s; }
.mobile-menu.open .mm-links .mm-item:nth-child(7){ animation-delay: .38s; }
.mobile-menu.open .mm-links .mm-item:nth-child(8){ animation-delay: .43s; }
@keyframes mmIn { to { opacity: 1; transform: none; } }
.mm-sub { list-style: none; padding: 8px 0 10px 42px; display: none; }
[dir="rtl"] .mm-sub { padding: 8px 42px 10px 0; }
.mm-item.open .mm-sub { display: block; }
.mm-sub a { display: block; padding: 8px 0; color: var(--text-on-dark); font-size: 15.5px; font-weight: 500; }
.mm-sub a:hover { color: var(--accent); }
.mm-toggle { transition: transform 0.3s var(--ease); }
.mm-item.open .mm-toggle { transform: rotate(180deg); }

.mm-foot { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; opacity: 0; transform: translateY(18px); }
.mobile-menu.open .mm-foot { animation: mmIn 0.55s var(--ease) 0.46s forwards; }
.mm-foot .btn { width: 100%; }
.mm-lang { display: flex; }
.mm-lang .lang-switch { border-color: rgba(255,255,255,0.2); }
.mm-contact { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--text-light); }
.mm-contact a { color: var(--text-on-dark); }
.mm-social { display: flex; gap: 12px; }
.mm-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; color: var(--text-on-dark); transition: all 0.25s var(--ease); }
.mm-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.mm-social svg { width: 17px; height: 17px; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 80px; overflow: hidden; background: var(--bg-dark); color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .slide-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.1); transition: opacity 1.2s ease, transform 7s ease;
}
.hero-bg .slide-bg.active { opacity: 1; }
.hero.loaded .hero-bg .slide-bg.active { transform: scale(1.18); }
/* The photography should read as photography. The scrim is now only as dark as
   the headline needs behind it and clears almost entirely across the image. */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.34) 45%, rgba(0,0,0,0.04) 100%);
}
[dir="rtl"] .hero-overlay { background: linear-gradient(-110deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.34) 45%, rgba(0,0,0,0.04) 100%); }
.hero-mesh {
  position: absolute; inset: 0; z-index: 1; opacity: 0.28;
  background:
    radial-gradient(500px circle at 15% 30%, rgba(var(--accent-rgb),0.18), transparent 45%),
    radial-gradient(600px circle at 85% 70%, rgba(var(--accent-rgb),0.12), transparent 45%);
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }

.slide { display: none; }
.slide.active { display: block; }
.hero.loaded .slide.active .anim { animation: fadeUp 0.9s var(--ease) both; }
.slide.active .anim:nth-child(1){ animation-delay: .05s; }
.slide.active .anim:nth-child(2){ animation-delay: .15s; }
.slide.active .anim:nth-child(3){ animation-delay: .25s; }
.slide.active .anim:nth-child(4){ animation-delay: .35s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-content h1 { font-family: var(--font-display); font-size: clamp(38px, 5.4vw, 66px); line-height: 1.06; letter-spacing: -0.04em; margin-bottom: 24px; color: #fff; font-weight: 700; }
[dir="rtl"] .hero-content h1 { letter-spacing: 0; line-height: 1.3; }
.hero-content h1 em { font-style: normal; font-weight: 800; color: var(--accent); }
.hero-content > p { color: var(--text-on-dark); font-size: 18px; max-width: 540px; margin-bottom: 34px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Tinted dark rather than light: the card carries white and orange text, and
   now that the scrim behind it is lighter the photograph can no longer be
   relied on to supply a dark ground. */
.hero-card {
  background: rgba(0,0,0,0.38); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg); padding: 38px; backdrop-filter: blur(20px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}
.hero-card .kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
[dir="rtl"] .hero-card .kicker { letter-spacing: 0; }
.hero-card h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 12px; color: #fff; font-weight: 600; }
.hero-card p { color: var(--text-on-dark); font-size: 14px; margin-bottom: 26px; }
.hero-stats-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); }
.stat-mini-num { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--accent); }
.stat-mini-lbl { font-size: 12px; color: var(--text-light); font-weight: 500; }

.slider-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 48px; }
.slider-dots { display: flex; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); cursor: pointer; transition: all 0.35s var(--ease); border: none; padding: 0; }
.dot.active { background: var(--accent); width: 34px; border-radius: 100px; }
.slider-arrows { display: flex; gap: 12px; }
.slider-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s var(--ease); backdrop-filter: blur(8px);
}
.slider-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb),0.12); transform: scale(1.06); }
.slider-btn svg { width: 18px; height: 18px; }
[dir="rtl"] .slider-btn svg { transform: scaleX(-1); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative; min-height: 62vh; display: flex; align-items: center;
  padding: 170px 0 90px; overflow: hidden; background: var(--bg-dark); color: #fff;
}
.page-hero .hero-bg-img { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); animation: heroZoom 9s ease forwards; }
@keyframes heroZoom { to { transform: scale(1.14); } }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 60px); line-height: 1.08; letter-spacing: -0.04em; color: #fff; max-width: 800px; }
[dir="rtl"] .page-hero h1 { letter-spacing: 0; line-height: 1.3; }
.page-hero h1 em { font-style: normal; font-weight: 800; color: var(--accent); }
.page-hero .lead { color: var(--text-on-dark); font-size: 18px; max-width: 640px; margin-top: 22px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.breadcrumbs a { color: var(--text-on-dark); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--accent); }

/* ===== MARQUEE / TRUST ===== */
.trust { background: var(--bg-dark); padding: 0 0 60px; overflow: hidden; }
.trust-label { text-align: center; color: var(--text-light); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 26px; }
[dir="rtl"] .trust-label { letter-spacing: 0; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; padding-inline-end: 64px; animation: scrollX 28s linear infinite; white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: rgba(255,255,255,0.28); transition: color 0.3s; }
.marquee-track span:hover { color: rgba(255,255,255,0.6); }
@keyframes scrollX { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: scrollXr; }
@keyframes scrollXr { to { transform: translateX(50%); } }

/* ===== SECTION SHARED ===== */
section { padding: 110px 0; position: relative; }
.section-head { max-width: 660px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; }
[dir="rtl"] .section-head h2 { letter-spacing: 0; line-height: 1.35; }
.section-head h2 em { font-style: normal; font-weight: 800; color: var(--accent); }
.section-head p { color: var(--text-muted); font-size: 17px; margin-top: 16px; }
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark p { color: var(--text-on-dark); }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ===== SERVICES ===== */
.services { background: var(--bg-main); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  position: relative; background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 36px; transition: all 0.45s var(--ease); overflow: hidden;
}
.service-card::before {
  content:""; position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 0.45s ease;
  background: linear-gradient(160deg, #fff 0%, var(--accent-light) 100%);
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover { transform: translateY(-8px); border-color: rgba(var(--accent-rgb),0.4); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 1; }
.service-num { position: absolute; top: 28px; inset-inline-end: 34px; font-family: var(--font-display); font-size: 54px; font-weight: 600; color: var(--border); z-index: 1; transition: color 0.4s; }
.service-card:hover .service-num { color: rgba(var(--accent-rgb),0.22); }
.service-icon {
  width: 60px; height: 60px; background: var(--accent); color: #fff; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 26px;
  box-shadow: 0 12px 26px -8px var(--accent-glow); transition: transform 0.4s var(--ease);
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.05); }
.service-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; }
.service-card h3 { font-family: var(--font-display); font-size: 23px; margin-bottom: 12px; font-weight: 600; }
.service-card > p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 24px; }
.service-card ul { list-style: none; display: grid; gap: 12px; border-top: 1px solid var(--border); padding-top: 22px; }
.service-card ul li { font-size: 13.5px; color: var(--text-main); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.service-card ul li svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.service-card .card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13.5px; font-weight: 700; color: var(--accent-ink); }
.service-card .card-link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.service-card:hover .card-link svg { transform: translateX(4px); }
[dir="rtl"] .service-card .card-link svg { transform: scaleX(-1); }
[dir="rtl"] .service-card:hover .card-link svg { transform: scaleX(-1) translateX(4px); }

/* ===== ABOUT ===== */
.about { background: var(--bg-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-text h2 { font-family: var(--font-display); font-size: clamp(28px,3.6vw,42px); letter-spacing: -0.035em; margin-bottom: 20px; font-weight: 700; }
[dir="rtl"] .about-text h2 { letter-spacing: 0; line-height: 1.35; }
.about-text h2 em { font-style: normal; font-weight: 800; color: var(--accent); }
.about-text > p { color: var(--text-muted); font-size: 15.5px; margin-bottom: 18px; }
.about-feature-list { display: grid; gap: 14px; margin: 30px 0; }
.about-feature-item { display: flex; gap: 18px; padding: 20px; background: var(--bg-main); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.3s var(--ease); }
.about-feature-item:hover { border-color: var(--accent); transform: translateX(6px); box-shadow: var(--shadow-sm); }
[dir="rtl"] .about-feature-item:hover { transform: translateX(-6px); }
.aff-icon { width: 44px; height: 44px; flex-shrink: 0; background: var(--accent-light); color: var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.aff-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.about-feature-item h4 { font-size: 16px; margin-bottom: 3px; }
.about-feature-item p { font-size: 13.5px; color: var(--text-muted); margin: 0; }
.about-visual { position: relative; }
.about-visual img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-float {
  position: absolute; bottom: -26px; inset-inline-start: -26px; background: var(--bg-dark); color: #fff;
  padding: 24px 28px; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 220px;
}
.about-float .big { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--accent); line-height: 1; }
.about-float .sm { font-size: 13px; color: var(--text-on-dark); margin-top: 6px; }
.about-badge-float {
  position: absolute; top: -20px; inset-inline-end: -18px; background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 100px; padding: 10px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; animation: floaty 4s ease-in-out infinite;
}
.about-badge-float svg { width: 18px; height: 18px; color: var(--accent); }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }

/* ===== STATS ===== */
.stats-bar { background: var(--bg-dark); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.stats-bar::before { content:""; position: absolute; inset: 0; background: radial-gradient(700px circle at 80% 20%, rgba(var(--accent-rgb),0.12), transparent 50%); }
.stats-line { position: absolute; top: 40px; left: 32px; right: 32px; height: 2px; border-radius: 2px; background: var(--accent); }
.stats-line.reveal { opacity: 0.7; transform: scaleX(0); transform-origin: left center; transition: transform 1.4s var(--ease) 0.1s; }
[dir="rtl"] .stats-line.reveal { transform-origin: right center; }
.stats-line.reveal.in { transform: scaleX(1); }
.stats-line::after { content:""; position: absolute; top: 50%; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); transform: translate(-50%,-50%); box-shadow: 0 0 0 6px rgba(var(--accent-rgb),0.18); opacity: 0; }
.stats-line.reveal.in::after { animation: travelDot 2.4s var(--ease) 0.35s forwards; }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stats-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat-item { border-inline-start: 2px solid var(--border-dark); padding-inline-start: 26px; }
.stat-item .num { font-family: var(--font-display); font-size: clamp(38px,4vw,52px); font-weight: 600; color: #fff; line-height: 1; }
.stat-item .num .plus { color: var(--accent); }
.stat-item .lbl { font-size: 13.5px; color: var(--text-light); margin-top: 12px; font-weight: 500; }

/* ===== PROCESS ===== */
.process { background: var(--bg-cream); overflow: hidden; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-line { position: absolute; top: 36px; left: 12%; right: 12%; height: 3px; border-radius: 3px; background: var(--accent); }
.process-line.reveal { opacity: 0.85; transform: scaleX(0); transform-origin: left center; transition: transform 1.6s var(--ease) 0.15s; }
[dir="rtl"] .process-line.reveal { transform-origin: right center; }
.process-line.reveal.in { transform: scaleX(1); }
.process-line::after {
  content:""; position: absolute; top: 50%; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); transform: translate(-50%,-50%); box-shadow: 0 0 0 7px rgba(var(--accent-rgb),0.16); opacity: 0;
}
.process-line.reveal.in::after { animation: travelDot 2.4s var(--ease) 0.4s forwards; }
@keyframes travelDot { 0%{ left:0; opacity:1; } 88%{ opacity:1; } 100%{ left:100%; opacity:0; } }

.process-step { text-align: center; padding: 0 20px; position: relative; }
.process-num {
  width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: var(--bg-white);
  border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 27px; font-weight: 700; position: relative; z-index: 1;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.process-num::before {
  content:""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--accent);
  opacity: 0; pointer-events: none;
}
.process-step.reveal .process-num { opacity: 0; }
.process-step.reveal.in .process-num { opacity: 1; animation: numPop 0.85s var(--ease) backwards; }
.process-grid .process-step:nth-child(2) .process-num { animation-delay: 0.05s; }
.process-grid .process-step:nth-child(3) .process-num { animation-delay: 0.25s; }
.process-grid .process-step:nth-child(4) .process-num { animation-delay: 0.45s; }
.process-grid .process-step:nth-child(5) .process-num { animation-delay: 0.65s; }
@keyframes numPop {
  0%   { opacity: 0; transform: scale(0.2) translateY(16px); }
  55%  { opacity: 1; transform: scale(1.12) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.process-step.reveal.in .process-num::before { animation: ringPulse 2.6s ease-out 1s infinite; }
@keyframes ringPulse { 0%{ opacity: 0.55; transform: scale(1); } 100%{ opacity: 0; transform: scale(1.55); } }
.process-step:hover .process-num { background: var(--accent); color: #fff; transform: translateY(-6px) scale(1.08); box-shadow: 0 18px 36px -10px var(--accent-glow); }
.process-step h4 { font-size: 18px; margin-bottom: 10px; }
.process-step p { font-size: 13.5px; color: var(--text-muted); }

/* ===== PORTFOLIO ===== */
.portfolio { background: var(--bg-main); }
.portfolio-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.filter-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.filter-btn { padding: 9px 20px; border-radius: 100px; border: 1px solid var(--border); background: var(--bg-white); font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.3s var(--ease); font-family: inherit; }
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.p-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  height: 380px; transition: all 0.5s var(--ease); border: 1px solid var(--border);
}
.p-card.hide { display: none; }
.p-card .p-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.7s var(--ease); }
.p-card:hover .p-img { transform: scale(1.1); }
/* Only as much scrim as the caption needs; the photograph stays visible. */
.p-card::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.72) 100%); transition: opacity 0.4s; }
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.p-body { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 30px; transform: translateY(10px); transition: transform 0.45s var(--ease); }
.p-card:hover .p-body { transform: translateY(0); }
.p-body .tag { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); padding: 4px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
[dir="rtl"] .p-body .tag { letter-spacing: 0; }
.p-body h4 { font-family: var(--font-display); font-size: 22px; color: #fff; margin-bottom: 6px; font-weight: 600; }
.p-body p { font-size: 13.5px; color: var(--text-on-dark); opacity: 0; max-height: 0; transition: all 0.45s var(--ease); }
.p-card:hover .p-body p { opacity: 1; max-height: 60px; }
.p-arrow { position: absolute; top: 26px; inset-inline-end: 26px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.15); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0; transform: scale(0.7) rotate(-30deg); transition: all 0.4s var(--ease); }
.p-card:hover .p-arrow { opacity: 1; transform: scale(1) rotate(0); }
.p-arrow svg { width: 18px; height: 18px; }
[dir="rtl"] .p-arrow svg { transform: scaleX(-1); }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--bg-dark); color: #fff; overflow: hidden; position: relative; }
.testimonials::before { content:""; position: absolute; inset: 0; background: radial-gradient(600px circle at 20% 80%, rgba(var(--accent-rgb),0.1), transparent 50%); }
.testimonials .container { position: relative; }
.test-head h2 { color: #fff; }
.test-slider { position: relative; margin-top: 40px; }
.test-track { display: flex; transition: transform 0.6s var(--ease); }
.test-slide { min-width: 100%; padding: 0 4px; }
.test-quote-mark { font-family: var(--font-display); font-size: 90px; line-height: 0.6; color: var(--accent); opacity: 0.5; margin-bottom: 20px; }
.test-slide blockquote { font-family: var(--font-display); font-size: clamp(22px,2.8vw,34px); line-height: 1.4; font-weight: 500; color: var(--text-on-dark-strong); max-width: 900px; font-style: italic; }
[dir="rtl"] .test-slide blockquote { font-style: normal; line-height: 1.6; }
.test-author { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.test-avatar { width: 56px; height: 56px; border-radius: 50%; background-size: cover; background-position: center; border: 2px solid var(--accent); }
.test-author .name { font-weight: 700; font-size: 16px; color: #fff; }
.test-author .role { font-size: 13px; color: var(--text-light); }
.test-nav { display: flex; gap: 12px; margin-top: 40px; }

/* ===== TEAM ===== */
.team { background: var(--bg-white); }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.team-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card { text-align: center; }
.team-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; margin-bottom: 18px; background: var(--bg-cream); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s var(--ease); filter: grayscale(0.15); }
.team-card:hover .team-photo img { transform: scale(1.07); filter: grayscale(0); }
.team-photo::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(var(--accent-rgb),0.85) 100%); opacity: 0; transition: opacity 0.4s; }
.team-card:hover .team-photo::after { opacity: 1; }
.team-social { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 10px; opacity: 0; transform: translateY(12px); transition: all 0.4s var(--ease); }
.team-card:hover .team-social { opacity: 1; transform: translateY(0); }
.team-social a, .team-social button { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-main); transition: all 0.25s; }
.team-social a:hover, .team-social button:hover { background: #fff; transform: translateY(-3px); }
.team-social svg { width: 16px; height: 16px; }
.team-card h4 { font-size: 18px; margin-bottom: 2px; }
.team-card .role { font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.team-card.has-bio .team-photo { cursor: pointer; }

/* team bio modal */
.bio-modal {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden; transition: all 0.35s var(--ease);
}
.bio-modal.open { opacity: 1; visibility: visible; }
.bio-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.82); backdrop-filter: blur(8px); }
.bio-panel {
  position: relative; z-index: 1; width: 100%; max-width: 880px; max-height: 86vh; overflow-y: auto;
  background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 300px 1fr; transform: translateY(24px) scale(0.98);
  transition: transform 0.4s var(--ease);
}
.bio-modal.open .bio-panel { transform: none; }
.bio-photo { background: var(--bg-cream); }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.bio-content { padding: 40px 42px; }
.bio-content h3 { font-family: var(--font-display); font-size: 26px; margin-bottom: 4px; }
.bio-content .role { color: var(--accent-ink); font-weight: 700; font-size: 14px; margin-bottom: 20px; }
.bio-content .bio-text p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 14px; }
.bio-close {
  position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-white); border: 1px solid var(--border); color: var(--text-main);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s var(--ease);
}
.bio-close:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(90deg); }
.bio-close svg { width: 18px; height: 18px; }

/* ===== FAQ ===== */
.faq { background: var(--bg-cream); }
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; transition: box-shadow 0.3s, border-color 0.3s; }
.faq-item.open { border-color: var(--accent); box-shadow: var(--shadow-md); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; cursor: pointer; font-weight: 600; font-size: 17px; }
.faq-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; transition: all 0.3s var(--ease); }
.faq-item.open .faq-icon { background: var(--accent); color: #fff; transform: rotate(45deg); }
.faq-icon svg { width: 18px; height: 18px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding: 0 28px 26px; color: var(--text-muted); font-size: 15px; }

/* ===== CTA ===== */
.cta { background: var(--bg-darker); color: #fff; text-align: center; padding: 120px 0; position: relative; overflow: hidden; }
.cta::before { content:""; position: absolute; inset: 0; background: radial-gradient(600px circle at 50% 0%, rgba(var(--accent-rgb),0.22), transparent 55%); }
.cta-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; }
.cta-blob.b1 { width: 340px; height: 340px; background: var(--accent); top: -120px; left: -80px; animation: floaty 8s ease-in-out infinite; }
.cta-blob.b2 { width: 300px; height: 300px; background: var(--accent); bottom: -120px; right: -60px; animation: floaty 7s ease-in-out infinite reverse; }
.cta-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.cta h2 { font-family: var(--font-display); font-size: clamp(34px,5vw,54px); letter-spacing: -0.04em; margin-bottom: 18px; color: #fff; font-weight: 700; }
[dir="rtl"] .cta h2 { letter-spacing: 0; line-height: 1.35; }
.cta h2 em { font-style: normal; font-weight: 800; color: var(--accent); }
.cta p { color: var(--text-on-dark); font-size: 18px; margin-bottom: 38px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== CONTACT ===== */
.contact { background: var(--bg-white); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
.contact-info h2 { font-family: var(--font-display); font-size: clamp(28px,3.6vw,40px); margin-bottom: 18px; font-weight: 600; }
.contact-info > p { color: var(--text-muted); font-size: 16px; margin-bottom: 34px; }
.contact-detail { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.cd-icon { width: 48px; height: 48px; flex-shrink: 0; background: var(--accent-light); color: var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.cd-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.contact-detail .cd-label { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; }
[dir="rtl"] .contact-detail .cd-label { letter-spacing: 0; }
.contact-detail .cd-value { font-size: 16px; font-weight: 600; }
.contact-detail .cd-value a:hover { color: var(--accent); }
.contact-form { background: var(--bg-main); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 14px; background: var(--bg-white); color: var(--text-main);
  transition: all 0.25s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 14px; text-align: center; }
.form-note.ok { color: var(--accent-ink); font-weight: 600; }
.form-note.err { color: var(--color-error); font-weight: 600; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* map */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); margin-top: 60px; }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(0.3); }

/* ===== SPLIT SECTIONS (inner pages) ===== */
.split { background: var(--bg-white); }
.split.alt { background: var(--bg-main); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-grid .split-text h2 { font-family: var(--font-display); font-size: clamp(26px,3.2vw,38px); letter-spacing: -0.035em; margin-bottom: 18px; font-weight: 700; }
[dir="rtl"] .split-grid .split-text h2 { letter-spacing: 0; line-height: 1.35; }
.split-grid .split-text h2 em { font-style: normal; font-weight: 800; color: var(--accent); }
.split-grid .split-text p { color: var(--text-muted); font-size: 15.5px; margin-bottom: 16px; }
.split-visual { position: relative; }
.split-visual img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.split-grid.flip .split-visual { order: -1; }
.check-list { list-style: none; display: grid; gap: 12px; margin: 22px 0; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; font-weight: 500; color: var(--text-main); }
.check-list li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* ===== VALUE / EVP CARDS ===== */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px; transition: all 0.4s var(--ease); position: relative; overflow: hidden; }
.value-card:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb),0.4); box-shadow: var(--shadow-lg); }
.value-card .v-num { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--accent-light); -webkit-text-stroke: 1px var(--accent); line-height: 1; margin-bottom: 18px; }
.value-card h3 { font-size: 19px; margin-bottom: 10px; }
.value-card p { color: var(--text-muted); font-size: 14px; }

/* ===== NEWS ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.4s var(--ease); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(var(--accent-rgb),0.35); }
.news-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-cream); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.news-meta { font-size: 12.5px; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
[dir="rtl"] .news-meta { letter-spacing: 0; }
.news-body h3 { font-family: var(--font-display); font-size: 20px; line-height: 1.3; margin-bottom: 12px; font-weight: 600; }
.news-body h3 a:hover { color: var(--accent); }
.news-body p { color: var(--text-muted); font-size: 14px; flex: 1; }
.news-body .read-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13.5px; font-weight: 700; color: var(--accent-ink); }
.news-body .read-more svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.news-card:hover .read-more svg { transform: translateX(4px); }
[dir="rtl"] .news-body .read-more svg { transform: scaleX(-1); }
[dir="rtl"] .news-card:hover .read-more svg { transform: scaleX(-1) translateX(4px); }

/* pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 60px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 100px; border: 1px solid var(--border); background: var(--bg-white); font-size: 14px; font-weight: 600; color: var(--text-muted); transition: all 0.3s var(--ease); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== ARTICLE (single post) ===== */
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-body { font-size: 16.5px; color: var(--text-main); }
.article-body p { margin-bottom: 22px; }
.article-body h2, .article-body h3 { font-family: var(--font-display); margin: 38px 0 16px; }
.article-body img { border-radius: var(--radius); margin: 28px 0; }
.article-body a { color: var(--accent-ink); font-weight: 600; }
.article-body a:hover { text-decoration: underline; }
.article-body ul, .article-body ol { margin: 0 0 22px 24px; }
[dir="rtl"] .article-body ul, [dir="rtl"] .article-body ol { margin: 0 24px 22px 0; }
.article-body blockquote { border-inline-start: 4px solid var(--accent); padding: 12px 24px; background: var(--accent-light); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 22px; font-style: italic; }
.article-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border); }

/* ===== PROPERTY (Media One / Studio One) ===== */
.prop-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prop-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease); }
.prop-gallery img:hover { transform: scale(1.03); }
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.info-tile { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.info-tile .big { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.info-tile .sm { font-size: 13.5px; color: var(--text-muted); margin-top: 8px; font-weight: 500; }

/* ===== CLIENT LIST ===== */
.client-cols { columns: 3; column-gap: 40px; }
.client-cols li { break-inside: avoid; list-style: none; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; font-weight: 500; display: flex; gap: 10px; align-items: baseline; }
.client-cols li::before { content: "—"; color: var(--accent); font-weight: 700; }

/* ===== FOOTER ===== */
.site-footer { background: var(--bg-darker); color: var(--text-light); padding: 90px 0 40px; font-size: 14px; }
.footer-cta { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; padding-bottom: 60px; margin-bottom: 60px; border-bottom: 1px solid var(--border-dark); }
.footer-cta h3 { font-family: var(--font-display); font-size: 30px; color: #fff; font-weight: 600; }
.newsletter { display: flex; gap: 12px; }
.newsletter input { flex: 1; padding: 15px 20px; border: 1px solid var(--border-dark); background: rgba(255,255,255,0.04); border-radius: 100px; color: #fff; font-family: inherit; font-size: 14px; outline: none; transition: border-color 0.25s; }
.newsletter input:focus { border-color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--border-dark); }
.footer-brand .logo { display: inline-block; }
.footer-brand .roya-logo { width: 110px; }
/* Endorsement line, identity guidelines 01.02 — title case, 150 tracking. */
.footer-brand .endorsement {
  margin: 10px 0 18px; color: var(--accent); font-family: var(--font-display);
  font-size: 12px; font-weight: 500; letter-spacing: 0.15em;
}
[dir="rtl"] .footer-brand .endorsement { letter-spacing: 0.15em; }
.footer-brand p { max-width: 280px; margin-bottom: 22px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-dark); display: flex; align-items: center; justify-content: center; color: var(--text-light); transition: all 0.3s var(--ease); }
.footer-socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-4px); }
.footer-socials svg { width: 17px; height: 17px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 22px; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; display: grid; gap: 13px; }
.footer-col a { transition: color 0.2s, padding 0.2s; }
.footer-col a:hover { color: var(--accent); padding-inline-start: 5px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 34px; font-size: 13px; flex-wrap: wrap; gap: 14px; }
.footer-bottom a:hover { color: #fff; }

/* ===== BACK TO TOP ===== */
.to-top {
  position: fixed; bottom: 30px; inset-inline-end: 30px; z-index: 900; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 12px 30px -6px var(--accent-glow); border: none;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.8); transition: all 0.4s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--accent-hover); transform: translateY(-4px) scale(1.05); }
.to-top svg { width: 20px; height: 20px; }

/* ===== 404 ===== */
.error-hero { min-height: 80vh; display: flex; align-items: center; text-align: center; background: var(--bg-dark); color: #fff; }
.error-hero .code { font-family: var(--font-display); font-size: clamp(90px, 18vw, 180px); font-weight: 800; line-height: 1; color: var(--accent); }
.error-hero h1 { color: #fff; font-size: clamp(24px, 4vw, 40px); margin: 12px 0 18px; }
.error-hero p { color: var(--text-on-dark); margin-bottom: 34px; }

/* ===== RESPONSIVE ===== */
@media(max-width: 1024px) {
  .hero-grid, .about-grid, .contact-grid, .footer-cta, .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-grid.flip .split-visual { order: 0; }
  .service-grid, .portfolio-grid, .value-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid, .process-grid, .stats-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .process-line { display: none; }
  .team-grid, .team-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-float { position: static; margin-top: 20px; max-width: none; }
  .about-badge-float { display: none; }
  .client-cols { columns: 2; }
  .prop-gallery, .info-strip { grid-template-columns: repeat(2, 1fr); }
  .bio-panel { grid-template-columns: 1fr; max-height: 90vh; }
  .bio-photo { max-height: 320px; overflow: hidden; }
}
/* The seven nav labels plus the language switch and call-to-action need ~1117px.
   Below that the bar would overflow, so hand over to the fullscreen menu. */
@media(max-width: 1220px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
}
@media(max-width: 680px) {
  .container { padding: 0 22px; }
  section { padding: 80px 0; }
  .nav-right .btn, .nav-right .lang-switch { display: none; }
  .service-grid, .portfolio-grid, .stats-grid, .footer-grid, .form-row, .team-grid, .value-grid, .news-grid, .stats-grid.cols-3, .prop-gallery, .info-strip { grid-template-columns: 1fr; }
  .team-grid, .team-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-card { padding: 28px; }
  .newsletter { flex-direction: column; }
  .newsletter .btn { width: 100%; }
  .client-cols { columns: 1; }
  body.admin-bar .site-header { top: 46px; }
}
