/* =========================================
   Lawyer Website — Professional Style
   Gold | Dark | Light  •  Mobile-First
   ========================================= */

/* ─── Variables ──────────────────────────── */
:root {
  --gold:        #c9a84c;
  --gold-light:  #e6c96e;
  --gold-dark:   #a07820;

  --black:       #1c1c1c;
  --black-soft:  #111111;
  --black-card:  #1a1a1a;

  --white:       #ffffff;
  --cream:       #fdfaf4;
  --gray-50:     #f8f4ee;
  --gray-100:    #f0ebe0;
  --gray-200:    #e2d9cc;
  --gray-500:    #9e9e9e;
  --gray-600:    #6b6b6b;

  --text-dark:   #1c1c1c;
  --text-body:   #3d3d3d;
  --text-soft:   #6b6b6b;

  --font:        'Tajawal', sans-serif;
  --font-en:     'Playfair Display', serif;

  --shadow-xs:   0 1px 8px rgba(0,0,0,.06);
  --shadow-sm:   0 2px 16px rgba(0,0,0,.08);
  --shadow:      0 4px 30px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 50px rgba(0,0,0,.15);
  --shadow-gold: 0 4px 24px rgba(201,168,76,.22);

  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;
  --transition:  all .35s ease;

  --fs-xs:   clamp(.72rem, 1.8vw, .8rem);
  --fs-sm:   clamp(.82rem, 2vw,   .9rem);
  --fs-base: clamp(.9rem,  2.2vw, 1rem);
  --fs-lg:   clamp(1rem,   2.5vw, 1.15rem);
  --fs-xl:   clamp(1.2rem, 3vw,   1.5rem);
  --fs-2xl:  clamp(1.5rem, 4vw,   2rem);
  --fs-3xl:  clamp(1.8rem, 5vw,   2.5rem);
  --fs-hero: clamp(2rem,   6vw,   3.5rem);
}

/* ─── Dark Mode ──────────────────────────── */
body.dark-mode {
  --white:     #0f0f0f;
  --cream:     #0f0f0f;
  --gray-50:   #141414;
  --gray-100:  #1a1a1a;
  --gray-200:  #252525;
  --text-dark: #f0f0f0;
  --text-body: #cccccc;
  --text-soft: #888888;
  background: #0f0f0f;
  color: #ddd;
}
body.dark-mode .section-bg            { background: #141414 !important; }
body.dark-mode .card-custom,
body.dark-mode .service-card,
body.dark-mode .case-card,
body.dark-mode .testimonial-card,
body.dark-mode .article-card          { background: #1e1e1e; color: #ddd; border-color: #2a2a2a; }
body.dark-mode .service-card          { border-top-color: transparent; }
body.dark-mode .service-card::before  { display: none; }
body.dark-mode .testimonial-card::before { display: none; }
body.dark-mode .form-control,
body.dark-mode .form-select            { background: #252525; border-color: #333; color: #ddd; }
body.dark-mode .text-muted             { color: #888 !important; }
body.dark-mode .footer-section         { background: #0a0a0a; }
body.dark-mode .hero-section::after    { background: linear-gradient(to top,#0f0f0f,transparent); }
body.dark-mode .page-hero::after       { background: linear-gradient(to bottom,transparent,#0f0f0f); }
body.dark-mode .section-title h2       { color: #f0f0f0; }
body.dark-mode .contact-section        { background: #0d0d0d !important; }
body.dark-mode .contact-info-card      { background: #1a1a1a; border-color: #2a2a2a; }
body.dark-mode .contact-info-card p,
body.dark-mode .contact-info-card a    { color: rgba(255,255,255,.65); }
body.dark-mode .contact-info-card h6   { color: var(--gold); }
body.dark-mode .contact-section h2     { color: #f0f0f0; }
body.dark-mode .contact-section .lead  { color: #888; }
body.dark-mode .contact-section .social-link { background: rgba(255,255,255,.05); border-color: rgba(201,168,76,.18); color: rgba(255,255,255,.6); }
body.dark-mode .quick-contact-box      { background: rgba(201,168,76,.04) !important; border-color: rgba(201,168,76,.12) !important; border-top-color: rgba(201,168,76,.3) !important; }
body.dark-mode .about-info-box         { background: rgba(201,168,76,.05) !important; border-color: rgba(201,168,76,.1) !important; border-inline-start-color: rgba(201,168,76,.2) !important; }
body.dark-mode .about-info-box small   { color: #888 !important; }
body.dark-mode .about-info-box a,
body.dark-mode .about-info-box .fw-bold { color: #ddd !important; }
body.dark-mode .skill-progress         { background: #2a2a2a; }
body.dark-mode .case-no-img            { background: linear-gradient(135deg,#1a1a1a,#222) !important; border-color: #2a2a2a !important; }
body.dark-mode .article-no-img         { background: linear-gradient(135deg,#1a1a1a,#222) !important; border-color: #2a2a2a !important; }
body.dark-mode .map-frame              { border-color: #2a2a2a; }
body.dark-mode .map-placeholder        { background: #1a1a1a !important; border-color: #2a2a2a !important; }
body.dark-mode .page-link              { background: #1a1a1a; border-color: #333; color: #ddd; }

/* ─── Reset & Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  background: var(--cream);
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.8;
  min-width: 320px;
}
img, video, iframe, embed { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; transition: var(--transition); }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.35; color: var(--text-dark); word-break: break-word; overflow-wrap: break-word; }
p, li, td, th, span { overflow-wrap: break-word; }

/* ─── Utilities ──────────────────────────── */
.section-padding { padding: clamp(55px,8vw,95px) 0; }
.section-bg {
  background: var(--gray-100);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23c9a84c' fill-opacity='0.045'/%3E%3C/svg%3E");
}
body.dark-mode .section-bg { background-image: none; }
.text-gold       { color: var(--gold) !important; }
.bg-gold         { background: var(--gold) !important; }

/* ─── Buttons ────────────────────────────── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff !important;
  border: none;
  padding: clamp(10px,2vw,13px) clamp(20px,4vw,30px);
  border-radius: 50px;
  font-weight: 700;
  font-size: var(--fs-sm);
  box-shadow: 0 4px 20px rgba(201,168,76,.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,.5);
  color: #fff !important;
}
.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,.08);
  padding: clamp(8px,2vw,11px) clamp(18px,3vw,28px);
  border-radius: 50px;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
/* Hero-specific button sizing */
.hero-buttons .btn-gold,
.hero-buttons .btn-outline-gold {
  padding: clamp(11px,2.2vw,14px) clamp(22px,4vw,34px);
  font-size: clamp(.84rem,2vw,.96rem);
  font-weight: 700;
  letter-spacing: .3px;
}
.hero-buttons .btn-gold {
  box-shadow: 0 6px 28px rgba(201,168,76,.45);
}
.hero-buttons .btn-outline-gold {
  background: rgba(201,168,76,.1);
  border-width: 1.5px;
}

/* ─── Section Title ──────────────────────── */
.section-title { text-align: center; margin-bottom: clamp(36px,6vw,60px); }
.section-title .subtitle {
  color: var(--gold);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.section-title .subtitle::before,
.section-title .subtitle::after {
  content: '';
  flex-shrink: 0;
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  opacity: .7;
}
.section-title .subtitle::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-title h2 { font-size: var(--fs-3xl); margin-bottom: 16px; color: var(--text-dark); font-weight: 800; }
.section-title .divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0 auto;
  border-radius: 3px;
  position: relative;
}
.section-title .divider::before {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  top: -3.5px; left: 50%;
  transform: translateX(-50%);
}
.section-title .divider::after {
  content: '';
  position: absolute;
  width: 100px; height: 1px;
  background: var(--gray-200);
  top: 1px; left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

/* ─── Navbar ─────────────────────────────── */
#mainNav {
  background: rgba(8,8,8,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(201,168,76,.12);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
}
#mainNav.scrolled { padding: 6px 0; box-shadow: 0 2px 30px rgba(0,0,0,.5); }
.navbar-brand { color: #fff !important; }
.brand-text   { display: flex; flex-direction: column; line-height: 1.25; }
.brand-title  { font-size: clamp(.82rem,2.2vw,1rem); font-weight: 700; color: var(--gold); }
.brand-sub    { font-size: clamp(.65rem,1.6vw,.72rem); color: rgba(255,255,255,.5); }
.navbar-nav .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-weight: 500;
  font-size: var(--fs-sm);
  padding: 7px 14px !important;
  border-radius: 6px;
  transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--gold) !important; }

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(6,6,6,.99);
    padding: 12px 16px 16px;
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: 1px solid rgba(201,168,76,.1);
    margin-top: 8px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .navbar-nav .nav-link { padding: 10px 14px !important; border-bottom: 1px solid rgba(255,255,255,.05); }
  .navbar-nav .nav-link:last-child { border-bottom: none; }
  #mainNav .d-flex { flex-wrap: wrap; gap: 6px; margin-top: 8px; }
}

/* ─── Hero Section ───────────────────────── */
.hero-section {
  min-height: 100svh;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1206 50%, #0d0d0d 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--cream), transparent);
  pointer-events: none;
}
body.dark-mode .hero-section::after { background: linear-gradient(to top,#0f0f0f,transparent); }
.hero-row    { min-height: calc(100svh - 70px); }
@media (max-width: 991px) { .hero-row { min-height: auto; } }
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.35);
  color: var(--gold);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-title { font-size: var(--fs-hero); color: #fff; line-height: 1.2; margin-bottom: 14px; }
.hero-title .gold-text { color: var(--gold); display: block; }
.hero-sub  { font-size: var(--fs-lg); color: rgba(255,255,255,.75); margin-bottom: 14px; }
.hero-desc { font-size: var(--fs-sm); color: rgba(255,255,255,.5); margin-bottom: 30px; max-width: 500px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero Image */
.hero-img-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 2;
}
.hero-img-frame { position: relative; display: inline-block; }
.hero-img-frame::before {
  content: '';
  position: absolute; inset: -8px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  opacity: .35;
  animation: framePulse 3s ease-in-out infinite;
  pointer-events: none;
}
.hero-img {
  width: clamp(240px,40vw,380px);
  height: clamp(300px,50vw,480px);
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  background: rgba(201,168,76,.08);
  display: block;
}
@keyframes framePulse { 0%,100% { opacity:.2; } 50% { opacity:.5; } }

/* Hero Stats */
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; }
.hero-stat-box {
  background: rgba(201,168,76,.9);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 10px;
  text-align: center;
  min-width: 80px;
  flex: 1;
}
.hero-stat-box .num { font-size: clamp(1.2rem,4vw,1.6rem); font-weight: 900; color: #000; line-height: 1; }
.hero-stat-box .lbl { font-size: .65rem; color: rgba(0,0,0,.6); font-weight: 600; margin-top: 3px; }

/* ─── Stats Section ──────────────────────── */
.stats-section {
  background: linear-gradient(135deg, #0d0d0d, #1a1206);
  padding: clamp(50px,7vw,80px) 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(45deg,rgba(201,168,76,.06),transparent 60%);
  pointer-events: none;
}
.stat-item   { text-align: center; padding: 16px 12px; }
.stat-number { font-size: clamp(2.2rem,6vw,3.5rem); font-weight: 900; color: var(--gold); line-height: 1; display: block; }
.stat-label  { font-size: var(--fs-sm); color: rgba(255,255,255,.6); margin-top: 8px; display: block; }
.stat-icon   { font-size: clamp(1.4rem,3vw,2rem); color: rgba(201,168,76,.22); margin-bottom: 8px; }

/* ─── Cards ──────────────────────────────── */
.card-custom {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  overflow: hidden;
}
.card-custom:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,.11), 0 2px 12px rgba(201,168,76,.1); border-color: rgba(201,168,76,.3); }

/* ─── Service Cards ──────────────────────── */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(28px,4vw,40px) clamp(20px,3vw,30px);
  text-align: center;
  border: 1px solid var(--gray-200);
  border-top: 3px solid rgba(201,168,76,.18);
  box-shadow: 0 2px 18px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s ease;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover::before { transform: scaleX(1); transform-origin: left; }
.service-card:hover::after  { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 60px rgba(0,0,0,.13), 0 4px 16px rgba(201,168,76,.18);
  border-color: rgba(201,168,76,.35);
  border-top-color: var(--gold);
}
.service-icon {
  width: clamp(60px,9vw,72px);
  height: clamp(60px,9vw,72px);
  background: linear-gradient(135deg,rgba(201,168,76,.14),rgba(201,168,76,.04));
  border: 2px solid rgba(201,168,76,.22);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: clamp(1.2rem,3vw,1.6rem);
  color: var(--gold);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg,var(--gold),var(--gold-dark));
  color: #fff;
  border-color: var(--gold);
  transform: rotateY(360deg);
  box-shadow: 0 4px 16px rgba(201,168,76,.3);
}
.service-card h5 { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.service-card p  { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.75; }

/* ─── About Section ──────────────────────── */
.about-img-wrap {
  position: relative;
  padding: clamp(12px,3vw,20px);
  overflow: visible;
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 70%; height: 70%;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  opacity: .38;
  pointer-events: none;
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 70%; height: 70%;
  background: linear-gradient(135deg, rgba(201,168,76,.06), rgba(201,168,76,.02));
  border: 1px solid rgba(201,168,76,.12);
  border-radius: var(--radius);
  pointer-events: none;
}
.about-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  max-height: 480px;
  object-fit: cover;
  object-position: top center;
  background: rgba(201,168,76,.06);
  display: block;
}
.exp-badge {
  position: absolute;
  bottom: 20px; right: 5px;
  background: linear-gradient(135deg,var(--gold),var(--gold-dark));
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius);
  text-align: center;
  z-index: 2;
  box-shadow: var(--shadow-gold);
  min-width: 90px;
}
.exp-badge .num { font-size: clamp(1.5rem,4vw,2.2rem); font-weight: 900; line-height: 1; display: block; }
.exp-badge .lbl { font-size: .68rem; font-weight: 700; margin-top: 3px; opacity: .88; }

/* About Info Boxes */
.about-info-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-inline-start: 3px solid rgba(201,168,76,.25);
  box-shadow: 0 1px 8px rgba(0,0,0,.05);
  transition: var(--transition);
  height: 100%;
}
.about-info-box:hover {
  border-color: rgba(201,168,76,.35);
  border-inline-start-color: var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,.09), 0 2px 8px rgba(201,168,76,.08);
  transform: translateY(-2px);
}
.about-info-box i     { font-size: 1.3rem; color: var(--gold); flex-shrink: 0; }
.about-info-box small { color: var(--text-soft); display: block; font-size: .75rem; margin-bottom: 2px; }
.about-info-box a,
.about-info-box .fw-bold { color: var(--text-dark) !important; font-size: var(--fs-sm); }
.about-info-box a:hover   { color: var(--gold) !important; }

/* Skill Bars */
.skill-bar      { margin-bottom: 18px; }
.skill-label    { display: flex; justify-content: space-between; margin-bottom: 7px; font-weight: 600; font-size: var(--fs-sm); color: var(--text-dark); }
.skill-progress { height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.skill-fill     { height: 100%; background: linear-gradient(90deg,var(--gold-dark),var(--gold-light)); border-radius: 4px; width: 0; transition: width 1.5s ease; }

/* ─── Cases ──────────────────────────────── */
.case-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
}
.case-card:hover { transform: translateY(-5px); box-shadow: 0 20px 56px rgba(0,0,0,.13), 0 4px 16px rgba(201,168,76,.12); border-color: rgba(201,168,76,.28); }
.case-img  { width: 100%; height: clamp(180px,30vw,220px); object-fit: cover; display: block; }
.case-no-img {
  width: 100%; height: clamp(180px,30vw,220px);
  background: linear-gradient(135deg,var(--gray-100),var(--gray-200));
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--gray-200);
}
.case-no-img i       { font-size: clamp(2rem,5vw,3rem); color: rgba(201,168,76,.4); }
.case-body           { padding: clamp(16px,3vw,24px); }
.case-category       { display: inline-block; background: rgba(201,168,76,.1); color: var(--gold-dark); padding: 4px 14px; border-radius: 50px; font-size: .75rem; font-weight: 700; margin-bottom: 10px; border: 1px solid rgba(201,168,76,.2); }
.case-body h5        { font-size: var(--fs-base); font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.case-body p         { color: var(--text-soft); font-size: var(--fs-sm); }
.case-result         { display: inline-flex; align-items: center; gap: 5px; background: rgba(40,167,69,.08); color: #28a745; padding: 4px 12px; border-radius: 50px; font-size: .78rem; font-weight: 600; margin-top: 10px; border: 1px solid rgba(40,167,69,.18); }

/* ─── Testimonials ───────────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(22px,4vw,34px);
  box-shadow: 0 2px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 56px; height: 3px;
  background: linear-gradient(90deg,var(--gold),var(--gold-light));
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 20px 56px rgba(0,0,0,.11), 0 4px 16px rgba(201,168,76,.1); border-color: rgba(201,168,76,.28); }
.quote-icon         { font-size: clamp(2rem,5vw,3rem); color: rgba(201,168,76,.25); line-height: 1; margin-bottom: 14px; display: block; }
.testimonial-text   { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.85; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar      { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0; }
.author-initial     { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,var(--gold),var(--gold-dark)); color: #fff; font-weight: 900; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.author-name        { font-weight: 700; font-size: var(--fs-sm); color: var(--text-dark); }
.author-title       { font-size: var(--fs-xs); color: var(--text-soft); }

/* ─── Consultation Form ──────────────────── */
.consultation-section {
  background: linear-gradient(135deg,#0d0d0d 0%,#1a1206 100%);
  padding: clamp(55px,8vw,95px) 0;
  position: relative;
  overflow: hidden;
}
.consultation-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.consultation-form-card {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-lg);
  padding: clamp(24px,5vw,50px);
}
.consultation-section .section-title h2,
.consultation-section .section-title .subtitle { color: #fff; }
.consultation-section .form-label { color: rgba(255,255,255,.85); font-weight: 600; font-size: var(--fs-sm); }
.consultation-section .form-control,
.consultation-section .form-select {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(201,168,76,.22);
  color: #fff;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: var(--fs-sm);
  transition: var(--transition);
}
.consultation-section .form-control:focus,
.consultation-section .form-select:focus {
  background: rgba(255,255,255,.11);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.2);
  color: #fff;
  outline: none;
}
.consultation-section .form-control::placeholder { color: rgba(255,255,255,.3); }
.consultation-section .form-select option { background: #1a1206; color: #fff; }

/* ─── Contact Section ────────────────────── */
.contact-section {
  background: var(--gray-50);
  padding: clamp(55px,8vw,95px) 0;
}
.contact-section h2  { color: var(--text-dark); }
.contact-section .lead { color: var(--text-soft); font-size: var(--fs-sm); }
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(14px,2.5vw,22px);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 8px rgba(0,0,0,.05);
  transition: var(--transition);
  margin-bottom: 14px;
}
.contact-info-card:hover { border-color: rgba(201,168,76,.38); box-shadow: 0 6px 24px rgba(0,0,0,.09), 0 2px 8px rgba(201,168,76,.08); transform: translateX(-4px); }
[dir="ltr"] .contact-info-card:hover { transform: translateX(4px); }
.contact-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg,rgba(201,168,76,.12),rgba(201,168,76,.04));
  border: 1.5px solid rgba(201,168,76,.25);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-info-card h6  { color: var(--gold-dark); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.contact-info-card p   { color: var(--text-body); font-size: var(--fs-sm); margin: 0; }
.contact-info-card a   { color: var(--text-body); font-size: var(--fs-sm); }
.contact-info-card a:hover { color: var(--gold); }

.contact-section .social-link {
  background: var(--white);
  border-color: var(--gray-200);
  color: var(--text-soft);
}
.contact-section .social-link:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-3px); }

.quick-contact-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gold);
  box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 4px rgba(201,168,76,.08);
  border-radius: var(--radius);
  padding: clamp(20px,4vw,32px);
}

.map-placeholder {
  background: var(--gray-100);
  height: 300px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.map-placeholder p { color: var(--text-soft); margin: 0; }

/* ─── Articles ───────────────────────────── */
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
}
.article-card:hover { transform: translateY(-5px); box-shadow: 0 20px 56px rgba(0,0,0,.11), 0 4px 16px rgba(201,168,76,.1); border-color: rgba(201,168,76,.28); }
.article-img  { width: 100%; height: clamp(160px,25vw,200px); object-fit: cover; display: block; }
.article-body { padding: clamp(18px,3vw,26px); }
.article-cat  { font-size: var(--fs-xs); color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 7px; }
.article-card h5 { font-size: var(--fs-base); font-weight: 700; margin-bottom: 8px; line-height: 1.5; color: var(--text-dark); }
.article-card p  { color: var(--text-soft); font-size: var(--fs-sm); }
.article-meta { font-size: var(--fs-xs); color: var(--text-soft); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.article-no-img {
  height: 200px;
  background: linear-gradient(135deg,var(--gray-100),var(--gray-200));
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--gray-200);
}
.article-no-img i { font-size: 2.5rem; color: rgba(201,168,76,.35); }

/* ─── Page Hero (inner pages) ─────────────── */
.page-hero {
  background: linear-gradient(135deg,#0d0d0d 0%,#1c1407 60%,#0d0d0d 100%);
  padding: clamp(90px,14vw,110px) 0 clamp(45px,6vw,65px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9a84c' fill-opacity='0.035'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(to bottom,transparent,var(--cream));
  pointer-events: none;
}
body.dark-mode .page-hero::after { background: linear-gradient(to bottom,transparent,#0f0f0f); }
.page-hero h1                       { color: #fff; font-size: var(--fs-3xl); position: relative; z-index: 1; }
.page-hero nav                      { position: relative; z-index: 1; }
.page-hero .breadcrumb-item         { color: rgba(255,255,255,.5); font-size: var(--fs-xs); }
.page-hero .breadcrumb-item.active  { color: var(--gold); }
.page-hero .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,.22); }
.page-hero .breadcrumb-item a       { color: rgba(255,255,255,.65); }
.page-hero .breadcrumb-item a:hover { color: var(--gold); }
/* Gold accent line under h1 */
.page-hero h1::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-top: 10px;
}

/* ─── Footer ─────────────────────────────── */
.footer-section {
  background: #0d0d0d;
  padding: clamp(50px,7vw,75px) 0 24px;
  border-top: 1px solid rgba(201,168,76,.12);
}
.footer-title   { color: var(--gold); font-size: var(--fs-lg); font-weight: 700; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(201,168,76,.12); }
.footer-text    { color: rgba(255,255,255,.5); font-size: var(--fs-sm); line-height: 1.8; }
.footer-links   { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a  { color: rgba(255,255,255,.55); font-size: var(--fs-sm); transition: var(--transition); display: inline-flex; align-items: center; gap: 5px; }
.footer-links a:hover { color: var(--gold); padding-inline-start: 6px; }
.footer-contact  { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: rgba(255,255,255,.55); font-size: var(--fs-sm); }
.footer-contact i  { color: var(--gold); margin-top: 4px; flex-shrink: 0; width: 16px; }
.footer-contact a  { color: rgba(255,255,255,.55); }
.footer-contact a:hover { color: var(--gold); }
.footer-divider  { border-color: rgba(201,168,76,.1); margin: 28px 0 18px; }
.footer-copy     { color: rgba(255,255,255,.3); font-size: var(--fs-xs); }

.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-link  { width: 38px; height: 38px; background: rgba(255,255,255,.05); border: 1px solid rgba(201,168,76,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: .82rem; transition: var(--transition); }
.social-link:hover { background: var(--gold); color: #fff; border-color: var(--gold); transform: translateY(-3px); }

/* ─── Floating Buttons ───────────────────── */
.float-btn {
  position: fixed;
  width: clamp(48px,12vw,56px);
  height: clamp(48px,12vw,56px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(1.2rem,3vw,1.4rem);
  z-index: 990;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: var(--transition);
  cursor: pointer;
}
.float-btn:hover { transform: scale(1.1); }
.whatsapp-btn { bottom: 86px; background: #25d366; color: #fff; }
.call-btn     { bottom: 20px; background: var(--gold); color: #fff; }
[dir="rtl"] .whatsapp-btn,
[dir="rtl"] .call-btn { left: 16px; right: auto; }
[dir="ltr"] .whatsapp-btn,
[dir="ltr"] .call-btn { right: 16px; left: auto; }

/* ─── Back to Top ────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 20px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  border: none;
  display: none;
  align-items: center; justify-content: center;
  font-size: .9rem;
  z-index: 989;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}
.back-to-top:hover  { background: var(--gold-dark); transform: translateY(-3px); }
.back-to-top.visible { display: flex; }
[dir="rtl"] .back-to-top { right: 76px; left: auto; }
[dir="ltr"] .back-to-top { left: 76px; right: auto; }

/* ─── Form Controls (generic) ────────────── */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--text-dark);
  font-family: var(--font);
  font-size: var(--fs-sm);
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.14);
  outline: none;
  background: var(--white);
}

/* ─── Map ────────────────────────────────── */
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.map-frame iframe { display: block; width: 100%; }

/* ─── 404 Page ───────────────────────────── */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-code { font-size: clamp(5rem,20vw,9rem); font-weight: 900; color: var(--gold); opacity: .15; line-height: 1; }

/* ─── Pagination ─────────────────────────── */
.page-link { color: var(--text-dark); border-color: var(--gray-200); font-size: var(--fs-sm); background: var(--white); }
.page-link:hover { color: var(--gold); border-color: var(--gold); background: rgba(201,168,76,.06); }
.page-item.active .page-link { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ─── Animations ─────────────────────────── */
@keyframes fadeInUp    { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown  { from { opacity:0; transform:translateY(-28px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInRight { from { opacity:0; transform:translateX(36px); } to { opacity:1; transform:translateX(0); } }
.spinner-gold { width: 38px; height: 38px; border: 3px solid rgba(201,168,76,.18); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════ */

/* ── 1199px: large tablet / small desktop ── */
@media (max-width: 1199px) {
  .hero-img { width: clamp(220px,38vw,340px); height: clamp(280px,48vw,420px); }
}

/* ── 991px: tablet landscape → stack hero ── */
@media (max-width: 991px) {
  /* Cancel min-vh-100 Bootstrap class on hero row */
  .hero-section .min-vh-100 { min-height: auto !important; padding: 36px 0 !important; }

  .hero-section   { padding-top: 80px; text-align: center; }
  .hero-content   { text-align: center; }
  .hero-buttons   { justify-content: center; flex-wrap: wrap; gap: 10px; }
  .hero-desc      { margin: 0 auto 28px; }
  .hero-img-wrap  { margin-top: 30px; }
  /* Constrain image on tablet so it doesn't span full width */
  .hero-img       { width: clamp(200px,55vw,360px); height: auto; aspect-ratio: 3/4; max-height: 420px; }
  .hero-img-frame { display: inline-block; }
  .hero-stats     { justify-content: center; max-width: 380px; margin: 0 auto; }

  /* About image — constrain width so it doesn't become 100% wide portrait */
  .about-img-wrap { margin-bottom: 30px; }
  .about-img      { max-height: 420px; max-width: 500px; margin: 0 auto; }
  .exp-badge      { right: 0; bottom: 15px; }
  [dir="rtl"] .exp-badge { right: auto; left: 0; }

  /* Reduce g-5 gutter on tablet */
  .row.g-5        { --bs-gutter-x: 2.5rem; --bs-gutter-y: 2.5rem; }
}

/* ── 767px: mobile landscape / small tablet ── */
@media (max-width: 767px) {
  .brand-logo-img { height: 36px !important; }

  /* Hero */
  .hero-section            { min-height: auto; padding: 86px 0 50px; }
  .hero-section .min-vh-100 { min-height: auto !important; padding: 16px 0 !important; }
  .hero-title              { margin-bottom: 10px; }
  .hero-buttons            { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .hero-buttons .btn-gold,
  .hero-buttons .btn-outline-gold {
    padding: 11px 22px;
    font-size: .88rem;
    flex: 1 1 140px;
    max-width: 220px;
    justify-content: center;
  }
  .hero-img-frame          { width: min(300px, 80vw); display: inline-block; }
  .hero-img                { width: 100%; height: auto; aspect-ratio: 3/4; max-height: 360px; }
  .hero-stat-box           { padding: 10px 12px; min-width: 70px; flex: 1; }
  .hero-stats              { max-width: 300px; gap: 8px; }

  /* Stats dark section */
  .stat-number { font-size: 2rem; }
  .stat-item   { padding: 12px 8px; }
  .stat-label  { font-size: .8rem; }

  /* About */
  .about-img-wrap { padding: 8px 8px 0; }
  .about-img-wrap::before,
  .about-img-wrap::after { display: none; }
  .about-img      { max-height: 280px; max-width: min(340px, 90vw); border-radius: var(--radius-sm); }
  .exp-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    min-width: 0;
  }
  .exp-badge .num { font-size: 1.4rem; display: inline; }
  .exp-badge .lbl { margin-top: 0; }
  .about-info-box { padding: 12px 14px; gap: 10px; }

  /* Section title */
  .section-title          { margin-bottom: clamp(22px,5vw,40px); }
  .section-title .subtitle { gap: 10px; }
  .section-title .subtitle::before,
  .section-title .subtitle::after { width: 16px; }

  /* Cards */
  .service-card     { padding: 20px 16px; }
  .testimonial-card { padding: 18px; }
  .article-body     { padding: 16px; }
  .case-body        { padding: 16px; }
  .article-img,
  .case-img         { height: clamp(150px,30vw,200px); }
  .case-no-img,
  .article-no-img   { height: clamp(150px,30vw,200px); }

  /* Consultation form */
  .consultation-form-card { padding: 20px 14px; border-radius: var(--radius); }

  /* Contact */
  .contact-info-card { padding: 12px; gap: 10px; }
  .contact-icon      { width: 40px; height: 40px; font-size: .95rem; flex-shrink: 0; }
  .quick-contact-box { padding: 18px; }
  .map-placeholder   { height: 200px; }

  /* Footer */
  .footer-section { padding: 36px 0 18px; }
  .footer-title   { font-size: .95rem; margin-bottom: 12px; }
  .footer-links a,
  .footer-contact li { font-size: .82rem; }

  /* Float buttons */
  .whatsapp-btn { bottom: 76px; }
  .call-btn     { bottom: 16px; }
  [dir="rtl"] .back-to-top { right: 70px; }
  [dir="ltr"] .back-to-top { left: 70px; }

  /* Page hero */
  .page-hero      { padding: clamp(80px,16vw,100px) 0 clamp(28px,5vw,44px); }
  .page-hero h1::after { width: 36px; margin-top: 8px; }

  /* Reduce gutter further */
  .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
  .row.g-4 { --bs-gutter-x: 1rem;   --bs-gutter-y: 1rem; }
}

/* ── 480px: portrait mobile phones ── */
@media (max-width: 480px) {
  .section-padding { padding: 38px 0; }
  .section-title h2 { font-size: 1.55rem; }
  .section-title .subtitle { font-size: .68rem; letter-spacing: 2px; gap: 8px; }
  .section-title .subtitle::before,
  .section-title .subtitle::after { width: 12px; }

  /* Hero */
  .hero-badge  { font-size: .7rem; padding: 6px 12px; }
  .hero-sub    { font-size: .9rem; }
  .hero-img-frame { width: min(270px, 85vw); }
  .hero-stats  { gap: 6px; }
  .hero-stat-box  { padding: 8px 10px; min-width: 62px; }
  .hero-stat-box .num { font-size: 1.1rem; }
  .hero-stat-box .lbl { font-size: .58rem; }
  .hero-buttons { flex-direction: row; gap: 10px; justify-content: center; }
  .hero-buttons a,
  .hero-buttons button { flex: 1; max-width: 200px; padding: 11px 16px; font-size: .84rem; justify-content: center; }

  /* Stats section */
  .stat-item   { padding: 10px 6px; }
  .stat-number { font-size: 1.7rem; }
  .stat-label  { font-size: .75rem; }
  .stat-icon   { font-size: 1.1rem; }

  /* About */
  .about-img { max-height: 240px; max-width: min(280px, 88vw); }

  /* Cards */
  .service-card { padding: 18px 14px; }
  .article-body { padding: 12px; }
  .case-body    { padding: 12px; }

  /* Contact */
  .contact-info-card p,
  .contact-info-card a  { font-size: .82rem; }
  .quick-contact-box    { padding: 14px; }
  .map-placeholder      { height: 170px; }

  /* Page hero */
  .page-hero h1       { font-size: 1.4rem; }
  .page-hero h1::after { width: 28px; }

  /* Float buttons */
  .float-btn { width: 46px; height: 46px; font-size: 1.1rem; }

  /* Tighter row gutter */
  .row.g-4 { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
}

/* ── Touch devices: disable hover lifts ── */
@media (hover: none) {
  .service-card:hover,
  .case-card:hover,
  .card-custom:hover,
  .article-card:hover,
  .testimonial-card:hover,
  .about-info-box:hover,
  .contact-info-card:hover { transform: none; box-shadow: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
