/* ===========================
   LEVANT LAW FIRM — style.css
   Light / White Theme
   =========================== */

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

:root {
  --green:       #1b4332;
  --green-mid:   #2d6a4f;
  --green-light: #40916c;
  --gold:        #9a7a2e;
  --gold-light:  #b5943a;
  --gold-pale:   #d4b96a;

  --bg:          #ffffff;
  --bg2:         #f7f5f0;
  --bg3:         #efe9de;
  --surface:     #f2ede3;
  --border:      rgba(27, 67, 50, 0.12);
  --border-gold: rgba(154, 122, 46, 0.25);

  --text:        #1a1a17;
  --text-mid:    #3a3a30;
  --muted:       #7a7060;
  --muted-light: #a09880;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ===== TOP BAR ===== */
.green-bar {
  height: 3px;
  background: linear-gradient(to right, var(--green), var(--green-mid), var(--gold-light), transparent);
}

/* ===== NAV ===== */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  z-index: 1000;
  gap: 1rem;
  box-shadow: 0 1px 20px rgba(27, 67, 50, 0.06);
  height: 72px;
}

.logo img { height: 52px; width: auto; display: block; }

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-links a {
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--green); }

.nav-cta {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  border: 1px solid var(--green);
  padding: 10px 24px;
  color: var(--green);
  text-decoration: none;
  transition: all 0.3s;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--green);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--green);
  transition: all 0.3s;
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  padding: 5rem 2rem 2rem;
  gap: 0;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(27, 67, 50, 0.12);
  z-index: 999;
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  visibility: hidden;
  overflow-y: auto;
}

/* Backdrop */
.nav-mobile::before {
  content: '';
  position: fixed;
  inset: 0;
  right: min(320px, 85vw);
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.nav-mobile.open {
  transform: translateX(0);
  visibility: visible;
}

.nav-mobile.open::before {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile a {
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s, padding-right 0.2s;
}

.nav-mobile a:hover { color: var(--green); padding-right: 0.4rem; }

.nav-mobile .mob-cta {
  color: var(--green);
  border: 1px solid var(--green);
  padding: 12px 20px;
  text-align: center;
  margin-top: 0.5rem;
}

.nav-mobile-close {
  position: absolute;
  top: 1.2rem;
  left: 1.5rem;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

/* Body scroll lock when drawer open */
body.nav-open { overflow: hidden; }

/* ===== PAGES ===== */
.page { display: none; animation: fadeIn 0.4s ease; }
.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem 8rem;
  position: relative;
  overflow: visible;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg2) 60%, var(--bg3) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 60%, rgba(27, 67, 50, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-gold), transparent);
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-transform: uppercase;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 50px;
  height: 0.5px;
  background: linear-gradient(to right, transparent, var(--gold));
  opacity: 0.6;
}

.hero-eyebrow::after { transform: scaleX(-1); }

.hero-title {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--green);
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 3rem;
  max-width: 540px;
  line-height: 2;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  font-size: 16px;
  padding: 14px 40px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
}

.btn-ghost {
  font-size: 16px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
  text-decoration: none;
}

.btn-ghost:hover { color: var(--green); }
.btn-ghost::before { content: '←'; font-size: 14px; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted-light);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
  white-space: nowrap;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ===== SECTIONS ===== */
.section { padding: 6rem 3rem; }

.section-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 300;
  color: var(--green);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 2rem auto;
}

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 3rem;
  text-align: center;
}

.stat-card {
  border-top: 2px solid var(--green-mid);
  padding-top: 1.5rem;
}

.stat-num {
  font-family: 'Tajawal', sans-serif;
  font-size: 44px;
  font-weight: 300;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* ===== ABOUT ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-text p {
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.about-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.about-stat .stat-card {
  border-right: 2px solid var(--green-mid);
  border-top: none;
  padding: 1rem 1.5rem;
  background: var(--bg2);
  padding-top: 1rem;
}

.about-visual {
  aspect-ratio: 4/5;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(27, 67, 50, 0.05), var(--bg2));
}



.about-visual::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 0.5px solid var(--border-gold);
  opacity: 0.4;
  z-index: 2;
  pointer-events: none;
}

.about-icon-large {
  position: absolute;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(27, 67, 50, 0.2);
  writing-mode: vertical-rl;
  left: 1.5rem;
  bottom: 2rem;
}

.about-green-bar {
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--green-mid), transparent);
}

/* ===== SERVICES ===== */
.services-bg { background: var(--bg2); }
.services-inner { max-width: 1100px; margin: 0 auto; }
.services-header { margin-bottom: 4rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.service-card {
  background: var(--bg2);
  padding: 1.5rem 1.5rem;
  transition: background 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card:hover { background: var(--surface); }

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--green-mid), var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s;
}

.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: 'Tajawal', sans-serif;
  font-size: 32px;
  color: rgba(27, 67, 50, 0.1);
  font-weight: 300;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.service-name {
  font-family: 'Tajawal', sans-serif;
  font-size: 19px;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.service-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.75rem;
  font-size: 12px;
  color: var(--gold);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Tajawal', sans-serif;
}

.service-card:hover .service-link {
  opacity: 1;
  transform: translateY(0);
}

/* ===== APPROACH / PHILOSOPHY ===== */
.approach-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.approach-quote {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(18px, 2.8vw, 30px);
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.8;
  margin: 2.5rem 0;
}

.approach-quote strong {
  color: var(--green);
  font-weight: 500;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  text-align: right;
}

.pillar {
  border-top: 2px solid var(--border);
  padding-top: 1.5rem;
  position: relative;
}

.pillar::before {
  content: '';
  position: absolute;
  top: -2px; right: 0;
  width: 30px; height: 2px;
  background: var(--gold);
}

.pillar-title {
  font-size: 15px;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.pillar-text {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}

/* ===== TEAM ===== */
.team-intro {
  max-width: 700px;
  margin: 0 auto 4rem;
  text-align: center;
}

.team-intro p {
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.team-card:hover {
  border-color: rgba(27, 67, 50, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27, 67, 50, 0.08);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border: 2px solid var(--border-gold);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.6);
}

.team-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.team-role {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

/* ===== NEWS ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.news-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.news-card:hover {
  border-color: rgba(27, 67, 50, 0.3);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.07);
}

.news-date {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.news-title {
  font-size: 19px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.news-excerpt {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.news-excerpt.news-collapsed {
  max-height: 4em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  transition: max-height 0.4s cubic-bezier(0.23,1,0.32,1);
}
.news-excerpt.news-expanded {
  max-height: 1000px;
  -webkit-mask-image: none;
  mask-image: none;
  transition: max-height 0.5s cubic-bezier(0.23,1,0.32,1);
}

.news-read-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0.5rem 0 0;
  margin-top: 0.25rem;
  font-family: inherit;
  display: inline-block;
  transition: opacity 0.2s;
}
.news-read-btn:hover { opacity: 0.7; }

/* ===== CONTACT ===== */
.contact-bg { background: var(--bg2); }

.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--green);
  text-transform: uppercase;
}

.form-input,
.form-textarea,
.form-select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
  text-align: right;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.06);
}

.form-select option { background: var(--bg); color: var(--text); }
.form-textarea { height: 130px; }

.contact-info { padding-top: 0.5rem; }

.info-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.info-block:last-child { border-bottom: none; }

.info-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.info-value {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.info-value strong {
  color: var(--green);
  font-weight: 500;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .about { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 1.5rem; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .section { padding: 4rem 1.5rem; }
  .stats-grid { padding: 3rem 1.5rem; }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 1.25rem; min-height: 80vh; }
  .about-stat { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; gap: 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ===========================
   LEVANT — ENHANCED STYLES
   =========================== */

/* ── Hero Logo ── */
.hero-logo-wrap {
  margin-bottom: 2.5rem;
}

.hero-logo {
  height: clamp(260px, 40vw, 560px);
  width: auto;
  filter: drop-shadow(0 8px 32px rgba(27,67,50,0.18));
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1), filter 0.6s;
}

.hero-logo:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 12px 40px rgba(27,67,50,0.28));
}

/* ── About logo display ── */
.about-logo-display {
  width: 70%;
  max-width: 280px;
  opacity: 0.9;
  transition: opacity 0.4s, transform 0.4s;
}

.about-visual:hover .about-logo-display {
  opacity: 1;
  transform: scale(1.03);
}

/* ── Entrance Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes revealIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.75s cubic-bezier(0.23,1,0.32,1) forwards;
}

.animate-reveal {
  opacity: 0;
  animation: revealIn 0.8s ease forwards;
  animation-delay: 0.2s;
}

/* Stagger children */
.stagger-in {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.7s cubic-bezier(0.23,1,0.32,1) forwards;
  animation-delay: calc(var(--i) * 0.12s + 0.1s);
}

/* Only play stagger on visible pages */
.page:not(.active) .stagger-in,
.page:not(.active) .animate-fade-up,
.page:not(.active) .animate-reveal {
  animation: none;
  opacity: 1;
  transform: none;
}

/* Re-trigger on page switch */
.page.active .stagger-in {
  animation: fadeUp 0.7s cubic-bezier(0.23,1,0.32,1) forwards;
  animation-delay: calc(var(--i) * 0.12s + 0.1s);
}

/* ── Bigger small fonts ── */
.nav-links a  { font-size: 18px; }
.nav-cta      { font-size: 17px; }
.section-label { font-size: 13px; letter-spacing: 0.22em; }
.stat-label   { font-size: 14px; }
.stat-num     { font-size: 52px; }
.service-desc { font-size: 15px; }
.service-num  { font-size: 52px; }
.news-date    { font-size: 12.5px; letter-spacing: 0.14em; }
.news-excerpt { font-size: 14.5px; line-height: 2; }
.team-bio     { font-size: 14.5px; }
.team-role    { font-size: 13px; letter-spacing: 0.14em; }
.info-label   { font-size: 12.5px; letter-spacing: 0.12em; }
.info-value   { font-size: 15px; }
.form-label   { font-size: 12.5px; }
.form-input, .form-textarea, .form-select { font-size: 15px; }
.pillar-text  { font-size: 14.5px; line-height: 2; }
.pillar-title { font-size: 16px; }
.hero-sub     { font-size: 17px; }
.about-text p { font-size: 16px; }
.footer-brand { font-size: 15px; }
.footer-copy  { font-size: 12px; }
.hero-eyebrow { font-size: 12.5px; letter-spacing: 0.32em; }

/* ── Services full 3-col on services page ── */
.services-grid-full {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .services-grid-full { grid-template-columns: 1fr; }
  .hero-logo { height: clamp(200px, 60vw, 320px); }
}

/* ── Stat counter pulse ── */
.stat-num[data-target] {
  transition: color 0.3s;
  font-variant-numeric: tabular-nums;
}

/* ── Gold shimmer on hero logo ── */
@keyframes shimmer {
  0%   { opacity: 0.7; }
  50%  { opacity: 1; }
  100% { opacity: 0.7; }
}

.hero-logo-wrap::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 1.4rem auto 0;
  animation: shimmer 3s ease-in-out infinite;
}

/* ── Nav logo slightly bigger ── */
.logo img { height: 160px; overflow: visible; position: relative; z-index: 1001; }

/* ── Page fade improved ── */
.page { animation: fadeUp 0.45s cubic-bezier(0.23,1,0.32,1); }

/* ===========================
   HERO LOGO — CINEMATIC ANIMATION
   =========================== */

/* Override hero-logo-wrap to be the animation anchor */
.hero-logo-wrap {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}

/* Mask that reveals logo with a wipe effect */
.logo-reveal-mask {
  overflow: hidden;
  position: relative;
  animation: maskReveal 1.1s cubic-bezier(0.77,0,0.18,1) forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

@keyframes maskReveal {
  0%   { opacity: 0; clip-path: inset(0 100% 0 0); }
  10%  { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0% 0 0); }
}

/* The hero logo itself */
.hero-logo {
  height: clamp(120px, 22vw, 320px);
  width: auto;
  display: block;
  animation: logoFloat 6s ease-in-out 1.3s infinite;
  filter: drop-shadow(0 6px 28px rgba(27,67,50,0.14));
  transition: filter 0.5s;
}

.hero-logo:hover {
  filter: drop-shadow(0 10px 36px rgba(27,67,50,0.26));
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}

/* Ornament line + diamond under the logo */
.logo-ornament {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1.2rem;
  opacity: 0;
  animation: ornamentIn 0.9s ease forwards;
  animation-delay: 1s;
}

@keyframes ornamentIn {
  from { opacity: 0; transform: scaleX(0.2); }
  to   { opacity: 1; transform: scaleX(1); }
}

.logo-line-left,
.logo-line-right {
  display: block;
  height: 1px;
  width: clamp(60px, 10vw, 130px);
  background: linear-gradient(to right, transparent, var(--gold-pale));
  animation: lineGlow 3s ease-in-out 1.4s infinite;
}

.logo-line-right {
  background: linear-gradient(to left, transparent, var(--gold-pale));
}

.logo-diamond {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  animation: diamondPulse 3s ease-in-out 1.4s infinite;
}

@keyframes lineGlow {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

@keyframes diamondPulse {
  0%, 100% { transform: rotate(45deg) scale(1); opacity: 0.7; }
  50%       { transform: rotate(45deg) scale(1.4); opacity: 1; }
}

/* Override old .hero-logo-wrap::after shimmer bar — remove it */
.hero-logo-wrap::after { display: none; }

/* Nav logo — keep clean */
.logo img { height: 52px; width: auto; display: block; }

/* ===========================
   BILINGUAL — AR / EN
   =========================== */

/* Language toggle button */
.nav-right-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: 'Tajawal', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.lang-toggle-mob {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  padding: 10px 16px;
  cursor: pointer;
  margin-top: 0.5rem;
  width: 100%;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.lang-toggle-mob:hover {
  background: var(--gold);
  color: #fff;
}

/* English font override for headings */
body.lang-en-active .hero-title,
body.lang-en-active .section-title,
body.lang-en-active .approach-quote {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
}

body.lang-en-active .pillar-title,
body.lang-en-active .service-name,
body.lang-en-active .team-name,
body.lang-en-active .news-title {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
}

/* Source Sans 3 for all English body text */
body.lang-en-active {
  font-family: 'Source Sans 3', sans-serif;
}

body.lang-en-active .nav-links a,
body.lang-en-active .nav-cta,
body.lang-en-active .btn-primary,
body.lang-en-active .btn-ghost,
body.lang-en-active .hero-eyebrow,
body.lang-en-active .hero-sub,
body.lang-en-active .section-label,
body.lang-en-active .service-desc,
body.lang-en-active .service-link,
body.lang-en-active .about-text p,
body.lang-en-active .pillar-text,
body.lang-en-active .team-bio,
body.lang-en-active .team-role,
body.lang-en-active .news-excerpt,
body.lang-en-active .news-date,
body.lang-en-active .info-label,
body.lang-en-active .info-value,
body.lang-en-active .form-label,
body.lang-en-active .form-input,
body.lang-en-active .form-textarea,
body.lang-en-active .form-select,
body.lang-en-active .footer-brand,
body.lang-en-active .footer-copy,
body.lang-en-active .lang-toggle,
body.lang-en-active .social-btn {
  font-family: 'Source Sans 3', sans-serif;
}

/* Light = 300, Regular = 400, Semibold = 600 — no fake bold */
body.lang-en-active strong {
  font-weight: 600;
}

/* LTR alignment for English */
html[dir="ltr"] .hero-eyebrow::before { transform: none; }
html[dir="ltr"] .hero-eyebrow::after  { transform: none; }

html[dir="ltr"] .btn-ghost::before { content: '→'; }

html[dir="ltr"] .green-bar {
  background: linear-gradient(to left, var(--green), var(--green-mid), var(--gold-light), transparent);
}

html[dir="ltr"] .form-input,
html[dir="ltr"] .form-textarea,
html[dir="ltr"] .form-select {
  text-align: left;
}

html[dir="ltr"] .showFormMessage {
  border-right: none;
  border-left: 3px solid currentColor;
}

/* Fix nav CTA hide on mobile (already in base CSS, just ensure group hides) */
@media (max-width: 900px) {
  .nav-right-group { display: none; }
}

/* ===========================
   SOCIAL LINKS — Contact Page
   =========================== */

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 11px 18px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 14px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 400;
  transition: all 0.3s;
  background: var(--bg);
  color: var(--text-mid);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-btn:hover { transform: translateX(-3px); }

html[dir="ltr"] .social-btn:hover { transform: translateX(3px); }

.social-fb { color: #1877f2; border-color: rgba(24,119,242,0.2); }
.social-fb:hover { background: rgba(24,119,242,0.06); border-color: #1877f2; color: #1877f2; }

.social-ig { color: #c13584; border-color: rgba(193,53,132,0.2); }
.social-ig:hover { background: rgba(193,53,132,0.06); border-color: #c13584; color: #c13584; }

.social-wa { color: #25d366; border-color: rgba(37,211,102,0.2); }
.social-wa:hover { background: rgba(37,211,102,0.06); border-color: #25d366; color: #25d366; }

/* ===========================
   TEAM — Single Card Centered
   =========================== */

.team-grid-single {
  display: flex;
  justify-content: center;
}

.team-grid-single .team-card {
  max-width: 380px;
  width: 100%;
}

/* ===========================
   FLOATING WHATSAPP BUTTON
   =========================== */

.whatsapp-float {
  position: fixed;
  bottom: 1.8rem;
  left: 1.8rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 13px 20px 13px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s cubic-bezier(0.23,1,0.32,1),
              box-shadow 0.3s,
              padding 0.3s;
  animation: waBounceIn 0.7s cubic-bezier(0.23,1,0.32,1) 1.5s both;
  overflow: hidden;
  max-width: 54px;
}

/* Expand label on hover */
.whatsapp-float:hover {
  max-width: 200px;
  padding: 13px 20px;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
  transform: translateY(-3px);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.whatsapp-float-label {
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.35s ease, opacity 0.3s ease;
  display: inline-block;
}

.whatsapp-float:hover .whatsapp-float-label {
  max-width: 140px;
  opacity: 1;
}

/* Pulse ring */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: #25d366;
  animation: waPulse 2.5s ease-out 2.2s infinite;
  z-index: -1;
}

@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes waBounceIn {
  0%   { opacity: 0; transform: scale(0.4) translateY(30px); }
  70%  { transform: scale(1.08) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* RTL — left side stays left for WhatsApp */
html[dir="ltr"] .whatsapp-float {
  left: 1.8rem;
  right: auto;
}

/* ===========================
   ABOUT — Visual Image
   =========================== */

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
  min-height: 480px;
}

.about-visual-img {
  position: absolute;
  inset: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
  z-index: 1;
}

.about-visual:hover .about-visual-img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .about-visual { min-height: 320px; }
}

/* ══════════════════════════════════════
   WHY LEVANT PAGE
   ══════════════════════════════════════ */

/* Hero */
.why-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.why-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}
.why-hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 1.2rem;
}

/* Grid */
.why-grid-section { padding-top: 4rem; padding-bottom: 3rem; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.why-card {
  background: var(--bg);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--green-mid), var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s;
}
.why-card:hover { background: var(--surface); }
.why-card:hover::before { transform: scaleX(1); }

.why-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.why-title {
  font-family: 'Tajawal', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--green);
  line-height: 1.4;
}
.why-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

/* Values strip */
.why-values-strip {
  background: var(--green);
  padding: 2rem;
}
.why-values-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.why-value-word {
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.why-value-dot {
  color: var(--gold);
  font-size: 8px;
  opacity: 0.7;
}

/* CTA */
.why-cta-section { padding: 5rem 2rem; }
.why-cta-box {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--border-gold);
  padding: 3.5rem 3rem;
  position: relative;
}
.why-cta-box::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 0.5px solid var(--border-gold);
  opacity: 0.3;
  pointer-events: none;
}
.why-cta-title {
  font-family: 'Tajawal', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1rem;
}
.why-cta-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-cta-box { padding: 2.5rem 1.5rem; }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-values-inner { gap: 1rem; }
}

/* Lang spans */
.lang-en { display: none; }
.lang-ar { display: inline; }
body.lang-en-active .lang-en { display: inline; }
body.lang-en-active .lang-ar { display: none; }

/* Read More */
.service-desc.collapsed {
  max-height: 4.8em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
.service-desc.expanded {
  max-height: 600px;
  overflow: hidden;
  -webkit-mask-image: none;
  mask-image: none;
  transition: max-height 0.4s cubic-bezier(0.23,1,0.32,1);
}
.read-more-btn {
  display: inline-block !important;
  opacity: 1 !important;
  transform: none !important;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.4rem 0 0;
  margin-top: 0.5rem;
  text-transform: uppercase;
  font-family: inherit;
}
.read-more-btn:hover { opacity: 0.7 !important; }

/* Equal height service cards */
.services-grid,
.services-grid-full { align-items: stretch; }
.service-card {
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════
   FOOTER ENHANCED
   ══════════════════════════════════════ */
footer {
  background: var(--green);
  color: rgba(255,255,255,0.85);
  margin-top: 0;
  border-top: none;
  padding: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 1.75rem;
}

.footer-col { min-width: 0; }

.footer-logo-text {
  font-family: 'Tajawal', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.footer-logo-sub {
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.2em;
  opacity: 0.7;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.footer-phone {
  display: inline-block;
  color: var(--gold);
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.footer-phone:hover { opacity: 0.75; }

.footer-col-title {
  font-family: 'Tajawal', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-nav a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}
.footer-social-link {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.footer-social-link:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 0.85rem 2rem;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
  }
  .footer-social { justify-content: center; }
}

/* ── Back To Top ── */
#backToTop {
  position: fixed;
  bottom: 5.5rem;
  left: 1.8rem;
  width: 42px;
  height: 42px;
  background: var(--green);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.2s;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
#backToTop.visible {
  opacity: 1;
  visibility: visible;
}
#backToTop:hover { background: var(--gold); }

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