/* --- Reset --- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* keeps anchored sections clear of the sticky header (88px tall on desktop) */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}


/* --- Design tokens --- */
:root {
  /* Colors */
  --color-navy: #1B2A4B;
  --color-navy-dark: #131F38;
  --color-gold: #C9A227;
  --color-gold-dark: #B48E1F;
  --color-gold-text: #806210; /* gold that stays readable as small text on light backgrounds */
  --color-blue: #2F6690;
  --color-blue-light: #8FC1E3;
  --color-offwhite: #F7F4EF;
  --color-white: #FFFFFF;
  --color-text: #1E2430;
  --color-text-light: #5B6472;

  /* Theme colours: what each part of the page uses.
     Light values here; dark values further down. */
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-alt: #F7F4EF;
  --surface: #FFFFFF;
  --heading: #1B2A4B;
  --text: #1E2430;
  --text-muted: #5B6472;
  --accent-text: #806210;
  --link: #2F6690;
  --focus: #2F6690;
  --icon: #1B2A4B;
  --icon-bg: rgba(201, 162, 39, 0.14);
  --border: rgba(27, 42, 75, 0.14);
  --header-bg: #FFFFFF;
  --header-bg-scrolled: rgba(255, 255, 255, 0.96);
  --band-bg: #1B2A4B; /* navy strips: About and the call to action */
  --footer-bg: #131F38;
  --success: #12753A;
  --success-bg: rgba(18, 117, 58, 0.1);
  --danger: #B42318;
  --danger-bg: rgba(180, 35, 24, 0.08);

  /* Typography */
  /* Fraunces for English headings, Noto Naskh Arabic for Arabic ones;
     IBM Plex Sans Arabic covers body text in both languages */
  --font-heading: 'Fraunces', 'Noto Naskh Arabic', serif;
  --font-body: 'IBM Plex Sans Arabic', sans-serif;
  --font-brand: 'Jost', 'Noto Naskh Arabic', sans-serif; /* logo name only */

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Shape & motion */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(27, 42, 75, 0.08);
  --shadow-lg: 0 18px 40px rgba(27, 42, 75, 0.14);
  --transition: 0.3s ease;

  /* Layout */
  --container-width: 1180px;
}

/* Dark theme: chosen in the theme menu, or "System" when the device is set to dark.
   Black and dark grey with gold accents; the navy bands turn dark grey, so there is no blue.
   The two blocks below hold the same values; change both together. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111111;
  --bg-alt: #181818;
  --surface: #202020;
  --heading: #F5F5F5;
  --text: #E0E0E0;
  --text-muted: #A8A8A8;
  --accent-text: #DDB955;
  --link: #8FC1E3;
  --focus: #8FC1E3;
  --icon: #E3C064;
  --icon-bg: rgba(221, 185, 85, 0.12);
  --border: rgba(255, 255, 255, 0.1);
  --header-bg: #111111;
  --header-bg-scrolled: rgba(17, 17, 17, 0.92);
  --band-bg: #262626;
  --footer-bg: #0A0A0A;
  --success: #5BD08A;
  --success-bg: rgba(91, 208, 138, 0.12);
  --danger: #F97066;
  --danger-bg: rgba(249, 112, 102, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111111;
    --bg-alt: #181818;
    --surface: #202020;
    --heading: #F5F5F5;
    --text: #E0E0E0;
    --text-muted: #A8A8A8;
    --accent-text: #DDB955;
    --link: #8FC1E3;
    --focus: #8FC1E3;
    --icon: #E3C064;
    --icon-bg: rgba(221, 185, 85, 0.12);
    --border: rgba(255, 255, 255, 0.1);
    --header-bg: #111111;
    --header-bg-scrolled: rgba(17, 17, 17, 0.92);
    --band-bg: #262626;
    --footer-bg: #0A0A0A;
    --success: #5BD08A;
    --success-bg: rgba(91, 208, 138, 0.12);
    --danger: #F97066;
    --danger-bg: rgba(249, 112, 102, 0.12);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.5);
  }
}


/* Typography and utility classes */

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

strong {
  font-weight: 600; /* the body font is loaded up to 600 */
}

p {
  text-wrap: pretty; /* avoids a single word left alone on the last line */
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--heading);
  text-wrap: balance; /* spreads words evenly so no word is left alone on the last line */
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

/* Keyboard focus ring: blue on light sections, gold on the navy ones */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--color-gold);
}

/* --- Layout utilities --- */
.container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-2xl);
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.section-intro {
  color: var(--text-muted);
}

/* Hidden on screen but still read out by screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: var(--space-xs);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
}

.btn-primary:hover {
  background: var(--color-gold-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--heading);
  color: var(--heading);
}

.btn-outline:hover {
  background: var(--heading);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
}


/* --- Header and navigation --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition), background-color var(--transition);
}

/* Added by script.js once the page is scrolled */
.site-header.scrolled {
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border), 0 6px 20px rgba(27, 42, 75, 0.12); /* the hairline keeps it apart from the page in dark mode */
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--heading);
}

.logo-tagline {
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.nav-list {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding-block: 0.25rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--heading);
}

/* Right side of the header: language, theme, showroom button, menu toggle */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-cta {
  margin-inline-start: var(--space-xs);
}

/* Dropdown menus: language and theme */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 42px;
  min-width: 42px;
  padding-inline: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.dropdown-toggle:hover,
.dropdown-toggle[aria-expanded="true"] {
  background: var(--bg-alt);
  border-color: var(--color-gold);
}

/* Small line icons inside the toggles and menus */
.dropdown svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropdown-toggle .chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.dropdown-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

/* The theme toggle shows the icon of the current choice */
.theme-icon {
  display: none;
}

:root[data-theme="light"] .theme-icon-light,
:root[data-theme="dark"] .theme-icon-dark,
:root:not([data-theme]) .theme-icon-system {
  display: block;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: dropdown-in 0.18s ease;
}

.dropdown-menu[hidden] {
  display: none;
}

@keyframes dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  text-align: start;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-alt);
  color: var(--heading);
}

.dropdown-item[aria-pressed="true"],
.dropdown-item[aria-current="page"] {
  background: var(--icon-bg);
  color: var(--heading);
  font-weight: 600;
}

/* Tick shown next to the current choice */
.dropdown-item .check {
  margin-inline-start: auto;
  color: var(--accent-text);
  visibility: hidden;
}

.dropdown-item[aria-pressed="true"] .check,
.dropdown-item[aria-current="page"] .check {
  visibility: visible;
}

/* Language codes in the menu (EN / ع) */
.lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding-inline: 0.3rem;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--heading);
  font-size: 0.75rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px 7px; /* bigger tap area around the three bars */
  background: none;
  border: none;
}

.nav-toggle .bar {
  width: 26px;
  height: 3px;
  background: var(--heading);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hamburger turns into an X while the menu is open (bars are 3px + 5px gap = 8px apart) */
.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* --- Hero Section --- */

.hero {
  padding-block: var(--space-2xl);
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-block: var(--space-sm);
}

.hero-text {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* The hero photo is a tall portrait, so crop it to a steadier shape */
.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 600px;
  object-fit: cover;
  object-position: center 65%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}


/* --- Features Section --- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--icon);
  margin-bottom: var(--space-sm);
  transition: var(--transition);
}

/* Shared look for the line icons (features and contact) */
.feature-icon svg,
.contact-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card:hover .feature-icon {
  background: var(--color-gold);
  color: var(--color-navy);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}


/* --- Collections Section --- */

.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.collection-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.collection-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.collection-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-card:hover img {
  transform: scale(1.05);
}

.collection-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-md);
}

/* Keeps the enquiry links lined up along the bottom of every card */
.collection-info .text-link {
  margin-top: auto;
}

.collection-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.collection-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.text-link {
  color: var(--link);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.text-link:hover {
  color: var(--accent-text);
}


/* --- Navy bands (About and CTA) --- */

.band {
  background: var(--band-bg);
  color: var(--color-white);
  text-align: center;
}

.band h2 {
  color: var(--color-white);
}

.band p {
  color: rgba(255, 255, 255, 0.8);
}

.band .eyebrow {
  color: var(--color-gold);
}


/* --- About Section --- */

.about-content {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: var(--space-xs) var(--space-md);
}

.stat + .stat {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-value {
  direction: ltr; /* "+50" reads the same way on the Arabic page */
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.08em;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-white);
  font-variant-numeric: lining-nums tabular-nums;
}

/* script.js holds this at its final width while counting, so the "+" stays put */
.stat-number {
  text-align: left;
}

.stat-plus {
  color: var(--color-gold);
}

.stat-label {
  display: block;
  margin-top: var(--space-xs);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}


/* --- CTA Section --- */

.cta p {
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-inline: auto;
}

/* --- Contact Section --- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "showroom showroom hours"
    "whatsapp hotline email"
    "instagram instagram instagram";
  gap: var(--space-md);
}

.contact-card-showroom { grid-area: showroom; }
.contact-card-hours { grid-area: hours; }
.contact-card-whatsapp { grid-area: whatsapp; }
.contact-card-hotline { grid-area: hotline; }
.contact-card-email { grid-area: email; }
.contact-card-instagram { grid-area: instagram; }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: var(--shadow-lg);
}

.contact-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-card p {
  color: var(--text-muted);
}

.contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--icon-bg);
  color: var(--icon);
  transition: var(--transition);
}

.contact-card:hover .contact-icon {
  background: var(--color-gold);
  color: var(--color-navy);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-icon svg.icon-fill {
  fill: currentColor;
  stroke: none;
}

/* Main detail of a card: phone number, email, handle */
.contact-card .contact-value {
  color: var(--heading);
  font-size: 1.15rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: auto; /* keeps buttons along the bottom of every card */
}

.contact-note {
  margin-top: auto;
  font-size: 0.85rem;
}

/* Showroom: details on one side, the map on the other */
.contact-card-showroom {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-md);
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Google rating link under the showroom address */
.rating-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  align-self: flex-start;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.rating-link svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.2rem; /* level with the first line of text */
  fill: var(--color-gold);
}

.rating-link strong {
  color: var(--heading);
}

.rating-more {
  color: var(--link);
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.rating-link:hover .rating-more {
  color: var(--accent-text);
}

/* Instagram: one slim row */
.contact-card-instagram {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
}

.contact-card-instagram .contact-card-head {
  flex: 1;
  min-width: 220px;
}

.contact-card-instagram .contact-actions {
  margin-top: 0;
}

/* Opening hours */
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.open-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.open-status.is-open {
  background: var(--success-bg);
  color: var(--success);
}

.open-status.is-closed {
  background: var(--danger-bg);
  color: var(--danger);
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hours-list li:last-child {
  border-bottom: 0;
}

.hours-time {
  text-align: end;
}

.hours-list li.is-today {
  color: var(--heading);
  font-weight: 600;
}

/* WhatsApp contacts */
.wa-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wa-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.wa-contact:hover {
  border-color: #179848;
  background: rgba(23, 152, 72, 0.08);
}

.wa-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #179848;
  color: var(--color-white);
  font-weight: 600;
}

.wa-contact-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.wa-contact-name {
  color: var(--heading);
  font-weight: 600;
}

.wa-contact-number {
  color: var(--text-muted);
  font-size: 0.9rem;
  direction: ltr;
  unicode-bidi: isolate; /* keeps "+968 ..." in the right order on the Arabic page */
  text-align: start;
}

.wa-contact .arrow {
  width: 18px;
  height: 18px;
  margin-inline-start: auto;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: var(--transition);
}

.wa-contact:hover .arrow {
  stroke: #179848;
  transform: translateX(3px);
}

[dir="rtl"] .wa-contact .arrow {
  scale: -1 1;
}

[dir="rtl"] .wa-contact:hover .arrow {
  transform: translateX(-3px);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
  border-radius: var(--radius);
}


/* --- WhatsApp chat button --- */

.wa-widget {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 90;
}

.wa-button {
  list-style: none; /* hides the default ▶ marker of <summary> */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #179848; /* WhatsApp green, darkened so the white icon stays clear */
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.wa-button::-webkit-details-marker {
  display: none;
}

.wa-button:hover {
  transform: scale(1.06);
}

.wa-button svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.wa-panel {
  position: absolute;
  inset-inline-end: 0;
  bottom: calc(100% + 12px);
  width: 280px;
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.wa-title {
  font-weight: 600;
  color: var(--heading);
}

.wa-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.wa-list a {
  display: flex;
  justify-content: space-between;
  gap: var(--space-xs);
  padding: 0.6rem 0.75rem;
  margin-inline: -0.75rem;
  border-radius: 8px;
  transition: var(--transition);
}

.wa-list a:hover {
  background: var(--bg-alt);
}

.wa-name {
  font-weight: 600;
  color: var(--heading);
}

.wa-number {
  color: var(--text-muted);
  font-size: 0.9rem;
}


/* --- Footer --- */

.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  padding-block: var(--space-2xl);
}

.footer-brand .logo-text {
  color: var(--color-white);
}

.footer-brand .logo-tagline {
  color: var(--color-gold);
}

.footer-brand p {
  max-width: 340px;
  margin-top: var(--space-sm);
  color: rgba(255, 255, 255, 0.65);
}

.footer-links h2,
.footer-contact h2 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-gold);
}

.footer-contact address {
  font-style: normal;
}

.footer-contact address p {
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: var(--space-sm);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}


/* --- 404 page --- */

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--space-xl);
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.error-logo {
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-gold);
}

.error-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-block: var(--space-xs) var(--space-sm);
}

.error-text {
  color: var(--text-muted);
  max-width: 420px;
  text-wrap: balance;
  margin: 0 auto var(--space-lg);
}

.error-actions {
  justify-content: center;
}

.error-text-ar {
  margin-top: var(--space-lg);
  margin-bottom: 0;
}


/* --- Scroll reveal (classes added by script.js) --- */

.reveal {
  opacity: 0;
  translate: 0 24px;
  /* hover effects keep their own speed; only the fade-in is delayed */
  transition:
    opacity 0.6s ease var(--reveal-delay, 0s),
    translate 0.6s ease var(--reveal-delay, 0s),
    transform var(--transition),
    box-shadow var(--transition);
}

.reveal.visible {
  opacity: 1;
  translate: 0 0;
}

/* Cards in a row appear one after another */
.reveal:nth-child(2) { --reveal-delay: 0.1s; }
.reveal:nth-child(3) { --reveal-delay: 0.2s; }
.reveal:nth-child(4) { --reveal-delay: 0.3s; }


/* --- Responsive Design --- */

/* Below 1100px the links no longer fit beside the buttons, so they move into the menu button */
@media (max-width: 1100px) {
  .nav-list {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav.open .nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: var(--space-md);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 960px) {
  /* Tablets and phones drop the showroom button, leaving room for the language and theme buttons */
  .nav-cta {
    display: none;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .features-grid,
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "showroom showroom"
      "hours whatsapp"
      "hotline email"
      "instagram instagram";
  }
}

@media (max-width: 720px) {
  .lang-name {
    display: none;
  }

  .hero,
  .section {
    padding-block: var(--space-xl);
  }

  .feature-card {
    padding: var(--space-md);
  }

  .features-grid,
  .collections-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    grid-template-areas:
      "showroom"
      "hours"
      "whatsapp"
      "hotline"
      "email"
      "instagram";
  }

  .contact-card-showroom {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: var(--space-md) 0;
  }

  .stat + .stat {
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* Very small phones: keep the logo, language, theme and menu buttons on one line */
@media (max-width: 420px) {
  .logo-text {
    font-size: 1.05rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .dropdown-toggle {
    padding-inline: 0.5rem;
  }

  .logo-tagline {
    letter-spacing: 0.24em;
  }
}


/* --- Arabic page (right-to-left) --- */

html[lang="ar"] body {
  line-height: 1.8; /* Arabic letters need a little more room between lines */
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  font-weight: 700;
  line-height: 1.45;
}

html[lang="ar"] .logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
}

/* Spacing out or capitalising letters would break Arabic joined script */
html[lang="ar"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
}


/* Respect the "reduce motion" setting in the visitor's OS */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
  }

  .btn-primary:hover,
  .btn-outline:hover,
  .feature-card:hover,
  .collection-card:hover,
  .collection-card:hover img,
  .contact-card:hover,
  .wa-contact:hover .arrow,
  .wa-button:hover {
    transform: none;
  }

  .dropdown-menu {
    animation: none;
  }
}
