/* Ansen — clean industrial navy + orange */

:root {
  --navy: #0b2744;
  --navy-deep: #061525;
  --navy-mid: #123556;
  --orange: #f2872e;
  --orange-hot: #ff9a45;
  --orange-dim: rgba(242, 135, 46, 0.14);

  --bg-primary: #050f1c;
  --bg-secondary: #0b2744;
  --bg-elevated: #102f4d;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-nav: rgba(5, 15, 28, 0.72);
  --text-primary: #eef3f9;
  --text-secondary: #9aadc2;
  --text-muted: #6d8299;
  --border-color: rgba(242, 135, 46, 0.12);
  --border-hover: rgba(242, 135, 46, 0.35);
  --shadow: rgba(0, 0, 0, 0.45);
  --orb-opacity: 0.14;
  --success: #25d366;
  --radius: 18px;
  --font-display: "Outfit", "Source Sans 3", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Source Sans 3", sans-serif;
}

[data-theme="light"] {
  --bg-primary: #f4f7fb;
  --bg-secondary: #e6eef6;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-nav: rgba(255, 255, 255, 0.88);
  --text-primary: #0b2744;
  --text-secondary: #3d5470;
  --text-muted: #647891;
  --border-color: rgba(11, 39, 68, 0.1);
  --border-hover: rgba(242, 135, 46, 0.4);
  --shadow: rgba(11, 39, 68, 0.08);
  --orb-opacity: 0.08;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  font-size: 1.02rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  animation: fadeInPage 0.25s ease-out;
}

@keyframes fadeInPage {
  from { opacity: 0; }
  to   { opacity: 1; }
}

html[dir="rtl"] body { font-family: var(--font-ar); }

h1, h2, h3, .logo-text, .hero-brand-title, .stat-item .num, .ref, .service-index, .step-num {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .logo-text,
html[dir="rtl"] .hero-brand-title,
html[dir="rtl"] .stat-item .num {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Atmosphere */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.bg-orbs::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 135, 46, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 135, 46, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 15%, transparent 70%);
}
.bg-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: var(--orb-opacity);
  animation: orbFloat 28s infinite alternate ease-in-out;
}
.bg-orbs .orb:nth-child(1) {
  width: 560px; height: 560px; top: -180px; left: -160px; background: var(--orange);
}
.bg-orbs .orb:nth-child(2) {
  width: 480px; height: 480px; bottom: -140px; right: -120px; background: #1a6a9e; animation-duration: 22s;
}
.bg-orbs .orb:nth-child(3) {
  width: 260px; height: 260px; top: 45%; left: 50%; background: var(--navy-mid); animation-duration: 32s;
}
@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ——— Navbar ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem 1.25rem 0;
  transition: padding 0.3s, background 0.3s;
  width: 100%;
}
.site-header.scrolled {
  padding-top: 0.55rem;
  background: linear-gradient(to bottom, var(--bg-primary), transparent);
}
.nav-shell {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.65rem 1rem;
  border-radius: 16px;
  background: var(--bg-nav);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px transparent;
  transition: box-shadow 0.3s;
}
.site-header.scrolled .nav-shell {
  box-shadow: 0 10px 32px var(--shadow);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.logo img {
  height: 40px;
  width: auto;
  border-radius: 8px;
}
.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
}
.nav-menu a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--orange);
  background: var(--orange-dim);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .lang-toggle { background: rgba(11, 39, 68, 0.04); }
.lang-btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.lang-btn.active-lang {
  background: var(--orange);
  color: #061525;
}

.lang-toggle-mobile {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle-mobile:hover { background: var(--orange-dim); }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--orange);
  cursor: pointer;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
}
.theme-toggle:hover { background: var(--orange-dim); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sections & hierarchy */
section { padding: 4.75rem 0; position: relative; }
.section-alt {
  background: rgba(255, 255, 255, 0.02);
}
[data-theme="light"] .section-alt {
  background: rgba(11, 39, 68, 0.035);
}
.section-compact { padding: 3.25rem 0; }
.section-booking {
  padding: 5.75rem 0;
  background:
    linear-gradient(180deg, rgba(242, 135, 46, 0.08), rgba(242, 135, 46, 0.02) 45%, transparent);
  border-block: 1px solid var(--border-color);
}
[data-theme="light"] .section-booking {
  background: linear-gradient(180deg, rgba(242, 135, 46, 0.1), rgba(255, 255, 255, 0.4) 50%, transparent);
}
.section-head { margin-bottom: 0.25rem; }
.section-title {
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
}
.section-title-sm {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 650;
}
.section-subtitle {
  font-size: 1.2rem;
  font-weight: 650;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.glow-line {
  width: 52px;
  height: 3px;
  margin: 0.75rem 0 0.9rem;
  border-radius: 4px;
  background: var(--orange);
}
.section-sub {
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2rem;
  font-size: 1.02rem;
}
.section-compact .section-sub { margin-bottom: 1.35rem; font-size: 0.95rem; }
.contact-intro { margin-bottom: 1rem !important; }

/* Icons */
.ui-icon { display: block; flex-shrink: 0; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--orange-dim);
  color: var(--orange);
  margin-bottom: 0.35rem;
}
.service-icon { margin-bottom: 0.65rem; }
.channel-icon {
  display: inline-flex;
  color: var(--orange);
  margin-inline-end: 0.45rem;
}
.channel-btn.wa .channel-icon { color: var(--success); }

/* Hero */
.hero {
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
  position: relative;
}

/* Soft logo mark watermark — left side, icon only (no wordmark) */
.hero-logo-bg {
  position: absolute;
  top: 48%;
  left: max(-6vw, calc(50% - 620px));
  transform: translateY(-50%);
  width: min(72vw, 720px);
  max-height: 92%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.11;
  filter: saturate(0.75) contrast(0.95);
  -webkit-mask-image: radial-gradient(ellipse 75% 72% at 45% 50%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 72% at 45% 50%, #000 25%, transparent 80%);
}
html[dir="rtl"] .hero-logo-bg {
  left: max(-6vw, calc(50% - 620px));
  right: auto;
}
[data-theme="light"] .hero-logo-bg {
  opacity: 0.085;
  filter: saturate(0.7) contrast(0.9) brightness(1.05);
}
.hero-logo-bg img {
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  user-select: none;
}

.hero-lattice {
  position: absolute;
  inset-block: 8% 5%;
  inset-inline-end: -2%;
  width: min(48vw, 460px);
  color: #1a5a8a;
  pointer-events: none;
  opacity: 0.75;
  z-index: 0;
}
html[dir="rtl"] .hero-lattice {
  inset-inline-end: auto;
  inset-inline-start: -2%;
  transform: scaleX(-1);
}
[data-theme="light"] .hero-lattice { color: #0e2a47; opacity: 0.28; }
.hero-lattice svg { width: 100%; height: auto; display: block; }
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 640px;
}
.hero-copy {
  /* slight text contrast boost over watermark */
  text-shadow: 0 1px 18px rgba(5, 15, 28, 0.35);
}
[data-theme="light"] .hero-copy {
  text-shadow: 0 1px 14px rgba(244, 247, 251, 0.85);
}
.hero-kicker {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}
html[dir="rtl"] .hero-kicker { letter-spacing: 0.06em; }
.hero-headline {
  font-size: clamp(2.15rem, 4.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
  max-width: 16ch;
  color: var(--text-primary);
}
html[dir="rtl"] .hero-headline {
  max-width: 18ch;
  letter-spacing: 0;
}
.hero-lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.85rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 22px rgba(242, 135, 46, 0.22);
}
.btn-primary:hover { background: #e67820; box-shadow: 0 10px 26px rgba(242, 135, 46, 0.28); }
.btn-secondary {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--orange-dim);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-color);
  color: var(--orange);
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--orange-dim);
}
.btn-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
  color: var(--success);
}
.btn-whatsapp:hover { background: rgba(37, 211, 102, 0.2); }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.85rem; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.stats-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.stat-item {
  padding: 1.15rem 0.9rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.stat-item .num {
  font-size: 1.65rem;
  color: var(--orange);
  line-height: 1.1;
}
.stat-item .num-text {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}
.stat-item .label {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

/* Products / services */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}
.filter-btn {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.86rem;
  font-family: inherit;
  transition: all 0.2s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--orange-dim);
  border-color: var(--border-hover);
  color: var(--orange);
}

.products-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.product-card,
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.product-card:hover,
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .product-card:hover,
[data-theme="light"] .service-card:hover {
  box-shadow: 0 12px 28px rgba(11, 39, 68, 0.08);
}
.card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, var(--navy-mid), var(--navy-deep));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.card-media-icon {
  background:
    radial-gradient(circle at 30% 30%, rgba(242, 135, 46, 0.12), transparent 55%),
    linear-gradient(145deg, var(--navy-mid), var(--navy-deep));
}
[data-theme="light"] .card-media-icon {
  background:
    radial-gradient(circle at 30% 30%, rgba(242, 135, 46, 0.12), transparent 55%),
    linear-gradient(145deg, #d9e4ef, #eef3f8);
}
.card-media-icon .card-icon {
  width: 64px;
  height: 64px;
  margin: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(242, 135, 46, 0.25);
}
.card-media-icon .ui-icon { width: 28px; height: 28px; }

.product-card .body,
.service-card .body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.product-card h3,
.service-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
}
.product-meta {
  font-size: 0.72rem;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
html[dir="rtl"] .product-meta {
  text-transform: none;
  letter-spacing: 0.02em;
}
.product-spec {
  font-size: 0.86rem;
  color: var(--text-muted);
}
.product-card p,
.service-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  flex: 1;
}
.product-card .quote-btn,
.service-card .quote-btn {
  align-self: flex-start;
}

/* Product card carousel */
.card-carousel {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, var(--navy-mid), var(--navy-deep));
  overflow: hidden;
}
.card-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card-carousel img.active { opacity: 1; }
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot.active { background: var(--orange); }
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.card-carousel:hover .carousel-nav { opacity: 1; }
.carousel-nav:hover { background: rgba(0, 0, 0, 0.7); }
.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }
html[dir="rtl"] .carousel-prev { left: auto; right: 6px; }
html[dir="rtl"] .carousel-next { right: auto; left: 6px; }
.card-media-icon + .carousel-dots,
.card-media-icon + .carousel-nav { display: none; }

/* Show Details button */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.card-actions .btn,
.card-actions .details-btn {
  flex: 1;
  min-width: 0;
  justify-content: center;
  text-align: center;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
}
.details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.details-btn:hover {
  border-color: var(--border-hover);
  color: var(--orange);
  background: var(--orange-dim);
}

/* Product detail modal */
.detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 18, 0.82);
  backdrop-filter: blur(8px);
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.detail-backdrop.open { display: flex; }
.detail-panel {
  width: min(780px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 0;
  animation: detailSlideUp 0.25s ease-out;
}
@keyframes detailSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.detail-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
}
.detail-close:hover { background: var(--orange-dim); color: var(--orange); }

/* Detail gallery */
.detail-gallery {
  position: relative;
  background: linear-gradient(145deg, var(--navy-mid), var(--navy-deep));
  overflow: hidden;
}
.detail-gallery img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
  background: var(--navy-deep);
}
.detail-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
  z-index: 2;
}
.detail-gallery-nav:hover { background: rgba(0, 0, 0, 0.75); }
.detail-gprev { left: 12px; }
.detail-gnext { right: 12px; }
html[dir="rtl"] .detail-gprev { left: auto; right: 12px; }
html[dir="rtl"] .detail-gnext { right: auto; left: 12px; }
.detail-gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.detail-gallery-dots .carousel-dot { width: 8px; height: 8px; }

/* Detail body */
.detail-body {
  padding: 1.5rem 1.8rem 1.8rem;
}
.detail-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 0.35rem;
}
html[dir="rtl"] .detail-category {
  text-transform: none;
  letter-spacing: 0.02em;
}
.detail-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.detail-spec {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.detail-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  white-space: pre-line;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
@media (max-width: 620px) {
  .detail-backdrop { padding: 0.75rem; }
  .detail-panel { border-radius: 16px; }
  .detail-gallery img { max-height: 280px; }
  .detail-body { padding: 1.1rem 1.2rem 1.4rem; }
  .detail-body h2 { font-size: 1.2rem; }
  .carousel-nav { opacity: 1; width: 26px; height: 26px; font-size: 0.85rem; }
}

/* Process — lighter utility */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.process-step {
  padding: 1.05rem 0.95rem;
  border-radius: 14px;
  background: transparent;
  border: 1px solid var(--border-color);
  transition: border-color 0.2s, transform 0.2s;
}
.process-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.process-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  font-size: 0.8rem;
  margin-bottom: 0.65rem;
}
.process-step h3 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
  font-weight: 650;
}
.process-step p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* Forms / panels */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.6rem;
  transition: border-color 0.2s;
}
.panel-emphasis {
  padding: 2rem 1.85rem;
  background: var(--bg-elevated);
  border-color: rgba(242, 135, 46, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}
[data-theme="light"] .panel-emphasis {
  background: #fff;
  box-shadow: 0 18px 40px rgba(11, 39, 68, 0.08);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
.form-control,
select.form-control,
textarea.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text-primary);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
[data-theme="light"] .form-control,
[data-theme="light"] select.form-control,
[data-theme="light"] textarea.form-control {
  background: #fff;
}
.form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-dim);
}
.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}
.errorlist {
  color: #ff7b7b;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  list-style: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.25rem;
}
.contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.5rem 0 1.15rem;
}
.channel-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.channel-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  background: var(--orange-dim);
}
.channel-btn.wa {
  color: var(--success);
  border-color: rgba(37, 211, 102, 0.35);
}
.channel-btn.wa:hover { background: rgba(37, 211, 102, 0.12); }

.map-frame {
  margin-top: 0.75rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.map-frame iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.location-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 0.75rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: rgba(242, 135, 46, 0.06);
}
.location-card-icon {
  color: var(--orange);
  margin-top: 0.15rem;
}
.location-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 0.25rem;
}
html[dir="rtl"] .location-card-label {
  text-transform: none;
  letter-spacing: 0.02em;
}
.location-card-body p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.alert-success {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: var(--success);
}
.alert-error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff8a8a;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 18, 0.78);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(540px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 1.4rem;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.modal-header h2 { font-size: 1.25rem; }
.modal-close {
  border: none;
  background: var(--bg-card);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

/* Success */
.success-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem;
}
.success-card {
  width: min(500px, 100%);
  text-align: center;
  padding: 2.4rem 2rem;
}
.success-mark {
  font-size: 2.5rem;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.success-card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
.success-card .ref {
  font-size: 1.6rem;
  color: var(--orange);
  margin: 1rem 0;
  letter-spacing: 0.04em;
}
.success-card .muted {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.4rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0 2.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a:hover { color: var(--orange); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}
.footer-brand img {
  height: 28px;
  border-radius: 5px;
}

/* Floating WhatsApp */
.float-wa {
  position: fixed;
  bottom: 1.35rem;
  inset-inline-end: 1.35rem;
  z-index: 150;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}
.float-wa:hover { transform: scale(1.06); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Tablet & below */
@media (max-width: 980px) {
  .nav-shell { grid-template-columns: auto auto; }
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-nav);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.6rem;
    backdrop-filter: blur(16px);
  }
  .nav-menu.open { display: flex; }
  .site-header { position: sticky; }
  .nav-tools { margin-inline-start: auto; }
  .menu-toggle { display: flex; }

  .hero-lattice {
    width: min(70vw, 360px);
    opacity: 0.45;
  }
  .hero-logo-bg {
    width: min(85vw, 520px);
    opacity: 0.09;
    left: -10%;
  }
  [data-theme="light"] .hero-logo-bg { opacity: 0.07; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .products-grid,
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; padding-top: 3rem; }
  .hero-inner { max-width: none; }
  section { padding: 3.5rem 0; }
  .section-compact { padding: 2.5rem 0; }
  .section-booking { padding: 4rem 0; }
}

/* Small tablets & large phones */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .hero { padding-top: 2.5rem; }
  .hero-headline {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    max-width: none;
  }
  .hero-lead { font-size: 1rem; }
  .hero-actions { gap: 0.6rem; }
  .btn { padding: 0.75rem 1.15rem; font-size: 0.9rem; }
  .btn-lg { padding: 0.85rem 1.35rem; font-size: 0.95rem; }
  .section-head { margin-bottom: 0.15rem; }
  .section-sub { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .panel { padding: 1.3rem; border-radius: 16px; }
  .panel-emphasis { padding: 1.5rem; }
  .contact-channels { gap: 0.45rem; }
  .channel-btn { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
  .map-frame iframe { height: 200px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 0.75rem; }
  .footer-links { justify-content: center; }
  .footer-brand { justify-content: center; }
}

/* Phones */
@media (max-width: 620px) {
  .container { padding: 0 1rem; }
  section { padding: 2.75rem 0; }
  .section-compact { padding: 2rem 0; }
  .section-booking { padding: 3rem 0; }
  .products-grid,
  .services-grid,
  .form-grid,
  .process-steps,
  .stats-strip { grid-template-columns: 1fr; }
  .nav-shell { padding: 0.5rem 0.65rem; gap: 0.75rem; }
  .lang-toggle { display: none; }
  .lang-toggle-mobile { display: grid; place-items: center; }
  .logo-text { font-size: 1.1rem; }
  .hero-headline { font-size: 1.75rem; max-width: none; }
  .hero-lead { font-size: 0.95rem; }
  .hero-kicker { font-size: 0.72rem; margin-bottom: 0.75rem; }
  .panel-emphasis { padding: 1.2rem; }
  .form-grid { gap: 0.85rem; }
  .form-control,
  select.form-control,
  textarea.form-control {
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
  }
  .stat-item { padding: 0.9rem 0.75rem; }
  .stat-item .num { font-size: 1.4rem; }
  .process-step { padding: 0.9rem 0.8rem; }
  .contact-channels { flex-direction: column; }
  .channel-btn { width: 100%; justify-content: center; }
  .map-frame iframe { height: 180px; }
  .modal { border-radius: 16px; padding: 1.1rem; }
  .modal-header h2 { font-size: 1.1rem; }
  .success-card { padding: 1.6rem 1.2rem; }
  .success-card h1 { font-size: 1.3rem; }
  .success-card .ref { font-size: 1.3rem; }
  .float-wa { width: 48px; height: 48px; bottom: 1rem; inset-inline-end: 1rem; }
}

/* Small phones */
@media (max-width: 480px) {
  .container { padding: 0 0.85rem; }
  section { padding: 2.25rem 0; }
  .section-compact { padding: 1.75rem 0; }
  .section-booking { padding: 2.5rem 0; }
  .hero { padding-top: 2rem; padding-bottom: 3rem; }
  .hero-headline { font-size: 1.55rem; }
  .hero-lead { font-size: 0.9rem; line-height: 1.6; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section-title { font-size: 1.4rem; }
  .section-title-sm { font-size: 1.2rem; }
  .section-sub { font-size: 0.9rem; margin-bottom: 1.2rem; }
  .glow-line { margin: 0.5rem 0 0.75rem; }
  .panel { padding: 1.1rem; border-radius: 14px; }
  .panel-emphasis { padding: 1.05rem; }
  .product-card .body,
  .service-card .body { padding: 1rem; }
  .product-card h3,
  .service-card h3 { font-size: 1rem; }
  .product-card .quote-btn,
  .service-card .quote-btn { width: 100%; text-align: center; align-self: stretch; }
  .card-actions { flex-direction: column; }
  .card-actions .details-btn,
  .card-actions .quote-btn { width: 100%; text-align: center; }
  .filter-btn { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
  .process-step .step-num { width: 26px; height: 26px; font-size: 0.75rem; }
  .process-step h3 { font-size: 0.9rem; }
  .process-step p { font-size: 0.82rem; }
  .map-frame iframe { height: 160px; }
  .success-actions { flex-direction: column; }
  .success-actions .btn { width: 100%; }
  .nav-menu { left: 0.75rem; right: 0.75rem; }
  .btn { padding: 0.7rem 1rem; font-size: 0.88rem; }
  .btn-lg { padding: 0.8rem 1.2rem; }
  .footer { padding: 1.5rem 0 2rem; }
  .footer-links { gap: 0.6rem; font-size: 0.85rem; }
  .location-card { padding: 0.9rem; }
  .alert { padding: 0.7rem 0.85rem; font-size: 0.9rem; }
}
