/* =============================================================================
   SPECIAL WAY — Site stylesheet
   -----------------------------------------------------------------------------
   Everything that cannot live on an element: resets, brand tokens, typography
   defaults, form controls, keyframes and the responsive breakpoints.

   Brand palette (from the logo):
     --sw-black    #0a0a0b   sections, header, footer
     --sw-gold     #C9A961   rules, accents, primary buttons
     --sw-gold-lt  #E8CD8A   gold on dark backgrounds
     --sw-cream    #FAF8F4   page background
     --sw-paper    #F2EDE3   alternating light sections
   ============================================================================= */

:root {
  --sw-black: #0a0a0b;
  --sw-ink: #1a1a1a;
  --sw-gold: #C9A961;
  --sw-gold-light: #E8CD8A;
  --sw-cream: #FAF8F4;
  --sw-paper: #F2EDE3;
  --sw-line: #e8e2d6;
  --sw-muted: #8a8474;
  --sw-error: #b3261e;
  --sw-serif: 'Cormorant Garamond', Georgia, serif;
  --sw-sans: 'Manrope', system-ui, sans-serif;
  --sw-arabic: 'Noto Kufi Arabic', system-ui, sans-serif;
}

/* --- Base ----------------------------------------------------------------- */

body {
  margin: 0;
  background: var(--sw-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
a:hover { color: var(--sw-gold); }

img { max-width: 100%; }

/* Visible focus for keyboard users on every interactive element. */
a:focus-visible,
button:focus-visible,
[role="tab"]:focus-visible {
  outline: 2px solid var(--sw-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Form controls -------------------------------------------------------- */

input, select, textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--sw-ink);
  background: #fff;
  border: 1px solid #ddd5c2;
  border-radius: 2px;
  padding: 13px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sw-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.18);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--sw-error);
  background: #fdf6f5;
}

textarea { resize: vertical; min-height: 110px; }

label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6a6252;
  margin-bottom: 8px;
}

/* --- Motion --------------------------------------------------------------- */

@keyframes sw-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sw-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero entrance. Elements carry data-sw-hero with a stagger index; the delay
   is set inline by ui.js so the sequence survives a language change. */
@keyframes sw-hero-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* The exported site carries its layout in classes (assets/layout.css), which
   loads after this file. The selectors below are doubled so a layout class can
   never outrank the motion state it is meant to animate. */
[data-sw-hero][data-sw-hero] {
  opacity: 0;
  animation: sw-hero-in .85s cubic-bezier(.16, .84, .32, 1) forwards;
}

/* Scroll reveal. ui.js observes [data-sw-reveal] and adds is-in when the
   element enters the viewport; without JS the fallback below keeps everything
   visible, so the page never depends on the observer running. */
[data-sw-reveal][data-sw-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16, .84, .32, 1),
              transform .7s cubic-bezier(.16, .84, .32, 1);
  will-change: opacity, transform;
}

[data-sw-reveal][data-sw-reveal].is-in {
  opacity: 1;
  transform: none;
}

html.sw-no-js [data-sw-reveal],
html:not(.sw-js) [data-sw-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

/* Gold rules draw themselves out from the leading edge. */
[data-sw-reveal] [data-sw-rule],
[data-sw-rule][data-sw-reveal] {
  transform-origin: left center;
}

[dir="rtl"] [data-sw-rule] { transform-origin: right center; }

/* Cards lift on hover — applied by attribute so it survives re-export. */
[data-sw-lift] {
  transition: transform .35s cubic-bezier(.16, .84, .32, 1),
              box-shadow .35s cubic-bezier(.16, .84, .32, 1),
              border-color .35s ease;
}

[data-sw-lift][data-sw-lift]:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(10, 10, 11, 0.10);
  border-color: rgba(201, 169, 97, 0.55);
}

/* Header condenses once the page is scrolled. */
header[data-sw-header] {
  transition: padding .3s ease, background-color .3s ease, box-shadow .3s ease;
}

header[data-sw-header].is-scrolled {
  background: rgba(10, 10, 11, 0.97);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.34);
}

header[data-sw-header].is-scrolled [data-sw-headerbar] {
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

header[data-sw-header] [data-sw-headerbar] { transition: padding .3s ease; }

/* Gallery tiles fade in as the filter changes. */
@keyframes sw-tile-in {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}

.sw-tile-in { animation: sw-tile-in .38s cubic-bezier(.16, .84, .32, 1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-sw-reveal], [data-sw-hero] { opacity: 1 !important; transform: none !important; }
}

/* --- Utilities ------------------------------------------------------------ */

html { scroll-behavior: smooth; }

/* Keep anchored service sections clear of the two sticky bars. */
[id] { scroll-margin-top: 140px; }

/* Horizontal category bar: scrollable, without a visible scrollbar. */
[data-catbar] { scrollbar-width: none; -ms-overflow-style: none; }
[data-catbar]::-webkit-scrollbar { display: none; }

/* --- Header --------------------------------------------------------------- */

@media (min-width: 960px) {
  [data-desktop-nav="1"] { display: flex !important; gap: 26px; }
  [data-desktop-actions="1"] { display: flex !important; }
  [data-mobile-toggle="1"] { display: none !important; }
}

/* Between the desktop breakpoint and a full-width window the header has to fit
   seven nav links, a language group and two calls to action. Russian labels are
   the longest, so the row tightens progressively instead of overflowing. */
@media (min-width: 960px) and (max-width: 1319px) {
  [data-sw-headerbar="1"] { gap: 14px !important; }
  [data-desktop-nav="1"] { gap: 15px !important; }
  [data-desktop-nav="1"] a { font-size: 13px !important; }
  [data-desktop-actions="1"] { gap: 10px !important; }
  [data-desktop-actions="1"] a[href*="booking"] { padding-left: 16px !important; padding-right: 16px !important; }
}

/* Narrower still: the WhatsApp link keeps its icon and drops its text, and the
   wordmark sets a size down. The cloned link in the mobile panel keeps its
   label — there is room there. */
@media (max-width: 1179px) {
  [data-sw-walabel="1"] { display: none; }
  #sw-mobile-nav [data-sw-walabel="1"] { display: inline !important; }
}

@media (min-width: 960px) and (max-width: 1179px) {
  [data-sw-headerbar="1"] > a:first-child span { font-size: 18px !important; letter-spacing: 1px !important; }
  [data-sw-headerbar="1"] > a:first-child img { width: 38px !important; height: 38px !important; }
}

/* --- Responsive grids ----------------------------------------------------- */
/* Grids declare their desktop columns inline; these rules collapse them.     */

@media (max-width: 1024px) {
  [data-grid="4"] { grid-template-columns: repeat(2, 1fr) !important; }
  [data-grid="3"] { grid-template-columns: repeat(2, 1fr) !important; }
  [data-grid="2"] { grid-template-columns: 1fr !important; gap: 36px !important; }
  [data-fleet-grid] { grid-template-columns: 1fr !important; }
}

@media (max-width: 950px) {
  [data-two] { grid-template-columns: 1fr !important; }
  [data-layout] { grid-template-columns: 1fr !important; gap: 44px !important; }
  [data-cards] { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 900px) {
  [data-svc] { grid-template-columns: 1fr !important; gap: 28px !important; }
  [data-svc-media] { order: -1; }
  [data-gal] { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 640px) {
  [data-grid="4"], [data-grid="3"] { grid-template-columns: 1fr !important; }
  [data-pad] { padding-top: 60px !important; padding-bottom: 60px !important; }
}

@media (max-width: 600px) {
  [data-cards] { grid-template-columns: 1fr !important; }
}

@media (max-width: 560px) {
  [data-gal] { grid-template-columns: 1fr !important; }
}

/* -----------------------------------------------------------------------------
   Photography. The export replaces every <image-slot> with .sw-shot when a
   photo is mapped for that slot, and .sw-ph when the shot is still to come.
   -------------------------------------------------------------------------- */
.sw-shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.sw-ph {
  width: 100%; height: 100%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  padding: 18px; text-align: center; text-wrap: pretty;
  background: #ece5d7; outline: 1px dashed #c4b998; outline-offset: -9px;
  color: #7d745c; font-size: 13px; line-height: 1.5; font-weight: 500;
}

/* Latin phone numbers and email addresses inside Arabic text: isolate them so
   the bidi algorithm cannot reorder the digits or move the leading '+'. */
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"] { unicode-bidi: isolate; direction: ltr; width: fit-content; }

/* Google Business Profile link on the map cards */
.sw-maplink { display:inline-block;margin-top:12px;color:#E8CD8A;font-size:11.5px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;text-decoration:none;border-bottom:1px solid rgba(232,205,138,0.45);padding-bottom:3px; }
.sw-maplink:hover, .sw-maplink:focus-visible { color:#F5F1E8;border-bottom-color:#F5F1E8; }
