:root{
    --maxw: 960px;
    --radius: 14px;
    --gap: 16px;
  }
  
  *{ box-sizing: border-box; }
  html,body{ margin:0; padding:0; }
  body{
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    line-height: 1.6;
    color: #111;
    background: #fff;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  
  body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    background: url('images/general/background.jpg') no-repeat center center fixed;
    background-size: cover;  /* scales image to fill any screen */
    font-family: sans-serif;
    color: rgb(40, 36, 36); /* adjust text color so it’s readable */
  }
  
  .hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* makes it mobile friendly */
    gap: 1.5rem;
  }
  
  .hero-text {
    flex: 1 1 300px;
  }
  
  .hero-map {
    flex: 0 0 250px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    background: #fff;
  }
  
  .hero-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }
  
  /* On small screens, map goes under text */
  @media (max-width: 768px) {
    .hero-flex {
      flex-direction: column;
      text-align: center;
    }
    .hero-map {
      width: 100%;
      max-width: 350px;
      height: 200px;
    }
  }
  
  
  .wrap{ 
    max-width: var(--maxw); margin: 0 auto; padding: 20px; 
  }
  .header{
     padding-top: 8px; padding-bottom: 0; 
    }
  .topbar{
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    padding: 8px 0;
  }
  .brand{
     font-weight:700; font-size: clamp(18px, 2.8vw, 24px); 
    }
  .lang a{
     text-decoration:none; padding:8px 10px; border-radius:10px; 
    }
  .lang a:focus-visible{ outline: 2px solid #000; outline-offset: 2px; }
  
  .hero{ padding: 16px 0 8px; }
  .hero h1{ font-size: clamp(22px, 5.5vw, 36px); margin: 0 0 6px; }
  .sub{ opacity:.85; margin: 0 0 14px; font-size: clamp(14px, 3.6vw, 18px); }
  
  .cta-row{ display:flex; gap: 10px; flex-wrap: wrap; }
  .btn{
    display:inline-flex; align-items:center; justify-content:center;
    min-height: 48px; padding: 0 18px; border-radius: var(--radius);
    text-decoration:none; font-weight:600; border: 1px solid #ddd;
  }
  .btn.primary{ background:#111; color:#fff; border-color:#111; }
  .btn.ghost{
     background:#fff; color:#111; 
    }
  .btn:active{ transform: translateY(1px); }
  
  .section{ padding: 16px 0; }
  .section h2{ font-size: clamp(18px, 4.2vw, 28px); margin: 0 0 12px; }
  
  .cards{
    display:grid; gap: var(--gap);
    grid-template-columns: 1fr 1fr;
    font-size: 16px;
  }
  .card{
    padding: 14px; border: 1px solid #eee; border-radius: var(--radius);
    background:#f5f0f0; font-size: clamp(16px, 3.6vw, 18px);
  }
  
  .gallery{
    display:grid; gap: var(--gap);
    grid-template-columns: 1fr 1fr;
  }
  .gallery img{
    width: 100%; height: auto; display:block; border-radius: var(--radius);
    background: #f0f0f0; /* nice placeholder while loading */
  }
  
  .testi{
    display:grid; gap: var(--gap);
  }
  blockquote{
    margin:0; padding: 14px; border-left: 4px solid #111; background:#fafafa; border-radius: var(--radius);
  }
  
  .contact .link{ color:#0a66c2; text-decoration: none; }
  .contact .link:focus-visible{ outline:2px solid #0a66c2; outline-offset:2px; }
  
  .footer{ padding: 24px 20px 48px; color:#555; font-size: 14px; }
  
  /* Sticky floating action button (bottom-right on LTR, left on RTL) */
  .fab{
    position: fixed; right: 16px; bottom: 16px; z-index: 10;
    display: inline-flex; align-items:center; justify-content:center;
    min-width: 56px; min-height: 56px; padding: 0 18px;
    border-radius: 999px; background:#25D366; color: #fff; text-decoration:none;
    font-weight:700; box-shadow: 0 8px 20px rgba(0,0,0,.15);
  }
  [dir="rtl"] .fab{ right: auto; left: 16px; }

  .btn-call {
    display:inline-block;
    padding:12px 18px;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
    border:1px solid #e5e7eb;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
  }
  .btn-call:active { transform: translateY(1px); }
  
  
  /* Progressive enhancements on wider screens */
  @media (min-width: 680px){
    .cards{ grid-template-columns: repeat(4, 1fr); }
    .gallery{ grid-template-columns: repeat(3, 1fr); }
  }
  @media (min-width: 980px){
    .hero{ padding-top: 24px; }
  }

  button.btn {
    font-size: 1rem;       /* same as <a> */
    font-family: inherit;  /* use the same font */
    line-height: 1.6;      /* consistent line height */
    cursor: pointer;       /* clickable pointer */
    background: #fff;      /* match your ghost style */
    border: 1px solid #ddd;
  }
  
  .btn {
    background-color: #f0f0f0; /* light gray as default */
    color: #464141;
    transition: backgroud-color 0.2s ease, transform 0.05s ease;
  }
  .btn:hover{
    background-color:#ccc;
  }
  .btn:active{
    background-color: #999;
    transform: translateY(1px);
  }
  .contact-item {
    display: inline-block;
    margin: 3 3 12px ;
      /* spacing between items */
    text-align: center;    /* center everything inside */
  }
  
  .contact-item a {
    font-size: 1.5rem;     /* bigger icons/text */
    color: #25D366;        /* WhatsApp green by default */
    text-decoration: none; /* remove underline */
  }
  
  .btn-call {
    display: inline-block;
    background: #007bff;   /* blue button */
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
  }
  
  /* Floating contact buttons (WhatsApp + Call) */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;          /* default for English */
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 9999;
}

[dir="rtl"] .floating-buttons {
  right: auto;
  left: 20px;           /* switch to left for Arabic */
}

.floating-buttons a img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.floating-buttons a img:hover {
  transform: scale(1.1);
}

/* Smaller on mobile */
@media (max-width: 600px) {
  .floating-buttons a img {
    width: 45px;
    height: 45px;
    padding: 4px;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}
.hero.small { padding: 24px 0; }
/* --- Lightbox --- */
#lightbox { 
  position: fixed; inset: 0; display: none; z-index: 9999;
}
#lightbox.open { display: block; }
#lightbox .lb-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.8);
}
#lightbox .lb-img {
  position: absolute; max-width: 92vw; max-height: 90vh;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 8px 32px rgba(0,0,0,.5); border-radius: 10px;
}
#lightbox .lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: none; background: rgba(0,0,0,.4); color: #fff; 
  padding: 10px 12px; font-size: 22px; border-radius: 8px; cursor: pointer;
}
#lightbox .lb-prev { left: 8px; }
#lightbox .lb-next { right: 8px; }
#lightbox .lb-close { top: 12px; right: 12px; transform: none; font-size: 28px; }
#lightbox .lb-btn:active { transform: translateY(-50%) scale(0.98); }
#lightbox .lb-close:active { transform: scale(0.98); }

/* --- Roller (album) --- */
.roller-wrap { position: relative; }

.roller {
  display: grid;
  grid-auto-flow: column;

  /* Wider cards: min 300px, usually ~88vw on phones, max 560px */
  grid-auto-columns: clamp(300px, 88vw, 560px);

  gap: 4px;                 /* tighter gap */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 10px;
}
.roller::-webkit-scrollbar { display: none; }
.roller { scrollbar-width: none; }

.roller-item {
  scroll-snap-align: center;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f4f5;

  /* center-focus animation base */
  transform: scale(0.95);
  opacity: 0.95;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease,
    filter 220ms ease;
}
.roller-item img {
  width: 100%;
  height: 62vh;            /* a bit taller so it doesn’t feel “thin” */
  max-height: 620px;
  object-fit: cover;
  display: block;
}

.roller-item.is-center {
  transform: scale(1.06);
  opacity: 1;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  filter: saturate(1.06);
}

/* Roller arrows */
.roll-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: none; background: rgba(0,0,0,.35); color: #fff;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; z-index: 2;
}
.roll-btn:active { transform: translateY(-50%) scale(.98); }
.roll-left  { left: 6px; }
.roll-right { right: 6px; }

/* Home gallery thumbnails (make them openable look nice) */
/* HOME GALLERY — force 2 columns on small screens */
.gallery {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;   /* keeps height nice on phones */
  object-fit: cover;
  border-radius: 10px;
}

/* Step up to 3 and 4 columns on wider screens */
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

