@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =============================================================
   Virtual Ejari Dubai – Unified CSS (Tailwind + Legacy Compat)
   ============================================================= */

:root {
  --c-green:      #1a3c34;
  --c-green-dark: #0f2620;
  --c-gold:       #c9a96e;
  --c-gold-h:     #b8945f;
  --c-off:        #f5f5f0;
  --c-white:      #ffffff;
  --c-text:       #1f2937;
  --c-muted:      #6b7280;
  --c-border:     #e5e7eb;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.12);
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--c-text);
  background: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.25s ease; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Layout helpers ─────────────────────────── */
.max-w { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .max-w { padding: 0 16px; } }
.bg-gray-section { background: var(--c-off); }
.text-center { text-align: center; }

/* ── Typography ─────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif; font-weight: 700; line-height: 1.2; color: var(--c-green); }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--c-gold); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--c-green); }
.section-sub { color: var(--c-muted); margin-top: 12px; font-size: 1rem; }
.section-header { text-align: center; margin-bottom: 48px; }
.gradient-text { color: var(--c-gold); }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-weight: 600; font-size: 0.95rem;
  border-radius: 10px; transition: all 0.25s ease; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--c-green); color: #fff; border-color: var(--c-green); }
.btn-primary:hover { background: var(--c-green-dark); border-color: var(--c-green-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,60,52,0.25); }
.btn-secondary { background: transparent; color: var(--c-green); border-color: var(--c-green); }
.btn-secondary:hover { background: var(--c-green); color: #fff; }
.btn-gold { background: var(--c-gold); color: #fff; border-color: var(--c-gold); }
.btn-gold:hover { background: var(--c-gold-h); border-color: var(--c-gold-h); transform: translateY(-2px); }
.btn-whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.btn-whatsapp:hover { background: #1ebe5d; border-color: #1ebe5d; transform: translateY(-2px); }
.btn-block { display: flex; width: 100%; text-align: center; justify-content: center; }
.btn-light { background: var(--c-off); color: var(--c-green); border: 2px solid var(--c-border); border-radius: 10px; padding: 12px 20px; font-weight: 600; transition: all 0.25s; }
.btn-light:hover { border-color: var(--c-green); background: var(--c-white); }

/* ── Navbar ────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  height: 80px;
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

/* ── Page Hero (inner pages) ──────────────── */
.page-hero {
  padding: 130px 0 70px;
  background: var(--c-off);
  border-bottom: 1px solid var(--c-border);
}
.page-hero-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.page-hero-title { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 16px; }
.page-hero-desc { font-size: 1.05rem; color: var(--c-muted); max-width: 560px; margin: 0 auto; line-height: 1.7; }
.page-hero-blob { display: none; }

/* ── Cards & Grids ────────────────────────── */

/* Feature cards (About page, Why-Us section) */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-gold); }
.feature-icon {
  width: 52px; height: 52px; background: rgba(26,60,52,0.06); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-green); font-size: 1.3rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--c-green); }
.feature-card p { font-size: 0.9rem; color: var(--c-muted); line-height: 1.6; }

/* Services full grid */
.services-full-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .services-full-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-full-grid { grid-template-columns: 1fr; } }
.service-full-card {
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; transition: all 0.3s;
}
.service-full-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-green); }
.svc-full-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.svc-full-icon { width: 48px; height: 48px; background: rgba(26,60,52,0.06); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--c-green); font-size: 1.2rem; flex-shrink: 0; }
.svc-full-title-row h2 { font-size: 1.1rem; color: var(--c-green); margin-bottom: 4px; }
.svc-price-badge { font-size: 0.8rem; font-weight: 700; color: var(--c-gold); background: rgba(201,169,110,0.1); padding: 2px 8px; border-radius: 20px; }
.svc-full-desc { font-size: 0.9rem; color: var(--c-muted); line-height: 1.65; flex-grow: 1; margin-bottom: 16px; }
.svc-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 20px; }
.svc-feature { font-size: 0.8rem; color: var(--c-text); display: flex; align-items: center; gap: 6px; }
.svc-feature i { color: #10b981; font-size: 0.75rem; }
.svc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.svc-actions .btn { padding: 10px 18px; font-size: 0.875rem; }

/* Pricing grid – services page */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 28px 24px;
  text-align: center; position: relative; transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing-card--featured { background: var(--c-green); border-color: var(--c-green); color: #fff; }
.pricing-card--featured h3 { color: #fff; }
.pricing-popular {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--c-gold); color: #fff;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.pricing-icon { width: 52px; height: 52px; background: rgba(26,60,52,0.06); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--c-green); font-size: 1.3rem; margin: 0 auto 16px; }
.pricing-icon--white { background: rgba(255,255,255,0.15); color: #fff; }
.pricing-card h3 { font-size: 1rem; margin-bottom: 12px; }
.pricing-amount { font-size: 2.2rem; font-weight: 800; color: var(--c-green); line-height: 1; }
.pricing-amount--gold { color: var(--c-gold); }
.pricing-card--featured .pricing-amount { color: var(--c-gold); }
.pricing-period { font-size: 0.8rem; color: var(--c-muted); margin: 6px 0 20px; }
.pricing-card--featured .pricing-period { color: rgba(255,255,255,0.6); }

/* ── About page ──────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-img { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 480px; box-shadow: var(--shadow-lg); }
.about-content { display: flex; flex-direction: column; gap: 24px; }
.about-content h2 { font-size: 1.4rem; color: var(--c-green); margin-bottom: 8px; }
.about-content p { color: var(--c-muted); font-size: 0.95rem; line-height: 1.7; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.stat-box { background: var(--c-off); border-radius: 10px; padding: 20px 16px; text-align: center; border: 1px solid var(--c-border); }
.stat-val { font-size: 1.8rem; font-weight: 800; color: var(--c-green); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--c-muted); margin-top: 4px; }

/* Certifications banner */
.certifications-banner { background: var(--c-green); padding: 48px 0; text-align: center; }
.certifications-banner h2 { color: #fff; font-size: 1.3rem; margin-bottom: 24px; }
.cert-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cert-badge { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 10px 20px; font-size: 0.875rem; font-weight: 600; }

/* ── Service Detail Page ─────────────────── */
.service-detail-hero { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: flex-start; margin-top: 32px; }
@media (max-width: 900px) { .service-detail-hero { grid-template-columns: 1fr; } }
.svc-detail-desc { color: var(--c-muted); font-size: 1rem; line-height: 1.75; margin-bottom: 24px; }
.svc-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.svc-pricing-card { background: var(--c-white); border: 1px solid var(--c-border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow-lg); position: sticky; top: 96px; }
.svc-pricing-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.svc-from-label { font-size: 0.75rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.svc-price-big { font-size: 2.6rem; font-weight: 800; color: var(--c-green); line-height: 1; }
.svc-price-note { font-size: 0.78rem; color: var(--c-muted); margin-top: 4px; }
.svc-includes-title { font-size: 0.8rem; font-weight: 700; color: var(--c-green); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.svc-features-list { list-style: none; margin-bottom: 20px; }
.svc-features-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f3f4f6; color: var(--c-text); font-size: 0.92rem; }
.svc-features-list li:last-child { border-bottom: none; }
.check-circle { width: 22px; height: 22px; background: #ecfdf5; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.check-circle i { color: #10b981; font-size: 0.68rem; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-blue { background: #dbeafe; color: #1e40af; }

/* ── Breadcrumb ──────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--c-muted); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--c-green); font-weight: 500; }
.breadcrumb a:hover { color: var(--c-gold); }
.breadcrumb i { font-size: 0.6rem; color: #d1d5db; }

/* ── Process steps ───────────────────────── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 768px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { text-align: center; padding: 24px 16px; }
.process-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: #f0fdf4; border-radius: 50%; margin: 0 auto 16px; }
.process-icon i { color: var(--c-green); font-size: 1.4rem; }
.process-num { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; background: var(--c-gold); color: #fff; border-radius: 50%; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.process-step h3 { color: var(--c-green); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { color: var(--c-muted); font-size: 0.875rem; }

/* ── Other services (service detail page) ── */
.other-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 768px) { .other-services-grid { grid-template-columns: 1fr; } }
.other-service-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius); transition: all 0.25s; }
.other-service-card:hover { border-color: var(--c-green); box-shadow: var(--shadow); transform: translateY(-2px); }
.other-svc-icon { width: 42px; height: 42px; background: var(--c-off); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--c-green); font-size: 1rem; flex-shrink: 0; }
.other-svc-title { font-weight: 600; color: var(--c-green); font-size: 0.9rem; margin-bottom: 3px; }
.other-svc-price { font-size: 0.78rem; color: var(--c-gold); font-weight: 700; }
.other-arrow { margin-left: auto; color: #d1d5db; transition: all 0.25s; }
.other-service-card:hover .other-arrow { color: var(--c-green); transform: translateX(4px); }

/* ── WhatsApp float button ───────────────── */
.float-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: all 0.3s; animation: pulse-wa 2s infinite;
}
.float-wa:hover { background: #1ebe5d; transform: scale(1.1); }
@keyframes pulse-wa { 0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 28px rgba(37,211,102,0.6); } }

/* ── Contact section (includes/contact.php) ─ */
.contact-section { padding: 80px 0; background: var(--c-off); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: flex-start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.ci-row { display: flex; align-items: center; gap: 16px; }
.ci-icon { width: 44px; height: 44px; background: rgba(26,60,52,0.06); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--c-green); font-size: 1rem; flex-shrink: 0; }
.ci-label { font-size: 0.72rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 2px; }
.ci-value { font-weight: 600; color: var(--c-green); font-size: 0.95rem; }
.contact-card { background: var(--c-white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--c-border); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--c-text); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--c-border); border-radius: 10px;
  background: var(--c-off); color: var(--c-text);
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
  outline: none; transition: all 0.25s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--c-green); background: var(--c-white); box-shadow: 0 0 0 3px rgba(26,60,52,0.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.contact-success { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius); padding: 32px; text-align: center; }

/* ── Rich Text Content ── */
.rich-text-content { color: #374151; line-height: 1.8; }
.rich-text-content h1, .rich-text-content h2, .rich-text-content h3 { font-family: var(--font-heading); color: #111827; margin: 1.5rem 0 1rem; line-height: 1.2; }
.rich-text-content h1 { font-size: 2rem; font-weight: 900; }
.rich-text-content h2 { font-size: 1.5rem; font-weight: 900; }
.rich-text-content h3 { font-size: 1.25rem; font-weight: 700; }
.rich-text-content p { margin-bottom: 1rem; }
.rich-text-content ul, .rich-text-content ol { margin: 1rem 0 1rem 1.5rem; }
.rich-text-content li { margin-bottom: .5rem; }
.rich-text-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .875rem; }
.rich-text-content th, .rich-text-content td { padding: .75rem 1rem; border: 1px solid #e5e7eb; text-align: left; }
.rich-text-content th { background: #f9fafb; font-weight: 700; color: #111827; }
.rich-text-content strong { color: #111827; font-weight: 700; }
.rich-text-content a { color: var(--royal-700); text-decoration: underline; }

/* ── Animations ── */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ── Tailwind custom color classes ──────── */
/* These mirror the tailwind.config so standalone CSS pages also work */
.text-primary  { color: #1a3c34 !important; }
.text-secondary{ color: #c9a96e !important; }
.bg-primary    { background-color: #1a3c34 !important; }
.bg-secondary  { background-color: #c9a96e !important; }
.bg-accent     { background-color: #f5f5f0 !important; }
.border-primary{ border-color: #1a3c34 !important; }

/* ── Home page specific ──────────────────── */
/* Dot-grid section background */
#home::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(26,60,52,0.05) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
}
#home { position: relative; }
#home > * { position: relative; z-index: 1; }

/* Service card hover effects */
.service-card { transition: all 0.3s ease; }
.service-card:hover { background-color: #1a3c34 !important; }
.service-card:hover h3,
.service-card:hover p { color: rgba(255,255,255,0.9) !important; }
.service-card:hover .service-icon { background-color: rgba(201,169,110,0.2) !important; }
.service-card:hover .service-icon i { color: #c9a96e !important; }
.service-card:hover .service-arrow { color: #c9a96e; transform: translateX(6px); }

/* Pricing card popular highlight */
.pricing-popular-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #c9a96e, #e8d5a3); border-radius: var(--radius) var(--radius) 0 0; }

/* Card hover generic */
.card-hover { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(26,60,52,0.12); }

/* ── Admin UI ────────────────────────────── */
/* (imported from admin.css, nothing here) */

/* ── Responsive fixes ────────────────────── */
@media (max-width: 768px) {
  .page-hero { padding: 110px 0 50px; }
  .about-grid { gap: 32px; }
  .service-detail-hero { gap: 24px; }
  .svc-pricing-card { position: static; }
  .features-grid { gap: 14px; }
  .section-header { margin-bottom: 32px; }
  .float-wa { width: 50px; height: 50px; font-size: 1.3rem; bottom: 16px; right: 16px; }
}
@media (max-width: 480px) {
  .svc-hero-actions { flex-direction: column; }
  .svc-hero-actions .btn { width: 100%; justify-content: center; }
  .pricing-grid { grid-template-columns: 1fr; }
  .services-full-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
