/*
 * SALEM — سالم للزي العربي
 * Dark luxury theme: warm black, gold, and the logo's Greek-key motif.
 */

@font-face {
  font-family: MyFont;
  src: url("../../islamic.ttf");
  font-display: swap;
}

:root {
  --bg: #0c0a08;
  --bg-2: #120f0b;
  --bg-3: #080706;
  --surface: #19150f;
  --surface-2: #221c14;
  --line: rgba(214, 178, 94, 0.14);
  --line-strong: rgba(214, 178, 94, 0.34);

  --gold: #d6b25e;
  --gold-light: #f1d892;
  --gold-dark: #a8822f;
  --gold-grad: linear-gradient(135deg, #f6e3a1 0%, #d6b25e 38%, #a8822f 72%, #e9cf85 100%);
  --red: #c4372b;

  --cream: #f5ecdc;
  --text: #e6dccb;
  --muted: #a89c86;
  --ink: #17120b;

  --radius: 22px;
  --header-h: 84px;

  --font-body: "Tajawal", system-ui, sans-serif;
  --font-head: "El Messiri", "Tajawal", serif;
  --font-callig: "Aref Ruqaa", "El Messiri", serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Greek key (meander) from the logo ring */
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M0 23H24M0 1H24M3 23V5H21V19H8V9H16V15H12' fill='none' stroke='%23d6b25e' stroke-width='1.6'/%3E%3C/svg%3E");
  /* Greek key frame, sliced 24/24/24 for border-image: corner blocks + meander edges */
  --key-frame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23d6b25e' stroke-width='2'%3E%3Cpath transform='translate(24 0)' d='M0 23H24M0 1H24M3 23V5H21V19H8V9H16V15H12'/%3E%3Cpath transform='translate(24 72) scale(1 -1)' d='M0 23H24M0 1H24M3 23V5H21V19H8V9H16V15H12'/%3E%3Cpath transform='translate(0 48) rotate(-90)' d='M0 23H24M0 1H24M3 23V5H21V19H8V9H16V15H12'/%3E%3Cpath transform='translate(72 24) rotate(90)' d='M0 23H24M0 1H24M3 23V5H21V19H8V9H16V15H12'/%3E%3Cpath d='M1 1H23V23H1ZM7 7H17V17H7ZM49 1H71V23H49ZM55 7H65V17H55ZM1 49H23V71H1ZM7 55H17V65H7ZM49 49H71V71H49ZM55 55H65V65H55Z'/%3E%3C/g%3E%3C/svg%3E");
  /* Filigree corner (top-left), mirrored for the other three corners */
  --corner-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23d6b25e' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M2 42V14C2 7 7 2 14 2H42M8 30V16C8 11.6 11.6 8 16 8H30M16 16C22 16 26 20 26 26C20 26 16 22 16 16M36 2C36 5.5 38.5 8 42 8M2 36C5.5 36 8 38.5 8 42'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='2.2' fill='%23d6b25e'/%3E%3C/svg%3E");
  --corner-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cg transform='translate(44 0) scale(-1 1)'%3E%3Cg fill='none' stroke='%23d6b25e' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M2 42V14C2 7 7 2 14 2H42M8 30V16C8 11.6 11.6 8 16 8H30M16 16C22 16 26 20 26 26C20 26 16 22 16 16M36 2C36 5.5 38.5 8 42 8M2 36C5.5 36 8 38.5 8 42'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='2.2' fill='%23d6b25e'/%3E%3C/g%3E%3C/svg%3E");
  --corner-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cg transform='translate(0 44) scale(1 -1)'%3E%3Cg fill='none' stroke='%23d6b25e' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M2 42V14C2 7 7 2 14 2H42M8 30V16C8 11.6 11.6 8 16 8H30M16 16C22 16 26 20 26 26C20 26 16 22 16 16M36 2C36 5.5 38.5 8 42 8M2 36C5.5 36 8 38.5 8 42'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='2.2' fill='%23d6b25e'/%3E%3C/g%3E%3C/svg%3E");
  --corner-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cg transform='translate(44 44) scale(-1 -1)'%3E%3Cg fill='none' stroke='%23d6b25e' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M2 42V14C2 7 7 2 14 2H42M8 30V16C8 11.6 11.6 8 16 8H30M16 16C22 16 26 20 26 26C20 26 16 22 16 16M36 2C36 5.5 38.5 8 42 8M2 36C5.5 36 8 38.5 8 42'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='2.2' fill='%23d6b25e'/%3E%3C/g%3E%3C/svg%3E");
  /* 8-point star lattice */
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23d6b25e' stroke-width='1'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Cpath d='M40 0V14.5M40 65.5V80M0 40H14.5M65.5 40H80'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1.4;
  color: var(--cream);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

.text-gold {
  background: linear-gradient(100deg, #a8822f 0%, #f6e3a1 25%, #d6b25e 50%, #f6e3a1 75%, #a8822f 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% center;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Preloader ---------- */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.6s, visibility 0.6s;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

#preloader span {
  font-family: var(--font-callig);
  font-size: 72px;
  line-height: 1;
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
}

/* Backdrop lives on a pseudo-element so the fixed mobile menu isn't trapped by backdrop-filter */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 8, 0.75);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s;
}

body.scrolled .header::before {
  opacity: 1;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height 0.4s;
}

body.scrolled .header-inner {
  height: 70px;
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 4px rgba(214, 178, 94, 0.08);
}

.brand-name {
  font-family: var(--font-callig);
  font-size: 36px;
  line-height: 1;
  padding-bottom: 6px;
}

.navmenu ul {
  display: flex;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.navmenu a {
  display: block;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}

.navmenu a:hover {
  color: var(--cream);
}

.navmenu a.active {
  background: var(--gold-grad);
  color: var(--ink);
  font-weight: 700;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--gold-light);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  transition: background 0.3s, color 0.3s;
}

.header-cta i {
  font-size: 20px;
}

.header-cta:hover {
  background: var(--gold);
  color: var(--ink);
}

.nav-toggle {
  display: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s, color 0.3s;
}

.btn i {
  transition: transform 0.3s;
}

.btn:hover i {
  transform: translateX(-5px);
}

.btn-gold {
  background: var(--gold-grad);
  color: var(--ink);
  box-shadow: 0 12px 32px -12px rgba(214, 178, 94, 0.65);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -14px rgba(214, 178, 94, 0.8);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 110px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 55% at 22% 38%, rgba(214, 178, 94, 0.16), transparent 65%),
    radial-gradient(35% 40% at 92% 85%, rgba(196, 55, 43, 0.12), transparent 70%),
    var(--bg);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--stars);
  opacity: 0.07;
  -webkit-mask-image: radial-gradient(70% 70% at 30% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 30% 45%, #000 0%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(214, 178, 94, 0.06);
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(196, 55, 43, 0.22);
}

.hero h1 {
  margin: 24px 0 22px;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.3;
}

.hero h1 .text-gold {
  display: block;
}

.hero-lead {
  max-width: 540px;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted);
}

.hero-lead strong {
  color: var(--cream);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-stats {
  display: flex;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 540px;
}

.stat {
  flex: 1;
  padding-inline: 22px;
  border-inline-start: 1px solid var(--line);
}

.stat:first-child {
  padding-inline-start: 0;
  border: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.15;
  color: var(--gold-light);
}

.stat span {
  font-size: 14.5px;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  height: min(640px, 74vh);
  min-height: 480px;
}

.arch {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 999px 999px 26px 26px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.arch:hover img {
  transform: scale(1.05);
}

.arch-main {
  top: 0;
  left: 10%;
  width: 58%;
  height: 90%;
  border: 1px solid var(--line-strong);
}

.arch-outline {
  position: absolute;
  top: 22px;
  left: calc(10% - 22px);
  width: 58%;
  height: 90%;
  border-radius: 999px 999px 26px 26px;
  border: 1px solid var(--gold);
  opacity: 0.45;
}

.arch-side {
  right: 0;
  bottom: 0;
  width: 40%;
  height: 56%;
  border: 6px solid var(--bg);
  outline: 1px solid var(--line-strong);
}

.seal {
  position: absolute;
  left: -2%;
  bottom: 4%;
  width: 164px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(12, 10, 8, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8);
}

.seal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  direction: ltr;
  animation: spin 24s linear infinite;
}

.seal text {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  fill: var(--gold-light);
}

.seal img {
  width: 54%;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

.scroll-cue::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--gold);
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- Fabric ribbons ---------- */

.ribbons {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  height: 170px;
  margin-block: -40px;
  overflow: hidden;
}

.ribbon {
  position: absolute;
  left: -5%;
  width: 110%;
  padding: 14px 0;
  overflow: hidden;
  direction: ltr;
}

.ribbon-gold {
  z-index: 2;
  background: var(--gold-grad);
  transform: rotate(-2.4deg);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.7);
}

.ribbon-dark {
  background: var(--surface);
  border-block: 1px solid var(--line-strong);
  transform: rotate(2.4deg);
}

.ribbon-track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.ribbon-dark .ribbon-track {
  animation-direction: reverse;
}

.ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-inline-end: 30px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  direction: rtl;
}

.ribbon-gold .ribbon-item {
  color: var(--ink);
}

.ribbon-gold .ribbon-item i {
  color: #7a1d16;
}

.ribbon-dark .ribbon-item {
  color: var(--gold-light);
}

.ribbon-item i {
  font-style: normal;
  font-size: 16px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
}

.section-alt {
  background: var(--bg-2);
}

.section-head {
  position: relative;
  margin-bottom: 64px;
  padding-top: 34px;
  text-align: center;
}

.section-head .ghost {
  position: absolute;
  top: -0.1em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: clamp(3.4rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(214, 178, 94, 0.13), rgba(214, 178, 94, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
}

.ornament {
  display: block;
  width: 120px;
  height: 14px;
  margin: 0 auto 18px;
  background: var(--meander) center / 14px 14px repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}

.section-head h2 {
  position: relative;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 700;
}

.section-head p {
  position: relative;
  margin-top: 10px;
  font-size: 18px;
  color: var(--muted);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
}

.kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--gold);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 72px;
}

.about-content h2 {
  margin: 14px 0 18px;
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.5;
}

.about-lead {
  margin-bottom: 30px;
  padding-inline-start: 18px;
  border-inline-start: 2px solid var(--gold);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text);
}

.about-story p {
  font-size: 17.5px;
  line-height: 2.1;
  color: var(--muted);
}

.about-story p + p {
  margin-top: 16px;
}

.about-story strong {
  font-family: var(--font-head);
  font-size: 1.15em;
  font-weight: 700;
  color: var(--gold-light);
}

/* Big gold Greek-key frame around the features block */
.features-frame {
  margin-top: 120px;
  padding: 64px 48px 52px;
  border: 24px solid transparent;
  border-image: var(--key-frame) 24 round;
  outline: 1px solid rgba(214, 178, 94, 0.45);
  outline-offset: -32px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(214, 178, 94, 0.1), transparent 70%),
    var(--bg-3);
}

.features-head {
  margin-bottom: 44px;
  text-align: center;
}

.features-head h3 {
  position: relative;
  display: inline-block;
  padding: 12px 44px;
  border: 1px solid rgba(214, 178, 94, 0.6);
  background: linear-gradient(180deg, rgba(214, 178, 94, 0.08), rgba(214, 178, 94, 0.02));
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
}

.features-head h3::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(214, 178, 94, 0.28);
  pointer-events: none;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature {
  position: relative;
  padding: 46px 30px 40px;
  border: 1px solid rgba(214, 178, 94, 0.55);
  background:
    var(--corner-tl) top 5px left 5px / 46px no-repeat,
    var(--corner-tr) top 5px right 5px / 46px no-repeat,
    var(--corner-bl) bottom 5px left 5px / 46px no-repeat,
    var(--corner-br) bottom 5px right 5px / 46px no-repeat,
    linear-gradient(160deg, var(--surface-2), var(--surface) 65%);
  text-align: center;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(214, 178, 94, 0.22);
  pointer-events: none;
}

.feature:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 34px 60px -30px rgba(214, 178, 94, 0.5);
}

.feature h4 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
}

.feature p {
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--muted);
}

.feature p strong {
  font-weight: 700;
  color: var(--gold-light);
}

.closing {
  position: relative;
  overflow: hidden;
  margin: 28px 0 0;
  padding: 64px clamp(24px, 7vw, 96px) 56px;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(214, 178, 94, 0.16), transparent 70%),
    var(--surface);
  text-align: center;
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--stars);
  opacity: 0.06;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
  pointer-events: none;
}

.closing > i {
  position: relative;
  display: block;
  font-size: 54px;
  line-height: 1;
  color: var(--gold);
}

.closing p {
  position: relative;
  max-width: 940px;
  margin: 18px auto 0;
  font-family: MyFont, var(--font-head);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 2.1;
  color: var(--cream);
}

.about-logo {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 420px;
  aspect-ratio: 1;
  margin-inline: auto;
}

.about-logo::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 178, 94, 0.35), transparent 70%);
  filter: blur(30px);
}

.about-logo img {
  position: relative;
  width: 86%;
  border-radius: 50%;
}

/* ---------- Products ---------- */

.products::before,
.portfolio::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  background-image: var(--stars);
  opacity: 0.05;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
  pointer-events: none;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 34px 30px 28px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 65%);
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 240, 200, 0.08) 50%, transparent 65%);
  transform: translateX(100%);
  transition: transform 1s var(--ease);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 34px 60px -30px rgba(214, 178, 94, 0.5);
}

.product-card:hover::after {
  transform: translateX(-100%);
}

.product-num {
  position: absolute;
  top: -18px;
  left: 14px;
  font-family: var(--font-head);
  font-size: 128px;
  font-weight: 700;
  line-height: 1.2;
  color: transparent;
  -webkit-text-stroke: 1px rgba(214, 178, 94, 0.2);
  transition: -webkit-text-stroke-color 0.4s;
}

.product-card:hover .product-num {
  -webkit-text-stroke-color: rgba(214, 178, 94, 0.6);
}

.product-tag {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(214, 178, 94, 0.1);
  border: 1px solid var(--line-strong);
  color: var(--gold-light);
  font-size: 22px;
}

.product-card h3 {
  position: relative;
  margin-top: auto;
  padding-top: 40px;
  font-size: 30px;
  font-weight: 700;
}

.product-parts {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  font-size: 16.5px;
  font-weight: 500;
  color: var(--gold-light);
}

/* ---------- Branches ---------- */

.branches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.branch-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  aspect-ratio: 3 / 4;
  padding: 24px 16px;
  overflow: hidden;
  border-radius: 999px 999px 24px 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(214, 178, 94, 0.09), rgba(214, 178, 94, 0) 70%), var(--surface);
  text-align: center;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}

.branch-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border-radius: 999px 999px 16px 16px;
  border: 1px solid var(--line);
  background-image: var(--stars);
  background-size: 56px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 60%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 60%);
}

.branch-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--gold-grad);
  opacity: 0;
  transition: opacity 0.5s;
}

.branch-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(214, 178, 94, 0.08);
  color: var(--gold-light);
  font-size: 30px;
  transition: background 0.5s, color 0.5s;
}

.branch-icon::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
  animation: pulse 2.8s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
    transform: scale(0.85);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

.branch-card h3 {
  font-size: 23px;
  font-weight: 600;
  transition: color 0.5s;
}

.branch-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 60px -30px rgba(214, 178, 94, 0.55);
}

.branch-card:hover::after {
  opacity: 1;
}

.branch-card:hover h3 {
  color: var(--ink);
}

.branch-card:hover .branch-icon {
  background: var(--ink);
  border-color: var(--ink);
}

/* ---------- Portfolio ---------- */

.showreel {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 70px;
}

.showreel-frame {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  overflow: hidden;
  border-radius: 999px 999px 28px 28px;
  border: 1px solid var(--gold);
  background: var(--surface);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 8px rgba(214, 178, 94, 0.06);
}

.showreel-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 480 / 848;
  object-fit: cover;
}

.showreel-arch {
  position: absolute;
  top: 40px;
  width: min(300px, 70%);
  aspect-ratio: 480 / 848;
  border-radius: 999px 999px 24px 24px;
  border: 1px solid var(--line-strong);
}

.showreel-arch.a1 {
  transform: translateX(-46%) rotate(-7deg);
}

.showreel-arch.a2 {
  transform: translateX(46%) rotate(7deg);
}

.gallery {
  columns: 4 250px;
  column-gap: 16px;
}

.gallery-item {
  position: relative;
  display: block;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  break-inside: avoid;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(12, 10, 8, 0.85));
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-zoom {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--ink);
  font-size: 18px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

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

.gallery-item:hover::after,
.gallery-item:hover .gallery-zoom {
  opacity: 1;
}

.gallery-item:hover .gallery-zoom {
  transform: scale(1);
}

/* The full gallery is laid out (balanced columns) and the wrapper clips it, so the cut edge is even */
.gallery-wrap.is-collapsed {
  max-height: 1500px;
  overflow: hidden;
}

.gallery-more {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.gallery-more::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 200px;
  margin-bottom: 26px;
  background: linear-gradient(180deg, transparent, var(--bg-2));
  pointer-events: none;
  transition: opacity 0.4s;
}

.gallery-wrap:not(.is-collapsed) + .gallery-more::before {
  opacity: 0;
}

.gallery-more .btn {
  background: var(--bg-2);
  cursor: pointer;
}

.gallery-more .btn:hover i {
  transform: none;
}

.gallery-more [aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* ---------- Contact ---------- */

.workdays {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(214, 178, 94, 0.06);
}

.workdays i {
  color: var(--gold);
}

.section-head .social {
  justify-content: center;
  margin-top: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 20px;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 36px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 65%);
  text-align: center;
  transition: border-color 0.35s, transform 0.45s var(--ease);
}

.info-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-6px);
}

.info-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 20px;
  background: var(--gold-grad);
  color: var(--ink);
  font-size: 26px;
  transform: rotate(-6deg);
  box-shadow: 0 14px 30px -12px rgba(214, 178, 94, 0.6);
  transition: transform 0.45s var(--ease);
}

.info-card:hover .info-icon {
  transform: rotate(0);
}

.info-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 600;
}

.info-card p,
.info-card a {
  color: var(--muted);
  font-size: 16.5px;
}

.info-card a {
  transition: color 0.3s;
}

.info-card a:hover {
  color: var(--gold-light);
}

.info-card [dir="ltr"] {
  unicode-bidi: isolate;
}

.map-wrap,
.contact-banner {
  margin-top: 22px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(0.4) contrast(1.05) brightness(0.92);
}

.contact-banner img {
  width: 100%;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
  text-align: center;
}

.footer-meander {
  height: 24px;
  background: var(--meander) center / 24px 24px repeat-x;
  opacity: 0.4;
}

.footer-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 80px 0 60px;
}

.footer-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 600px;
  height: 300px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(214, 178, 94, 0.14), transparent);
  pointer-events: none;
}

.footer-brand {
  position: relative;
  font-family: var(--font-callig);
  font-size: 84px;
  line-height: 1.2;
}

.footer-title {
  position: relative;
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
}

.social {
  position: relative;
  display: flex;
  gap: 14px;
}

.social a {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--gold-light);
  font-size: 21px;
  transition: background 0.35s, color 0.35s, transform 0.35s var(--ease), border-color 0.35s;
}

.social a:hover {
  background: var(--gold-grad);
  border-color: transparent;
  color: var(--ink);
  transform: translateY(-5px);
}

.footer-nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
  margin-top: 18px;
}

.footer-nav a {
  font-size: 15.5px;
  color: var(--muted);
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--gold-light);
}

.copyright {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.copyright strong {
  color: var(--gold-light);
}

.copyright a {
  color: var(--gold-light);
}

/* ---------- Floating buttons ---------- */

.wa-float,
.scroll-top {
  position: fixed;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.wa-float {
  right: 22px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.7);
  transition: transform 0.35s var(--ease);
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse 2.4s var(--ease) infinite;
}

.wa-float:hover {
  transform: scale(1.08);
}

.scroll-top {
  left: 22px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 10, 8, 0.8);
  color: var(--gold-light);
  font-size: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s, background 0.3s, color 0.3s;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.scroll-top:hover {
  background: var(--gold);
  color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 1099px) {
  .header-cta {
    display: none;
  }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: rgba(12, 10, 8, 0.4);
    color: var(--gold-light);
    font-size: 24px;
    cursor: pointer;
  }

  .navmenu {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    background:
      radial-gradient(60% 40% at 50% 30%, rgba(214, 178, 94, 0.12), transparent 70%),
      #0a0806;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .navmenu {
    opacity: 1;
    visibility: visible;
  }

  .navmenu ul {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
  }

  .navmenu a {
    padding: 8px 30px;
    font-family: var(--font-head);
    font-size: 26px;
    color: var(--cream);
  }
}

@media (max-width: 991px) {
  .section {
    padding: 100px 0;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-text {
    text-align: center;
  }

  .hero-lead,
  .hero-stats {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .stat {
    text-align: center;
  }

  .hero-visual {
    width: 100%;
    max-width: 520px;
    height: 560px;
    min-height: 0;
    margin-inline: auto;
  }

  .about-visual {
    order: -1;
  }

  .about-logo {
    max-width: 340px;
  }

  .features-frame {
    margin-top: 90px;
    padding: 56px 32px 44px;
  }

  .features,
  .products-grid,
  .branches-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-grid .info-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 84px 0;
  }

  .hero {
    padding-top: calc(var(--header-h) + 28px);
  }

  .hero-stats {
    margin-top: 40px;
  }

  .stat {
    padding-inline: 8px;
  }

  .stat span {
    font-size: 13px;
    white-space: nowrap;
  }

  .hero-visual {
    height: 440px;
  }

  .features-frame {
    padding: 44px 14px 30px;
    border-width: 14px;
    outline-offset: -20px;
  }

  .features-head h3 {
    padding: 10px 18px;
  }

  .feature {
    padding: 40px 24px 34px;
  }

  .seal {
    width: 128px;
  }

  .seal text {
    font-size: 19px;
  }

  .ribbons {
    height: 150px;
  }

  .ribbon-gold {
    transform: rotate(-5deg);
  }

  .ribbon-dark {
    transform: rotate(5deg);
  }

  .ribbon-item {
    font-size: 18px;
  }

  .section-head {
    margin-bottom: 48px;
  }

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

  .product-card {
    min-height: 0;
    padding: 26px 24px 22px;
  }

  .product-card h3 {
    padding-top: 26px;
    font-size: 25px;
  }

  .product-num {
    font-size: 96px;
  }

  .showreel {
    margin-bottom: 48px;
  }

  .showreel-frame {
    width: min(300px, 80%);
  }

  .showreel-arch {
    display: none;
  }

  .branches-grid {
    gap: 14px;
  }

  .branch-card h3 {
    font-size: 19px;
  }

  .branch-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .gallery {
    columns: 2;
    column-gap: 10px;
  }

  .gallery-item {
    margin-bottom: 10px;
    border-radius: 14px;
  }

  .gallery-wrap.is-collapsed {
    max-height: 1100px;
  }

  .map-wrap iframe {
    height: 320px;
  }

  .footer-brand {
    font-size: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
