:root {
  --navy: #16233f;
  --navy-light: #223258;
  --navy-lighter: #2c3e66;
  --gold: #b8935a;
  --gold-light: #d4b483;
  --cream: #f8f5f0;
  --white: #ffffff;
  --text: #29303d;
  --text-light: #6b7280;
  --border: #e7e2d9;
  --shadow: 0 10px 30px rgba(22, 35, 63, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-block { width: 100%; text-align: center; border: none; font-family: inherit; font-size: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; line-height: 1.1; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; }
.brand-emblem {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold-light);
  border: 1px solid var(--gold);
}
.brand-emblem svg { width: 22px; height: 22px; }
.footer-emblem { background: var(--navy-light); }
.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}
html[lang="ar"] .brand-title { font-family: 'Amiri', serif; font-size: 27px; }
.brand-title.small { font-size: 20px; }
html[lang="ar"] .brand-title.small { font-size: 23px; }

.main-nav ul { display: flex; gap: 32px; }
.nav-link {
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--navy); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.lang-switch:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: 100px 0 90px;
  text-align: center;
}
.hero-inner { max-width: 780px; }
.hero-eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 18px;
  font-size: 14px;
}
.hero-title { margin: 0 0 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.script-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 58px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.3;
}
html[lang="ar"] .script-name {
  font-family: 'Amiri', serif;
  font-style: normal;
  font-size: 62px;
}
.hero-role {
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 500;
}

.hero-emblem {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold-light);
  border: 1px solid var(--gold);
}
.hero-emblem svg { width: 28px; height: 28px; display: block; }

.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 160px;
  margin: 18px auto 34px;
}
.flourish span { flex: 1; height: 1px; background: var(--gold); opacity: 0.55; }
.flourish i {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.hero-text {
  font-size: 18px;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* Section generic */
.section-eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 14px;
  margin: 0 0 10px;
  text-align: center;
}
.section-title {
  font-size: 34px;
  font-weight: 900;
  color: var(--navy);
  text-align: center;
  margin: 0 0 16px;
}
.section-title.light { color: var(--white); }
.section-lead {
  text-align: center;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 50px;
  font-size: 17px;
}

/* Stats */
.stats { padding: 60px 0; background: var(--white); border-bottom: 1px solid var(--border); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}
html[lang="ar"] .stat-number { font-family: 'Amiri', serif; }
.stat-label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 6px;
}
/* About */
.about { padding: 90px 0; background: var(--white); }
.about-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.about-badge {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  margin: 0 auto 24px;
  border: 1px solid var(--border);
}
.about-text { color: var(--text-light); font-size: 17px; }

/* Services */
.services { padding: 90px 0; background: var(--cream); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(22, 35, 63, 0.14);
}
.service-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 19px;
  color: var(--navy);
  margin: 0 0 14px;
}
.service-card ul li {
  position: relative;
  padding-inline-start: 18px;
  margin-bottom: 8px;
  color: var(--text-light);
  font-size: 14.5px;
}
.service-card ul li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Why */
.why { padding: 90px 0; background: var(--navy); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.why-item {
  text-align: center;
  padding: 36px 24px;
  background: var(--navy-light);
  border-radius: var(--radius);
  border: 1px solid var(--navy-lighter);
}
.why-icon { font-size: 34px; margin-bottom: 16px; }
.why-item h3 { color: var(--gold-light); font-size: 20px; margin: 0 0 10px; }
.why-item p { color: rgba(255,255,255,0.75); font-size: 15px; margin: 0; }

/* Testimonials */
.testimonials { padding: 90px 0; background: var(--cream); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.testimonial-quote { color: var(--text); font-size: 15px; line-height: 1.9; margin: 0; flex-grow: 1; }
.testimonial-author { display: flex; flex-direction: column; border-top: 1px solid var(--border); padding-top: 14px; }
.testimonial-name { font-weight: 700; color: var(--navy); font-size: 15px; }
.testimonial-role { font-size: 13px; color: var(--text-light); margin-top: 2px; }

/* Contact */
.contact { padding: 90px 0; background: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info .section-title,
.contact-info .section-eyebrow,
.contact-info .section-lead { text-align: start; margin-left: 0; margin-right: 0; }
.contact-list { margin: 30px 0; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 16px;
}
.contact-list em { color: var(--text-light); font-size: 12px; font-style: normal; opacity: 0.7; }
.contact-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  transition: all 0.2s ease;
}
.social-links a:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

.contact-form {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--border);
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-note { text-align: center; font-size: 14px; color: var(--navy); font-weight: 700; min-height: 20px; }

/* Blog */
.blog-hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: 70px 0 50px;
  text-align: center;
}
.blog-hero .section-lead { margin-bottom: 0; }
.blog-list { padding: 60px 0 90px; background: var(--white); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(22, 35, 63, 0.14);
}
.blog-card-icon {
  width: 100%;
  height: 130px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}
.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
}
.blog-post-featured-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.blog-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.blog-tag {
  align-self: flex-start;
  background: var(--cream);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.blog-card-title { font-size: 18px; color: var(--navy); margin: 0; font-weight: 700; line-height: 1.4; }
.blog-card-excerpt { color: var(--text-light); font-size: 14.5px; line-height: 1.8; margin: 0; flex-grow: 1; }
.blog-card-meta { font-size: 12.5px; color: var(--text-light); opacity: 0.8; }
.blog-read-more { color: var(--gold); font-weight: 700; font-size: 14px; margin-top: 4px; }
.blog-read-more:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 24px;
}
.footer-inner { text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .brand-title { color: var(--white); }
.footer-text { max-width: 480px; margin: 0 auto 24px; font-size: 15px; }
.footer-nav { display: flex; justify-content: center; gap: 26px; margin-bottom: 24px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.75); font-size: 14px; }
.footer-nav a:hover { color: var(--gold-light); }
.copyright { font-size: 13px; color: rgba(255,255,255,0.5); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  inset-inline-start: 26px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 90;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Responsive */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 72px;
    right: 0;
    width: 78%;
    max-width: 320px;
    height: calc(100vh - 72px);
    background: var(--white);
    box-shadow: -8px 0 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    padding: 30px 24px;
    transform: translateX(100%);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 24px; }
  .menu-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .script-name { font-size: 38px; }
  html[lang="ar"] .script-name { font-size: 44px; }
  .services-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 60px; }
  .section-title { font-size: 26px; }
  .blog-grid { grid-template-columns: 1fr; }
}
