/* ============================================
    DM Legal — Master Design System
   Theme: Dark Luxury (Charcoal · Gold · Deep Slate)
   Fonts: Cormorant Garamond + DM Sans
============================================ */


/* ── CSS Variables ── */
:root {
  --white:       #ffffff;
  --cream:       #111111;
  --cream-2:     #181818;
  --blush:       #1C1C1C;
  --blush-mid:   #222222;
  --blush-deep:  #2A2A2A;
  --gold:        #FAF0E6;
  --gold-light:  #ffe8d2;
  --gold-pale:   #fff5e9;
  --gold-border: rgba(196, 150, 58, 0.30);
  --charcoal:    #ffffff;
  --dark:        #ffffff;
  --mid:         #ffffffbf;
  --muted:       #ffffffb8;
  --border:      #2A2A2A;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius:  2px;
  --shadow:  0 4px 24px rgba(196,150,58,0.10);
  --shadow-hover: 0 12px 40px rgba(196,150,58,0.20);
  --transition: 0.3s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: #0D0D0D;
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }


/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 500; }

p { color: var(--mid); line-height: 1.8; }

/* ── Utility ── */
.section-padding { padding: 60px 0; }
.text-center { text-align: center; }
.container { margin: 0 auto; padding: 0 45px; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.gold-divider {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 14px 0 24px;
}
.text-center .gold-divider { margin: 14px auto 24px; }

/* ── CTA Button ── */
.cta-btn {
  display: inline-block;
  padding: 13px 36px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
}
.cta-btn:hover {
  background: var(--gold);
  color: var(--cream);
}
.cta-btn-fill {
  background: var(--gold);
  color: black !important;
}
.cta-btn-fill:hover {
  background: var(--gold-light);
}

.text-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-link:hover { color: var(--gold); }
.text-link .arrow { transition: transform var(--transition); }
.text-link:hover .arrow { transform: translateX(5px); }

/* ── NAVBAR ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #000000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.4); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 40px;
  width: auto;
  transition: transform var(--transition);
}
.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links li a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition);
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links li a:hover { color: var(--gold); }
.nav-links li a:hover::after, .nav-links li a.active::after { width: 100%; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  border-left: 1px solid var(--border);
  padding-left: 18px;
}
.lang-switcher a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color var(--transition);
}
.lang-switcher a:hover { color: var(--gold); }
.lang-sep { color: var(--border); font-size: 0.8rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #0D0D0D;
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  gap: 16px;
}
.mobile-nav.open { display: flex; align-items: center; }
.mobile-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-lang {
  display: flex;
  gap: 12px;
  padding-top: 4px;
}
.mobile-lang a { font-size: 0.85rem; font-weight: 600; color: var(--muted); border: none !important; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  position: relative;
  background-color: #0a0806;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding: 140px 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Dark luxury overlay — diagonal gradient with subtle warm tint */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, 0.90) 0%,
    rgba(8, 6, 4, 0.78) 45%,
    rgba(20, 14, 6, 0.65) 100%
  );
  z-index: 0;
}

/* Subtle gold shimmer at the bottom edge */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 35%, var(--gold-light) 65%, transparent 100%);
  opacity: 0.6;
  z-index: 1;
}

/* All direct children sit above overlay */
.page-hero > * { position: relative; z-index: 2; }

.page-hero .section-label { margin-bottom: 10px; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 16px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

/* ── Page Hero Background Images (paths relative to CSS file in assets/css/) ── */
.page-hero--services    { background-image: url('../img/hero/about5.webp'); }
.page-hero--team        { background-image: url('../img/hero/about6.webp');}
.page-hero--blog        { background-image: url('../img/hero/about4.webp'); }
.page-hero--contact     { background-image: url('../img/hero/about7.webp');}
.page-hero--business    { background-image: url('../img/service/servicess1.webp'); }
.page-hero--ip          { background-image: url('../img/service/servicess4.webp'); }
.page-hero--criminal    { background-image: url('../img/service/servicess9.webp'); }
.page-hero--immigration { background-image: url('../img/service/servicess7.webp'); }
.page-hero--tax         { background-image: url('../img/service/servicess10.webp'); }
.page-hero--wills       { background-image: url('../img/service/servicess3.webp'); }
.page-hero--arbitration { background-image: url('../img/service/servicess5.webp'); }
.page-hero--family      { background-image: url('../img/service/servicess12.webp'); }
.page-hero--corporate   { background-image: url('../img/service/servicess6.webp'); }
.page-hero--commercial  { background-image: url('../img/service/servicess2.webp'); }
.page-hero--company     { background-image: url('../img/service/servicess1.webp'); }
.page-hero--gallery     { background-image: url('../img/hero/about10.webp'); }
.page-hero--offices     { background-image: url('../img/hero/about11.webp'); }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 12px;
  font-family: var(--font-body);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: var(--muted); }

/* ── FOOTER ── */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 80px 0 60px;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.footer-contacts li {
  font-size: 0.85rem;
  color: var(--mid);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.footer-contacts li:last-child { border: none; }
.footer-contacts a { color: var(--gold); }
.footer-contacts i {
  color: #FAF0E6;
  margin-right: 8px;
  width: 16px;
  text-align: center;
}
.footer-content-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 1400px;
  padding: 0 20px;
}
.footer-info {
  flex: 1;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(196, 150, 58, 0.1);
}
.footer-col {
  flex: 1;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(196, 150, 58, 0.1);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--mid);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-col ul li a i { color: var(--gold); margin-right: 8px; }
 
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}


/* ── CARDS ── */
.service-card {
  background: var(--cream-2);
  border: 2px solid var(--border);
  padding: 36px 28px;
  transition: var(--transition);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}
.service-card .service-icon {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 16px;
  align-self: center;
}
.service-card h3 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--charcoal);
}
.service-card p { 
  text-align: center;
  font-size: 0.9rem; 
  color: var(--mid); 
  margin-bottom: 40px; 
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  height: 3em;
  flex-grow: 1;
}
.service-card .cta-btn {
  margin-top: auto;
  align-self: center;
  text-align: center;
}

/* ── FILTER BUTTONS ── */
.filter-buttons {
  display: flex;
  justify-content: right;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px auto;
}
.filter-btn {
  padding: 9px 22px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--cream-2);
  color: var(--mid);
  border-radius: 40px;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold);
  color: var(--cream);
  border-color: var(--gold);
}

/* ── BLOG SKELETON ── */
@keyframes skeletonPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.blog-card--skeleton {
  animation: skeletonPulse 1.6s ease-in-out infinite;
  pointer-events: none;
}

/* ── BLOG GRID ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── BLOG CARDS ── */
.blog-card {
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Cover image */
.blog-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--blush-deep);
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}

/* Card body */
.blog-card-body {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Category + date row */
.blog-card-meta {
display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    flex-direction: column;
}
.blog-card-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(250,240,230,0.08);
  border: 1px solid rgba(250,240,230,0.15);
  padding: 3px 9px;
  border-radius: 2px;
}
.blog-card-date {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Title */
.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--charcoal);
  margin-bottom: 10px;
}

/* Excerpt */
.blog-card-excerpt {
  font-size: 0.84rem;
  color: var(--mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Divider */
.blog-card-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Read more link */
.blog-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease, color 0.25s ease;
}
.blog-link::after {
  content: '→';
  transition: transform 0.25s ease;
}
.blog-card:hover .blog-link {
  gap: 10px;
  color: var(--gold);
}
.blog-card:hover .blog-link::after {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .posts-grid { grid-template-columns: 1fr; }
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
}
.faq-question:hover h4 { color: var(--gold); }
.faq-arrow {
  color: var(--gold);
  font-size: 0.9rem;
  transition: transform var(--transition);
}
.faq-item.active .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 0 22px;
}
.faq-answer p { font-size: 0.9rem; }
.faq-item.active .faq-answer { display: block; }

/* ── TESTIMONIAL ── */
.testimonial-section {
  background: linear-gradient(135deg, #111111 0%, var(--cream) 100%);
  padding: 80px 0;
}
.testimonial-content { text-align: center; max-width: 700px; margin: 0 auto; }
.quote-mark {
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 0.7;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 20px;
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.6;
  margin-bottom: 28px;
}
.testimonial-client h4 { font-size: 1rem; font-weight: 600; color: var(--charcoal); margin-bottom: 4px; }
.testimonial-client p { font-size: 0.85rem; color: var(--gold); }

/* ── CONTACT FORM ── */
.form-group { margin-bottom: 20px; }
.form-control {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--mid);
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
}
.form-control:focus { border-color: var(--gold); }
.form-control::placeholder { color: var(--muted); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── CONTACT INFO ── */
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 42px;
  height: 42px;
  background: var(--blush);
  border: 1px solid var(--blush-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-info-content h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.contact-info-content p { font-size: 0.88rem; color: var(--mid); }

/* ── TEAM CARDS ── */
.team-member-card {
  background: var(--cream-2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.team-member-card:hover { box-shadow: var(--shadow-hover); }
.photo-area {
  background: var(--blush);
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
}
.photo-area img { width: 100%; height: 100%; object-fit: cover; }
.team-member-photo { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder-inner {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--blush) 0%, var(--blush-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-placeholder-inner svg { opacity: 0.35; }

.corner-accent {
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.6;
}
.corner-accent.tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.corner-accent.tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.corner-accent.bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.corner-accent.br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

.member-info-box { display: flex; padding: 24px ; flex-direction: column ;  align-content: flex-end; align-items: center;}
.member-info-box h3 { font-size: 1.4rem; margin-bottom: 4px; font-weight: bold;}
.member-role { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; margin-bottom: 4px; }
.member-position { font-size: 0.9rem; color: var(--gold); font-style: italic; margin-bottom: 14px; }
.member-bio { font-size: 0.87rem; color: var(--mid); margin-bottom: 16px; }
.profile-link { font-size: 0.83rem; font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; transition: gap var(--transition); }
.profile-link:hover { gap: 12px; }

/* ── CTA STRIP ── */
.cta-strip {
  background: linear-gradient(135deg, #111111 0%, var(--gold-pale) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-strip h2 { margin-bottom: 12px; }
.cta-strip p { margin-bottom: 28px; color: var(--mid); }

/* ── STATS ── */
.stats-strip {
  background: #080808;
  padding: 50px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 30px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.7s ease forwards; }
.delay-1 { animation-delay: 0.15s; opacity: 0; }
.delay-2 { animation-delay: 0.3s;  opacity: 0; }
.delay-3 { animation-delay: 0.45s; opacity: 0; }
.delay-4 { animation-delay: 0.6s;  opacity: 0; }

/* ── AOS Animation Keyframes ── */
@keyframes aos-fade-up {
  0% {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    visibility: hidden;
  }
  99% {
    visibility: visible;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }
}

/* ── GRIDS ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-grid-2   { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.team-grid-1   { display: grid; grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
.two-col       { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* ── PAGINATION ── */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}
.page-num {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--mid);
  transition: var(--transition);
}
.page-num:hover, .page-num.active {
  background: var(--gold);
  color: var(--cream);
  border-color: var(--gold);
}
.page-arrow {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  padding: 0 8px;
}

/* ── SERVICE DETAIL ── */
.service-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}
.service-sidebar {
  position: sticky;
  top: 90px;
}
.sidebar-card {
  background: var(--blush);
  border: 1px solid var(--blush-deep);
  padding: 30px;
  margin-bottom: 24px;
}
.sidebar-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.sidebar-card p { font-size: 0.88rem; color: var(--mid); margin-bottom: 20px; }
.other-services li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.other-services li a {
  font-size: 0.88rem;
  color: var(--mid);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.other-services li a::before { content: '→'; color: var(--gold); }
.other-services li a:hover { color: var(--gold); }

.key-areas h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.key-list { margin: 20px 0 30px; }
.key-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--mid);
  align-items: flex-start;
}
.key-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.content-quote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  background: var(--gold-pale);
  margin: 30px 0;
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.8;
}

/* ── INFO BOXES (Arbitration) ── */
.info-box {
  border: 1px solid var(--gold-border);
  background: var(--blush);
  padding: 28px;
  margin-bottom: 20px;
}
.info-box h4 { color: var(--gold); margin-bottom: 10px; font-size: 1.1rem; }
.info-box p { font-size: 0.9rem; }

/* ── FEATURED POST ── */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  overflow: hidden;
}
.featured-content {
  padding: 50px 44px;
  background: var(--cream-2);
}
.category-tag {
  display: inline-block;
  background: var(--blush);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.featured-content h2 { font-size: 1.8rem; margin-bottom: 16px; line-height: 1.3; }
.featured-excerpt { font-size: 0.92rem; color: var(--mid); margin-bottom: 28px; line-height: 1.8; }
.featured-meta { display: flex; align-items: flex-start; gap: 24px;flex-direction: column;}
.featured-date { font-size: 0.82rem; color: var(--muted); }
.featured-link { font-size: 0.85rem; font-weight: 600; color: var(--gold); transition: gap var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.featured-link:hover { gap: 12px; }

.featured-image {
  background: linear-gradient(135deg, var(--blush) 0%, var(--blush-mid) 100%);
  position: relative;
  min-height: 320px;
}
.featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── VALUES ── */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value-item { text-align: center; padding: 40px 24px; background: var(--cream-2); border: 1px solid var(--border); }
.value-icon { font-size: 2.2rem; color: var(--gold); margin-bottom: 16px; }
.value-item h3 { font-size: 1.4rem; margin-bottom: 10px; }

/* ── ABOUT SECTION ── */

.geo-pattern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 100%;
  min-height: 280px;
}
.geo-box {
  border: 2px solid var(--gold-border);
  background: var(--blush);
  transition: var(--transition);
}
.geo-box:nth-child(1) { background: var(--blush); }
.geo-box:nth-child(2) { background: var(--gold-pale); transform: scale(0.85); }
.geo-box:nth-child(3) { background: var(--blush-mid); transform: scale(0.9); }
.geo-box:nth-child(4) { background: var(--cream-2); }

.geo-box {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.geo-box-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.geo-box:hover .geo-box-img {
  transform: scale(1.05);
}

/* ── TEAM GRID ── */
.team-pattern {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 18px;
  align-items: start;
}

.team-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  cursor: pointer;
}

/* vertical offset on second card for depth */
.team-box:nth-child(2) { margin-top: 48px; }

/* gold corner brackets */
.team-box::before,
.team-box::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 4;
  transition: width 0.35s ease, height 0.35s ease;
}
.team-box::before {
  top: 14px; left: 14px;
  border-top: 1.5px solid rgba(196,150,58,0.85);
  border-left: 1.5px solid rgba(196,150,58,0.85);
}
.team-box::after {
  bottom: 14px; right: 14px;
  border-bottom: 1.5px solid rgba(196,150,58,0.85);
  border-right: 1.5px solid rgba(196,150,58,0.85);
}
.team-box:hover::before,
.team-box:hover::after {
  width: 40px;
  height: 40px;
}

.team-box-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.65s ease;
}
.team-box:hover .team-box-img { transform: scale(1.06); }

/* slide-up overlay */
.team-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 22px 26px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.30) 45%,
    transparent 100%
  );
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.team-box:hover .team-overlay {
  opacity: 1;
  transform: translateY(0);
}

.team-member-role {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(196,150,58,0.9);
  margin-bottom: 5px;
  display: block;
  transform: translateY(10px);
  transition: transform 0.4s ease 0.05s;
}
.team-member-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 14px;
  transform: translateY(10px);
  transition: transform 0.4s ease 0.10s;
}
.team-box:hover .team-member-role,
.team-box:hover .team-member-name { transform: translateY(0); }

.team-link {
  display: inline-block;
  align-self: flex-start;
  padding: 7px 18px;
  border: 1px solid rgba(196,150,58,0.8);
  color: rgba(196,150,58,0.95);
  font-family: var(--font-body);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(10px);
  transition: transform 0.4s ease 0.15s,
              background 0.25s ease,
              color 0.25s ease;
}
.team-box:hover .team-link { transform: translateY(0); }
.team-link:hover {
  background: rgba(196,150,58,0.9);
  color: #000;
}

/* ── SINGLE BLOG PAGE ── */
.article-header { padding: 140px 0 60px; background: linear-gradient(135deg, var(--cream) 0%, #111111 100%); }
.article-body { max-width: 760px; }
.article-body p { font-size: 1rem; line-height: 1.9; margin-bottom: 22px; }
.article-body h2, .article-body h3 { margin: 36px 0 16px; }

/* ── HERO SECTION (Homepage) ── */
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(0,0,0,0.7) 0%, 
    rgba(0,0,0,0.5) 50%, 
    rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.hero-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 8px 16px;
  background: rgba(218, 165, 32, 0.1);
  border: 1px solid var(--gold);
  border-radius: 30px;
  width: fit-content;
}

.badge-icon {
  font-size: 1.2rem;
}

.hero-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-main-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin: 0;
}

.hero-divider {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 8px 0;
}

.hero-sub-title {
    font-size: 11rem;
    font-family: var(--font-display);
    font-size: 12rem;
    font-weight: 600;
    text-align: center;
    font-style: italic;
    color: var(--gold);
    line-height: 1.1;
    margin: 0;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-bottom {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  z-index: 2;
}
.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(5px); }
}

/* RTL positioning for Arabic */
html[dir="rtl"] .hero-loc,
.dm-lang-init[dir="rtl"] .hero-loc {
  align-items: flex-end;
}

html[dir="rtl"] .hero-content,
.dm-lang-init[dir="rtl"] .hero-content {
  direction: rtl;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .hero-sub-title{
    font-size: 6rem;
  }
  .hero-content {
    padding: 0 20px;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .hero-bottom {
    padding: 0 20px;
    flex-direction: column;
    gap: 20px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
.about-box h3 { font-size: 2rem; margin-bottom: 16px; }
.about-box p { font-size: 0.95rem; line-height: 1.9; }

.geo-pattern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 100%;
  min-height: 280px;
}
.geo-box {
  border: 2px solid var(--gold-border);
  background: var(--blush);
  transition: var(--transition);
}
.geo-box:nth-child(1) { background: var(--blush); }
.geo-box:nth-child(2) { background: var(--gold-pale); transform: scale(0.85); }
.geo-box:nth-child(3) { background: var(--blush-mid); transform: scale(0.9); }
.geo-box:nth-child(4) { background: var(--cream-2); }

/* ── VALUES GRID ── */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value-item { text-align: center; padding: 40px 24px; background: var(--cream-2); border: 1px solid var(--border); }
.value-icon { font-size: 2.2rem; color: var(--gold); margin-bottom: 16px; }
.value-item h3 { font-size: 1.4rem; margin-bottom: 10px; }

/* ── FILTER BAR STICKY ── */
.filter-bar-sticky {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 72px;
  z-index: 100;
  background: #0D0D0D;
}
.filter-bar-sticky .filter-buttons { margin-bottom: 0; }

/* ── SERVICE ICONS PER CATEGORY ── */
.icon-business  { background: var(--blush); }
.icon-civil     { background: var(--gold-pale); }
.icon-property  { background: #141A14; }
.icon-special   { background: #1A1414; }
.service-icon-wrap {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}

/* ── CONTACT META ── */
.contact-meta { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.contact-meta span { font-size: 0.9rem; color: var(--mid); }
.contact-meta strong { color: var(--gold); }

/* ── CONTACT FORM ── */
.contact-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 70px;
background: var(--blush-mid);
padding: 40px;
align-items: start;
}
.contact-form-head {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 8px;
}
.contact-form-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 30px 0;
}
.office-section h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ── MAP STRIP ── */
.map-strip {
  background: linear-gradient(135deg, #111111 0%, var(--gold-light) 100%);
  padding: 70px 0;
  text-align: center;
}
.map-crosshair {
  position: relative;
  display: inline-block;
  padding: 30px 60px;
}
.map-crosshair::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}
.map-crosshair::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: var(--gold);
  opacity: 0.4;
}
.map-city {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--charcoal);
  position: relative;
  z-index: 1;
}
.map-city span { color: var(--gold); }

/* ── ARTICLE LAYOUT (Single Blog) ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
  padding: 70px 0 90px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.article-cat {
  background: var(--blush);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 12px;
}
#articleTitle {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 28px;
}
.article-img {
  width: 100%;
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, var(--blush) 0%, var(--blush-mid) 100%);
  position: relative;
  overflow: hidden;
}
.article-img img { width:100%; height:100%; object-fit:cover; }
.article-img-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold);
  opacity: 0.6;
}
#articleContent p { font-size: 1rem; line-height: 1.9; color: var(--mid); margin-bottom: 22px; }
#articleContent h2, #articleContent h3 { font-family: var(--font-display); margin: 36px 0 14px; color: var(--charcoal); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--gold);
  margin-bottom: 32px;
  transition: gap var(--transition);
}
.back-link:hover { gap: 14px; }

/* ── SIDEBAR (Single Blog) ── */
.article-sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  background: var(--cream-2);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 24px;
}
.sidebar-widget h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 18px;
}
.recent-post {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.recent-post:last-child { border: none; padding-bottom: 0; }
.recent-post-thumb {
  width: 54px; height: 54px; flex-shrink: 0;
  background: var(--blush-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.recent-post h5 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--charcoal);
}
.recent-post h5 a { transition: color var(--transition); }
.recent-post h5 a:hover { color: var(--gold); }
.recent-post p { font-size: 0.75rem; color: var(--muted); }

/* ── RESPONSIVE DESIGN ── */
@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-inner   { grid-template-columns: 1fr 1fr; gap: 40px; }
  .service-detail-layout { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .featured-card  { grid-template-columns: 1fr; }
  .featured-image { min-height: 240px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .services-grid  { grid-template-columns: 1fr; }
  .team-grid-2    { grid-template-columns: 1fr; }
  .values-grid    { grid-template-columns: 1fr; gap: 20px; }
  .stats-grid     { grid-template-columns: 1fr; }
  .stat-item      { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .two-col        { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner   { grid-template-columns: 1fr; gap: 30px; }
  .section-padding { padding: 60px 0; }
  .filter-buttons { justify-content: center; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
}

/* Footer responsive styles for tablet and phone */
@media (max-width: 768px) {
  .footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    /* padding: 0 20px; */
    flex-direction: column;
  }
}

/* ── Profile / Team Member Pages ── */
.profile-hero { padding: 120px 0 80px; background: linear-gradient(135deg, var(--cream) 0%, var(--blush) 100%); }
.profile-layout { display: grid; grid-template-columns: 320px 1fr; gap: 70px; align-items: flex-start; }
.profile-photo-col { position: sticky; top: 90px; }
.profile-photo { aspect-ratio: 3/4; background: linear-gradient(135deg, var(--blush) 0%, var(--blush-mid) 100%); position: relative; margin-bottom: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.badge-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badge { font-size: .72rem; font-weight: 600; letter-spacing: .08em; padding: 5px 12px; border: 1px solid var(--gold-border); color: var(--gold); background: var(--blush); }
.profile-name { font-family: var(--font-display); font-size: clamp(2rem,4vw,3.2rem); line-height: 1.1; margin-bottom: 8px; }
.profile-role { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.profile-position { font-family: var(--font-display); font-size: 1.1rem; font-style: italic; color: var(--gold); margin-bottom: 24px; }
.profile-bio p { font-size: .97rem; line-height: 1.9; color: var(--mid); margin-bottom: 20px; }
.achievements-section { margin-top: 50px; }
.achievement-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: .93rem; color: var(--mid); transition: var(--transition); }
.achievement-item:hover { color: var(--charcoal); padding-left: 8px; }
.achievement-item a { color: var(--gold); text-decoration: none; transition: var(--transition); }
.achievement-item a:hover { color: var(--gold); text-decoration: underline; }
.achievement-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 7px; }
.linkedin-box { margin-top: 40px; padding: 24px; background: var(--blush); border: 1px solid var(--blush-deep); display: flex; align-items: center; gap: 14px; }
.linkedin-box i { font-size: 1.5rem; color: var(--gold); }
.back-to-team { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--gold); margin-bottom: 28px; transition: gap var(--transition); }
.back-to-team:hover { gap: 14px; }
.breadcrumb--left { justify-content: flex-start; margin-bottom: 32px; }
.profile-cta { margin-top: 20px; }

/* ── Profile Photo Gallery Thumbnails ── */
.photo-gallery { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.photo-gallery-thumb {
  width: 72px;
  height: 96px;
  object-fit: cover;
  object-position: top center;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity var(--transition), border-color var(--transition);
}
.photo-gallery-thumb:hover { opacity: 0.85; border-color: rgba(196,150,58,0.5); }
.photo-gallery-thumb.active { opacity: 1; border-color: rgba(196,150,58,0.9); }

.expertise-section { margin-top: 40px; }
.expertise-section .badge-list { margin-top: 12px; }
.linkedin-link { display: flex; align-items: center; gap: 14px; color: var(--charcoal); }
.linkedin-name { font-weight: 600; color: var(--charcoal); font-size: .9rem; margin-bottom: 2px; }
.linkedin-url { font-size: .82rem; color: var(--muted); }

@media(max-width:900px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-photo-col { position: static; }
  .profile-photo { max-width: 280px; }
}

/* ── Service Detail Pages ── */
.service-main { padding: 80px 0; }
.service-main--white { background: black }
.detail-body p { font-size: 0.97rem; line-height: 1.9; color: var(--mid); margin-bottom: 22px; word-spacing: 4px;}
.detail-body h3 { font-size: 1.7rem; margin: 36px 0 12px; }
.detail-cta { margin-top: 32px; }
.related-services { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.related-services--plain { padding-top: 40px; border-top: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 24px; }
.related-grid .service-card h3 { font-size: 1.1rem; }
.service-link { display: inline-block; margin-top: 12px; }

/* ── Sidebar Variants ── */
.sidebar-card--light { background: var(--blush) !important; border-color: var(--border) !important; }
.sidebar-section-title { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; color: var(--charcoal); }
.cta-btn--block { display: block !important; text-align: center; }

/* ── Article / Blog Page ── */
.article-main { padding-top: 72px; }
.loading-text { color: var(--muted); }
.author-box { margin-top: 50px; padding: 28px; background: var(--blush); border: 1px solid var(--blush-deep); display: flex; gap: 20px; align-items: flex-start; }
.author-icon { width: 52px; height: 52px; background: var(--blush-mid); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.author-name { font-size: 0.9rem; margin-bottom: 4px; }
.author-desc { font-size: 0.82rem; color: var(--muted); }
.sidebar-widget--gold { background: var(--cream-2) !important; }
.sidebar-widget--gold h4 { color: var(--white); }
.sidebar-widget--gold p { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-bottom: 16px; }
.sidebar-widget--gold .cta-btn { border-color: var(--white); color: var(--white); display: block; text-align: center; }

/* ── Homepage Utilities ── */
.section-header { margin-bottom: 40px; }
.section-header--lg { margin-bottom: 50px; }
.section-footer { text-align: center; margin-top: 40px; }
.about-desc { margin-top: 16px; }
.about-cta { margin-top: 28px; }

/* ── Section Backgrounds ── */
.section--cream { background: var(--cream); }

/* ── CTA Strip Variants ── */
.cta-btn-mb { margin-bottom: 24px; }

@media(max-width:900px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ── Page Hero Subtitles ── */

.hero-sub { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }

/* ── Team Grid Centered ── */
.team-grid-centered { max-width: 900px; margin: 0 auto; }

/* ── Section Backgrounds ── */
.section--white { background: var(--cream); }

/* ── Blog Featured Image Placeholder ── */
.featured-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; padding: 40px; text-align: center; }
.featured-quote-mark { font-family: var(--font-display); font-size: 4rem; color: var(--gold); opacity: 0.3; line-height: 1; }
.featured-tagline { font-family: var(--font-display); font-size: 1.1rem; font-style: italic; color: var(--charcoal); }

/* ── Contact Page ── */
.form-group--top { margin-top: 8px; }
.office-section--spaced { margin-bottom: 32px; }
.link-gold { color: var(--gold); }
.contact-note { font-size: 0.82rem; color: var(--muted); font-style: italic; }
.map-note { margin-top: 16px; font-size: 0.85rem; color: var(--muted); }

/* ── Office Info Switcher ── */
.office-switcher { margin-bottom: 32px; }

.osw-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  gap: 0;
}
.osw-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 10px 14px 12px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  white-space: nowrap;
}
.osw-btn i { font-size: 0.75rem; opacity: 0.5; transition: opacity 0.25s; }
.osw-btn::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.osw-btn.active { color: var(--charcoal); }
.osw-btn.active i { opacity: 1; color: var(--gold); }
.osw-btn.active::after { transform: scaleX(1); }
.osw-btn:hover:not(.active) { color: var(--charcoal); }

.osw-panel { display: none; }
.osw-panel.active { display: block; }

.osw-region {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .osw-btn { flex: 1 1 50%; justify-content: center; }
}

/* Language Slider */
.lang-slider {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  border-radius: 20px;
  background: var(--blush);
  border: 1px solid var(--gold-border);
  height: 32px;
  min-width: 120px;
}

.lang-slider-track {
  display: flex;
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

.lang-option:hover {
  color: var(--gold);
}

.lang-option.active {
  color: var(--cream) !important;
  font-weight: 700;
}

.lang-slider-indicator {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 36px;
  height: 28px;
  background: var(--gold);
  border-radius: 18px;
  transition: transform 0.1s linear;
  z-index: 1;
}

/* Mobile language slider */
.mobile-lang.lang-slider {
  background: transparent;
  border: none;
  height: auto;
  min-width: auto;
  overflow: visible;
}

.mobile-lang.lang-slider .lang-slider-track {
  gap: 8px;
}

.mobile-lang.lang-slider .lang-option {
  min-width: auto;
  height: auto;
  padding: 4px 8px;
  background: var(--blush);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  margin-bottom: 4px;
}

.mobile-lang.lang-slider .lang-option.active {
  background: var(--gold);
  color: var(--cream);
  border-color: var(--gold);
}

.mobile-lang.lang-slider .lang-slider-indicator {
  display: none;
}

/* ══ OFFICES PAGE ══ */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}
@media (max-width: 1100px) {
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .offices-grid { grid-template-columns: 1fr; }
}
.office-card {
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.office-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-border);
}
.office-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}
.office-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.office-card:hover .office-flag {
  transform: scale(1.08);
}
.office-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.office-card-body {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.office-country {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--dark, #1a1a2e);
  margin: 0 0 6px;
}
.office-city {
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold, #c4963a);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  min-height: 2.6rem;
}
.office-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
}
.office-badge--main {
  background: var(--gold, #c4963a);
  color: #000;
}
.office-badge--rep {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(250,240,230,0.35);
  color: var(--gold, #c4963a);
}
.office-card-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.office-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.5;
}
.office-detail i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--gold, #c4963a);
  font-size: 0.75rem;
}

/* ══ GALLERY PAGE ══ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: #f0ebe3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,46,0.45);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}
.gallery-item-overlay i {
  color: #fff;
  font-size: 1.8rem;
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0ebe3, #e8e0d4);
  color: #999;
  font-size: 0.8rem;
  text-align: center;
  padding: 10px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border: 2px solid rgba(196,150,58,0.4);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(196,150,58,0.25);
  border: none;
  padding: 10px 16px;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(196,150,58,0.55); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ══ UTILITY — inline style replacements ══ */

/* Footer contact icons */
.footer-contacts i {
  color: var(--gold);
}

/* Centered section intro block (offices, gallery, etc.) */
.section-intro-heading {
  max-width: 680px;
  margin: 0 auto 20px;
}
.section-intro-text {
  max-width: 680px;
  margin: 40px auto;
  color: var(--charcoal);
  line-height: 1.8;
}

/* Gallery caption / note line */
.gallery-note {
  text-align: center;
  color: #aaa;
  font-size: 0.85rem;
  margin-top: 40px;
}
.gallery-note .link-gold,
.link-gold {
  color: var(--gold);
}

/* Achievements section with extra top spacing */
.achievements-section--spaced {
  margin-top: 32px;
}
/* ── OFFICES MAP SECTION ── */
.offices-map-section {
  background: #0d0d0d;
  padding: 80px 0 0;
}
.offices-map-section .section-label { color: var(--gold); }
.offices-map-section .section-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

/* Tab navigation */
.map-tabs-wrapper {
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.6), inset 0 0 0 1px var(--gold-border);
}
.map-tab-nav {
  display: flex;
  border-bottom: 2px solid var(--gold-border);
  background: #111;
}
.map-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(196,160,80,0.15);
  padding: 18px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: background 0.28s, color 0.28s;
  color: rgba(255,255,255,0.45);
  text-align: center;
  position: relative;
}
.map-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.28s;
}
.map-tab-btn:last-child { border-right: none; }
.map-tab-btn i { color: var(--gold-light); font-size: 1rem; transition: color 0.28s; opacity: 0.7; }
.map-tab-btn span { font-family: var(--font-display); font-size: 0.95rem; font-weight: 400; color: inherit; line-height: 1.2; }
.map-tab-btn small { font-family: var(--font-body); font-size: 0.67rem; color: rgba(255,255,255,0.28); letter-spacing: 0.06em; text-transform: uppercase; }
.map-tab-btn.active { color: var(--gold); }
.map-tab-btn.active i { color: var(--gold); }
.map-tab-btn.active small { color: var(--gold-light); opacity: 0.8; }
.map-tab-btn.active::after { transform: scaleX(1); }
.map-tab-btn:hover:not(.active) { background: var(--gold-light); opacity: 0.1; color: rgba(255,255,255,0.75); }
.map-tab-btn:hover:not(.active) i { color: var(--gold-light); opacity: 0.8; }

/* Panel */
.map-panel { display: none; }
.map-panel.active { display: block; }

/* Leaflet map container */
.map-leaflet {
  width: 100%;
  height: 420px;
}
.leaflet-control-attribution {
  font-size: 0.62rem !important;
  background: rgba(255,255,255,0.75) !important;
  color: rgba(0,0,0,0.45) !important;
  padding: 2px 6px !important;
  border-radius: 0 !important;
}
.leaflet-control-attribution a { color: rgba(0,0,0,0.55) !important; }

/* Info bar */
.map-panel-info {
  background: #111;
  border-top: 2px solid var(--gold-border);
  padding: 20px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}
.map-info-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,0.65);
  font-size: 0.84rem;
  line-height: 1.4;
}
.map-info-item i { color: var(--gold); font-size: 0.88rem; flex-shrink: 0; }
.map-info-item a { color: var(--gold); text-decoration: none; }
.map-info-item a:hover { text-decoration: underline; }
.map-directions-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.map-directions-btn::before { content: '\F27F'; font-family: 'bootstrap-icons'; font-size: 0.85rem; }
.map-directions-btn:hover { background: var(--gold-light); color: #111; border-color: var(--gold-light); }

@media (max-width: 860px) {
  .map-tab-nav { flex-wrap: wrap; }
  .map-tab-btn { flex: 1 1 50%; border-bottom: 1px solid var(--gold-border); }
  .map-frame-wrapper iframe { height: 300px; }
  .map-panel-info { padding: 16px 18px; gap: 10px 18px; }
  .map-directions-btn { margin-left: 0; }
}
@media (max-width: 480px) {
  .map-tab-btn { flex: 1 1 100%; }
  .map-frame-wrapper iframe { height: 240px; }
  .map-panel-info { flex-direction: column; align-items: flex-start; }
  .map-directions-btn { width: 100%; text-align: center; justify-content: center; }
}

/* Prevent flash of untranslated content */
html.dm-lang-init [data-key] { visibility: hidden; }

/* Screen-reader-only utility (accessible labels without visual change) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contact form submission success banner */
.form-success {
  display: none;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: #f0f7f0;
  border: 1px solid #bcd9bc;
  border-radius: 6px;
  color: #2e6b2e;
  font-size: 0.95rem;
}
.form-success.is-visible { display: block; }

/* Contact form error banner */
.form-error {
  display: none;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: #fbeaea;
  border: 1px solid #e0b4b4;
  border-radius: 6px;
  color: #9b2c2c;
  font-size: 0.95rem;
}
.form-error.is-visible { display: block; }

/* Honeypot field — hidden from humans, left for bots to fill */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Turnstile widget spacing */
.cf-turnstile { margin: 0 0 18px; }

/* ── Contact result modal (matches dark/gold brand) ── */
.dm-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.dm-modal[hidden] { display: none; }
.dm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.dm-modal.is-open .dm-modal-backdrop { opacity: 1; }
.dm-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--cream-2);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 46px 36px 36px;
  text-align: center;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease;
}
.dm-modal.is-open .dm-modal-card { transform: translateY(0) scale(1); opacity: 1; }
.dm-modal-x {
  position: absolute;
  top: 12px; right: 14px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.dm-modal-x:hover { color: var(--gold); background: rgba(255, 255, 255, 0.06); }
.dm-modal-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold-border);
  border-radius: 50%;
  font-size: 2rem;
}
.dm-modal-icon.is-success { color: var(--gold); }
.dm-modal-icon.is-error {
  color: #e0a3a3;
  border-color: rgba(224, 150, 150, 0.4);
}
.dm-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--gold);
}
.dm-modal .gold-divider { margin: 14px auto 18px; }
.dm-modal-text {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}
[dir="rtl"] .dm-modal-x { right: auto; left: 14px; }
@media (prefers-reduced-motion: reduce) {
  .dm-modal-backdrop, .dm-modal-card { transition: none; }
}
