/* ============================================================
   الباب الأفضل — Al Bab Al Afdal
   Professional WPC Doors Factory Website
   ============================================================ */

:root {
  --bg-900: #14100c;
  --bg-800: #1c1712;
  --bg-700: #241d15;
  --bg-600: #2c241b;
  --cream: #f6f1e7;
  --cream-2: #efe7d7;
  --sand: #e7dcc6;
  --ink: #2b231b;
  --muted: #8f826f;
  --muted-dark: #6d6253;
  --gold: #c9a35c;
  --gold-2: #e2c58b;
  --gold-3: #a8813f;
  --line: rgba(201, 163, 92, 0.28);
  --line-dark: rgba(246, 241, 231, 0.12);
  --shadow: 0 24px 60px -20px rgba(20, 16, 12, 0.45);
  --shadow-sm: 0 10px 30px -12px rgba(20, 16, 12, 0.35);
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: 'Cairo', sans-serif;
  --font-body: 'Tajawal', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.85;
  overflow-x: hidden;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.35; font-weight: 800; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ===== Preloader ===== */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-900);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-mark {
  display: flex; gap: 7px; justify-content: center; margin-bottom: 18px;
}
.preloader-line {
  width: 8px; height: 44px; border-radius: 8px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
  animation: preload 1s var(--ease) infinite;
}
.preloader-line:nth-child(2) { animation-delay: 0.12s; }
.preloader-line:nth-child(3) { animation-delay: 0.24s; }
@keyframes preload {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
.preloader-text {
  font-family: var(--font-head); font-weight: 800; color: var(--gold-2);
  letter-spacing: 3px; font-size: 1.05rem;
}

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(20, 16, 12, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; color: var(--gold-2);
  background: linear-gradient(145deg, rgba(201, 163, 92, 0.22), rgba(201, 163, 92, 0.06));
  border: 1px solid var(--line);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.brand-text small { font-size: 0.62rem; letter-spacing: 3px; color: var(--gold-2); font-weight: 600; }

.main-nav ul { display: flex; gap: 6px; }
.nav-link {
  position: relative; display: inline-block;
  padding: 9px 14px; color: rgba(255, 255, 255, 0.82);
  font-weight: 500; font-size: 0.95rem;
  transition: color 0.3s;
}
.nav-link::after {
  content: ""; position: absolute; bottom: 3px; right: 14px;
  width: 0; height: 2px; background: var(--gold-2); border-radius: 2px;
  transition: width 0.35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: calc(100% - 28px); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-call {
  display: flex; align-items: center; gap: 10px; color: #fff;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 100px; font-weight: 700;
  transition: background 0.3s, transform 0.3s;
}
.header-call:hover { background: var(--gold); color: var(--bg-900); transform: translateY(-2px); }
.header-call svg { color: var(--gold-2); transition: color 0.3s; }
.header-call:hover svg { color: var(--bg-900); }
.call-ring {
  width: 8px; height: 8px; border-radius: 50%; background: #43c465;
  box-shadow: 0 0 0 0 rgba(67, 196, 101, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(67, 196, 101, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(67, 196, 101, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 196, 101, 0); }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px; font-weight: 700; font-size: 1rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s;
  overflow: hidden; white-space: nowrap;
}
.btn-gold {
  color: #1a1409; background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 14px 34px -12px rgba(201, 163, 92, 0.7);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -12px rgba(201, 163, 92, 0.85); }
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn-gold:hover::after { left: 130%; }
.btn-outline {
  color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}
.btn-outline:hover { border-color: var(--gold-2); color: var(--gold-2); transform: translateY(-3px); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 90px;
  background: radial-gradient(1200px 700px at 80% -10%, #2e2418 0%, transparent 60%),
              linear-gradient(160deg, #17120d 0%, #1f1912 55%, #14100c 100%);
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  animation: float 9s ease-in-out infinite;
}
.hero-glow-1 { width: 520px; height: 520px; background: rgba(201, 163, 92, 0.28); top: -140px; left: -80px; }
.hero-glow-2 { width: 460px; height: 460px; background: rgba(138, 90, 51, 0.34); bottom: -160px; right: -80px; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-30px) translateX(20px); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(800px 500px at 50% 40%, #000 0%, transparent 70%);
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(201, 163, 92, 0.12); border: 1px solid var(--line);
  color: var(--gold-2); padding: 8px 18px; border-radius: 100px;
  font-size: 0.86rem; font-weight: 600; margin-bottom: 26px;
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.hero-title { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 900; letter-spacing: -0.5px; }
.gold-word {
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 60%, #e9d3a0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title-sub { display: block; font-size: clamp(1.3rem, 3vw, 2.1rem); font-weight: 700; color: #e9e2d4; margin-top: 8px; }
.hero-lead { color: #c7bba7; max-width: 560px; margin: 24px 0 34px; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: nowrap; }
.hero-actions .btn { flex: 1 1 auto; justify-content: center; }

.hero-stats { display: flex; gap: 20px; margin-top: 48px; flex-wrap: nowrap; justify-content: space-between; }
.stat { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 900; color: var(--gold-2); line-height: 1; }
.stat-label { color: #9d917d; font-size: 0.88rem; margin-top: 6px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-frame { position: relative; width: min(380px, 78vw); }
.hero-img-wrap {
  border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.hero-img-main { position: relative; z-index: 2; animation: heroRise 6s ease-in-out infinite; }
.hero-img-main img { aspect-ratio: 2/2.7; object-fit: cover; width: 100%; }
.hero-img-float {
  position: absolute; width: 150px; z-index: 3;
  bottom: -36px; right: -44px; border-radius: 18px;
  animation: floatY 5.5s ease-in-out infinite; border: 3px solid var(--bg-900);
}
.hero-img-float img { aspect-ratio: 2/2.6; object-fit: cover; }
@keyframes heroRise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}
.hero-badge-card {
  position: absolute; z-index: 4; top: 26px; left: -42px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(20, 16, 12, 0.88); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 16px; padding: 13px 18px;
  box-shadow: var(--shadow-sm); animation: floatY 6s ease-in-out infinite;
}
.hero-badge-card strong { font-family: var(--font-head); font-size: 1rem; display: block; }
.hero-badge-card small { color: #b6a98f; font-size: 0.76rem; }
.badge-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px; display: flex; justify-content: center; padding-top: 7px;
}
.hero-scroll span { width: 4px; height: 10px; background: var(--gold-2); border-radius: 4px; animation: scrollDot 1.8s ease infinite; }
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===== Trust strip ===== */
.trust-strip { background: var(--bg-800); color: #fff; border-top: 1px solid var(--line-dark); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  padding: 26px 30px; display: flex; align-items: center; gap: 14px;
  font-weight: 600; font-size: 0.98rem; border-left: 1px solid var(--line-dark);
  transition: background 0.35s;
}
.trust-item:last-child { border-left: none; }
.trust-item:hover { background: rgba(201, 163, 92, 0.08); }
.trust-num { font-family: var(--font-head); color: var(--gold-2); font-weight: 800; }

/* ===== Sections ===== */
main { display: flex; flex-direction: column; }
.hero { order: 0; }
.trust-strip { order: 1; }
.features { order: 2; }
.products { order: 3; }
.door-types { order: 4; }
.about { order: 5; }
.why-us { order: 6; }
.workflow { order: 7; }
.gallery { order: 8; }
.project-cats { order: 9; }
.cta-banner { order: 10; }
.contact { order: 11; }

.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-kicker {
  display: inline-block; color: var(--gold-3); font-weight: 700;
  letter-spacing: 1px; font-size: 0.9rem; margin-bottom: 12px;
}
.section-kicker::before, .section-kicker::after {
  content: ""; display: inline-block; width: 34px; height: 1px;
  background: var(--gold); vertical-align: middle; margin: 0 12px;
}
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: var(--ink); }
.section-sub { color: var(--muted-dark); margin-top: 14px; }

/* ===== About ===== */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-img-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-img-main img { aspect-ratio: 4/4.6; object-fit: cover; width: 100%; }
.about-exp {
  position: absolute; bottom: -26px; left: 26px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1409; border-radius: 16px; padding: 16px 22px; text-align: center;
  box-shadow: var(--shadow-sm); animation: floatY 5s ease-in-out infinite;
}
.about-exp strong { font-family: var(--font-head); font-size: 1.5rem; display: block; }
.about-exp span { font-size: 0.78rem; font-weight: 700; }
.about-body p { color: var(--muted-dark); margin-bottom: 16px; }
.about-lead { font-size: 1.12rem; color: var(--ink); }
.about-lead strong { color: var(--ink); }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.about-card {
  background: #fff; border: 1px solid #ece2cf; border-radius: var(--radius);
  padding: 26px; transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.about-card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(201, 163, 92, 0.14); color: var(--gold-3); margin-bottom: 16px;
}
.about-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.about-card p { font-size: 0.94rem; margin: 0; }

.values-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 60px; }
.value-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-800); color: #fff; border-radius: var(--radius);
  padding: 20px 22px; border: 1px solid var(--line-dark);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.value-item:hover { transform: translateY(-5px); border-color: var(--gold); }
.value-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: var(--gold-2); background: rgba(201, 163, 92, 0.14);
}
.value-item strong { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.value-item span { font-size: 0.8rem; color: #b6a98f; }

/* ===== Features ===== */
.features { background: var(--bg-800); color: #fff; position: relative; overflow: hidden; }
.features::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 500px at 100% 0%, rgba(201, 163, 92, 0.1), transparent 60%);
}
.features .section-title { color: #fff; }
.features .section-sub { color: #b6a98f; }
.features .section-kicker, .workflow .section-kicker, .gallery .section-kicker { color: var(--gold-2); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; z-index: 1; }
.feature-card {
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform 0.45s var(--ease), background 0.45s, border-color 0.45s;
}
.feature-card:hover {
  transform: translateY(-8px); background: rgba(201, 163, 92, 0.08);
  border-color: var(--gold);
}
.feature-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  color: var(--gold-2); background: linear-gradient(145deg, rgba(201, 163, 92, 0.22), rgba(201, 163, 92, 0.05));
  margin-bottom: 20px; transition: transform 0.45s var(--ease);
}
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-6deg); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: #b6a98f; font-size: 0.92rem; }

/* ===== Door types ===== */
.door-types { background: var(--cream); }
.door-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.door-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid #ece2cf;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.door-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.door-card-media { overflow: hidden; }
.door-card-media img { aspect-ratio: 4/3.4; object-fit: cover; width: 100%; transition: transform 0.7s var(--ease); }
.door-card:hover .door-card-media img { transform: scale(1.08); }
.door-card-body { padding: 26px 26px 30px; }
.door-card-body h3 { font-size: 1.25rem; }
.door-en { display: block; color: var(--gold-3); font-size: 0.82rem; font-weight: 700; letter-spacing: 1px; margin: 4px 0 12px; }
.door-card-body p { color: var(--muted-dark); font-size: 0.95rem; }

/* ===== Products ===== */
.products { background: var(--cream-2); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: #fff; cursor: zoom-in;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-media { overflow: hidden; position: relative; }
.product-media img { aspect-ratio: 4/4.2; object-fit: cover; width: 100%; transition: transform 0.8s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.07); }
.product-tag {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold); color: #1a1409; font-weight: 700; font-size: 0.78rem;
  padding: 5px 13px; border-radius: 100px;
}
.product-body { padding: 20px 22px 24px; }
.product-body h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--ink); }
.product-body p { color: var(--muted-dark); font-size: 0.9rem; }

/* ===== Workflow ===== */
.workflow { background: var(--bg-900); color: #fff; position: relative; overflow: hidden; }
.workflow .section-title { color: #fff; }
.workflow-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.workflow-track::before {
  content: ""; position: absolute; top: 34px; right: 8%; left: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.workflow-step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 900; font-size: 1.25rem;
  color: var(--gold-2); background: var(--bg-700); border: 1.5px solid var(--line);
  position: relative; transition: background 0.4s, transform 0.4s var(--ease);
}
.workflow-step:hover .step-num { background: var(--gold); color: var(--bg-900); transform: scale(1.08); }
.step-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-body p { color: #9d917d; font-size: 0.87rem; }

/* ===== Why us ===== */
.why-us { background: var(--cream); }
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.why-copy .section-title { margin: 8px 0 18px; }
.why-copy p { color: var(--muted-dark); margin-bottom: 28px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-item {
  display: flex; gap: 14px; background: #fff; border: 1px solid #ece2cf;
  border-radius: var(--radius); padding: 20px; align-items: flex-start;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.why-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.why-check {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--gold); color: #1a1409;
}
.why-item strong { font-family: var(--font-head); display: block; margin-bottom: 3px; }
.why-item p { color: var(--muted-dark); font-size: 0.86rem; }

/* ===== Gallery ===== */
.gallery { background: var(--bg-800); color: #fff; }
.gallery .section-title { color: #fff; }
.gallery .section-sub { color: #b6a98f; }
.gallery-grid { columns: 4 240px; column-gap: 16px; }
.gallery-item {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line-dark);
  break-inside: avoid; margin-bottom: 16px;
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.7s var(--ease); }
.gallery-item::after {
  content: "+"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.4rem; color: #fff; background: rgba(20, 16, 12, 0.45);
  opacity: 0; transition: opacity 0.4s;
}
.gallery-item:hover img { transform: scale(1.09); }
.gallery-item:hover::after { opacity: 1; }

/* ===== Zoom affordance for clickable images ===== */
.product-card, .door-card, .cat-card, .about-img-main { cursor: zoom-in; }
.product-media, .door-card-media, .about-img-main { position: relative; }
.product-media::after, .door-card-media::after, .about-img-main::after, .cat-card::after {
  content: ""; position: absolute; top: 12px; left: 12px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(20, 16, 12, 0.72) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3'/><path d='M11 8v6M8 11h6'/></svg>") center/18px 18px no-repeat;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.product-card:hover .product-media::after,
.door-card:hover .door-card-media::after,
.about-img-main:hover::after,
.cat-card:hover::after { opacity: 1; }

/* ===== Project categories ===== */
.project-cats { background: var(--cream); }
.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm); cursor: zoom-in;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.cat-media { overflow: hidden; }
.cat-media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform 0.7s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.07); }
.cat-body { padding: 18px 20px 22px; }
.cat-body h3 { font-size: 1.15rem; margin-bottom: 5px; color: var(--ink); }
.cat-body p { color: var(--muted-dark); font-size: 0.88rem; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  padding: 60px 0; color: #1a1409; overflow: hidden; position: relative;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 90% 50%, rgba(255, 255, 255, 0.35), transparent 60%);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; z-index: 1; flex-wrap: wrap; }
.cta-copy h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; }
.cta-copy p { font-weight: 500; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-banner .btn-gold { background: var(--bg-900); color: var(--gold-2); box-shadow: var(--shadow-sm); }
.cta-banner .btn-outline { color: #1a1409; border-color: rgba(26, 20, 9, 0.5); background: transparent; }
.cta-banner .btn-outline:hover { background: rgba(26, 20, 9, 0.08); color: #1a1409; }

/* ===== Contact ===== */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.contact-info { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.contact-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  min-width: 0;
  background: #fff; border: 1px solid #ece2cf; border-radius: var(--radius); padding: 20px 12px;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
a.contact-item:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-sm); }
.contact-icon {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(201, 163, 92, 0.14); color: var(--gold-3);
}
.contact-item small { display: block; color: var(--muted); font-size: 0.78rem; }
.contact-item strong { font-family: var(--font-head); font-size: 0.95rem; color: var(--ink); word-break: break-word; }

.contact-form { background: #fff; border: 1px solid #ece2cf; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); max-width: 780px; width: 100%; margin-inline: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--ink); font-size: 0.92rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #e6dcc7;
  font-family: inherit; font-size: 0.95rem; color: var(--ink); background: #faf7f0;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 163, 92, 0.15);
}
.form-field textarea { resize: vertical; }
.form-note { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 12px; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-900); color: #b6a98f; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 70px 0 50px; }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; bottom: 0; right: 0; width: 30px; height: 2px; background: var(--gold); }
.footer-col ul li { margin-bottom: 11px; font-size: 0.92rem; }
.footer-col ul a:hover { color: var(--gold-2); }
.footer-contact ul li a { color: var(--gold-2); font-weight: 700; font-size: 1rem; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 9000; background: rgba(10, 8, 5, 0.94);
  display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 88vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); transform: scale(0.92); transition: transform 0.35s var(--ease); }
.lightbox.open img { transform: scale(1); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; color: #fff; font-size: 2rem; line-height: 1;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); transition: background 0.3s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); color: #1a1409; }
.lightbox-close { top: 24px; left: 24px; font-family: var(--font-head); }
.lightbox-prev { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { left: 24px; top: 50%; transform: translateY(-50%); }

/* ===== Back to top ===== */
.back-top {
  position: fixed; bottom: 26px; left: 26px; z-index: 800;
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold); color: #1a1409; box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--ease);
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--gold-2); }

/* ===== Floating WhatsApp FAB ===== */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 960;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #2be375, #1fb85a);
  box-shadow: 0 10px 30px -6px rgba(31, 184, 90, 0.65);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.whatsapp-fab:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 16px 38px -6px rgba(31, 184, 90, 0.8); }
.whatsapp-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); animation: waPulse 2.4s infinite;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 3 220px; }
  .values-row { grid-template-columns: repeat(2, 1fr); }
  .workflow-track { grid-template-columns: repeat(3, 1fr); gap: 34px; }
  .workflow-track::before { display: none; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 20px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; margin-top: 30px; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-badge-card { left: 6px; }
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .door-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-left: none; border-bottom: 1px solid var(--line-dark); }
  .workflow-track { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }

  /* Header */
  .site-header { padding: 12px 0; }
  .site-header.scrolled { padding: 8px 0; }
  .brand-icon { width: 40px; height: 40px; }
  .brand-text strong { font-size: 1.02rem; }
  .main-nav {
    position: fixed; inset: 0; background: rgba(20, 16, 12, 0.98);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 6px; }
  .nav-link { font-size: 1.2rem; padding: 13px; }
  .nav-toggle { display: flex; }
  .header-call span:last-child { display: none; }
  .header-call { padding: 10px; }

  /* Hero — condensed */
  .hero { min-height: 0; padding: 108px 0 40px; }
  .hero-title { font-size: clamp(1.7rem, 7.5vw, 2.3rem); }
  .hero-title-sub { font-size: 1.05rem; }
  .hero-lead { font-size: 0.88rem; margin: 13px 0 20px; }
  .hero-badge { font-size: 0.72rem; padding: 5px 13px; margin-bottom: 13px; }
  .hero-actions .btn { padding: 12px 20px; font-size: 0.88rem; }
  .hero-stats { gap: 14px; margin-top: 24px; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: 0.72rem; }
  .hero-visual { margin-bottom: 6px; }
  .hero-frame { width: min(250px, 62vw); }
  .hero-img-float { width: 100px; right: -22px; bottom: -22px; }
  .hero-badge-card { top: 12px; left: 0; padding: 9px 13px; }
  .hero-badge-card strong { font-size: 0.8rem; }
  .hero-badge-card small { font-size: 0.66rem; }
  .hero-scroll { display: none; }

  /* Sections — tighter */
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }
  .section-title { font-size: 1.42rem; }
  .section-sub { font-size: 0.88rem; margin-top: 9px; }
  .section-kicker { font-size: 0.8rem; }
  .section-kicker::before, .section-kicker::after { width: 20px; margin: 0 7px; }

  /* Trust strip */
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 16px 14px; font-size: 0.86rem; gap: 8px; border-left: none; border-bottom: 1px solid var(--line-dark); }

  /* About */
  .about-grid { gap: 36px; }
  .about-lead { font-size: 0.95rem; }
  .about-body p { font-size: 0.88rem; }
  .about-cards { grid-template-columns: 1fr; gap: 12px; }
  .about-card { padding: 18px 18px; }
  .about-card-icon { width: 42px; height: 42px; margin-bottom: 12px; }
  .about-card h3 { font-size: 1rem; }
  .about-card p { font-size: 0.84rem; }
  .about-exp { left: 12px; bottom: -20px; padding: 11px 16px; }
  .about-exp strong { font-size: 1.1rem; }

  /* Values */
  .values-row { grid-template-columns: 1fr; gap: 10px; }
  .value-item { padding: 14px 16px; gap: 12px; }
  .value-icon { width: 42px; height: 42px; }
  .value-item strong { font-size: 0.95rem; }
  .value-item span { font-size: 0.78rem; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 16px 18px; }
  .feature-icon { width: 42px; height: 42px; margin-bottom: 12px; }
  .feature-card h3 { font-size: 0.95rem; }
  .feature-card p { font-size: 0.84rem; }

  /* Doors */
  .door-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .door-card-body { padding: 14px 14px 18px; }
  .door-card-body h3 { font-size: 0.95rem; }
  .door-en { font-size: 0.7rem; }
  .door-card-body p { font-size: 0.8rem; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 14px 14px 18px; }
  .product-body h3 { font-size: 0.95rem; }
  .product-body p { font-size: 0.78rem; }
  .product-tag { top: 8px; right: 8px; font-size: 0.66rem; padding: 3px 9px; }

  /* Workflow */
  .workflow-track { grid-template-columns: 1fr; gap: 24px; }
  .step-num { width: 54px; height: 54px; font-size: 1rem; margin-bottom: 12px; }
  .step-body h3 { font-size: 0.95rem; }
  .step-body p { font-size: 0.82rem; }

  /* Why us */
  .why-grid { gap: 32px; }
  .why-list { grid-template-columns: 1fr; gap: 10px; }
  .why-item { padding: 14px 16px; gap: 12px; }
  .why-item strong { font-size: 0.92rem; }
  .why-item p { font-size: 0.8rem; }

  /* Gallery */
  .gallery-grid { columns: 2 150px; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }

  /* Categories */
  .cats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-body { padding: 14px 14px 18px; }
  .cat-body h3 { font-size: 0.95rem; }
  .cat-body p { font-size: 0.78rem; }

  /* CTA banner */
  .cta-banner { padding: 40px 0; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }

  /* Contact — single scrollable row on mobile */
  .contact-grid { gap: 26px; }
  .contact-info { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .contact-item { flex: 0 0 150px; padding: 16px 10px; }
  .contact-icon { width: 44px; height: 44px; }
  .contact-item strong { font-size: 0.85rem; }
  .contact-form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 24px; }
  .footer-bottom { padding: 16px 0 24px; }
  .footer-bottom .container { flex-direction: column; align-items: center; text-align: center; }

  /* Back top + WhatsApp FAB on mobile */
  .back-top { bottom: 20px; left: 14px; width: 44px; height: 44px; }
  .whatsapp-fab { bottom: 18px; right: 18px; width: 56px; height: 56px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.55rem; }
  .hero-title-sub { font-size: 1rem; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { padding: 12px 12px; font-size: 0.82rem; gap: 6px; }
  .hero-stats { justify-content: space-between; width: 100%; gap: 8px; }
  .stat-num { font-size: 1.15rem; }
  .stat-label { font-size: 0.66rem; }
  .gallery-grid { columns: 2 140px; }
  .brand-text small { display: none; }
}

/* Reduced motion */
@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; }
}
