/* ============================================
   BUKHAMSEEN GROUP — Complete Redesign
   Two brands, one system. Mobile-first.
   ============================================ */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

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

/* --- BRAND TOKENS --- */
:root {
  /* Bukhamseen defaults */
  --brand-primary: #671118;
  --brand-primary-light: #8a2a35;
  --brand-accent: #C2A763;
  --brand-accent-light: #d4be8a;
  --brand-surface: #F7F6F3;
  --brand-dark: #0A0A0A;

  /* Shared UI */
  --text-primary: #1D1D1F;
  --text-secondary: #6B6B70;
  --text-tertiary: #A0A0A5;
  --white: #FFFFFF;
  --border: rgba(0,0,0,0.06);
  --shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
  --shadow-lg: 0 30px 60px -15px rgba(0,0,0,0.08);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-zal: Georgia, 'Didot', 'Bodoni MT', serif;

  /* Spacing */
  --nav-h: 72px;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ZAL brand override — applied via .brand-zal on body */
.brand-zal {
  --brand-primary: #1a3a2e;
  --brand-primary-light: #2a5a3e;
  --brand-surface: #FFFFFF;
  --font-heading: var(--font-zal);
}

/* --- BASE --- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--brand-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(28px, 6vw, 64px); }
h2 { font-size: clamp(24px, 4vw, 42px); }
h3 { font-size: clamp(20px, 3vw, 26px); }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-body); }

p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }

a { color: var(--brand-primary); text-decoration: none; }
a:hover { opacity: 0.7; }

/* --- LAYOUT --- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 520px; margin: 0 auto; font-size: 16px; }

/* --- NAVIGATION --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247,246,243,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.brand-zal .nav { background: rgba(255,255,255,0.9); }

.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 20px;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-mark { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.nav-logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-logo-text { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-primary); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--text-secondary); padding: 8px 0; }
.nav-links a.active { color: var(--brand-primary); font-weight: 600; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 100px;
  font-size: 12px; font-weight: 700;
}
.bukhamseen-cta { background: var(--brand-primary); color: white; }
.zal-cta-btn { background: var(--brand-primary); color: white; }

.nav-burger { 
  display: none; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  gap: 5px;
  background: none; 
  border: none; 
  cursor: pointer; 
  padding: 12px;
  min-width: 44px; 
  min-height: 44px;
  z-index: 101;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 1px; transition: transform 0.3s, opacity 0.3s; }
.nav-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-active span:nth-child(2) { opacity: 0; }
.nav-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- HERO --- */
.hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 32px) 20px 48px;
  background-color: var(--brand-dark);
  background-size: cover; background-position: center;
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.85) 100%);
  z-index: 1;
}
.hero > * { position: relative; z-index: 2; }

.hero-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--brand-accent);
  margin-bottom: 16px; display: block;
}

.hero h1 { color: white; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 16px; color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 28px; }

.hero-cta { display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* ZAL hero variant */
.hero-zal {
  background: var(--brand-primary);
  background-image: none;
  min-height: auto;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 72px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-size: 15px; font-weight: 600;
  border-radius: 8px; border: none; cursor: pointer; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--brand-primary); color: white; }
.btn-primary:hover { background: var(--brand-primary-light); opacity: 1; }

.btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: white; opacity: 1; }

.btn-gold { background: transparent; color: var(--brand-accent); border: 1px solid var(--brand-accent); }
.btn-gold:hover { background: var(--brand-accent); color: var(--brand-dark); opacity: 1; }

.btn-block { width: 100%; }

/* --- STATS --- */
.stats { max-width: 1160px; margin: -32px auto 40px; padding: 0 20px; position: relative; z-index: 10; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-card {
  background: white; border-radius: var(--radius);
  padding: 28px 16px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.stat-number { font-family: var(--font-heading); font-size: clamp(28px, 7vw, 48px); font-weight: 700; color: var(--brand-primary); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }

/* --- CARDS --- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card-grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }

.card {
  background: white; border-radius: var(--radius-lg);
  padding: 32px 24px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 8px; }

/* --- PROJECT CARDS --- */
.project-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.project-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/5; cursor: pointer;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}
.project-card-img {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.25); font-family: var(--font-heading); font-size: 18px;
  transition: transform 0.6s;
}
.project-card:hover .project-card-img { transform: scale(1.05); }
.project-card-body {
  position: absolute; bottom: 10px; left: 10px; right: 10px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(12px);
  padding: 16px 18px; border-radius: 12px;
}
.project-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-accent); margin-bottom: 4px; display: block; }
.project-card h3 { font-size: 18px; margin: 0 0 2px; }
.project-card p { font-size: 13px; margin: 0; }

/* --- ZAL SECTION (on Bukhamseen homepage) --- */
.zal-feature {
  background: var(--brand-primary);
  color: white; border-radius: var(--radius-lg);
  padding: 48px 24px; text-align: center;
  margin: 0 12px;
}
.zal-feature h2 { color: white; margin-bottom: 8px; }
.zal-feature p { color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.zal-feature .btn { background: white; color: var(--brand-primary); }

/* --- PARTNER MARQUEE --- */
.partner-bar { overflow: hidden; padding: 32px 0; background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.partner-track { display: flex; gap: 40px; white-space: nowrap; }
.partner-item { font-family: var(--font-heading); font-size: 18px; color: var(--text-tertiary); }
.partner-dot { color: var(--border); }

/* --- CONTACT --- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact-card {
  background: white; border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.contact-card h3 { color: var(--brand-primary); margin-bottom: 8px; }
.contact-phone { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--text-primary); margin: 8px 0; }

/* --- FORMS --- */
.form-card { max-width: 560px; margin: 0 auto; background: white; border-radius: var(--radius-lg); padding: 28px 20px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 14px; font-size: 16px; font-family: var(--font-body); border: 1px solid var(--border); border-radius: 8px; background: #F9F9FA; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--brand-primary); background: white; box-shadow: 0 0 0 3px rgba(103,17,24,0.1); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { width: 100%; padding: 14px; font-size: 16px; font-weight: 600; background: var(--brand-primary); color: white; border: none; border-radius: 8px; cursor: pointer; }

/* --- LOCATIONS --- */
.location-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.location-card { background: white; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.location-map { width: 100%; height: 200px; border: none; background: #E8E8ED; }
.location-card-body { padding: 20px; }
.location-badge { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 12px; border-radius: 100px; margin-bottom: 8px; }
.badge-bukhamseen { background: rgba(103,17,24,0.08); color: var(--brand-primary); }
.badge-zal { background: rgba(26,58,46,0.08); color: #1a3a2e; }

/* --- SHOWROOMS --- */
.showroom-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.showroom-item { background: white; border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* --- FOOTER --- */
.footer {
  background: var(--brand-dark); color: white; padding: 64px 20px 32px;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.footer h4 { color: var(--brand-accent); margin-bottom: 16px; }
.footer p, .footer a { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.8; display: block; margin-bottom: 6px; }
.footer a:hover { color: white; opacity: 1; }
.footer ul { list-style: none; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 12px; color: rgba(255,255,255,0.35); }

/* --- ANIMATIONS --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.anim-fade { animation: fadeInUp 0.6s cubic-bezier(0.32, 0.72, 0, 1) both; }
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.3s; }

/* --- MOBILE MENU --- */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    height: calc(100vh - var(--nav-h));
    background: var(--brand-surface); padding: 32px 20px; gap: 20px;
    align-items: center; justify-content: center;
    z-index: 99;
  }
  .nav-links.open a { font-size: 18px; }
}

/* --- DESKTOP --- */
@media (min-width: 768px) {
  .container { padding: 0 40px; }
  .section { padding: 100px 0; }
  .section-sm { padding: 72px 0; }

  .hero { padding: calc(var(--nav-h) + 40px) 40px 64px; }
  .hero h1 { font-size: clamp(40px, 5vw, 72px); }
  .hero-subtitle { font-size: 19px; margin-bottom: 36px; }
  .hero-cta { flex-direction: row; gap: 14px; }

  .stats { margin: -48px auto 60px; padding: 0 40px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .stat-card { padding: 40px 24px; }

  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .card { padding: 40px 32px; }

  .project-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .project-card-body { bottom: 14px; left: 14px; right: 14px; padding: 20px 22px; }
  .project-card h3 { font-size: 20px; }

  .zal-feature { padding: 80px 48px; margin: 0; }

  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .showroom-grid { grid-template-columns: repeat(3, 1fr); }

  .footer { padding: 80px 40px 40px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
  .footer-bottom { text-align: left; display: flex; justify-content: space-between; }

  .form-card { padding: 40px 36px; }

  .hero-zal { padding-top: calc(var(--nav-h) + 64px); padding-bottom: 96px; }
  .hero-zal h1 { font-size: clamp(36px, 5vw, 56px); }
}

/* --- LARGE DESKTOP --- */
@media (min-width: 1024px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- RTL --- */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }


/* ==========================================================================
   OVERHAUL v2 — compact project cards, top enquiry form, sticky mobile bar,
   organized footer, CSS partner marquee (Aug 2026, coding-partner verified)
   ========================================================================== */

/* --- COMPACT PROJECT CARDS (replaces 4/5 aspect-ratio tiles) --- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.5rem 0;
}
@media (min-width: 768px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
}
@media (min-width: 1024px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.project-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg, 10px);
  padding: 0.8rem 0.9rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  height: auto; /* kills the old 4/5 aspect-ratio constraint */
  aspect-ratio: auto; /* CRITICAL: override the old 4/5 rule */
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(103, 17, 24, 0.09);
  border-color: rgba(103, 17, 24, 0.22);
}
.project-icon-wrapper {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(103, 17, 24, 0.06);
  color: var(--brand-primary, #671118);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.22s ease, color 0.22s ease;
}
.project-card:hover .project-icon-wrapper {
  background: var(--brand-primary, #671118);
  color: #ffffff;
}
.project-info { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.project-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand-accent, #C9A24B);
  line-height: 1.2;
}
.project-title {
  font-family: var(--font-heading, serif);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 0;
}
.project-desc {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #606060;
  margin: 0.1rem 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* wide feature card (Awqaf flagship) */
.project-card.project-card-wide { grid-column: 1 / -1; }
.project-card-wide .project-icon-wrapper { width: 44px; height: 44px; border-radius: 12px; }
.project-card-wide .project-title { font-size: 1.1rem; }

/* --- TOP ENQUIRY SECTION --- */
.enquiry-top-section {
  padding: 3.5rem 1.25rem;
  background: #fcfcfc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  scroll-margin-top: 80px;
}
.enquiry-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}
@media (min-width: 992px) {
  .enquiry-grid { grid-template-columns: 42% 58%; gap: 3.5rem; }
}
.enquiry-info-block { display: flex; flex-direction: column; gap: 1rem; }
.enquiry-info-block .eyebrow {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--brand-accent, #C9A24B);
}
.enquiry-info-block h2 {
  font-family: var(--font-heading, serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--brand-primary, #671118);
  margin: 0;
}
.enquiry-info-block p { font-size: 0.98rem; line-height: 1.6; color: #4a4a4a; margin: 0; }
.enquiry-quick-contact { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 0.5rem; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: #1a1a1a; text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: color 0.2s ease;
}
.contact-pill svg { color: var(--brand-primary, #671118); }
.contact-pill:hover { color: var(--brand-accent, #C9A24B); }
.enquiry-form-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg, 10px);
  padding: 1.6rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.enquiry-form-card .form-group { margin-bottom: 1rem; }
.enquiry-form-card label {
  display: block; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.35rem; color: #333;
}
.enquiry-form-card input,
.enquiry-form-card select,
.enquiry-form-card textarea {
  width: 100%; padding: 0.7rem 0.8rem; font-size: 0.95rem; font-family: var(--font-body);
  border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 6px; background: #F9F9FA;
}
.enquiry-form-card input:focus,
.enquiry-form-card select:focus,
.enquiry-form-card textarea:focus {
  outline: none; border-color: var(--brand-primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(103, 17, 24, 0.08);
}
.enquiry-form-card textarea { resize: vertical; min-height: 90px; }
.enquiry-form-card .form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .enquiry-form-card .form-row { grid-template-columns: 1fr 1fr; } }
.enquiry-form-card button[type="submit"] {
  width: 100%; padding: 0.85rem; background: var(--brand-primary, #671118); color: #fff;
  border: none; border-radius: 6px; font-weight: 600; font-size: 0.98rem; cursor: pointer;
  transition: background 0.2s ease;
}
.enquiry-form-card button[type="submit"]:hover { background: #4d0a10; }
.form-note { font-size: 0.78rem; color: #999; margin-top: 0.7rem; text-align: center; }

/* --- MOBILE STICKY FOOTER --- */
.sticky-mobile-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: #ffffff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.09);
  border-top: 1.5px solid var(--brand-accent, #C9A24B);
  display: flex;
  height: 60px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sticky-action-call {
  flex: 35%;
  background: #f8f8f8;
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  color: var(--brand-primary, #671118); text-decoration: none;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 600; font-size: 0.85rem;
  transition: background 0.2s;
}
.sticky-action-call:active { background: #efefef; }
.sticky-action-form {
  flex: 65%;
  background: var(--brand-primary, #671118);
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: background 0.2s;
}
.sticky-action-form:active { background: #4d0a10; }
@media (min-width: 768px) {
  .sticky-mobile-footer { display: none !important; }
}
@media (max-width: 767px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* --- ORGANIZED FOOTER --- */
.footer-section {
  background: #111111;
  color: #eaeaea;
  padding: 3.5rem 1.25rem 2rem;
}
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 576px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.6fr; } }
.footer-column { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-column h4 {
  font-family: var(--font-heading, serif);
  font-size: 1rem;
  color: var(--brand-accent, #C9A24B);
  margin: 0;
  letter-spacing: 0.02em;
}
.footer-column p { font-size: 0.85rem; line-height: 1.6; color: #a0a0a0; margin: 0; }
.footer-links-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links-list a { color: #afafaf; text-decoration: none; font-size: 0.88rem; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-links-list a:hover { color: var(--brand-accent, #C9A24B); padding-left: 4px; }
.footer-contact-line { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: #afafaf; }
.footer-contact-line svg { color: var(--brand-accent, #C9A24B); flex-shrink: 0; }
.footer-contact-line a { color: #ffffff; text-decoration: none; }
.footer-contact-line a:hover { color: var(--brand-accent, #C9A24B); }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}
@media (min-width: 768px) { .footer-base { flex-direction: row; text-align: left; } }
.footer-base p { font-size: 0.8rem; color: #888; margin: 0; }

/* --- PARTNER MARQUEE (CSS, logo-ready) --- */
.partner-marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  padding: 1.4rem 0;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.partner-track {
  display: inline-flex;
  gap: 3.5rem;
  width: max-content;
  animation: marqueeRun 28s linear infinite;
  will-change: transform;
}
.partner-marquee-container:hover .partner-track { animation-play-state: paused; }
.partner-item { display: flex; align-items: center; justify-content: center; }
.partner-logo {
  height: 40px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.partner-logo:hover { opacity: 1; filter: grayscale(0%); }
.partner-text {
  font-family: var(--font-heading, serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@keyframes marqueeRun {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .partner-track { animation: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; white-space: normal; }
}


/* ==========================================================================
   MODERNIZATION v3 — WhatsApp, testimonials, FAQ, sticky nav, count-up
   ========================================================================== */

/* --- FLOATING WHATSAPP BUTTON --- */
.wa-float {
  position: fixed;
  bottom: 76px;
  right: 18px;
  z-index: 998;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
@media (min-width: 768px) { .wa-float { bottom: 24px; right: 24px; } }

/* --- TESTIMONIALS --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-lg, 10px);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.testimonial-stars { color: #E8A33D; font-size: 0.9rem; letter-spacing: 2px; }
.testimonial-quote { font-size: 0.92rem; line-height: 1.6; color: #444; margin: 0; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.7rem; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-primary, #671118);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.88rem; color: #1a1a1a; margin: 0; }
.testimonial-role { font-size: 0.78rem; color: #999; margin: 0; }

/* --- FAQ ACCORDION --- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body, sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  text-align: left;
}
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(103, 17, 24, 0.08);
  color: var(--brand-primary, #671118);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--brand-primary); color: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.2rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #555;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.1rem; }

/* --- STICKY NAV (blur + shrink on scroll) --- */
.nav { transition: box-shadow 0.25s ease, background 0.25s ease; }
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.nav.scrolled .nav-inner { height: 58px; }
.nav-inner { transition: height 0.25s ease; }

/* --- COUNT-UP STATS --- */
.stat-number, .stat-item .stat-number { will-change: contents; }
@media (prefers-reduced-motion: reduce) {
  .wa-float, .nav, .nav-inner { transition: none; }
}


/* ==========================================================================
   APPLE-INSPIRED MOTION SYSTEM v4 — from Gemini 3.1 Pro consultation
   Motion tokens, reveal system, hero Ken Burns + stagger, card lifts,
   button sheen, nav polish, marquee mask, FAQ spring, mobile stagger,
   back-to-top, stats settle, reduced-motion guard.
   ========================================================================== */

/* --- A. MOTION TOKENS --- */
:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 300ms;
  --dur-base: 600ms;
  --dur-slow: 900ms;
  --dur-hero: 1200ms;
}

/* --- B. REVEAL SYSTEM (JS adds .reveal to targets; IO adds .reveal-visible) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity var(--dur-slow) var(--ease-out-quint),
              transform var(--dur-slow) var(--ease-out-quint);
  will-change: opacity, transform;
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- C. HERO: Ken Burns on the bg + content stagger --- */
.hero {
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
}
/* Ken Burns: the section's own bg image scales via a pseudo-element */
.hero::before {
  content: '';
  position: absolute;
  inset: -4%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroKenBurns 16s var(--ease-out-expo) forwards;
  z-index: 0;
  will-change: transform;
  pointer-events: none;
}
@keyframes heroKenBurns {
  from { transform: scale(1.12); }
  to   { transform: scale(1.0); }
}
/* content sits above the bg layer */
.hero > * { position: relative; z-index: 1; }

/* Staggered hero entrance (replaces plain anim-fade with Apple easing) */
.hero .hero-eyebrow,
.hero h1,
.hero .hero-subtitle,
.hero .hero-cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out-quint),
              transform var(--dur-slow) var(--ease-out-quint);
}
.hero.is-loaded .hero-eyebrow,
.hero.is-loaded h1,
.hero.is-loaded .hero-subtitle,
.hero.is-loaded .hero-cta {
  opacity: 1;
  transform: translateY(0);
}
.hero.is-loaded h1 { transition-delay: 150ms; }
.hero.is-loaded .hero-subtitle { transition-delay: 300ms; }
.hero.is-loaded .hero-cta { transition-delay: 450ms; }

/* --- D. CARD LIFTS (projects, divisions, testimonials) --- */
.card,
.project-card,
.testimonial-card {
  transition: transform var(--dur-base) var(--ease-out-quint),
              box-shadow var(--dur-base) var(--ease-out-quint),
              border-color var(--dur-base) var(--ease-out-quint);
  will-change: transform;
}
@media (hover: hover) {
  .card:hover,
  .project-card:hover,
  .testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(103, 17, 24, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(201, 162, 75, 0.35);
  }
}
.card:active,
.project-card:active,
.testimonial-card:active {
  transform: translateY(-2px) scale(0.98);
  transition-duration: var(--dur-fast);
  transition-timing-function: var(--ease-spring);
}
/* icon chip fills on hover */
.project-card:hover .project-icon-wrapper,
.card:hover .project-icon-wrapper {
  background: var(--brand-primary, #671118);
  color: #ffffff;
  transform: scale(1.08);
}
.project-icon-wrapper {
  transition: background-color 0.35s var(--ease-out-quint),
              color 0.35s var(--ease-out-quint),
              transform 0.35s var(--ease-spring);
}

/* --- E. BUTTON SHEEN + SPRING --- */
.btn-primary,
.btn,
.btn-gold {
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-spring),
              background-color var(--dur-fast) var(--ease-out-quint),
              box-shadow var(--dur-fast) var(--ease-out-quint);
}
.btn-primary::after,
.btn-gold::after {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
@media (hover: hover) {
  .btn-primary:hover,
  .btn-gold:hover {
    transform: scale(1.02);
  }
  .btn-primary:hover::after,
  .btn-gold:hover::after {
    left: 150%;
    transition: left 0.8s var(--ease-out-expo);
  }
}
.btn:active,
.btn-primary:active,
.btn-gold:active {
  transform: scale(0.96);
  transition-duration: 120ms;
}

/* --- F. NAV POLISH: smooth glass transition + link underline --- */
.nav {
  transition: background-color var(--dur-base) var(--ease-out-quint),
              backdrop-filter var(--dur-base) var(--ease-out-quint),
              box-shadow var(--dur-base) var(--ease-out-quint),
              padding var(--dur-base) var(--ease-out-quint);
}
.nav.scrolled {
  background-color: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background-color: var(--brand-accent, #C9A24B);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-fast) var(--ease-out-quint);
}
@media (hover: hover) {
  .nav-links a:hover::after,
  .nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

/* --- G. PARTNER MARQUEE: edge fade + pause --- */
.partner-marquee-container,
.marquee-container {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
@media (hover: hover) {
  .partner-track:hover,
  .marquee-track:hover {
    animation-play-state: paused;
  }
}

/* --- H. FAQ SPRING --- */
.faq-a {
  max-height: 0;
  opacity: 0;
  transition: max-height var(--dur-base) var(--ease-out-quint),
              opacity var(--dur-fast) linear;
}
.faq-item.open .faq-a {
  max-height: 400px;
  opacity: 1;
  transition: max-height var(--dur-slow) var(--ease-out-expo),
              opacity var(--dur-base) var(--ease-out-quint) 100ms;
}

/* --- I. MOBILE MENU STAGGER --- */
@media (max-width: 767px) {
  .nav-links.open li {
    opacity: 0;
    transform: translateY(16px);
  }
  .nav-links.open {
    background: rgba(247, 246, 243, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav-links.open li {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--dur-fast) var(--ease-out-quint),
                transform var(--dur-base) var(--ease-out-quint);
  }
  .nav-links.open li:nth-child(1) { transition-delay: 80ms; }
  .nav-links.open li:nth-child(2) { transition-delay: 130ms; }
  .nav-links.open li:nth-child(3) { transition-delay: 180ms; }
  .nav-links.open li:nth-child(4) { transition-delay: 230ms; }
  .nav-links.open li:nth-child(5) { transition-delay: 280ms; }
  .nav-links.open li:nth-child(6) { transition-delay: 330ms; }
  .nav-links.open li:nth-child(7) { transition-delay: 380ms; }
  .nav-links.open li:nth-child(8) { transition-delay: 430ms; }
  .nav-links.open li:nth-child(9) { transition-delay: 480ms; }
}

/* --- J. BACK-TO-TOP --- */
.back-to-top {
  position: fixed;
  bottom: 84px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-accent, #C9A24B);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(201, 162, 75, 0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-spring),
              transform var(--dur-base) var(--ease-spring);
  z-index: 98;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
@media (hover: hover) {
  .back-to-top:hover { transform: translateY(-4px) scale(1.05); }
}
.back-to-top:active { transform: translateY(0) scale(0.95); }

/* --- K. STATS SETTLE --- */
.stat-number {
  transition: transform var(--dur-base) var(--ease-out-quint),
              text-shadow var(--dur-base) var(--ease-out-quint);
}
.stat-number.is-settling {
  transform: scale(1.06);
  text-shadow: 0 0 16px rgba(201, 162, 75, 0.45);
}

/* --- L. REDUCED MOTION GUARD --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .hero .hero-eyebrow, .hero h1, .hero .hero-subtitle, .hero .hero-cta {
    transform: none !important;
    opacity: 1 !important;
  }
  .hero::before { animation: none !important; transform: none !important; }
  .btn-primary::after, .btn-gold::after { display: none !important; }
  .partner-track, .marquee-track { animation: none !important; }
}
