/* Arabic typography — Amiri (classical Naskh, 19th-century Bulaq heritage) */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ==============================
   Talhami Store - Global Styles
   Premium dark antique aesthetic
================================ */
:root {
  --bg-main: #1e1912;
  --bg-elevated: #28211a;
  --bg-glass: rgba(55, 42, 28, 0.38);
  --text-primary: #f2e7cf;
  --text-secondary: #c8b99b;
  --accent-gold: #b9924f;
  --accent-gold-soft: #e3c78c;
  --wood-brown: #2f1f14;
  --beige: #d8c8ac;
  --border-soft: rgba(227, 199, 140, 0.2);
  --shadow-soft: 0 15px 35px rgba(0, 0, 0, 0.35);
  --shadow-hard: 0 24px 55px rgba(0, 0, 0, 0.5);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: min(1180px, 92vw);
  /* Specific transition props — avoids expensive "all" style recalculation */
  --transition:
    transform 0.28s ease, box-shadow 0.28s ease, border-color 0.22s ease,
    color 0.22s ease, background-color 0.25s ease, opacity 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Google Sans", "Amiri", sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "GRAD" 0;
}

/* Many components (.btn, .field, .form-grid, etc.) set their own `display`,
   which otherwise wins over the UA stylesheet's `[hidden]{display:none}`
   since author rules always beat user-agent rules regardless of specificity.
   This one global rule makes the native hidden attribute reliably hide any
   element sitewide, no matter what other classes it carries. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ── Golden Scrollbar ── */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(12, 9, 6, 0.6);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    #f5d97a 0%,
    #c9922e 40%,
    #e8c46a 70%,
    #a0711e 100%
  );
  border-radius: 99px;
  box-shadow: 0 0 6px rgba(229, 196, 95, 0.55);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    #ffe790 0%,
    #d4a03a 40%,
    #f5d97a 70%,
    #b07f25 100%
  );
  box-shadow: 0 0 10px rgba(229, 196, 95, 0.8);
}
* {
  scrollbar-width: thin;
  scrollbar-color: #c9922e rgba(12, 9, 6, 0.6);
}

body {
  font-size: clamp(0.98rem, 0.25vw + 0.92rem, 1.08rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(185, 146, 79, 0.13),
      transparent 35%
    ),
    radial-gradient(
      circle at 80% 0%,
      rgba(216, 200, 172, 0.1),
      transparent 30%
    ),
    linear-gradient(160deg, #131009 0%, #1e1912 55%, #261e16 100%);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  animation: pageFadeIn 0.22s ease-out backwards;
}

/* Film grain removed — fixed pseudo-element causes GPU repaint on every scroll frame. */

/* Heading hierarchy — weight only, no font-family override needed. */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 86px 0;
}

/* Used right under a page-hero banner when the filter/grid should follow
   immediately, without a heading block eating into that first view. */
.section--tight {
  padding-top: 40px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0.035em;
  margin-bottom: 14px;
}

.section-subtitle {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: clamp(0.98rem, 0.12vw + 0.95rem, 1.08rem);
  line-height: 1.9;
  margin-bottom: 34px;
}

.glass {
  background: var(--bg-glass);
  /* backdrop-filter removed — promotes every .glass element to a compositor layer */
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(130deg, #a88240, #d1af73);
  color: #1a1208;
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(185, 146, 79, 0.35);
}

.btn-outline {
  border-color: var(--accent-gold);
  color: var(--accent-gold-soft);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(185, 146, 79, 0.18);
  color: var(--text-primary);
}

.preloader {
  position: fixed;
  inset: 0;
  background: #050403;
  display: grid;
  place-items: center;
  z-index: 1000;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 2px solid rgba(227, 199, 140, 0.2);
  border-top-color: var(--accent-gold-soft);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 14px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.whatsapp-fab:hover {
  background: #20bd5a;
  transform: translateY(-3px);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  color: #fff;
}

.whatsapp-fab svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .whatsapp-fab {
    right: 16px;
    bottom: 16px;
    padding: 14px;
  }

  .whatsapp-fab-label {
    display: none;
  }
}

/* Sticky lives on #site-header (parent = body, plenty of height below it),
   not on .topbar: position:sticky's containing block is just the direct
   parent regardless of its own position value, so if .topbar were the sticky
   element its containing block (#site-header) would be exactly its own
   height with zero slack to stick within. */
#site-header {
  position: sticky;
  top: 0;
  z-index: 120;
}

.topbar {
  /* No backdrop-filter: sticky blurred elements repaint every scroll frame */
  background: rgba(8, 7, 5, 0.96);
  border-bottom: 1px solid var(--border-soft);
  transform: translateZ(0);
  isolation: isolate;
}

.nav {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* ─── Logo (dark/light variants swapped via [data-theme]) ────────────────── */

.brand-logo {
  height: 62px;
  width: auto;
  display: none;
  transform: translateZ(0);
}

.brand-logo-dark {
  display: block;
}

[data-theme="light"] .brand-logo-dark {
  display: none;
}

[data-theme="light"] .brand-logo-light {
  display: block;
}

@media (max-width: 640px) {
  .brand-logo {
    height: 52px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding-bottom: 6px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-gold-soft),
    transparent
  );
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold-soft);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-caret {
  font-size: 0.72rem;
  opacity: 0.8;
  transform: translateY(-1px);
  transition: transform 0.25s ease;
}

.nav-dropdown.open .nav-caret,
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: rotate(180deg) translateY(1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 270px;
  max-height: min(66vh, 520px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #c9922e rgba(12, 9, 6, 0.6);
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(
    180deg,
    rgba(22, 16, 10, 0.97),
    rgba(12, 9, 6, 0.97)
  );
  box-shadow:
    0 26px 55px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(227, 199, 140, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.24s ease,
    visibility 0.22s ease;
  z-index: 160;
}

.nav-dropdown-sheen {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 8px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(227, 199, 140, 0.7),
    transparent
  );
  pointer-events: none;
}

.nav-dropdown-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.79rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: var(--transition);
}

.nav-dropdown-link:hover {
  color: var(--accent-gold-soft);
  background: rgba(185, 146, 79, 0.14);
  border-color: rgba(227, 199, 140, 0.24);
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

/* =====================================================
   Utility Bar — slim strip above the main nav with
   social links and the admin login entry point.
===================================================== */
.utility-bar {
  background: rgba(5, 4, 3, 0.92);
  border-bottom: 1px solid var(--border-soft);
}

.utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
}

.utility-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.utility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(227, 199, 140, 0.28);
  color: #d4bc90;
  transition: var(--transition);
  flex-shrink: 0;
}

.utility-icon svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.utility-icon:hover {
  background: rgba(185, 146, 79, 0.22);
  border-color: var(--accent-gold-soft);
  color: var(--accent-gold-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(185, 146, 79, 0.25);
}

[data-theme="light"] .utility-icon {
  background: #5a3515;
  border: 1.5px solid #3d2208;
  color: #fff;
}

[data-theme="light"] .utility-icon:hover {
  background: #47290f;
  border-color: #2e1806;
  color: #fff;
  box-shadow: 0 4px 12px rgba(90, 53, 21, 0.35);
}

.utility-auth {
  display: flex;
  align-items: center;
  gap: 14px;
}

.utility-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition);
}

.utility-login svg {
  width: 14px;
  height: 14px;
}

.utility-login:hover {
  color: var(--accent-gold-soft);
}

.utility-signup {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1a1208;
  background: linear-gradient(130deg, #a88240, #d1af73);
  padding: 5px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
}

.utility-signup:hover {
  box-shadow: 0 8px 16px rgba(185, 146, 79, 0.35);
}

[data-theme="light"] .utility-bar {
  background: rgba(248, 244, 238, 0.96);
  border-bottom-color: rgba(139, 100, 40, 0.18);
}

@media (max-width: 640px) {
  .utility-login span {
    display: none;
  }

  .utility-signup {
    padding: 5px 10px;
    font-size: 0.68rem;
  }
}

.hero {
  min-height: 88vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(4, 3, 2, 0.82), rgba(4, 3, 2, 0.4)),
    url("../images/banner-homepage.png") center/cover no-repeat;
  transform: scale(1);
  animation: heroZoom 14s ease-in-out infinite alternate;
  /* will-change removed: browser auto-promotes animated elements; explicit hint wastes GPU memory */
}

.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    95deg,
    transparent,
    rgba(227, 199, 140, 0.2),
    transparent
  );
  transform: skewX(-18deg) translateX(-240%);
  animation: heroSweep 9s ease-in-out infinite;
  pointer-events: none;
  /* will-change removed */
}

@keyframes heroSweep {
  0%,
  68% {
    transform: skewX(-18deg) translateX(-240%);
  }

  100% {
    transform: skewX(-18deg) translateX(520%);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.07);
  }
}

.hero-content {
  /* No max-width here on purpose — .container already centers a 1180px
     column on the page; capping this narrower made the hero text float as
     a small centered island instead of lining up with every other section
     heading on the page (which start at the container's left edge). */
  position: relative;
  z-index: 2;
}

.hero-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: -16px;
  width: 110px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold-soft), transparent);
}

.hero-kicker {
  font-weight: 700;
  color: var(--accent-gold-soft);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: 0.045em;
  margin: 18px 0;
}

.hero p {
  color: var(--text-secondary);
  max-width: 62ch;
  line-height: 1.95;
  margin-bottom: 24px;
}

.hero-desc-mobile { display: none; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.grid {
  display: grid;
  gap: 24px;
}

.feature-grid,
.products-grid,
.related-grid {
  /* auto-fill (not auto-fit): empty tracks stay reserved instead of
     collapsing, so one or two product cards keep their natural card width
     instead of stretching to fill the whole row. */
  grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
  justify-content: start;
}

.card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: linear-gradient(
    180deg,
    rgba(31, 23, 15, 0.6),
    rgba(15, 12, 9, 0.95)
  );
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  /* contain: layout paint removed — conflicts with hover transforms and creates stacking context issues */
}

.card:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Buttons/links inside the actions row keep their own cursor + stop the
   click from being misread as a full-card navigation. */
.card-actions {
  position: relative;
  z-index: 2;
  cursor: default;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 45%,
    rgba(255, 255, 255, 0.13),
    transparent 60%
  );
  transform: translateX(-160%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hard);
}

.card:hover::before {
  transform: translateX(160%);
}

.product-image-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .product-image-wrap img {
  transform: scale(1.08);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(7, 5, 2, 0.86);
  color: var(--accent-gold-soft);
  border: 1px solid rgba(227, 199, 140, 0.4);
}

.card-body {
  padding: 18px;
}

.card-title {
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1.08rem;
  line-height: 1.35;
  /* Clamp to 2 lines so a long product name never balloons the card
     taller than its neighbours in the row. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ─── Bilingual Title Block (EN heading + AR subtitle) ───────────────────── */

.title-block {
  margin-bottom: 4px;
}

.title-ar {
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
  color: var(--accent-gold-soft);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 6px;
  padding-top: 6px;
  position: relative;
}

.title-ar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold-soft));
}

.product-detail-title + .title-ar {
  font-size: 1.05rem;
  margin-top: 8px;
}

.price {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-gold-soft);
  font-weight: 600;
  margin: 8px 0 16px;
}

.card-body p,
.category-box p,
.story-block p,
.field label,
td,
th {
  line-height: 1.85;
}

th {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.categories {
  /* auto-fill keeps each tile at a comfortable reading width — five
     craft categories settle at ~4-up, never squeezed to fit all in one
     cramped row. */
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.category-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 24px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: rgba(33, 25, 17, 0.45);
  text-align: center;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 1px solid rgba(227, 199, 140, 0.3);
  background: rgba(185, 146, 79, 0.08);
  color: var(--accent-gold-soft);
  transition: var(--transition);
}

.category-icon svg {
  width: 24px;
  height: 24px;
}

.category-box:hover .category-icon {
  transform: translateY(-3px) scale(1.06);
  border-color: var(--accent-gold);
  background: rgba(185, 146, 79, 0.16);
}

.category-box h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 8px;
  transition: var(--transition);
}

.category-box p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.category-box:hover h3 {
  color: var(--accent-gold-soft);
}

.category-box::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  width: 36px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-gold-soft),
    transparent
  );
}

.category-box:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 199, 140, 0.45);
}

.about-preview {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}

.about-preview img {
  border-radius: var(--radius-lg);
  min-height: 340px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.footer {
  margin-top: 80px;
  border-top: 1px solid var(--border-soft);
  background: rgba(10, 8, 6, 0.95);
}

.footer-wrap {
  width: var(--container);
  margin-inline: auto;
  padding: 56px 0 36px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 32px;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  display: grid;
  gap: 11px;
}

.footer-col li a,
.footer-col li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  transition: var(--transition);
}

.footer-col li a:hover {
  color: var(--accent-gold-soft);
  padding-left: 3px;
}

.footer-note {
  color: var(--text-secondary);
  opacity: 0.75;
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-title {
  margin-bottom: 14px;
}

.footer-title .brand-logo {
  height: 56px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-social a:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-soft);
  background: rgba(185, 146, 79, 0.1);
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
}

.footer-bottom-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: var(--container);
  margin-inline: auto;
  padding: 18px 0;
}

.footer-bottom small {
  color: var(--text-secondary);
  opacity: 0.7;
}

.dev-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dev-credit-gem {
  color: var(--accent-gold);
  font-size: 0.65rem;
}

.dev-credit-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  margin-inline-start: 2px;
  border: 1px solid rgba(185, 146, 79, 0.45);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(185, 146, 79, 0.16), rgba(227, 199, 140, 0.05));
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: var(--accent-gold-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow: hidden;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-position 0.6s ease,
    box-shadow 0.25s ease;
}

.dev-credit-badge:hover {
  color: #fff7e6;
  border-color: var(--accent-gold);
  background-position: 100% 0%;
  box-shadow: 0 0 14px rgba(227, 199, 140, 0.35);
}

/* Admin pages credit bar */
.admin-dev-credit {
  text-align: center;
  padding: 14px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.75;
}

.admin-dev-credit a {
  color: var(--accent-gold-soft);
  text-decoration: none;
}

.admin-dev-credit a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .footer-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.page-hero {
  padding: 120px 0 64px;
  background:
    linear-gradient(to right, rgba(6, 5, 4, 0.95), rgba(6, 5, 4, 0.6)),
    url("../images/banner-homepage.png") center/cover no-repeat;
}

.page-hero--products {
  background:
    linear-gradient(to right, rgba(6, 5, 4, 0.88), rgba(6, 5, 4, 0.5)),
    url("../images/banner-forproducts.png") center/cover no-repeat;
}

.page-hero--about {
  background:
    linear-gradient(to right, rgba(6, 5, 4, 0.88), rgba(6, 5, 4, 0.5)),
    url("../images/banner-for.about.png") center/cover no-repeat;
}

.page-hero--contact {
  background:
    linear-gradient(to right, rgba(6, 5, 4, 0.88), rgba(6, 5, 4, 0.5)),
    url("../images/bannerforcontact.png") center/cover no-repeat;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.page-hero p {
  color: var(--text-secondary);
  max-width: 62ch;
}

.product-details {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 34px;
}

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  margin-bottom: 14px;
}

.gallery-main img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition:
    opacity 0.22s ease,
    transform 0.24s ease;
}

.gallery-main img.switching {
  opacity: 0.35;
  transform: scale(0.985);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.thumb {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
}

.thumb.active,
.thumb:hover {
  border-color: var(--accent-gold);
}

.thumb img {
  height: 100px;
  width: 100%;
  object-fit: cover;
}

.specs {
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spec-item {
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(22, 16, 10, 0.55);
}

.quantity-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 20px;
}

.qty-btn,
.qty-input {
  border: 1px solid var(--border-soft);
  background: rgba(17, 13, 9, 0.8);
  color: var(--text-primary);
  border-radius: 8px;
  height: 40px;
}

.qty-btn {
  width: 40px;
  cursor: pointer;
}

.qty-input {
  width: 60px;
  text-align: center;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-block {
  padding: 24px;
}

/* Targets .timeline (not .story-block) — the images sit in plain wrapper
   divs alongside the text blocks, not nested inside them. */
.timeline img {
  height: 100%;
  min-height: 280px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.tagline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.tagline-grid blockquote {
  margin: 0;
  padding: 30px 26px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--accent-gold-soft);
  text-align: center;
}

@media (max-width: 640px) {
  .tagline-grid {
    grid-template-columns: 1fr;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field input,
.field textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: rgba(20, 15, 10, 0.75);
  color: var(--text-primary);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.whatsapp-card {
  margin-top: 16px;
  padding: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .about-preview,
  .product-details,
  .timeline,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 4vw;
    left: 4vw;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: rgba(9, 7, 4, 0.98);
    transform: scale(0.98) translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding-bottom: 6px;
  }

  .nav-dropdown-menu {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    min-width: 0;
    width: 100%;
    max-height: 0;
    padding: 0;
    margin-top: 0;
    border-radius: 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    overflow: hidden;
    transition:
      max-height 0.28s ease,
      padding 0.28s ease,
      margin-top 0.28s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    /* Override the desktop open-state transform — otherwise its higher
       specificity wins over the transform:none above and shifts the
       panel left by 50% of its width, clipping it off-screen on mobile. */
    transform: none;
    max-height: 360px;
    padding: 8px;
    margin-top: 8px;
    pointer-events: auto;
  }

  .nav-dropdown-sheen {
    display: none;
  }

  .nav-links.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 74vh;
  }

  .gallery-main img {
    height: 340px;
  }

  /* Hero animations disabled on mobile — continuous GPU compositing on small screens */
  .hero::before {
    animation: none;
  }
  .hero::after {
    animation: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 66px 0;
  }

  /* Hero banner — mobile layout */
  .hero {
    min-height: 60vh;
    align-items: flex-end;
    padding-bottom: 40px;
  }

  .hero-content {
    padding-top: 24px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
    margin: 10px 0 12px;
  }

  .hero-kicker {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
  }

  /* Show short version, hide long version on mobile */
  .hero-desc-full   { display: none; }
  .hero-desc-mobile { display: block; margin-bottom: 22px; font-size: 0.92rem; line-height: 1.7; }

  .hero-cta {
    gap: 10px;
  }

  .hero-cta .btn {
    padding: 11px 22px;
    font-size: 0.82rem;
  }

  /* ─── Product grids: fixed 2-up layout on phones ──────────────────────── */
  .feature-grid,
  .products-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-image-wrap {
    height: 150px;
  }

  .card-body {
    padding: 12px;
  }

  .card-title {
    font-size: 0.88rem;
  }

  .title-ar {
    font-size: 0.72rem;
    margin-top: 4px;
    padding-top: 4px;
  }

  .price {
    font-size: 0.8rem;
    margin: 6px 0 10px;
  }

  .badge {
    font-size: 0.6rem;
    padding: 4px 8px;
    top: 8px;
    left: 8px;
    letter-spacing: 0.4px;
  }

  .card-actions .btn {
    padding: 9px 12px;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    gap: 4px;
  }

  .specs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .feature-grid,
  .products-grid,
  .related-grid {
    gap: 9px;
  }

  .product-image-wrap {
    height: 130px;
  }
}

/* =====================================================
   Theme Smooth Transitions — applied to key surfaces
   Only color/background — no layout-triggering props
===================================================== */
.topbar,
.glass,
.category-box,
.footer,
.badge,
.spec-item,
.field input,
.field textarea,
.qty-btn,
.qty-input,
.nav-links,
.preloader {
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease;
  /* body and .card excluded — they have --transition var; box-shadow removed — triggers layout */
}

/* =====================================================
   Light Mode — CSS Custom Properties
===================================================== */
[data-theme="light"] {
  --bg-main: #f8f4ee;
  --bg-elevated: #ede8df;
  --bg-glass: rgba(255, 250, 242, 0.82);
  --text-primary: #0d0b07;
  --text-secondary: #3d2a18;
  --accent-gold: #52380a;
  --accent-gold-soft: #624510;
  --wood-brown: #e8dfd2;
  --beige: #d4c9b4;
  --border-soft: rgba(110, 78, 28, 0.26);
  --shadow-soft: 0 15px 35px rgba(90, 60, 20, 0.1);
  --shadow-hard: 0 24px 55px rgba(90, 60, 20, 0.18);
}

/* Body background */
[data-theme="light"] body {
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(185, 146, 79, 0.08),
      transparent 35%
    ),
    radial-gradient(
      circle at 80% 0%,
      rgba(185, 146, 79, 0.06),
      transparent 30%
    ),
    linear-gradient(160deg, #f8f4ee 0%, #f2ece0 55%, #ede5d6 100%);
  color: var(--text-primary);
}

/* [data-theme="light"] body::before removed — film grain element was deleted */

/* Topbar */
[data-theme="light"] .topbar {
  background: rgba(248, 244, 238, 0.98);
  border-bottom-color: rgba(139, 100, 40, 0.18);
}

/* Cards */
[data-theme="light"] .card {
  background: linear-gradient(
    180deg,
    rgba(255, 251, 244, 0.97),
    rgba(242, 235, 222, 0.99)
  );
  border-color: rgba(139, 100, 40, 0.18);
}

[data-theme="light"] .badge {
  background: rgba(248, 244, 238, 0.97);
  color: var(--accent-gold);
  border-color: rgba(139, 100, 40, 0.35);
}

/* Category boxes */
[data-theme="light"] .category-box {
  background: rgba(242, 236, 225, 0.65);
}

/* Glass panels */
[data-theme="light"] .glass {
  background: rgba(255, 250, 242, 0.88);
  border-color: rgba(139, 100, 40, 0.2);
  box-shadow: 0 15px 35px rgba(90, 60, 20, 0.1);
}

/* Footer */
[data-theme="light"] .footer {
  background: rgba(237, 232, 223, 0.98);
  border-top-color: rgba(139, 100, 40, 0.18);
}

/* Preloader */
[data-theme="light"] .preloader {
  background: #f8f4ee;
}

[data-theme="light"] .preloader-ring {
  border-color: rgba(139, 100, 40, 0.2);
  border-top-color: var(--accent-gold);
}

/* Form inputs */
[data-theme="light"] .field input,
[data-theme="light"] .field textarea {
  background: rgba(255, 250, 242, 0.92);
  border-color: rgba(139, 100, 40, 0.28);
  color: var(--text-primary);
}

/* Quantity controls */
[data-theme="light"] .qty-btn,
[data-theme="light"] .qty-input {
  background: rgba(242, 236, 225, 0.9);
  border-color: rgba(139, 100, 40, 0.25);
  color: var(--text-primary);
}

/* Spec items */
[data-theme="light"] .spec-item {
  background: rgba(242, 236, 225, 0.7);
  border-color: rgba(139, 100, 40, 0.18);
}

/* Mobile nav dropdown */
[data-theme="light"] .nav-links {
  background: rgba(248, 244, 238, 0.98);
  border-color: rgba(139, 100, 40, 0.2);
}

/* Improve readability for navigation labels in light mode. */
[data-theme="light"] .nav-link {
  color: #3d2a18;
}

[data-theme="light"] .nav-dropdown-menu {
  background: linear-gradient(
    180deg,
    rgba(255, 250, 243, 0.98),
    rgba(248, 241, 231, 0.98)
  );
  border-color: rgba(139, 100, 40, 0.24);
  box-shadow:
    0 18px 42px rgba(90, 60, 20, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

[data-theme="light"] .nav-dropdown-link {
  color: #3d2a18;
}

[data-theme="light"] .nav-dropdown-link:hover {
  color: #7a5a20;
  background: rgba(139, 100, 40, 0.14);
  border-color: rgba(139, 100, 40, 0.24);
}

/* Keep banner imagery natural in light mode while preserving text contrast. */
[data-theme="light"] .hero::before {
  background:
    linear-gradient(130deg, rgba(4, 3, 2, 0.8), rgba(4, 3, 2, 0.42)),
    url("../images/banner-homepage.png") center/cover no-repeat;
}

[data-theme="light"] .page-hero {
  background:
    linear-gradient(to right, rgba(6, 5, 4, 0.9), rgba(6, 5, 4, 0.58)),
    url("../images/banner-homepage.png") center/cover no-repeat;
}

[data-theme="light"] .page-hero--products {
  background:
    linear-gradient(to right, rgba(6, 5, 4, 0.88), rgba(6, 5, 4, 0.52)),
    url("../images/banner-forproducts.png") center/cover no-repeat;
}

[data-theme="light"] .page-hero--about {
  background:
    linear-gradient(to right, rgba(6, 5, 4, 0.88), rgba(6, 5, 4, 0.52)),
    url("../images/banner-for.about.png") center/cover no-repeat;
}

[data-theme="light"] .page-hero--contact {
  background:
    linear-gradient(to right, rgba(6, 5, 4, 0.88), rgba(6, 5, 4, 0.52)),
    url("../images/bannerforcontact.png") center/cover no-repeat;
}

[data-theme="light"] .hero-kicker,
[data-theme="light"] .hero h1,
[data-theme="light"] .hero p,
[data-theme="light"] .page-hero h1,
[data-theme="light"] .page-hero p {
  color: #f8f2e6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Small typography accents need a bit more contrast on pale backgrounds. */
[data-theme="light"] .price,
[data-theme="light"] .hero-kicker {
  color: #3e2606;
}

/* "Our Story" outline button on the hero — sits on dark image overlay so use
   white text + gold border to stay legible regardless of theme. */
[data-theme="light"] .hero .btn-outline {
  color: #fff;
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #e3c78c;
  color: #fff;
}

/* =====================================================
   Theme Toggle Button
===================================================== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-soft);
  background: rgba(185, 146, 79, 0.08);
}

.theme-icon {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover .theme-icon {
  transform: rotate(22deg) scale(1.15);
}

@media (max-width: 980px) {
  .theme-toggle .theme-label {
    display: none;
  }

  .theme-toggle {
    padding: 7px 11px;
  }
}

/* =====================================================
   Page Transitions — fade in on load, fade out on nav
===================================================== */
@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.page-exit {
  opacity: 0 !important;
  transition: opacity 0.12s ease !important;
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero::before,
  .hero::after,
  .reveal,
  .card,
  .btn,
  .nav-link::after,
  .theme-icon,
  .cart-sidebar,
  .cart-overlay,
  .cart-btn.cart-pulse {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================
   Announcement Bar
===================================================== */
.announce-bar {
  background: linear-gradient(90deg, #1a1208 0%, #2a1e0a 40%, #1a1208 100%);
  border-bottom: 1px solid rgba(185, 146, 79, 0.3);
  overflow: hidden;
  position: relative;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 40px 9px 16px;
  position: relative;
}

.announce-gem {
  color: var(--accent-gold);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.announce-text {
  font-size: 0.78rem;
  color: #d4bc90;
  letter-spacing: 0.03em;
  text-align: center;
}

.announce-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(212, 188, 144, 0.55);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  transition: color 0.2s;
}

.announce-close:hover {
  color: var(--accent-gold-soft);
}

[data-theme="light"] .announce-bar {
  background: linear-gradient(90deg, #3d2208 0%, #5a3515 40%, #3d2208 100%);
  border-bottom-color: rgba(90, 53, 21, 0.4);
}

[data-theme="light"] .announce-text {
  color: #f5e8d0;
}

/* =====================================================
   Trust Strip
===================================================== */
.trust-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-elevated);
}

.trust-grid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 20px 0;
  gap: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  padding: 8px 20px;
}

.trust-divider {
  width: 1px;
  background: var(--border-soft);
  align-self: stretch;
  margin: 6px 0;
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(185, 146, 79, 0.12);
  border: 1px solid rgba(185, 146, 79, 0.25);
  color: var(--accent-gold);
  flex-shrink: 0;
}

.trust-icon svg {
  width: 18px;
  height: 18px;
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-text strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.trust-text span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .trust-grid {
    flex-wrap: wrap;
    gap: 0;
  }
  .trust-item {
    flex: 0 0 50%;
    padding: 12px 16px;
  }
  .trust-divider {
    display: none;
  }
  .trust-item:nth-child(odd) {
    border-right: 1px solid var(--border-soft);
  }
  .trust-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--border-soft);
  }
}

@media (max-width: 420px) {
  .trust-item {
    flex: 0 0 100%;
    border-right: none !important;
  }
  .trust-item + .trust-item {
    border-top: 1px solid var(--border-soft);
  }
}

/* =====================================================
   Newsletter Band
===================================================== */
.newsletter-band {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(185, 146, 79, 0.14), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(185, 146, 79, 0.08), transparent 60%),
    var(--bg-elevated);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 52px 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.newsletter-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.newsletter-text h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.025em;
  margin-bottom: 8px;
}

.newsletter-text p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 42ch;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.newsletter-input {
  width: 280px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-soft);
  background: var(--bg-main);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.65;
}

.newsletter-input:focus {
  border-color: var(--accent-gold);
}

.newsletter-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .newsletter-form {
    width: 100%;
  }
  .newsletter-input {
    flex: 1;
    width: auto;
    min-width: 0;
  }
}

/* =====================================================
   Footer bottom — EQTech credit light-mode colour
===================================================== */
.dev-credit {
  opacity: 0.85;
}

[data-theme="light"] .dev-credit-badge {
  border-color: rgba(42, 21, 6, 0.3);
  background: linear-gradient(120deg, rgba(185, 146, 79, 0.18), rgba(185, 146, 79, 0.04));
  color: #2a1506;
}

[data-theme="light"] .dev-credit-badge:hover {
  color: #1a0d03;
  border-color: #2a1506;
  box-shadow: 0 0 12px rgba(185, 146, 79, 0.35);
}
