/* ===========================================================================
 * Jazeel — styles for contact.php
 * نُقلت من كتلة <style> المضمّنة داخل contact.php إلى ملف خارجي ليستفيد من كاش
 * المتصفح (.htaccess يمنح CSS شهرًا). الرابط يحمل ?v=filemtime فيتغيّر تلقائيًا
 * مع أي تعديل هنا، فلا تُعرض نسخة قديمة أبدًا.
 * المسارات داخل url() جذرية (/...) لأن الملف الخارجي يحلّها من مجلده لا من الصفحة.
 * =========================================================================== */

:root{
      --jz-brown:#7a4a29;
      --jz-brown-deep:#5f3a20;
      --jz-gold:#c19a5b;
      --jz-bg:#f6f1ea;
      --jz-cream:#fbf8f4;
      --jz-text:#2a1c12;
      --jz-muted:#8a7869;
      --jz-border:#ece1d6;
      --jz-card:#ffffff;

      --jz-shadow:0 12px 44px rgba(60,40,20,.07);
      --jz-shadow-sm:0 4px 18px rgba(60,40,20,.05);

      --radius:20px;
      --radius-sm:14px;
      --touch:46px;
      --ring:0 0 0 4px rgba(122,74,41,.12);

      --pad: clamp(16px, 2.4vw, 26px);
      --gap: clamp(14px, 2.2vw, 22px);
    }

    *{box-sizing:border-box}
    html, body{ max-width:100%; overflow-x:hidden; }

    body{
      margin:0;
      font-family:"Tajawal", sans-serif;
      background:var(--jz-bg);
      color:var(--jz-text);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    .page{ padding: 8px 0 96px; }

    .container{
      width:min(100% - 32px, 1160px);
      margin-inline:auto;
    }

    @media (max-width: 520px){ .container{ width:min(100% - 22px, 1160px); } }
    @media (max-width: 360px){ .container{ width:min(100% - 16px, 1160px); } }

    a{color:inherit; text-decoration:none}

    .eyebrow{
      display:inline-flex;
      align-items:center;
      gap:8px;
      font-size:.82rem;
      font-weight:800;
      letter-spacing:.4px;
      color:var(--jz-brown);
      background:rgba(122,74,41,.07);
      border:1px solid rgba(122,74,41,.14);
      padding:6px 14px;
      border-radius:999px;
    }

    .eyebrow i{ color:var(--jz-gold); font-size:.85rem; }

    /* ===== Hero ===== */
    .hero{ padding:26px 0 8px; }

    .hero .wrap{
      display:grid;
      grid-template-columns:1.05fr .95fr;
      gap:var(--gap);
      align-items:stretch;
    }

    @media (max-width: 900px){
      .hero .wrap{ grid-template-columns:1fr; }
    }

    .hero-copy{
      background:linear-gradient(160deg,#ffffff 0%, var(--jz-cream) 100%);
      border:1px solid var(--jz-border);
      border-radius:var(--radius);
      padding:clamp(20px, 3vw, 34px);
      box-shadow:var(--jz-shadow);
      min-width:0;
      display:flex;
      flex-direction:column;
    }

    .hero-copy h1{
      margin:16px 0 12px;
      font-size:clamp(1.4rem, 4.6vw, 2.35rem);
      font-weight:800;
      line-height:1.25;
      letter-spacing:.2px;
    }

    .hero-copy p{
      margin:0;
      color:var(--jz-muted);
      line-height:2;
      font-weight:500;
      font-size:clamp(.96rem, 3.2vw, 1.02rem);
      white-space: pre-line;
    }

    .hero-chips{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:12px;
      margin-top:auto;
      padding-top:22px;
    }

    @media (max-width: 480px){ .hero-chips{ grid-template-columns:1fr; } }

    .chip{
      display:flex;
      align-items:center;
      gap:12px;
      padding:12px 14px;
      border-radius:var(--radius-sm);
      border:1px solid var(--jz-border);
      background:#fff;
      transition:.18s ease;
      min-height:var(--touch);
      min-width:0;
    }

    .chip:hover{
      border-color:rgba(122,74,41,.28);
      box-shadow:var(--jz-shadow-sm);
      transform:translateY(-2px);
    }

    .chip i{
      width:40px; height:40px;
      border-radius:12px;
      display:grid; place-items:center;
      background:rgba(122,74,41,.08);
      color:var(--jz-brown);
      font-size:17px;
      flex:0 0 auto;
    }

    .chip .fa-whatsapp{ color:#25D366; background:rgba(37,211,102,.12); }

    .chip-txt{ min-width:0; }
    .chip-txt strong{ display:block; font-weight:800; font-size:.95rem; line-height:1.2; }
    .chip-txt span{
      display:block;
      color:var(--jz-muted);
      font-weight:600;
      font-size:.9rem;
      margin-top:2px;
      overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
      direction:ltr;
      text-align:start;
    }

    .hero-media{
      position:relative;
      border-radius:var(--radius);
      overflow:hidden;
      border:1px solid var(--jz-border);
      box-shadow:var(--jz-shadow);
      min-height:300px;
      background:#fff;
    }

    @media (max-width: 900px){ .hero-media{ min-height:220px; } }
    @media (max-width: 360px){ .hero-media{ min-height:180px; } }

    .hero-media img{
      width:100%; height:100%;
      object-fit:cover;
      display:block;
    }

    .hero-media::after{
      content:"";
      position:absolute; inset:0;
      background:linear-gradient(180deg, rgba(42,28,18,.05), rgba(42,28,18,.28));
      pointer-events:none;
    }

    /* ===== Content layout ===== */
    .contact-layout{
      display:grid;
      grid-template-columns:1.05fr .95fr;
      gap:var(--gap);
      align-items:start;
      margin-top:22px;
    }

    @media (max-width: 980px){
      .contact-layout{ grid-template-columns:1fr; }
      aside.info-grid{ order:2; }
    }

    .card{
      background:var(--jz-card);
      border:1px solid var(--jz-border);
      border-radius:var(--radius);
      box-shadow:var(--jz-shadow);
      padding:var(--pad);
      min-width:0;
    }

    .card-head{ margin-bottom:18px; }

    .card-head h2{
      margin:10px 0 6px;
      font-size:1.25rem;
      font-weight:800;
      line-height:1.3;
    }

    .card-head p{
      margin:0;
      color:var(--jz-muted);
      font-weight:600;
      font-size:.94rem;
      line-height:1.7;
    }

    /* ===== Form ===== */
    .field{ margin:14px 0; }
    .field-row{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:14px;
    }
    @media (max-width: 520px){ .field-row{ grid-template-columns:1fr; gap:0; } }

    label{
      display:block;
      font-weight:700;
      margin-bottom:8px;
      color:#4b3b2f;
      font-size:.95rem;
    }

    input, select, textarea{
      width:100%;
      padding:13px 14px;
      border-radius:var(--radius-sm);
      border:1px solid #e6d9cc;
      background:var(--jz-cream);
      color:var(--jz-text);
      font-family:"Tajawal", sans-serif;
      font-weight:600;
      font-size:.97rem;
      outline:none;
      min-height:var(--touch);
      min-width:0;
      transition:.16s ease;
    }

    input::placeholder, textarea::placeholder{ color:#b6a493; font-weight:500; }

    textarea{ resize:vertical; min-height:130px; }

    input:focus, select:focus, textarea:focus{
      border-color:rgba(122,74,41,.55);
      background:#fff;
      box-shadow:var(--ring);
    }

    :focus{ outline:none; }
    :focus-visible{ box-shadow:var(--ring); }

    .btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:10px;
      border:0;
      border-radius:var(--radius-sm);
      padding:13px 18px;
      cursor:pointer;
      font-family:"Tajawal", sans-serif;
      font-weight:800;
      font-size:.98rem;
      transition:.16s ease;
      text-decoration:none !important;
      user-select:none;
      -webkit-tap-highlight-color: transparent;
      min-height:var(--touch);
    }

    .btn-primary{
      width:100%;
      margin-top:6px;
      background:linear-gradient(135deg, var(--jz-brown), var(--jz-brown-deep));
      color:#fff;
      box-shadow:0 10px 26px rgba(122,74,41,.24);
    }

    .btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 32px rgba(122,74,41,.3); }
    .btn-primary:disabled{ opacity:.75; cursor:not-allowed; transform:none; }

    .btn-soft{
      background:rgba(122,74,41,.08);
      color:var(--jz-brown);
      border:1px solid rgba(122,74,41,.18);
    }
    .btn-soft:hover{ background:rgba(122,74,41,.13); }

    .form-status{
      margin-top:14px;
      font-weight:700;
      color:var(--jz-muted);
      line-height:1.7;
      font-size:.95rem;
      min-height:1.2em;
    }

    .hint{
      font-size:.9rem;
      color:var(--jz-muted);
      font-weight:600;
      line-height:1.7;
      margin-top:12px;
    }

    .hint i{ color:var(--jz-gold); margin-inline-end:4px; }

    /* ===== Branches ===== */
    .info-grid{ display:grid; gap:var(--gap); }

    .branches{ display:grid; gap:10px; }

    .branch{
      border:1px solid var(--jz-border);
      border-radius:var(--radius-sm);
      padding:12px 14px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      background:#fff;
      min-width:0;
      transition:.16s ease;
      position:relative;
    }

    .branch:hover{
      border-color:rgba(122,74,41,.26);
      box-shadow:var(--jz-shadow-sm);
    }

    .branch:has(.js-preview.active){
      border-color:rgba(122,74,41,.4);
      background:linear-gradient(135deg,#fff, var(--jz-cream));
    }

    .branch:has(.js-preview.active)::before{
      content:"";
      position:absolute;
      inset-inline-start:0;
      top:14px; bottom:14px;
      width:3px;
      border-radius:3px;
      background:var(--jz-gold);
    }

    .branch-name{
      display:flex;
      align-items:center;
      gap:11px;
      font-weight:800;
      font-size:1rem;
      min-width:0;
    }

    .branch-name > i{
      color:var(--jz-brown);
      background:rgba(122,74,41,.08);
      width:36px; height:36px;
      border-radius:10px;
      display:grid; place-items:center;
      font-size:15px;
      flex:0 0 auto;
    }

    .branch-name span{
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap;
    }

    .branch-actions{
      display:flex;
      align-items:center;
      gap:6px;
      flex-wrap:wrap;
      justify-content:flex-end;
    }

    @media (max-width: 400px){
      .branch{ flex-direction:column; align-items:stretch; gap:12px; }
      .branch-name span{ white-space:normal; }
      .branch-actions{ justify-content:flex-start; }
    }

    .icon-btn{
      width:42px;
      height:42px;
      border-radius:11px;
      border:1px solid var(--jz-border);
      background:#fff;
      display:grid;
      place-items:center;
      cursor:pointer;
      transition:.16s ease;
      color:var(--jz-brown);
      flex:0 0 auto;
      font-size:15px;
    }

    .icon-btn:hover{ background:rgba(122,74,41,.08); border-color:rgba(122,74,41,.24); transform:translateY(-1px); }
    .icon-btn.active{ background:var(--jz-brown); border-color:var(--jz-brown); color:#fff; }

    .sr-only{
      position:absolute !important;
      width:1px; height:1px;
      padding:0; margin:-1px;
      overflow:hidden; clip:rect(0,0,0,0);
      white-space:nowrap; border:0;
    }

    /* ===== Map ===== */
    .map-card{ padding:0; overflow:hidden; }

    .map-frame{
      width:100%;
      height:340px;
      border:0;
      display:block;
    }

    .map-footer{
      display:flex;
      gap:12px;
      align-items:center;
      justify-content:space-between;
      padding:14px 16px;
      border-top:1px solid var(--jz-border);
      background:var(--jz-cream);
      flex-wrap:wrap;
    }

    .map-footer .map-label{
      display:flex;
      align-items:center;
      gap:8px;
      color:var(--jz-text);
      font-weight:800;
      font-size:.96rem;
    }

    .map-footer .map-label i{ color:var(--jz-brown); }

    @media (max-width: 520px){
      .map-frame{ height:280px; }
      .map-footer .btn{ width:100%; justify-content:center; }
    }

    /* ===== Floating WhatsApp ===== */
    .wa-float{
      position:fixed;
      left:16px;
      bottom:16px;
      width:56px;
      height:56px;
      border-radius:999px;
      background:#25D366;
      color:#fff;
      display:grid;
      place-items:center;
      box-shadow:0 16px 40px rgba(0,0,0,.22);
      z-index:9999;
      text-decoration:none !important;
      transition:.16s ease;
    }

    html[dir="ltr"] .wa-float{ right:16px; left:auto; }
    .wa-float:hover{ transform:translateY(-3px) scale(1.03); }

    /* ===== LTR tweaks ===== */
    html[dir="ltr"] .hero-copy,
    html[dir="ltr"] .card-head,
    html[dir="ltr"] .hint,
    html[dir="ltr"] .form-status { text-align:left; }

    html[dir="ltr"] .branch-actions{ justify-content:flex-end; }

    @media (prefers-reduced-motion: reduce){
      *{ transition:none !important; scroll-behavior:auto !important; }
      .chip:hover,.icon-btn:hover,.btn-primary:hover,.wa-float:hover,.branch:hover{ transform:none !important; }
    }
