/* Dr. Alaa Abu Saleh — page styles (extracted from index.html) */

    /* THEME TOKENS -> single source of truth: assets/css/brand.css
       (Theme A default; switch a doctor to B via <body data-theme="B">) */

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 152px; overflow-x: clip; width: 100%; touch-action: pan-y pinch-zoom; }
    body { font-family: var(--font-main); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: clip; width: 100%; max-width: 100vw; position: relative; touch-action: pan-y pinch-zoom; }
    .page-wrap { overflow-x: clip; width: 100%; max-width: 100vw; }
    img { max-width: 100%; height: auto; display: block; }
    a { color: inherit; text-decoration: none; }

    /* (theme toggle + banner removed) */

    /* ── Nav ── */
    .nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      background: rgba(255,255,255,0.96);
      -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border); height: 72px;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 40px;
    }
    .nav-logo { display: flex; align-items: center; gap: 12px; }
    .nav-logo-img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
    .nav-logo-placeholder {
      width: 44px; height: 44px; background: var(--gradient-cta); border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: white; font-weight: 700; font-size: 18px;
    }
    .nav-logo-text { font-size: 18px; font-weight: 700; color: var(--brand-1); }
    .nav-logo-sub { font-size: 12px; color: var(--text-light); display: block; }
    .nav-cta {
      background: var(--gradient-cta); color: white !important;
      padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px;
    }
    @media (max-width: 768px) { .nav { padding: 0 16px; } }

    /* ── Hero ── */
    .hero {
      background: var(--gradient-hero); color: white;
      padding: 110px 20px 50px; position: relative; overflow: hidden;
    }
    .hero::before {
      content: ''; position: absolute; inset: 0;
      background: radial-gradient(circle at 70% 40%, rgba(255,255,255,0.14), transparent 60%);
    }
    .hero-inner {
      position: relative; max-width: 1100px; margin: 0 auto;
      display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
    }
    .hero-text { text-align: right; }
    .hero-badge {
      display: inline-block; background: rgba(255,255,255,0.18);
      border: 1px solid rgba(255,255,255,0.3); color: white;
      padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 500;
      margin-bottom: 14px;
      -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    }
    .hero h1 { font-size: 46px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px; line-height: 1.15; }
    .hero-sub { font-size: 18px; font-weight: 300; opacity: 0.92; margin-bottom: 24px; }
    .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }
    .btn-primary, .btn-ghost {
      padding: 14px 30px; border-radius: 10px; font-size: 15px; font-weight: 600;
      cursor: pointer; transition: all 0.3s; border: none; font-family: inherit;
      display: inline-block;
    }
    .btn-primary { background: white; color: var(--brand-1); }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
    .btn-ghost { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); }
    .btn-ghost:hover { background: rgba(255,255,255,0.1); }

    .hero-stats {
      display: flex; flex-wrap: wrap; gap: 20px 16px; margin-top: 28px; padding-top: 22px;
      border-top: 1px solid rgba(255,255,255,0.25);
      justify-content: space-between; align-items: center;
    }
    .hero-stat { text-align: center; }
    .hero-stat-num { font-size: 30px; font-weight: 800; color: white; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
    .hero-stat-label { font-size: 13px; opacity: 0.8; }

    .hero-img-placeholder {
      max-height: 420px; border-radius: 20px;
      overflow: hidden;
    }
    .hero-img-placeholder img {
      width: 100%; height: 100%; max-height: 420px; object-fit: cover; object-position: top center; border-radius: 20px;
    }

    @media (max-width: 900px) {
      .hero { padding: 100px 16px 40px; }
      /* mobile: text -> photo -> stats (stats become a proof strip under the photo) */
      .hero-inner { display: flex; flex-direction: column; gap: 20px; text-align: center; }
      .hero-text { display: contents; }
      .hero h1 { font-size: 34px; }
      .hero-sub { font-size: 15px; padding: 0 8px; }
      .hero-actions { justify-content: center; }
      .hero-stats { gap: 16px; justify-content: center; order: 2; margin-top: 4px; }
      .hero-stat-num { font-size: 24px; }
      .hero-img-placeholder { max-height: 280px; max-width: 220px; margin: 0 auto; order: 1; }
      .nav { padding: 0 12px; }
    }

    /* ── Tabs bar ── */
    .tabs-wrap {
      background: var(--card); border-bottom: 1px solid var(--border);
      position: sticky; top: 72px; z-index: 90;
      box-shadow: 0 4px 20px rgba(0,0,0,0.04);
      overflow: hidden; max-width: 100vw;
    }
    .tabs {
      max-width: 1200px; margin: 0 auto; display: flex; gap: 4px;
      overflow-x: auto; padding: 0 20px;
      scrollbar-width: none; max-width: 100%;
    }
    .tabs::-webkit-scrollbar { display: none; }
    .tab-btn {
      background: none; border: none; font-family: inherit;
      padding: 20px 24px; font-size: 15px; font-weight: 600;
      color: var(--text-light); cursor: pointer; white-space: nowrap;
      border-bottom: 3px solid transparent; transition: all 0.2s;
    }
    @media (max-width: 768px) {
      .tabs { padding: 0 8px; gap: 0; }
      .tab-btn { padding: 14px 10px; font-size: 13px; }
      .tab-btn-icon { display: none; }
    }
    .tab-btn:hover { color: var(--brand-2); }
    .tab-btn.active { color: var(--brand-1); border-bottom-color: var(--brand-3); }
    .tab-btn-icon { margin-left: 6px; }

    /* ── Tab panels ── */
    /* min-height guarantees the page is always tall enough to park the tabs bar
       just under the fixed nav on short tabs (about / testimonials / contact),
       so switchTab()'s scrollTo(target) is never clamped by the browser.
       72px = fixed nav height, 65px = tabs bar height (--tabs-bar-h). */
    .tab-panel { display: none; max-width: 1200px; margin: 0 auto; padding: 60px 20px;
      min-height: calc(100dvh - var(--nav-h) - var(--tabs-bar-h)); box-sizing: border-box; }
    .tab-panel.active { display: block; animation: fadeIn 0.35s ease; }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .panel-label {
      font-size: 13px; font-weight: 700; color: var(--brand-3);
      letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px;
    }
    .panel-title {
      font-size: 38px; font-weight: 700; color: var(--brand-1);
      margin-bottom: 14px; line-height: 1.3;
    }
    .panel-intro { font-size: 17px; color: var(--text-light); max-width: 720px; margin-bottom: 40px; }

    /* ── About panel ── */
    .about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
    @media (max-width: 768px) {
      .about-grid { grid-template-columns: 1fr; gap: 24px; }
      .tab-panel { padding: 32px 16px; }
      .panel-title { font-size: 26px; }
      .panel-intro { font-size: 15px; max-width: 100%; }
      .bio-text p { font-size: 14px; }
      .bio-quote { padding: 16px 18px; font-size: 14px; }
      .bio-card { padding: 20px; }
      .bio-card h4 { font-size: 16px; }
      .bio-card li { font-size: 14px; }
      .services-grid { grid-template-columns: 1fr; }
    }
    .bio-card {
      background: var(--card); border: 1px solid var(--border); border-radius: 18px;
      padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    }
    .bio-card h4 {
      font-size: 18px; font-weight: 700; color: var(--brand-1);
      margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--brand-light);
    }
    .bio-card ul { list-style: none; }
    .bio-card li {
      padding: 8px 0; font-size: 15px; color: var(--text-muted);
      display: flex; gap: 10px;
    }
    .bio-card li::before { content: "◆"; color: var(--brand-3); flex-shrink: 0; }
    /* ── Health-fund arrangements strip (קופות חולים בהסדר) ── */
    .insurance-strip {
      margin-top: 48px;
      padding-top: 40px;
      border-top: 1px solid var(--border);
    }
    .insurance-heading {
      font-size: 24px; font-weight: 700; color: var(--brand-1);
      margin-bottom: 8px;
    }
    .insurance-sub {
      font-size: 16px; color: var(--text-light);
      max-width: 620px; margin-bottom: 28px;
    }
    .insurance-grid {
      list-style: none; margin: 0; padding: 0;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
    }
    .insurance-tile {
      display: flex; align-items: center; justify-content: center;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      padding: 20px;
      min-height: 96px;
      transition: box-shadow 0.25s ease, transform 0.25s ease;
    }
    .insurance-tile:hover {
      box-shadow: var(--shadow-md);
      transform: translateY(-3px);
    }
    .insurance-logo {
      display: block;
      max-width: 100%; max-height: 56px;
      width: auto; height: auto;
      object-fit: contain;
    }
    @media (max-width: 980px) {
      .insurance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }
    @media (max-width: 768px) {
      .insurance-strip { margin-top: 32px; padding-top: 28px; }
      .insurance-heading { font-size: 20px; }
      .insurance-sub { font-size: 14px; margin-bottom: 20px; }
      .insurance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
      .insurance-tile { min-height: 82px; padding: 16px; }
      .insurance-logo { max-height: 46px; }
    }

    .bio-text p { color: var(--text-muted); margin-bottom: 14px; font-size: 16px; }
    .bio-quote {
      background: var(--brand-light); padding: 20px 24px; border-radius: 14px;
      border-right: 4px solid var(--brand-3); font-style: italic; color: var(--brand-1);
      margin-top: 18px; font-size: 16px;
    }

    /* ── Services panel ── */
    .services-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
    }
    .service-card {
      background: var(--card); border: 1px solid var(--border); border-radius: 14px;
      padding: 0; transition: all 0.3s; overflow: hidden;
      display: block; text-decoration: none; color: inherit; cursor: pointer;
    }
    .service-card-img {
      width: 100%; height: 200px; object-fit: cover; object-position: center top; display: block;
    }
    /* Branded placeholder (interim — replaced by real topic images later) */
    .service-ph {
      display: flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, #eaf2fb 0%, #d5e6f7 100%);
    }
    .service-ph svg { width: 54px; height: 54px; color: var(--brand-2); opacity: .7; }
    .service-card-body { padding: 20px 22px 24px; }
    .service-card:hover {
      transform: translateY(-4px); border-color: var(--brand-3);
      box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }
    .service-icon {
      width: 56px; height: 56px; background: var(--brand-light); border-radius: 14px;
      display: flex; align-items: center; justify-content: center; font-size: 28px;
      margin-bottom: 16px;
    }
    .service-card h3 { font-size: 18px; font-weight: 600; color: var(--brand-1); margin-bottom: 8px; }
    .service-card p { font-size: 14px; color: var(--text-light); margin-bottom: 12px; }
    .service-link { color: var(--brand-3); font-weight: 600; font-size: 13px; }
    .service-link::after { content: " ←"; }

    /* ── Sub-specialty (inner tabs) ── */
    .subtabs-wrap {
      background: var(--card); border-radius: 16px;
      border: 1px solid var(--border); overflow: hidden; margin-top: 10px;
    }
    .subtabs {
      display: flex; gap: 0; border-bottom: 1px solid var(--border); overflow-x: auto;
      scrollbar-width: none;
    }
    .subtabs::-webkit-scrollbar { display: none; }
    .subtab-btn {
      background: none; border: none; font-family: inherit;
      padding: 18px 24px; font-size: 14px; font-weight: 600;
      color: var(--text-light); cursor: pointer; white-space: nowrap;
      transition: all 0.2s; flex-shrink: 0;
    }
    .subtab-btn:hover { background: var(--brand-light); color: var(--brand-2); }
    .subtab-btn.active { background: var(--brand-light); color: var(--brand-1); }
    .subtab-panel { display: none; padding: 36px; }
    .subtab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; animation: fadeIn 0.3s ease; }
    .subtab-panel h4 { font-size: 24px; font-weight: 700; color: var(--brand-1); margin-bottom: 14px; }
    .subtab-panel p { color: var(--text-muted); margin-bottom: 14px; font-size: 15px; }
    .subtab-panel .info-box {
      background: var(--bg); border-radius: 12px; padding: 20px;
      border-right: 3px solid var(--brand-3);
    }
    .subtab-panel .info-box h5 {
      font-size: 14px; color: var(--brand-1); margin-bottom: 10px; font-weight: 700;
    }
    .subtab-panel .info-box ul { padding: 0; list-style: none; }
    .subtab-panel .info-box li {
      padding: 4px 0; font-size: 14px; color: var(--text-muted);
      display: flex; gap: 8px;
    }
    .subtab-panel .info-box li::before { content: "✓"; color: var(--success); font-weight: 700; }
    @media (max-width: 768px) {
      .subtab-panel.active { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
    }

    /* ── Testimonials panel ── */
    .testimonials-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px;
    }
    .testimonial {
      background: var(--card); border-radius: 14px; padding: 28px;
      border: 1px solid var(--border); position: relative;
    }
    .testimonial::before {
      content: "״"; position: absolute; top: 10px; right: 20px;
      font-size: 80px; color: var(--brand-light); line-height: 1;
      font-family: Georgia, serif;
    }
    .testimonial-rating { color: #fbbf24; font-size: 16px; margin-bottom: 10px; position: relative; }
    .testimonial-text {
      position: relative; font-size: 15px; color: var(--text-muted);
      margin-bottom: 18px; line-height: 1.7;
    }
    .testimonial-author { display: flex; align-items: center; gap: 12px; }
    .author-avatar {
      width: 44px; height: 44px; background: var(--gradient-cta); border-radius: 50%;
      color: white; display: flex; align-items: center; justify-content: center;
      font-weight: 700; font-size: 16px;
    }
    .author-name { font-weight: 600; color: var(--brand-1); font-size: 14px; }
    .author-meta { color: var(--text-light); font-size: 12px; }

    /* ── Contact panel ── */
    .contact-wrap {
      background: var(--card); border-radius: 20px; padding: 40px;
      display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px;
      align-items: center; /* vertically center the short booking card next to the tall clinic list */
      border: 1px solid var(--border);
    }
    /* Booking column — centered card so the desktop layout reads balanced (no empty gap) */
    .contact-booking { align-self: center; }
    .booking-card {
      background: var(--brand-light); border: 1px solid var(--border);
      border-radius: var(--radius-lg); padding: 32px 28px; text-align: center;
    }
    .booking-card h3 { font-size: 20px; color: var(--brand-1); margin-bottom: 6px; }
    .booking-card > p { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; }
    .booking-btn {
      display: block; padding: 15px; border-radius: var(--radius-sm);
      font-weight: 700; font-size: 16px; text-decoration: none; color: #fff;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .booking-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
    .booking-btn--call { background: var(--gradient-cta); margin-bottom: 12px; }
    .booking-btn--wa { background: #25D366; }
    .booking-btn--email { background: var(--brand-2); margin-top: 12px; }
    .booking-hours {
      font-size: 12px; color: var(--text-light); margin-top: 18px;
      padding-top: 16px; border-top: 1px solid var(--border);
    }
    .contact-info h3 { font-size: 22px; font-weight: 700; color: var(--brand-1); margin-bottom: 20px; }
    .contact-item {
      display: flex; gap: 14px; align-items: flex-start;
      padding: 14px 0; border-bottom: 1px solid var(--border);
    }
    .contact-item:last-child { border-bottom: none; }
    .contact-icon {
      width: 40px; height: 40px; background: var(--brand-light); border-radius: 10px;
      display: flex; align-items: center; justify-content: center; font-size: 18px;
      flex-shrink: 0;
    }
    .contact-icon svg { width: 20px; height: 20px; }
    .contact-icon img { width: 26px; height: 26px; object-fit: contain; }
    .contact-label { font-size: 12px; color: var(--text-light); margin-bottom: 2px; }
    .contact-value { font-size: 15px; font-weight: 500; color: var(--text); }
    .contact-form label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; margin-top: 14px; }
    .contact-form input, .contact-form select, .contact-form textarea {
      width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
      font-family: inherit; font-size: 15px; transition: border 0.2s; background: var(--bg);
    }
    .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand-3); }
    .contact-form textarea { resize: vertical; min-height: 100px; }
    .contact-form button {
      margin-top: 20px; width: 100%; background: var(--gradient-cta); color: white;
      border: none; padding: 14px; border-radius: 10px;
      font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit;
      transition: all 0.3s;
    }
    .contact-form button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
    @media (max-width: 768px) {
      .contact-wrap { grid-template-columns: 1fr; padding: 24px; gap: 24px; align-items: stretch; }
    }

    /* ── WhatsApp float ── */
    .whatsapp-float {
      position: fixed; bottom: 20px; left: 20px; width: 48px; height: 48px;
      background: #25D366; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 6px 24px rgba(37,211,102,0.5); z-index: 1000;
      transition: transform 0.2s;
    }
    .whatsapp-float:hover { transform: scale(1.1); }
    .whatsapp-float svg { width: 24px; height: 24px; fill: white; }

    /* ── Publications panel ── */
    .pub-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
    .pub-section-title {
      font-size: 18px; font-weight: 700; color: var(--brand-1);
      margin-bottom: 16px; padding-bottom: 10px;
      border-bottom: 2px solid var(--brand-light);
    }
    .pub-item {
      padding: 14px 0; border-bottom: 1px solid var(--border);
    }
    .pub-item:last-of-type { border-bottom: none; }
    .pub-title {
      font-size: 15px; font-weight: 600; color: var(--text);
      margin-bottom: 4px; line-height: 1.5;
    }
    .pub-meta { font-size: 13px; color: var(--text-light); font-style: italic; }
    @media (max-width: 768px) { .pub-grid { grid-template-columns: 1fr; gap: 24px; } }

    /* ── Consent, success, disclaimer ── */
    .consent {
      display: flex; gap: 10px; align-items: flex-start;
      margin-top: 18px; font-size: 13px; color: var(--text-muted);
      cursor: pointer;
    }
    .consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand-3); flex-shrink: 0; }
    .consent a { color: var(--brand-2); text-decoration: underline; }
    .form-success {
      margin-top: 14px; padding: 14px 18px; border-radius: 10px;
      background: #d1fae5; color: #065f46; font-size: 14px; font-weight: 600;
      border: 1px solid #6ee7b7;
    }
    .medical-disclaimer {
      max-width: 820px; margin: 30px auto 0; padding: 14px 18px;
      font-size: 13px; color: var(--text-light); text-align: center;
      background: var(--bg); border-radius: 10px; border: 1px dashed var(--border);
    }

    /* ── Footer ── */
    .footer {
      background: var(--brand-1); color: rgba(255,255,255,0.85);
      padding: 40px 20px 24px; margin-top: 40px; font-size: 14px;
    }
    .footer-grid {
      max-width: 1200px; margin: 0 auto;
      display: grid; grid-template-columns: 1.7fr 1fr 1.3fr; gap: 40px;
      padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    .footer-col h4 { font-size: 14px; color: white; margin-bottom: 12px; font-weight: 600; }
    .footer-col a { display: block; padding: 4px 0; font-size: 13px; opacity: 0.8; }
    .footer-col a:hover { opacity: 1; color: white; }
    .footer-about p { font-size: 13px; opacity: 0.8; line-height: 1.6; }
    .footer-license { font-size: 12px; opacity: 0.7; margin-top: 10px; }
    .footer-bottom {
      max-width: 1200px; margin: 20px auto 0;
      text-align: center; font-size: 12px; opacity: 0.75;
    }
    .footer a { color: white; }
    @media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }

    /* ── Scroll Animations ── */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-stagger > .reveal {
      transition-delay: calc(var(--i, 0) * 0.1s);
    }

    /* ── WhatsApp Pulse ── */
    @keyframes wa-pulse {
      0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
      70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
      100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
    }
    .whatsapp-float { animation: wa-pulse 2s ease-in-out infinite; }

    /* ── Built by watermark ── */
    .built-by {
      text-align: center;
      padding: 12px;
      font-size: 12px;
      color: rgba(255,255,255,0.5);
      border-top: 1px solid rgba(255,255,255,0.1);
    }
    .built-by a {
      color: rgba(255,255,255,0.7);
      text-decoration: none;
      font-weight: 600;
    }
    .built-by a:hover { color: white; }


/* --- contact map/reviews responsive --- */
      @media (max-width: 768px) {
        div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
      }
