/* =========================================================
   Zirve Digital Dental Lab — design tokens
   A bright, tech-forward palette built from the brand mark:
   sky-blue surfaces, deep navy ink, and a cyan accent for
   calls to action. Clean geometric type stands in for the
   old warm serif, matching the logo's digital/circuit motif.
   ========================================================= */

:root {
  --bg: #f2fafd;
  --surface: #ffffff;
  --surface-tint: #e6f5fb;
  --primary: #14a0d8;
  --primary-dark: #0a3f57;
  --mint: #bfe9f7;
  --mint-soft: #e6f5fb;
  --accent: #22c2e0;
  --accent-dark: #0f8fbe;
  --text: #0d2e3d;
  --text-muted: #5a7c8a;
  --border: #d7ecf5;

  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-arabic: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px -25px rgba(10, 63, 87, 0.35);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

body.script-arabic {
  font-family: var(--font-arabic);
}
body.script-arabic h1, body.script-arabic h2, body.script-arabic h3, body.script-arabic h4 {
  font-family: var(--font-arabic);
  font-weight: 600;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--primary-dark);
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
  border-radius: 2px;
}

.hero-wordmark { align-items: flex-start; }
.hero-wordmark-lines { display: flex; flex-direction: column; line-height: 1.15; }
.hero-wordmark-primary {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--primary-dark);
}
.hero-wordmark-secondary {
  margin-top: 3px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.hero.has-bg-image .hero-wordmark-primary,
.hero.has-bg-image .hero-wordmark-secondary { color: #fff; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(217, 99, 63, .65);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-light {
  background: #fff;
  color: var(--primary-dark);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 247, 246, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--primary-dark);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  border: none;
  background: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-switch button:hover { color: var(--primary-dark); }
.lang-switch button.active { background: var(--primary); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 40px;
  background-repeat: no-repeat;
  transition: background-image .3s ease;
}

/* applied automatically when a Home background image is set in the admin panel */
.hero.has-bg-image #hero-eyebrow,
.hero.has-bg-image #hero-title,
.hero.has-bg-image .hero-sub,
.hero.has-bg-image .hero-trustline,
.hero.has-bg-image .hero-trustline span {
  color: #fff;
}
.hero.has-bg-image #hero-eyebrow::before { background: #fff; }
.hero.has-bg-image .btn-outline {
  border-color: #fff;
  color: #fff;
}
.hero.has-bg-image .btn-outline:hover {
  background: #fff;
  color: var(--primary-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 720px;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin-bottom: .4em;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 1.8em;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-trustline {
  display: flex;
  gap: 22px;
  color: var(--text-muted);
  font-size: .9rem;
  flex-wrap: wrap;
}
.hero-trustline span { font-weight: 600; color: var(--primary-dark); }

.smile-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: 30px;
}

/* ---------- section shell ---------- */

section { padding: 92px 0; }
section .section-head { max-width: 640px; margin-bottom: 48px; }
section .section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-alt { background: var(--surface-tint); }

/* ---------- services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }

.service-media {
  aspect-ratio: 16/11;
  background: var(--mint-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.service-media img { width: 100%; height: 100%; object-fit: cover; }

.service-body { padding: 22px 22px 26px; }
.service-body h3 { font-size: 1.15rem; margin-bottom: .35em; }
.service-body p { color: var(--text-muted); font-size: .95rem; margin-bottom: .6em; }
.service-price { font-weight: 600; color: var(--accent-dark); font-size: .9rem; }

/* ---------- homepage services — alternating rows ---------- */

.hidden { display: none !important; }

.services-alt-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 56px;
}
.service-row.reverse { flex-direction: row-reverse; }

.service-row-media {
  flex: 1 1 46%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mint-soft);
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
}
.service-row-media img { width: 100%; height: 100%; object-fit: cover; }

.service-row-body { flex: 1 1 54%; }
.service-row-body .eyebrow { margin-bottom: 10px; }
.service-row-body h3 { font-size: 1.6rem; margin-bottom: .5em; }
.service-row-body p { color: var(--text-muted); font-size: 1rem; margin-bottom: .8em; }
.service-row-price { font-weight: 600; color: var(--accent-dark); font-size: .95rem; }

.services-more-wrap { text-align: center; margin-top: 52px; }

@media (max-width: 800px) {
  .service-row, .service-row.reverse { flex-direction: column; }
  .service-row-media { width: 100%; }
}

/* ---------- all-services page (category sections) ---------- */

.category-section { margin-bottom: 56px; }
.category-section:last-child { margin-bottom: 0; }
.category-heading {
  font-size: 1.35rem;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 26px;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--primary);
  box-shadow: var(--shadow-soft);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }

.highlight-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.highlight-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.highlight-item .h-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-dark);
  margin-bottom: 4px;
}
.highlight-item .h-text { font-size: .85rem; color: var(--text-muted); }

/* ---------- brand logos strip (About section, optional) ---------- */

.brand-logos-strip { margin-top: 56px; text-align: center; }
.brand-logos-label {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.brand-logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.brand-logo-item {
  display: flex;
  align-items: center;
  transition: transform .2s ease;
}
.brand-logo-item:hover { transform: translateY(-3px); }
.brand-logo-item img { height: 72px; width: auto; max-width: 220px; object-fit: contain; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--primary-dark);
}
.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-dark);
  font-size: 1rem;
  transition: transform .2s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  color: var(--text-muted);
  font-size: .96rem;
}
.faq-answer-inner { padding-bottom: 22px; max-width: 68ch; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ---------- contact + location (merged) ---------- */

.contact-location-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.contact-info-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 18px; }
.contact-info-list li {
  display: flex; gap: 14px; align-items: flex-start;
}
.contact-info-list .ci-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--mint-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.contact-info-list .ci-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.contact-info-list .ci-value { font-weight: 600; white-space: pre-line; }

.contact-location-map { display: grid; gap: 16px; }
.location-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 340px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.location-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.location-note-text { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* ---------- social links ---------- */

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.social-links a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.social-links a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.social-links svg { width: 20px; height: 20px; }

/* ---------- testimonials / partners — notebook page-flip slider ---------- */

.testimonial-slider {
  position: relative;
  max-width: 1140px;
  min-height: 420px;
  margin: 0 auto;
  perspective: 2400px;
  touch-action: pan-y;
  cursor: pointer;
  user-select: none;
}

/* extra pages peeking out behind the top page, for a "stack of paper" feel */
.testimonial-slider::before,
.testimonial-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  z-index: 0;
}
.testimonial-slider::before { transform: rotate(-1.6deg) translateY(6px); }
.testimonial-slider::after { transform: rotate(1.8deg) translateY(10px); opacity: .7; }

.testimonial-page {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-style: preserve-3d;
  transform-origin: left center;
  backface-visibility: hidden;
  transition: transform .9s cubic-bezier(.55, .06, .3, .98);
  will-change: transform;
}

.testimonial-page-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 56px;
  background: var(--surface);
  border-radius: 8px var(--radius-lg) var(--radius-lg) 8px;
  box-shadow: var(--shadow-soft);
  padding: 48px 52px 48px 64px;
  overflow: hidden;
}
/* spiral-notebook binding holes along the left edge */
.testimonial-page-inner::before {
  content: "";
  position: absolute;
  left: 18px; top: 26px; bottom: 26px; width: 14px;
  background-image: radial-gradient(circle, var(--bg) 4.5px, transparent 5px);
  background-size: 100% 36px;
  background-repeat: repeat-y;
  background-position: center top;
  box-shadow: inset 0 0 0 1px rgba(10, 63, 87, .05);
}

.testimonial-nav-btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.testimonial-nav-btn:hover { background: var(--accent); color: #fff; transform: translateY(-50%) scale(1.06); }
.testimonial-nav-btn.prev { left: -14px; }
.testimonial-nav-btn.next { right: -14px; }
.testimonial-nav-btn svg { width: 20px; height: 20px; }

.testimonial-photo, .testimonial-photo-fallback {
  width: 340px;
  height: 280px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}
.testimonial-photo { object-fit: cover; background: var(--mint-soft); }
.testimonial-photo-fallback {
  background: var(--mint-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-text-wrap {
  position: relative;
  max-width: 520px;
}
.testimonial-watermark {
  position: absolute;
  inset: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .07;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.testimonial-watermark img { width: 320px; height: 320px; object-fit: contain; }

.testimonial-quote {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 1.32rem;
  line-height: 1.5;
  margin-bottom: 24px;
}
.testimonial-quote::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--accent);
  line-height: 0;
  display: block;
  margin-bottom: 14px;
}
.testimonial-person {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.testimonial-name { font-weight: 600; color: var(--primary-dark); font-size: 1.05rem; }

@media (max-width: 900px) {
  .testimonial-photo, .testimonial-photo-fallback { width: 220px; height: 184px; }
  .testimonial-page-inner { gap: 32px; padding: 36px 32px 36px 50px; }
  .testimonial-quote { font-size: 1.1rem; }
}

@media (max-width: 720px) {
  .testimonial-slider { min-height: 560px; }
  .testimonial-page-inner { flex-direction: column; text-align: center; padding: 36px 28px 32px; }
  .testimonial-page-inner::before { display: none; }
  .testimonial-text-wrap { max-width: 100%; }
  .testimonial-person { justify-content: center; }
  .testimonial-nav-btn.prev { left: 4px; }
  .testimonial-nav-btn.next { right: 4px; }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--primary-dark);
  color: #dcf0f8;
  padding: 52px 0 26px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.footer-tag { color: #9cc9de; max-width: 34ch; font-size: .92rem; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: #bfe0ee; text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .82rem; color: #8fb4c9;
}
.footer-bottom a { color: #8fb4c9; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-location-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; aspect-ratio: 16/10; }
  .highlight-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  section { padding: 64px 0; }
  .highlight-list { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
}
