@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap");

/* Flash Trading — warm beige / cream luxury (tone-on-tone) */
:root {
  --color-bg: #fcfaf7;
  --color-section: #f2ebe1;
  --color-section-alt: #efe9e1;
  --color-surface: #ffffff;
  --color-primary: #4a4238;
  --color-primary-mid: #6d6258;
  --color-heading-warm: #967e67;
  --color-heading-taupe: #8b735b;
  /* عناوين الموقع — تيركواز */
  --color-heading-turquoise: #02799c;
  --color-heading-turquoise-deep: #015f7a;
  --color-heading-turquoise-soft: #1498bd;
  --font-heading-site: "Outfit", sans-serif;
  --color-accent: #8b735b;
  --color-accent-dark: #6d5a47;
  --color-accent-soft: rgba(139, 115, 91, 0.12);
  --color-accent-glow: rgba(139, 115, 91, 0.2);
  --color-text: #3c3c3c;
  --color-muted: #6b6560;
  --color-border: rgba(74, 66, 56, 0.1);
  --shadow-sm: 0 1px 3px rgba(74, 66, 56, 0.06);
  --shadow-md: 0 18px 48px rgba(74, 66, 56, 0.08);
  --shadow-card: 0 4px 28px rgba(74, 66, 56, 0.06);
  --shadow-glow: 0 0 0 1px rgba(139, 115, 91, 0.1), 0 12px 36px rgba(74, 66, 56, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --font-ar: "Tajawal", system-ui, sans-serif;
  --font-en: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-heading-ar: "Tajawal", system-ui, sans-serif;
  --font-display-en: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-heading-en: "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h: 76px;
  --header-pad-x: 1rem;
  --header-offset: calc(env(safe-area-inset-top, 0px) + var(--header-h));
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

/* توحيد خط العربية: Tajawal لكل العناوين التي كانت تستخدم Outfit */
html[lang="ar"] {
  --font-heading-site: "Tajawal", system-ui, sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.98) 80%,
      rgba(242, 235, 225, 0.98) 100%
    ),
    var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  font-family: var(--font-en);
}

.brand-name,
.hero-title,
.section-title,
.about-panel__title,
.service-card h3,
.category-card h3,
.client-card h3,
.product-card h3 {
  font-family: var(--font-heading-site);
  font-weight: 700;
}

html[lang="en"] .brand-name,
html[lang="en"] .hero-title,
html[lang="en"] .section-title,
html[lang="en"] .about-panel__title,
html[lang="en"] .service-card h3,
html[lang="en"] .category-card h3,
html[lang="en"] .client-card h3,
html[lang="en"] .product-card h3 {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-brand strong {
  font-family: var(--font-heading-site);
  font-weight: 700;
}

html[lang="en"] .footer-brand strong {
  font-weight: 600;
}

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

a {
  color: var(--color-accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  padding: 0.75rem 1rem;
  font-family: var(--font-heading-site);
  font-weight: 600;
  background: var(--color-heading-turquoise-deep);
  color: #faf9f6;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--color-heading-turquoise-soft);
  outline-offset: 2px;
}

.container {
  width: min(1100px, 100% - 3rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  min-height: var(--header-offset);
  height: auto;
  display: flex;
  align-items: center;
  padding-top: env(safe-area-inset-top, 0);
  padding-inline-start: env(safe-area-inset-left, 0);
  padding-inline-end: env(safe-area-inset-right, 0);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 0.3s var(--ease-out),
    background 0.3s,
    border-color 0.3s,
    backdrop-filter 0.3s;
}

.site-header.is-top {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

.site-header.is-glass {
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  border-bottom-color: rgba(74, 66, 56, 0.12);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header.is-past-hero {
  background: rgba(242, 235, 225, 0.78);
  backdrop-filter: blur(16px) saturate(128%);
  -webkit-backdrop-filter: blur(16px) saturate(128%);
  border-bottom-color: rgba(139, 115, 91, 0.22);
  box-shadow: 0 8px 24px rgba(74, 66, 56, 0.09);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1200px, 100% - 2 * var(--header-pad-x));
  min-height: var(--header-h);
  margin-inline: auto;
  padding-block: 0.35rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  flex-shrink: 0;
}

.brand-logo img {
  display: block;
  object-fit: contain;
  width: 132px;
  height: auto;
  border-radius: 0;
}

.footer-logo img {
  width: 120px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--color-heading-turquoise);
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 500;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-menu a {
  display: block;
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-menu a:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.68rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
}

.cart-btn:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  text-decoration: none;
}

.cart-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-btn__badge {
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  background: var(--color-heading-turquoise);
  color: #fff;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.78rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lang-btn:hover {
  border-color: rgba(139, 115, 91, 0.35);
  background: var(--color-accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.9rem 1.65rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-section-alt);
  color: var(--color-primary);
  border: 1px solid rgba(139, 115, 91, 0.35);
  box-shadow: none;
}

.btn-primary:hover {
  text-decoration: none;
  background: #e8dfd4;
  border-color: rgba(139, 115, 91, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--color-heading-turquoise-deep);
  border: 1px solid rgba(13, 148, 136, 0.45);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(13, 148, 136, 0.55);
  color: var(--color-accent-dark);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(139, 115, 91, 0.08);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: flex;
  align-items: center;
  padding-top: var(--header-offset);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 24%, rgba(2, 121, 156, 0.14) 0%, rgba(2, 121, 156, 0) 38%),
    linear-gradient(165deg, #ffffff 0%, #f9f7f3 58%, #f1ebe3 100%);
  z-index: 0;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(248, 245, 239, 0.7) 45%,
    rgba(239, 233, 225, 0.65) 100%
  );
}

.hero-grid-accent {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(139, 115, 91, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 115, 91, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, transparent, black 18%, black 82%, transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 5rem 6rem;
  max-width: 820px;
  padding-inline: clamp(1rem, 2.5vw, 1.6rem);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.3) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading-site);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-heading-turquoise-deep);
  margin-bottom: 1.25rem;
}

html[lang="ar"] .hero-eyebrow {
  font-size: 16px;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--color-heading-turquoise);
  text-wrap: balance;
}

html[lang="en"] .hero-title {
  letter-spacing: 0.03em;
}

.hero-lead {
  margin: 0 0 2.25rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #455861;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

html[dir="rtl"] .hero-scroll {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(2, 121, 156, 0.52), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.92);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Sections */
.section {
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3.25rem;
}

.section-kicker {
  display: block;
  font-family: var(--font-heading-site);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-heading-turquoise-soft);
  margin-bottom: 0.85rem;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-heading-turquoise);
}

.section-desc {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.0625rem;
}

/* About */
.about {
  background: var(--color-surface);
}

.about-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-intro {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.about-hero-banner {
  position: relative;
  min-height: clamp(320px, 56vh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.about-hero-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 24, 22, 0.28) 0%, rgba(26, 24, 22, 0.58) 100%);
}

.about-hero-banner__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(2rem, 6vw, 4rem);
}

.about-hero-banner .section-kicker,
.about-hero-banner .hero-title,
.about-hero-banner .hero-lead {
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

.about-hero-banner .hero-lead {
  max-width: 760px;
}

.about-hero-media {
  position: relative;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  max-width: 980px;
}

.about-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(239, 233, 225, 0.2) 100%);
  pointer-events: none;
}

.about-hero-media img {
  width: 100%;
  height: clamp(240px, 42vw, 420px);
  object-fit: cover;
  object-position: center;
}

.about-lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--color-primary-mid);
  line-height: 1.8;
}

.about-story-title {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  margin-bottom: 0.75rem;
}

.about-why-block {
  margin: 1.5rem auto 0;
  max-width: 880px;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fdfbf8 0%, #f7f1e8 100%);
}

.about-why-block__title {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  margin: 0 0 0.75rem;
}

.about-why-block__intro {
  margin: 0 0 1rem;
  color: var(--color-muted);
  line-height: 1.8;
}

.about-why-block__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.about-why-block__list li {
  position: relative;
  margin: 0;
  padding: 0.75rem 0.8rem 0.75rem 2.25rem;
  border: 1px solid rgba(150, 126, 103, 0.22);
  border-radius: 12px;
  background: #fff;
  color: var(--color-primary-mid);
  line-height: 1.75;
  font-size: 0.965rem;
}

.about-why-block__list li::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 0.92rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-heading-turquoise);
  box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.15);
}

html[dir="rtl"] .about-why-block__list li {
  padding: 0.75rem 2.25rem 0.75rem 0.8rem;
}

html[dir="rtl"] .about-why-block__list li::before {
  left: auto;
  right: 0.8rem;
}

.about-why-block__footer {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(150, 126, 103, 0.35);
  color: var(--color-heading-turquoise);
  font-weight: 700;
  text-align: center;
  line-height: 1.9;
  white-space: pre-line;
}

.about-intro-note {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(0.95rem, 2vw, 1.25rem);
}

.about-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.about-panel {
  padding: 2rem 2rem 2.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #faf9f6 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.about-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.about-panel__title {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  color: var(--color-heading-turquoise);
}

.about-list {
  margin: 0;
  padding-inline-start: 1.25rem;
  color: var(--color-muted);
  font-size: 0.975rem;
  line-height: 1.75;
}

.about-list li {
  margin-bottom: 0.5rem;
}

.about-list li:last-child {
  margin-bottom: 0;
}

.about-why {
  background: linear-gradient(180deg, var(--color-section-alt) 0%, var(--color-bg) 100%);
}

.about-why-grid .reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.about-why-grid .reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.about-why-grid .reveal:nth-child(4) {
  transition-delay: 0.18s;
}

/* Services */
.services {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-section-alt) 100%);
}

.services .section-head {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.services .section-head .services-intro {
  margin-inline: auto;
  margin-top: 0.65rem;
  padding: 1.2rem 1.35rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(150, 126, 103, 0.22);
  box-shadow: var(--shadow-sm);
  text-align: start;
  max-width: 52rem;
}

.services-intro__item {
  position: relative;
  margin: 0 0 1.35rem;
  padding-inline-start: 1.2rem;
  line-height: 1.82;
  font-size: 1.0625rem;
  color: var(--color-text);
}

.services-intro__item:last-child {
  margin-bottom: 0;
}

.services-intro__item::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: linear-gradient(165deg, var(--color-heading-turquoise-soft), var(--color-heading-turquoise));
  box-shadow: 0 0 0 2px rgba(2, 121, 156, 0.12);
}

.services-intro__title {
  font-weight: 700;
  color: var(--color-heading-turquoise-deep);
  letter-spacing: 0.015em;
}

.services-intro__body {
  font-weight: 400;
  color: var(--color-primary-mid);
}

.services-intro--legacy {
  white-space: pre-line;
}

.services-notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.35rem 0 1.8rem;
}

.services-note {
  background: #fff;
  border: 1px solid rgba(150, 126, 103, 0.2);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: 0 8px 22px rgba(14, 48, 71, 0.06);
}

.services-note h3 {
  margin: 0 0 0.45rem;
  color: var(--color-heading-turquoise);
  font-size: 1.05rem;
}

.services-note p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.85;
  font-size: 0.95rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2rem 2rem 2.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.2s;
}

.service-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-heading-turquoise), var(--color-heading-turquoise-soft));
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: rgba(139, 115, 91, 0.22);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(20, 184, 166, 0.12);
  color: var(--color-heading-turquoise);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  color: var(--color-heading-turquoise);
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
  white-space: pre-line;
}

.section-kicker:empty,
.section-desc:empty {
  display: none;
}

/* Categories */
.categories {
  background: var(--color-surface);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  background: #fdfcfa;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

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

.category-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #efe9e1, #e5ddd3);
  position: relative;
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0.35rem;
  background: linear-gradient(180deg, #f6f2ec 0%, #ebe3d8 100%);
  transition: transform 0.55s var(--ease-out);
}

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

.category-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.32) 42%,
    rgba(0, 0, 0, 0.08) 66%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.category-card__media--pattern {
  background:
    linear-gradient(135deg, rgba(150, 126, 103, 0.15), rgba(139, 115, 91, 0.12)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.35) 8px,
      rgba(255, 255, 255, 0.35) 16px
    );
  min-height: 180px;
}

.category-card__body {
  position: relative;
  z-index: 2;
  margin-top: -6.2rem;
  padding: 0 1.35rem 1.4rem;
  flex: 1;
}

.category-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.category-card p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  line-height: 1.6;
}

a.category-card--link {
  text-decoration: none;
  color: inherit;
}

a.category-card--link:focus-visible {
  outline: 2px solid var(--color-heading-turquoise);
  outline-offset: 3px;
}

.product-category-block--alt.products {
  background: var(--color-surface);
}

/* Products page specific visual polish */
.products-page {
  background:
    radial-gradient(1200px 420px at 50% -260px, rgba(6, 173, 188, 0.12), transparent 70%),
    linear-gradient(180deg, #fbf8f4 0%, #f6f1e8 48%, #fbf8f3 100%);
}

.products-page__catalog-anchor {
  height: 0;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-offset) + 0.35rem);
}

.products-page .product-category-block,
.products-page .section.products#products {
  scroll-margin-top: calc(var(--header-offset) + 0.35rem);
}

.products-page [id^="product-card-"] {
  scroll-margin-top: calc(var(--header-offset) + 0.75rem);
}

.products-page .section-head {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.products-page .section-title {
  font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.5rem);
}

.products-page .section-desc {
  margin-inline: auto;
}

.products-page .category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.products-page .category-card {
  border-radius: 22px;
  border-color: rgba(122, 101, 79, 0.2);
  background: #fff;
  box-shadow: 0 8px 26px rgba(76, 60, 45, 0.08);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.products-page .category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(122, 101, 79, 0.32);
  box-shadow: 0 16px 34px rgba(68, 52, 39, 0.16);
}

.products-page .category-card__media {
  aspect-ratio: 16 / 10;
}

.products-page .category-card__media::after {
  display: none;
}

.products-page .category-card__body {
  position: static;
  margin-top: 0;
  padding: 0.9rem 1rem 1.05rem;
  background: #fff;
}

.products-page .category-card h3 {
  font-size: 1.06rem;
  margin-bottom: 0.42rem;
  color: var(--color-heading-turquoise);
  text-shadow: none;
}

.products-page .category-card p {
  font-size: 0.87rem;
  line-height: 1.58;
  color: var(--color-muted);
  text-shadow: none;
}

.products-page .product-category-block .container {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(122, 101, 79, 0.14);
  border-radius: 24px;
  padding: clamp(1.1rem, 2.2vw, 2rem);
  box-shadow: 0 12px 26px rgba(73, 58, 44, 0.08);
}

.products-page .product-category-block + .product-category-block {
  padding-top: 0.6rem;
}

.products-page .products-grid {
  gap: 1rem;
}

/* Products (catalog) */
.products {
  background: var(--color-section-alt);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  /* بدون هذا، عناصر الشبكة تمتد لارتفاع الصف فيبدو الإطار مربعاً */
  align-items: start;
}

@media (min-width: 641px) {
  .product-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .product-card--wide {
    grid-column: auto;
  }
}

.product-card,
a.product-card-link.product-card {
  width: 100%;
  aspect-ratio: 2 / 3;
}

.product-card {
  padding: 0;
  overflow: hidden;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: rgba(139, 115, 91, 0.2);
}

.product-card__media {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f0ea 0%, #e8e2d8 100%);
}

/* تدرج داكن أسفل الصورة لقراءة الاسم الأبيض */
.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.45) 42%,
    rgba(0, 0, 0, 0.12) 68%,
    transparent 100%
  );
}

.product-card__media img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.product-card:hover .product-card__media img {
  transform: scale(1.03);
}

/* البطاقة العريضة تمتد على عمودين فقط؛ مقاس الصورة دائماً 2:3 مثل البطاقة العادية */
.product-card__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.1rem 1rem 1rem;
  pointer-events: none;
}

.product-card__caption h3 {
  margin: 0;
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

a.product-card-link.product-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.product-card-link.product-card:focus-visible {
  outline: 2px solid var(--color-heading-turquoise);
  outline-offset: 3px;
}

.products-page .product-card--shop {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
}

.products-page .product-card--shop .product-card__media {
  height: auto;
  aspect-ratio: 4 / 5;
}

.products-page .product-card--shop .product-card__media::after {
  display: none;
}

.products-page .product-card-link--media {
  display: block;
  text-decoration: none;
  color: inherit;
}

.products-page .product-card__shop-meta {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 0.85rem 0.95rem;
}

.products-page .product-card__shop-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color-heading-turquoise);
}

.products-page .product-card__title-link {
  color: inherit;
  text-decoration: none;
}

.products-page .product-card__title-link:hover {
  text-decoration: underline;
}

.products-page .product-card__shop-price {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #4a3e31;
}

.products-page .product-card__shop-btn {
  width: 100%;
  padding-block: 0.56rem;
  border-radius: 10px;
  font-size: 0.88rem;
}

.products-page .product-card--shop.product-card--wide {
  grid-column: span 1;
}

/* صفحة تفاصيل منتج */
.product-detail {
  padding: 1rem 0 3rem;
}

.product-detail__crumb {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.product-detail__crumb a {
  color: var(--color-heading-turquoise);
  text-decoration: none;
}

.product-detail__crumb a:hover {
  text-decoration: underline;
}

.product-detail__crumb-current {
  color: var(--color-muted);
  max-width: 100%;
  word-break: break-word;
}

.product-detail__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .product-detail__layout {
    grid-template-columns: 1fr;
  }
}

.product-detail__layout--wide {
  grid-template-columns: 1fr;
}

.product-detail__layout--wide .product-detail__media {
  max-width: 100%;
}

.product-detail__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-section);
}

.product-detail__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.product-detail__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 1rem;
  color: var(--color-heading-turquoise);
}

.product-detail__desc p {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: var(--color-text);
}

.product-detail__desc p:last-child {
  margin-bottom: 0;
}

.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Clients */
.clients {
  background: var(--color-surface);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.client-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: linear-gradient(145deg, #ffffff 0%, #faf9f6 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.client-card__badge {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1.25rem;
  font-size: 2.25rem;
  font-weight: 800;
  color: rgba(139, 115, 91, 0.15);
  line-height: 1;
  pointer-events: none;
}

.client-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--color-heading-turquoise);
}

.client-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* Gallery */
.gallery {
  background: linear-gradient(180deg, var(--color-section) 0%, var(--color-bg) 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(140px, auto));
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: none;
  background: #efe9e1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  filter: saturate(0.95) sepia(0.06);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item--tall {
  grid-row: span 2;
  grid-column: 1;
}

.gallery-item--wide {
  grid-column: span 2;
}

/* Partners (logos from site.json) */
.partners {
  background: var(--color-surface);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem 1.75rem;
  align-items: stretch;
  justify-items: center;
  max-width: 960px;
  margin-inline: auto;
}

.partner-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  max-width: 220px;
}

.partner-card-link:focus-visible {
  outline: 2px solid var(--color-heading-turquoise);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  width: 100%;
  max-width: 220px;
  background: linear-gradient(145deg, #ffffff 0%, #faf9f6 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.partner-card-link:hover .partner-card {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.partner-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: 100%;
}

.partner-card__logo img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-mid);
  text-align: center;
  line-height: 1.35;
}

/* Contact */
.contact {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-section) 100%);
}

.contact .section-head .section-desc {
  white-space: pre-line;
  max-width: 42rem;
  margin-inline: auto;
  line-height: 1.65;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 920px;
  margin-inline: auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.contact-card--static {
  cursor: default;
}

.contact-card--static:hover {
  transform: none;
}

.contact-icon {
  width: 42px;
  height: 42px;
  color: var(--color-heading-turquoise);
  margin-bottom: 0.25rem;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  word-break: break-word;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #3d3429 0%, #2c2620 100%);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 2.75rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.footer-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: #e8dfd4;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
  text-decoration: none;
}

.footer-social-link[href*="wa.me"],
.footer-social-link[href*="whatsapp.com"] {
  color: #fff;
  background: #25d366;
  border-color: #1fae55;
}

.footer-social-link[href*="wa.me"]:hover,
.footer-social-link[href*="whatsapp.com"]:hover {
  background: #1ebe5b;
  border-color: #199f4c;
}

.footer-social-link[href*="tiktok.com"] {
  color: #fff;
  background: #000;
  border-color: #222;
}

.footer-social-link[href*="tiktok.com"]:hover {
  background: #111;
  border-color: #333;
}

.footer-social-link[href*="instagram.com"] {
  color: #fff;
  background: linear-gradient(45deg, #f58529 0%, #dd2a7b 35%, #8134af 70%, #515bd4 100%);
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-social-link[href*="instagram.com"]:hover {
  filter: brightness(1.06);
}

.footer-social-link[href*="facebook.com"] {
  color: #fff;
  background: #1877f2;
  border-color: #166fe5;
}

.footer-social-link[href*="facebook.com"]:hover {
  background: #166fe5;
  border-color: #155fc4;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.services-grid .reveal:nth-child(1) {
  transition-delay: 0s;
}
.services-grid .reveal:nth-child(2) {
  transition-delay: 0.06s;
}
.services-grid .reveal:nth-child(3) {
  transition-delay: 0.12s;
}
.services-grid .reveal:nth-child(4) {
  transition-delay: 0.18s;
}

.category-grid .reveal:nth-child(1) {
  transition-delay: 0s;
}
.category-grid .reveal:nth-child(2) {
  transition-delay: 0.06s;
}
.category-grid .reveal:nth-child(3) {
  transition-delay: 0.12s;
}
.category-grid .reveal:nth-child(4) {
  transition-delay: 0.18s;
}

.products-grid .reveal {
  transition-delay: calc(var(--stagger, 0) * 0.05s);
}

/* Responsive */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-panels,
  .services-notes,
  .services-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-item--tall {
    grid-row: auto;
    grid-column: auto;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
    --header-pad-x: 0.75rem;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: rgba(139, 115, 91, 0.1);
  }

  .nav-toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }

  .nav {
    position: relative;
    z-index: 1002;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    position: relative;
    z-index: 1002;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
  }

  .header-inner .brand {
    flex: 1 1 auto;
    min-width: 0;
    margin-inline-end: auto;
  }

  .brand-logo img {
    width: 120px;
    max-width: 120px;
    height: auto;
  }

  .brand-name {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-tag {
    font-size: 0.6875rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .header-inner .header-actions {
    flex: 0 0 auto;
    margin-inline-start: 0;
    gap: 0.4rem;
  }

  .cart-btn {
    padding: 0.38rem 0.54rem;
    min-height: 40px;
  }

  .cart-btn__label {
    display: none;
  }

  .lang-btn {
    padding: 0.38rem 0.65rem;
    font-size: 0.8125rem;
    min-height: 40px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    border-color: rgba(139, 115, 91, 0.2);
    background: rgba(139, 115, 91, 0.1);
  }

  .header-inner .nav-menu {
    position: fixed;
    z-index: 1003;
    inset-inline: max(0.75rem, env(safe-area-inset-left, 0px))
      max(0.75rem, env(safe-area-inset-right, 0px));
    top: calc(var(--header-offset) + 0.35rem);
    max-height: min(460px, calc(100vh - var(--header-offset) - 1.25rem));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s var(--ease-out);
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu li a {
    padding: 0.9rem 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    font-size: 0.9375rem;
  }

  .site-header:has(.nav-menu.is-open)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(61, 52, 41, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: headerOverlayIn 0.25s var(--ease-out) forwards;
  }
}

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

body.nav-drawer-open {
  overflow: hidden;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  inset-inline-end: max(1rem, env(safe-area-inset-end, env(safe-area-inset-right, 0px)));
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  border: 1px solid #1fae55;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
}

.wa-float:hover {
  color: #fff;
  background: #1ebe5b;
  transform: scale(1.07);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4), 0 3px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.wa-float:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

body.nav-drawer-open .wa-float {
  z-index: 998;
}

/* Floating back-to-top — stacked above WhatsApp (same edge, centered) */
.scroll-top-float {
  position: fixed;
  /* WA is 56×56; gap 0.65rem; sit above safe-area + WA */
  bottom: calc(max(1rem, env(safe-area-inset-bottom, 0px)) + 56px + 0.65rem);
  inset-inline-end: calc(max(1rem, env(safe-area-inset-end, env(safe-area-inset-right, 0px))) + 4px);
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(74, 66, 56, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-heading-turquoise-deep);
  box-shadow: 0 4px 18px rgba(74, 66, 56, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, color 0.2s;
}

.scroll-top-float:hover {
  background: var(--color-heading-turquoise-deep);
  color: #faf9f6;
  border-color: rgba(13, 148, 136, 0.45);
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(13, 148, 136, 0.22), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scroll-top-float:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

body.nav-drawer-open .scroll-top-float {
  z-index: 998;
}

@media (max-width: 640px) {
  .about-hero-banner {
    min-height: 480px;
    align-items: flex-end;
  }

  .about-hero-banner__content {
    padding-block: 1.4rem;
  }

  .about-hero-banner .hero-title {
    font-size: clamp(1.45rem, 6vw, 2rem);
    margin-bottom: 0.7rem;
  }

  .about-hero-banner .hero-lead {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .about-hero-media {
    margin-bottom: 1.5rem;
    border-radius: 16px;
  }

  .about-hero-media img {
    height: 220px;
  }

  .about-why-block {
    margin-top: 1.1rem;
    padding: 0.85rem;
  }

  .about-why-block__list {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .about-why-block__list li {
    font-size: 0.94rem;
    padding-top: 0.68rem;
    padding-bottom: 0.68rem;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .category-card {
    position: relative;
    min-height: 240px;
    border-radius: 18px;
    background: #dcd7ce;
    box-shadow: 0 6px 18px rgba(74, 66, 56, 0.1);
  }

  .category-card__media {
    height: 100%;
    aspect-ratio: auto;
  }

  .category-card__media img {
    object-fit: cover;
    padding: 0;
    background: transparent;
  }

  .category-card__body {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    margin-top: 0;
    padding: 0.9rem 0.85rem 0.95rem;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.52) 45%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .category-card h3 {
    font-size: 0.86rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
  }

  .category-card p {
    font-size: 0.72rem;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .products-page .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .products-page .category-card {
    min-height: auto;
    border-radius: 18px;
  }

  .products-page .category-card__body {
    padding: 0.8rem 0.8rem 0.9rem;
    position: static;
    inset-inline: auto;
    bottom: auto;
    background: #fff;
  }

  .products-page .category-card h3 {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .products-page .category-card p {
    font-size: 0.76rem;
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .products-page .product-category-block .container {
    border-radius: 16px;
    padding: 1rem 0.9rem 1.05rem;
  }

  .products-page .product-card__shop-meta {
    gap: 0.45rem;
    padding: 0.75rem 0.7rem 0.8rem;
  }

  .products-page .product-card__shop-title {
    font-size: 0.84rem;
  }

  .products-page .product-card__shop-price {
    font-size: 0.85rem;
  }

  .products-page .product-card__shop-btn {
    font-size: 0.78rem;
    padding-block: 0.5rem;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-image-wrap,
  .hero-img {
    height: 100%;
  }

  .container {
    width: min(1140px, 100% - 1.5rem);
  }

  .hero-content {
    padding-block: 3rem 4.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-lg {
    width: 100%;
    text-align: center;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }

  .header-actions .btn-sm {
    display: none;
  }

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

  .gallery-item--wide {
    grid-column: auto;
  }
}

/* Company profile PDF page & inner content pages */
.page-profile .btn-outline,
.page-inner .btn-outline {
  background: transparent;
  color: var(--color-heading-turquoise-deep);
  border: 1px solid rgba(13, 148, 136, 0.45);
}

.page-profile .btn-outline:hover,
.page-inner .btn-outline:hover {
  background: rgba(239, 233, 225, 0.6);
}

/* SPA: body has no .page-inner; inner pages use <main id="main" class="inner-main"> */
.page-inner .inner-main,
#main.inner-main {
  padding-top: var(--header-offset);
  min-height: 100vh;
  background: var(--color-bg);
}

.page-inner .inner-toolbar {
  padding-block: 1.25rem 0.5rem;
}

.page-inner .nav-menu a[aria-current="page"],
.page-profile .nav-menu a[aria-current="page"] {
  color: var(--color-accent-dark);
  font-weight: 600;
}

.profile-main {
  padding-top: var(--header-offset);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}

.profile-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 2rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.profile-toolbar__text {
  max-width: 640px;
}

.profile-heading {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--color-heading-turquoise);
  font-family: var(--font-heading-site);
  letter-spacing: 0.02em;
}

html[lang="en"] .profile-heading {
  font-weight: 600;
}

.profile-lead {
  margin: 0;
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.profile-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.profile-pdf-wrap {
  flex: 1;
  background: linear-gradient(180deg, var(--color-section) 0%, #efe9e1 100%);
  border-block: 1px solid var(--color-border);
  min-height: 60vh;
}

.profile-pdf-frame {
  display: block;
  width: 100%;
  min-height: min(78vh, 900px);
  border: none;
  background: #faf9f6;
}

.profile-footnote {
  margin: 0;
  padding-block: 1.25rem 2rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.5;
}

.site-footer--compact {
  padding-block: 1.75rem;
}

.site-footer--compact .footer-inner {
  justify-content: center;
  text-align: center;
}

@media (max-width: 640px) {
  .profile-toolbar__actions {
    width: 100%;
  }

  .profile-toolbar__actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* --- Cart page --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cart-page__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-heading-turquoise-deep);
}

.cart-page__empty {
  padding: 2rem 0;
  text-align: center;
  color: var(--color-muted);
}

.cart-page__empty .btn {
  margin-top: 1rem;
}

.cart-page__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-page__row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--color-section-alt);
  border-radius: 16px;
  border: 1px solid rgba(139, 115, 91, 0.12);
}

.cart-page__thumb img,
.cart-page__thumb-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.cart-page__thumb-placeholder {
  background: rgba(13, 148, 136, 0.08);
}

.cart-page__name {
  font-weight: 700;
  color: var(--color-heading-turquoise-deep);
  text-decoration: none;
}

.cart-page__name:hover {
  text-decoration: underline;
}

.cart-page__unit {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.cart-page__qty input {
  width: 4rem;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(139, 115, 91, 0.25);
  font: inherit;
  text-align: center;
}

.cart-page__line-total {
  font-weight: 600;
  min-width: 5.5rem;
  text-align: end;
}

.cart-page__remove {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid rgba(139, 115, 91, 0.35);
}

.cart-page__remove:hover {
  background: rgba(139, 115, 91, 0.08);
}

.cart-page__footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(139, 115, 91, 0.15);
}

.cart-page__grand {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.cart-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .cart-page__row {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto auto;
  }

  .cart-page__thumb {
    grid-row: 1 / span 2;
  }

  .cart-page__thumb img,
  .cart-page__thumb-placeholder {
    width: 64px;
    height: 64px;
  }

  .cart-page__qty {
    grid-column: 2;
  }

  .cart-page__line-total {
    grid-column: 2;
    text-align: start;
  }

  .cart-page__remove {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header:has(.nav-menu.is-open)::before {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scroll-line {
    animation: none;
  }

  .product-card:hover .product-card__media img,
  .category-card:hover .category-card__media img,
  .gallery-item:hover img {
    transform: none;
  }
}
