:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --light: #f4f2ee;
  --text: #ecebe8;
  --muted: #9a9a96;
  --denim: #5b7aa3;
  --line: rgba(244, 242, 238, 0.16);
  --glow: 0 0 6px rgba(255, 255, 255, 0.55), 0 0 22px rgba(255, 255, 255, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
}

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

h2 {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--light);
  margin-bottom: 1rem;
}

/* Logo — boxed wordmark with the bowler hat perched on the corner */
.logo {
  --s: 1rem;
  position: relative;
  display: inline-block;
  padding: calc(var(--s) * 0.15) calc(var(--s) * 0.55);
  border: calc(var(--s) * 0.1) solid currentColor;
  color: var(--light);
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600;
  font-size: var(--s);
  letter-spacing: 0.12em;
  line-height: 1.15;
  direction: ltr;
}
.logo-word { display: block; margin-right: -0.12em; }
.logo-hat {
  position: absolute;
  width: calc(var(--s) * 1.05);
  height: calc(var(--s) * 0.66);
  right: calc(var(--s) * 0.2);
  top: calc(var(--s) * -0.52);
  color: currentColor;
}
.logo-sm { --s: 1.15rem; }
.logo-md { --s: clamp(2rem, 6vw, 3.2rem); }
.logo-lg { --s: clamp(3rem, 13vw, 7rem); }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0));
  backdrop-filter: blur(4px);
}
.brand { display: flex; padding-top: 0.4rem; }

.nav nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.nav nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.2s;
}
.nav nav a:hover { color: var(--light); }

/* Hero — the lit sign */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 45%, rgba(255, 255, 255, 0.08), transparent 70%),
    var(--bg);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.55);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 2%, rgba(10, 10, 10, 0.35) 50%, rgba(10, 10, 10, 0.55));
}
.hero-content {
  position: relative;
  padding: 7rem 1rem 5rem;
  text-align: center;
  max-width: 760px;
}

.sign {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: clamp(2.2rem, 6vw, 3.5rem) clamp(1.2rem, 6vw, 3.5rem) clamp(1.4rem, 4vw, 2.2rem);
  margin-bottom: 2.2rem;
  background: linear-gradient(180deg, #151515, #0d0d0d);
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sign .logo { text-shadow: var(--glow); box-shadow: var(--glow), inset 0 0 14px rgba(255, 255, 255, 0.15); }
.sign .logo-hat { filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6)); }
.sign-sub {
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--light);
  opacity: 0.8;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Intro: the hat drops onto the sign, then the neon flickers on */
.sign .logo {
  animation:
    text-on 1.5s cubic-bezier(.4, 0, .6, 1) both,
    frame-pulse 3.5s ease-in-out both;
}
.sign .logo-hat {
  color: var(--light);
  transform-origin: 50% 90%;
  animation:
    hat-drop 1.8s cubic-bezier(.3, 0, .6, 1) 0.2s both,
    hat-glow 1.5s cubic-bezier(.4, 0, .6, 1) both;
}
.sign-sub { animation: sub-on 0.9s ease-out 1.8s both; }
.hero .eyebrow,
.hero .tagline,
.hero .hero-actions { animation: rise 0.7s ease-out 2s both; }
.hero .tagline { animation-delay: 2.1s; }
.hero .hero-actions { animation-delay: 2.2s; }

@keyframes hat-drop {
  0%   { transform: translateY(-75vh) rotate(-28deg); opacity: 0; }
  8%   { opacity: 1; }
  30%  { transform: translateY(-38vh) rotate(-16deg); }
  70%  { transform: translateY(0) rotate(5deg); animation-timing-function: cubic-bezier(.2, .6, .35, 1); }
  80%  { transform: translateY(-14%) rotate(-5deg); animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  88%  { transform: translateY(0) rotate(2deg); }
  95%  { transform: translateY(0) rotate(-1deg); }
  100% { transform: translateY(0) rotate(0); opacity: 1; }
}

/* Word warms up: dark → low glow → full glow over 1.5s */
@keyframes text-on {
  0% {
    color: #262626;
    text-shadow: 0 0 0 rgba(255, 255, 255, 0), 0 0 0 rgba(255, 255, 255, 0);
  }
  100% { color: var(--light); text-shadow: var(--glow); }
}
/* Frame glows up and down a few times, then stays lit */
@keyframes frame-pulse {
  0% {
    border-color: #262626;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0), 0 0 0 rgba(255, 255, 255, 0), inset 0 0 0 rgba(255, 255, 255, 0);
  }
  22%, 58%, 100% {
    border-color: var(--light);
    box-shadow: var(--glow), inset 0 0 14px rgba(255, 255, 255, 0.15);
  }
  40%, 76% {
    border-color: #5a5a5a;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.15), 0 0 6px rgba(255, 255, 255, 0.05), inset 0 0 0 rgba(255, 255, 255, 0);
  }
}
@keyframes hat-glow {
  from { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
  to   { filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6)); }
}
@keyframes sub-on {
  from { opacity: 0; text-shadow: none; }
  to   { opacity: 0.8; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sign .logo, .sign .logo-hat, .sign-sub,
  .hero .eyebrow, .hero .tagline, .hero .hero-actions { animation: none; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--light), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 1.7rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--light); color: #0a0a0a; }
.btn-light:hover { box-shadow: 0 0 24px rgba(255, 255, 255, 0.35); }
.btn-outline { border: 1px solid var(--light); color: var(--light); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); }

/* About */
.about {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 6vw, 5rem);
  overflow: hidden;
}
/* Denim twill texture */
.pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: repeating-linear-gradient(60deg, var(--light) 0 1px, transparent 1px 6px);
  pointer-events: none;
}
.about-text, .about-img { position: relative; }
.about-text p { color: var(--muted); max-width: 52ch; }

.features { list-style: none; margin-top: 2rem; }
.features li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.features span {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600;
  color: var(--denim);
}

.about-img {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img .logo { display: none; }
.about-img.empty {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.07), transparent 60%),
    linear-gradient(160deg, #1c2533, #0e1117);
}
.about-img.empty .logo { display: inline-block; text-shadow: var(--glow); }

/* Collection */
.collection {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 6vw, 5rem);
  background: var(--bg-2);
  text-align: center;
}
.section-sub { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 1000px;
  margin: 2.5rem auto;
}
.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  text-align: start;
  transition: border-color 0.2s, transform 0.2s;
}
.product:hover { border-color: var(--light); transform: translateY(-4px); }
.product-img {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(160deg, #1c2533, #0e1117);
}
.product-img svg { width: 30%; height: 30%; color: rgba(255, 255, 255, 0.12); }
/* Blurred copy of the photo fills any gap, so the whole picture always fits */
.product-img::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: var(--img, none) center / cover;
  filter: blur(22px) brightness(0.55);
}
.product-img img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s;
}
.product:hover .product-img img { transform: scale(1.04); }
.product-name { padding: 1rem 1rem 0.2rem; font-weight: 600; font-size: 1.05rem; }
.product-link { padding: 0 1rem 1.1rem; font-size: 0.85rem; color: var(--muted); }

/* Location */
.location {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 6vw, 5rem);
}
.location-text p { color: var(--muted); margin-bottom: 1.5rem; }
.location-text .address { color: var(--text); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.6rem; }
.location-text .address:empty { display: none; }
.map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.9) contrast(0.9); }

/* Contact */
.contact {
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 6vw, 5rem);
  text-align: center;
}
.contact > p { color: var(--muted); }
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 900px;
  margin: 2.5rem auto 0;
}
.card {
  flex: 1 1 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--light); transform: translateY(-3px); }
.card-label { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.75rem; color: var(--muted); }
.card-value { font-size: 1.1rem; font-weight: 600; }

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 3rem 1rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Language switch — sliding thumb */
.lang-switch {
  --i: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 44px);
  flex-shrink: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.85);
  direction: ltr;
}
.lang-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 44px;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--light);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 0.35s cubic-bezier(.65, 0, .35, 1);
}
.lang-switch button {
  position: relative;
  z-index: 1;
  height: 32px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 0.8rem 'Inter', 'Tajawal', sans-serif;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.3s;
}
.lang-switch button[data-lang="ar"] { font-family: 'Tajawal', sans-serif; font-size: 1rem; }
.lang-switch button[aria-checked="true"] { color: #0a0a0a; }

/* Responsive */
@media (max-width: 900px) {
  .nav nav { display: none; }
}
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
  .about-img { max-width: 420px; margin: 0 auto; }
  .grid { grid-template-columns: 1fr 1fr; }
  .grid .product:last-child {
    grid-column: span 2;
    justify-self: center;
    width: calc(50% - 0.6rem);
  }
  .location { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  /* Swipeable row of products instead of a long stack */
  .grid {
    display: flex;
    gap: 0.8rem;
    margin: 2rem calc(-1 * clamp(1rem, 6vw, 5rem));
    padding: 0 clamp(1rem, 6vw, 5rem) 0.4rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 clamp(1rem, 6vw, 5rem);
    scrollbar-width: none;
  }
  .grid::-webkit-scrollbar { display: none; }
  .grid { padding-inline: 14%; scroll-padding: 0; }
  .grid .product { flex: 0 0 72%; scroll-snap-align: center; }
  .grid .product:last-child { grid-column: auto; width: auto; }
  .about-img { aspect-ratio: 4 / 3; }
  .sign-sub { letter-spacing: 0.2em; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 300px; margin: 0 auto; }
  .btn { text-align: center; }
  .location-text .btn { display: block; }
}

/* Arabic / RTL */
html[dir="rtl"] body { font-family: 'Tajawal', 'Inter', sans-serif; }
html[dir="rtl"] h2,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .sign-sub,
html[dir="rtl"] .btn,
html[dir="rtl"] .nav nav a,
html[dir="rtl"] .card-label { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
html[dir="rtl"] h2 { font-weight: 700; }
