/* ==========================================================================
   Legacy Catering — شركة أرث الضيافة للخدمات التموينية
   Bilingual (AR/EN) Luxury Design System | Mobile (320px) to 4K/64" TV
   ========================================================================== */

:root {
  --mahogany-950: #35140a;
  --mahogany-900: #451c0f;
  --mahogany-800: #562717;
  --mahogany-700: #67321d;
  --champagne: #e3dcd2;
  --copper-600: #9f5f27;
  --copper-500: #b87333;
  --copper-400: #d49b63;
  --copper-200: #ecd2b5;
  --ivory-50: #fbf8f5;
  --ivory-100: #f3ece4;
  --ivory-200: #e7ddd1;
  --white: #ffffff;
  --ink-900: #1c120e;
  --ink-700: #3d2c25;
  --ink-500: #665249;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --font-ar: 'Tajawal', 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --font-en-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-en: 'Cormorant Garamond', Georgia, serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 16px rgba(28, 18, 14, 0.06);
  --shadow-md: 0 12px 34px rgba(28, 18, 14, 0.10);
  --shadow-lg: 0 24px 60px rgba(27, 9, 4, 0.18);
  --container-max: 1260px;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

@media (min-width: 1920px) {
  html { font-size: 18px; }
  :root { --container-max: 1480px; }
}
@media (min-width: 2560px) {
  html { font-size: 21px; }
  :root { --container-max: 1760px; }
}

body {
  font-family: var(--font-ar);
  background-color: #fcfaf8;
  background-image: url('../images/brand-motif-light.webp');
  background-repeat: no-repeat;
  background-position: left bottom;
  background-attachment: fixed;
  background-size: min(760px, 62vw) auto;
  color: var(--ink-900);
  line-height: 1.75;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html[dir="ltr"] body {
  font-family: var(--font-en-sans);
  direction: ltr;
  text-align: left;
  line-height: 1.65;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 1rem;
  background: var(--mahogany-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 2000;
}
.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   Top Bar & Luxury Sticky Header
   ========================================================================== */
.top-strip {
  background: var(--mahogany-950);
  color: var(--copper-200);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(212, 155, 99, 0.16);
}

.top-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 0.55rem;
}

.top-strip-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.top-strip a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--copper-200);
}
.top-strip a:hover {
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 248, 245, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(70, 28, 15, 0.10);
  transition: box-shadow var(--transition), background-color var(--transition);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(27, 9, 4, 0.08);
  background: rgba(255, 255, 255, 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
}

.brand-text {
  min-width: 0;
}

.brand-logo-wrap {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-wrap img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

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

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mahogany-900);
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.74rem;
  color: var(--copper-600);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--mahogany-900);
  background: var(--ivory-100);
}

.nav-link.active {
  color: var(--mahogany-900);
  box-shadow: inset 0 0 0 1px rgba(184, 115, 51, 0.38);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* Language Switcher Button */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 40px;
  padding-inline: 0.85rem;
  border-radius: 999px;
  border: 1.5px solid rgba(70, 28, 15, 0.22);
  background: var(--white);
  color: var(--mahogany-900);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: var(--mahogany-900);
  color: var(--white);
  border-color: var(--mahogany-900);
  transform: translateY(-1px);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--mahogany-900), var(--mahogany-700));
  color: var(--white);
  padding: 0.58rem 1.18rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(70, 28, 15, 0.24);
  white-space: nowrap;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(70, 28, 15, 0.32);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(70, 28, 15, 0.16);
  background: var(--white);
  color: var(--mahogany-900);
  cursor: pointer;
}

@media (max-width: 1120px) {
  .main-nav,
  .header-cta-desktop {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .top-strip-hide-sm {
    display: none;
  }
}

.mobile-nav {
  display: none;
  background: var(--white);
  border-bottom: 1px solid rgba(70, 28, 15, 0.12);
  padding: 1rem 1.25rem 1.4rem;
  box-shadow: var(--shadow-md);
}
.mobile-nav.is-open {
  display: block;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.mobile-nav-list .nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 12px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--copper-500), var(--copper-600));
  color: var(--white);
  box-shadow: 0 10px 26px rgba(184, 115, 51, 0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(184, 115, 51, 0.42);
}

.btn-dark {
  background: linear-gradient(135deg, var(--mahogany-900), var(--mahogany-700));
  color: var(--white);
  box-shadow: 0 10px 26px rgba(44, 16, 7, 0.26);
}
.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(44, 16, 7, 0.36);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--mahogany-900);
  border: 1.5px solid rgba(70, 28, 15, 0.28);
}
.btn-outline-dark:hover {
  background: var(--mahogany-900);
  color: var(--white);
  border-color: var(--mahogany-900);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--copper-600);
  background: rgba(184, 115, 51, 0.11);
  border: 1px solid rgba(184, 115, 51, 0.28);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.eyebrow-light {
  color: var(--copper-200);
  background: rgba(212, 155, 99, 0.14);
  border-color: rgba(212, 155, 99, 0.34);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(540px, 78vh, 840px);
  display: flex;
  align-items: center;
  background: var(--mahogany-950);
  color: var(--white);
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.44;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(69, 28, 15, 0.90) 0%, rgba(86, 39, 23, 0.78) 52%, rgba(103, 50, 29, 0.68) 100%),
    url('../images/brand-bg-dark.webp') left bottom / cover no-repeat;
  background-blend-mode: normal, soft-light;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-title {
  font-size: clamp(2rem, 4.3vw, 3.45rem);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 1.15rem;
  color: var(--white);
}

.hero-title span {
  color: var(--copper-400);
}

.hero-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: rgba(251, 248, 245, 0.88);
  margin-bottom: 1.85rem;
  max-width: 660px;
}

.hero-slogan-en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--copper-200);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  direction: ltr;
  display: inline-block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.trust-item {
  display: flex;
  flex-direction: column;
}
.trust-label {
  font-size: 0.8rem;
  color: var(--copper-200);
}
.trust-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

/* ==========================================================================
   Page Banner
   ========================================================================== */
.page-banner {
  background:
    linear-gradient(100deg, rgba(69, 28, 15, 0.92) 0%, rgba(86, 39, 23, 0.88) 55%, rgba(103, 50, 29, 0.86) 100%),
    url('../images/brand-bg-dark.webp') left bottom / cover no-repeat;
  color: var(--white);
  padding-block: clamp(3rem, 6vw, 4.8rem);
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 30%, rgba(212, 155, 99, 0.16), transparent 55%);
  pointer-events: none;
}

.page-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--copper-200);
  margin-bottom: 1rem;
}
.breadcrumb a:hover { color: var(--white); }

.page-banner h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.page-banner p {
  font-size: 1.06rem;
  color: rgba(251, 248, 245, 0.86);
}

/* ==========================================================================
   Sections, Grids & Cards
   ========================================================================== */
.section {
  padding-block: clamp(3.5rem, 6.5vw, 5.5rem);
}

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

.section-dark {
  background:
    linear-gradient(100deg, rgba(69, 28, 15, 0.94) 0%, rgba(86, 39, 23, 0.90) 55%, rgba(103, 50, 29, 0.88) 100%),
    url('../images/brand-bg-dark.webp') left bottom / cover no-repeat;
  color: var(--white);
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.section-header-center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  font-weight: 800;
  color: var(--mahogany-900);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.section-dark .section-title {
  color: var(--white);
}

.section-desc {
  font-size: 1.04rem;
  color: var(--ink-500);
}

.section-dark .section-desc {
  color: rgba(251, 248, 245, 0.82);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.85rem);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid rgba(70, 28, 15, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(184, 115, 51, 0.35);
}

.card-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ivory-200);
}

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

.card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(184, 115, 51, 0.14), rgba(70, 28, 15, 0.08));
  color: var(--mahogany-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--mahogany-900);
  margin-bottom: 0.6rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--ink-500);
  margin-bottom: 1rem;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--copper-600);
  font-size: 0.94rem;
}
.card-link:hover {
  color: var(--mahogany-900);
  gap: 0.65rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(184, 115, 51, 0.22);
  background: var(--mahogany-900);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-block: 1.25rem 1.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--ink-700);
  font-weight: 500;
}

.check-bullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(184, 115, 51, 0.16);
  color: var(--copper-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Legal Details Card
   ========================================================================== */
.legal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(184, 115, 51, 0.28);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.legal-card-head {
  background: linear-gradient(135deg, var(--mahogany-900), var(--mahogany-700));
  color: var(--white);
  padding: 1.6rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.legal-badge {
  background: rgba(212, 155, 99, 0.22);
  border: 1px solid rgba(212, 155, 99, 0.45);
  color: var(--copper-200);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(70, 28, 15, 0.08);
}

@media (max-width: 720px) {
  .legal-grid { grid-template-columns: 1fr; }
}

.legal-cell {
  background: var(--white);
  padding: 1.35rem 1.75rem;
}

.legal-cell-label {
  font-size: 0.84rem;
  color: var(--ink-500);
  margin-bottom: 0.3rem;
}

.legal-cell-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mahogany-900);
}

.legal-cell-value.mono {
  direction: ltr;
  display: inline-block;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Contact Form & Google Maps
   ========================================================================== */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(70, 28, 15, 0.08);
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mahogany-900);
}

.form-control {
  width: 100%;
  padding: 0.82rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(70, 28, 15, 0.16);
  background: var(--ivory-50);
  color: var(--ink-900);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), background-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--copper-500);
  background: var(--white);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.map-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(70, 28, 15, 0.12);
  box-shadow: var(--shadow-md);
  background: var(--ivory-200);
}

.map-box iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.map-bar {
  background: var(--white);
  padding: 1rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgba(70, 28, 15, 0.08);
}

/* ==========================================================================
   Unified Luxury Footer
   ========================================================================== */
.site-footer {
  background:
    linear-gradient(100deg, rgba(69, 28, 15, 0.97) 0%, rgba(86, 39, 23, 0.94) 55%, rgba(103, 50, 29, 0.93) 100%),
    url('../images/brand-bg-dark.webp') left bottom / cover no-repeat;
  color: rgba(251, 248, 245, 0.88);
  padding-top: clamp(3.2rem, 5vw, 4.5rem);
  border-top: 3px solid var(--copper-500);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr 1.15fr;
  gap: clamp(1.8rem, 3vw, 2.8rem);
  padding-bottom: 2.75rem;
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-title {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.55rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 36px;
  height: 2px;
  background: var(--copper-500);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: rgba(251, 248, 245, 0.78);
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-links a:hover {
  color: var(--copper-400);
  transform: translateX(-3px);
}
html[dir="ltr"] .footer-links a:hover {
  transform: translateX(3px);
}

.footer-legal-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 155, 99, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.88rem;
  display: grid;
  gap: 0.45rem;
}

.footer-legal-box strong {
  color: var(--copper-200);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  padding-block: 1.25rem;
  font-size: 0.88rem;
  color: rgba(251, 248, 245, 0.72);
}

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

.wijha-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--copper-200);
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(212, 155, 99, 0.10);
  border: 1px solid rgba(212, 155, 99, 0.28);
}

.wijha-credit:hover {
  background: var(--copper-500);
  color: var(--white);
  border-color: var(--copper-500);
}

.wijha-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  direction: ltr;
  display: inline-block;
}

/* ==========================================================================
   Floating WhatsApp Button (3 seconds on scroll up/down, never overlaps footer)
   ========================================================================== */
.wa-float {
  position: fixed;
  inset-inline-end: clamp(1rem, 2.2vw, 1.8rem);
  bottom: clamp(4.5rem, 8vh, 5.5rem);
  z-index: 1200;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.86);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s ease, background-color 0.2s ease;
}

.wa-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wa-float:hover,
.wa-float:focus-visible {
  background: var(--whatsapp-dark);
  transform: translateY(-2px) scale(1.06);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-start: 1.5rem;
  z-index: 1500;
  background: var(--mahogany-900);
  color: var(--white);
  padding: 0.9rem 1.35rem;
  border-radius: 12px;
  border: 1px solid var(--copper-500);
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.is-shown {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Comprehensive Mobile & Small-Screen Responsive Fixes (320px - 768px)
   ========================================================================== */
@media (max-width: 900px) {
  body {
    background-attachment: scroll;
    background-size: min(440px, 82vw) auto;
  }
}

@media (max-width: 680px) {
  .container {
    padding-inline: 1rem;
  }

  .top-strip {
    font-size: 0.78rem;
  }

  .top-strip-inner {
    justify-content: center;
    padding-block: 0.45rem;
    gap: 0.35rem 1rem;
  }

  .top-strip-group {
    gap: 0.85rem;
    justify-content: center;
  }

  .header-inner {
    padding-block: 0.6rem;
    gap: 0.5rem;
  }

  .brand-link {
    gap: 0.55rem;
  }

  .brand-logo-wrap {
    height: 32px;
  }

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

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

  .header-actions {
    gap: 0.4rem;
  }

  .lang-toggle {
    height: 36px;
    padding-inline: 0.65rem;
    font-size: 0.8rem;
    gap: 0.3rem;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .hero {
    min-height: auto;
    padding-block: 2.75rem 3.25rem;
  }

  .eyebrow {
    font-size: 0.76rem;
    padding: 0.3rem 0.75rem;
    line-height: 1.4;
  }

  .hero-title {
    font-size: clamp(1.65rem, 7.2vw, 2.15rem);
    line-height: 1.28;
    margin-bottom: 0.9rem;
  }

  .hero-slogan-en {
    font-size: 1.02rem;
    margin-bottom: 1rem;
  }

  .hero-lead {
    font-size: 0.95rem;
    margin-bottom: 1.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    margin-bottom: 1.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 0.82rem 1.2rem;
    font-size: 0.94rem;
  }

  .hero-trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-top: 1.15rem;
  }

  .page-banner {
    padding-block: 2.4rem;
  }

  .page-banner h1 {
    font-size: 1.65rem;
  }

  .page-banner p {
    font-size: 0.95rem;
  }

  .section {
    padding-block: 2.75rem;
  }

  .section-title {
    font-size: 1.48rem;
  }

  .section-desc {
    font-size: 0.95rem;
  }

  .card-body {
    padding: 1.2rem;
  }

  .legal-card-head {
    padding: 1.25rem;
  }

  .legal-cell {
    padding: 1rem 1.25rem;
  }

  .legal-cell-value {
    font-size: 0.96rem;
    overflow-wrap: anywhere;
  }

  .form-card {
    padding: 1.25rem;
  }

  .map-box iframe {
    height: 270px;
  }

  .map-bar {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .map-bar .btn {
    width: 100%;
  }

  .footer-grid {
    gap: 1.8rem;
    padding-bottom: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.65rem;
  }

  .wa-float {
    width: 48px;
    height: 48px;
    bottom: 1.25rem;
    inset-inline-end: 1rem;
  }

  .toast {
    inset-inline: 1rem;
    bottom: 1rem;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .brand-subtitle {
    display: none;
  }
  .brand-logo-wrap {
    height: 28px;
  }
  .brand-title {
    font-size: 0.88rem;
  }
}

.spa-page {
  display: none;
}
.spa-page.is-active {
  display: block;
}
