/* ============================================================
   DentalTNL — Main Stylesheet
   Clean professional design for dental equipment company
============================================================ */

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --primary:      #0077B6;
  --primary-dark: #005F8E;
  --primary-light:#E0F2FE;
  --accent:       #00B4D8;
  --gold:         #F59E0B;
  --text:         #0F172A;
  --text-2:       #334155;
  --text-muted:   #64748B;
  --text-light:   #94A3B8;
  --bg:           #F8FAFC;
  --surface:      #FFFFFF;
  --border:       #E2E8F0;
  --border-2:     #CBD5E1;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:       0 4px 20px rgba(0,119,182,.12);
  --shadow-lg:    0 20px 60px rgba(0,119,182,.18);
  --grad:         linear-gradient(135deg, #0077B6 0%, #00B4D8 100%);
  --grad-dark:    linear-gradient(135deg, #023E8A 0%, #0077B6 100%);
  --font-ar:      'Cairo', sans-serif;
  --font-en:      'Inter', sans-serif;
  --nav-h:        72px;
  --transition:   all .25s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ar);
  background: var(--surface);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
body.en { font-family: var(--font-en); }
body.rtl { direction: rtl; text-align: right; }
body.ltr { direction: ltr; text-align: left; }
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 99px; }

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.nav-logo img { height: 42px; width: auto; }
.nav-logo-text strong {
  display: block; font-size: .95rem; font-weight: 700; color: var(--primary);
  line-height: 1.2;
}
.nav-logo-text span { font-size: .72rem; color: var(--text-muted); }
.nav-links {
  display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center;
}
.nav-link {
  padding: 7px 14px; border-radius: 8px;
  font-size: .85rem; font-weight: 500; color: var(--text-2);
  transition: var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-btn {
  padding: 5px 12px; border-radius: 8px; border: 1px solid var(--border);
  font-size: .78rem; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--text-2); transition: var(--transition);
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.wa-nav-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 99px;
  background: #25D366; color: white;
  font-size: .82rem; font-weight: 600;
  transition: var(--transition);
}
.wa-nav-btn:hover { background: #1ebe5d; transform: translateY(-1px); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 16px 24px; z-index: 999; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 12px 16px; border-radius: var(--radius); }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-h);
  background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 40%, #f0fdf4 100%);
  position: relative; overflow: hidden;
}
.hero-blob {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px); opacity: .45;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 99px;
  background: rgba(0,119,182,.1); border: 1px solid rgba(0,119,182,.2);
  font-size: .78rem; font-weight: 600; color: var(--primary); margin-bottom: 20px;
}
.hero-tag span { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse 1.5s infinite; }
.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900;
  line-height: 1.2; margin-bottom: 16px; color: var(--text);
}
.hero-title .grad { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.05rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 32px; max-width: 480px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
}
.hero-img-wrap {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  display: flex; align-items: center; justify-content: center;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 32px;
}
.hero-stat {
  background: white; border-radius: var(--radius); padding: 16px;
  text-align: center; box-shadow: var(--shadow-sm);
}
.hero-stat .num { font-size: 1.6rem; font-weight: 900; color: var(--primary); line-height: 1; }
.hero-stat .lbl { font-size: .72rem; color: var(--text-muted); margin-top: 4px; }

/* ─── Sections ──────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; padding: 5px 14px; border-radius: 99px;
  background: var(--primary-light); color: var(--primary);
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.section-sub { color: var(--text-muted); font-size: .95rem; max-width: 560px; margin: 0 auto; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 99px; border: none; cursor: pointer;
  font-size: .9rem; font-weight: 600; font-family: inherit;
  transition: var(--transition); white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--grad); color: white; box-shadow: 0 4px 14px rgba(0,119,182,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,119,182,.4); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.btn-white { background: white; color: var(--primary); box-shadow: var(--shadow); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-wa { background: #25D366; color: white; box-shadow: 0 4px 14px rgba(37,211,102,.35); }
.btn-wa:hover { background: #1ebe5d; transform: translateY(-2px); }
.btn-sm { padding: 7px 16px; font-size: .8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(0,119,182,.2); }

/* ─── Offer Card ─────────────────────────────────────────────── */
.offer-card { display: flex; flex-direction: column; }
.offer-img {
  aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--bg);
}
.offer-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.offer-card:hover .offer-img img { transform: scale(1.05); }
.offer-badge {
  position: absolute; top: 12px;
  padding: 4px 10px; border-radius: 99px;
  font-size: .7rem; font-weight: 700; color: white;
}
.rtl .offer-badge { right: 12px; }
.ltr .offer-badge { left: 12px; }
.offer-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.offer-cat { font-size: .72rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }
.offer-title { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.offer-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.offer-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.offer-price { font-size: .82rem; font-weight: 600; color: var(--text-muted); }

/* ─── Project Card ───────────────────────────────────────────── */
.project-card .project-img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.project-card .project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover .project-img img { transform: scale(1.06); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 20px;
  opacity: 0; transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-body { padding: 18px; }
.project-meta { display: flex; align-items: center; gap: 12px; font-size: .75rem; color: var(--text-muted); margin-bottom: 6px; }
.project-title { font-size: .95rem; font-weight: 700; }

/* ─── Why Us ─────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  padding: 32px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  text-align: center; transition: var(--transition);
}
.why-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.why-icon {
  width: 64px; height: 64px; border-radius: 20px;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 16px;
}
.why-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.why-desc  { font-size: .85rem; color: var(--text-muted); line-height: 1.7; }

/* ─── Grids ──────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ─── Contact Section ────────────────────────────────────────── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.contact-info p  { color: var(--text-muted); line-height: 1.8; margin-bottom: 32px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: var(--radius);
  background: var(--bg); margin-bottom: 12px;
}
.contact-item-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-light); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-item-text .label { font-size: .72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.contact-item-text .val   { font-size: .9rem; font-weight: 600; margin-top: 2px; }
.contact-form-box { background: var(--bg); border-radius: var(--radius-xl); padding: 32px; border: 1px solid var(--border); }
.contact-form-box h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .78rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .88rem; background: var(--surface);
  font-family: inherit; color: var(--text); outline: none; transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,119,182,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  background: #0F172A; color: #94A3B8;
  padding: 64px 0 0;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: .85rem; line-height: 1.8; margin: 14px 0 20px; }
.footer-col h4 { color: white; font-weight: 700; margin-bottom: 16px; font-size: .9rem; }
.footer-col a  { display: block; font-size: .83rem; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.08); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; transition: var(--transition);
}
.social-btn:hover { background: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; flex-wrap: wrap; gap: 8px;
}

/* ─── Page Header ────────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  background: linear-gradient(135deg, #0077B6, #00B4D8);
  color: white; text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 900; margin-bottom: 8px; }
.page-hero p  { font-size: 1rem; opacity: .85; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .8rem; margin-top: 14px; opacity: .75; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }

/* ─── Offer / Project Detail ─────────────────────────────────── */
.detail-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.detail-gallery .main-img {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; margin-bottom: 12px; background: var(--bg);
}
.detail-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb {
  width: 80px; height: 60px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; transition: var(--transition);
}
.thumb.active, .thumb:hover { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { position: sticky; top: calc(var(--nav-h) + 24px); }
.detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow); }
.detail-badge { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: .72rem; font-weight: 700; color: white; margin-bottom: 12px; }
.detail-title { font-size: 1.6rem; font-weight: 900; margin-bottom: 10px; line-height: 1.3; }
.detail-cat   { font-size: .78rem; color: var(--primary); font-weight: 600; margin-bottom: 16px; }
.detail-desc  { font-size: .9rem; color: var(--text-2); line-height: 1.8; margin-bottom: 20px; }
.detail-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.detail-wa-box { background: linear-gradient(135deg, #d1fae5, #a7f3d0); border-radius: var(--radius); padding: 20px; text-align: center; }
.detail-wa-box p { font-size: .85rem; color: #065f46; margin-bottom: 12px; font-weight: 500; }

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.page-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 600; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ─── Filter tabs ────────────────────────────────────────────── */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center; }
.filter-tab {
  padding: 7px 18px; border-radius: 99px; border: 1px solid var(--border);
  font-size: .82rem; font-weight: 500; cursor: pointer; background: var(--surface);
  color: var(--text-muted); transition: var(--transition);
}
.filter-tab:hover, .filter-tab.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ─── Loading skeleton ───────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── Toast ─────────────────────────────────────────────────── */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.rtl .toast-wrap { right: auto; left: 24px; }
.toast {
  background: white; border-radius: var(--radius); padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15); font-size: .85rem;
  display: flex; align-items: center; gap: 10px; min-width: 260px;
  animation: slideUp .3s ease;
}
.toast.success { border-left: 3px solid #10b981; }
.toast.error   { border-left: 3px solid #ef4444; }
@keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.rtl .toast { border-left: none; border-right: 3px solid; }
.rtl .toast.success { border-right-color: #10b981; }
.rtl .toast.error   { border-right-color: #ef4444; }

/* ─── Utilities ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-grad { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.gap-center { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-gold    { background: #fef3c7; color: #92400e; }
.badge-green   { background: #d1fae5; color: #065f46; }
.empty-state { text-align: center; padding: 80px 24px; color: var(--text-muted); }
.empty-state .icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .detail-wrap { grid-template-columns: 1fr; }
  .detail-info { position: static; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links, .nav-actions .lang-btn, .wa-nav-btn { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; padding: 60px 20px 40px; }
  .hero-visual { display: none; }
  .hero-stats { grid-template-columns: repeat(3,1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .btn-lg { padding: 12px 24px; }
}

/* ─── Print ──────────────────────────────────────────────────── */
@media print { .navbar, footer, .btn-wa, .toast-wrap { display: none; } }

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.7;transform:scale(.95)} }
@keyframes float  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.float { animation: float 3s ease-in-out infinite; }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
