/* ============================================
   YOUNOUS TRAVEL — Design tokens (v2, premium dark)
   Palette drawn from the brand logo, deepened for a
   richer, more mature feel: ink-navy, teal wave, gold wordmark
   ============================================ */
:root{
  --navy-deep:   #060F19;
  --navy:        #0B1A29;
  --navy-soft:   #122A3D;
  --navy-line:   rgba(201,162,39,0.16);
  --teal:        #176E82;
  --teal-light:  #4FB3C7;
  --gold:        #C9A227;
  --gold-deep:   #9C7A18;
  --gold-light:  #E8C878;
  --sand:        #F3ECD8;
  --muted:       #9FB2C4;
  --white:       #FFFFFF;
  --card-bg:     #0E2033;
  --card-bg-soft:#10263B;
  --check-green: #4C9A55;

  --font-display: 'Cairo', 'Segoe UI', sans-serif;
  --font-body:    'Cairo', 'Segoe UI', sans-serif;
  --font-accent:  'Amiri', serif;

  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-deep: 0 24px 60px rgba(0, 0, 0, 0.5);

  --cursor-default: url("images/cursor-gold.png") 4 4, auto;
  --cursor-pointer: url("images/minaret-gold-32.png") 16 4, pointer;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--muted);
  background: var(--navy-deep);
  overflow-x: hidden;
  cursor: var(--cursor-default);
}
a, button, .btn, .nav-toggle, input[type="submit"]{ cursor: var(--cursor-pointer); }

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--sand);
  margin: 0 0 0.5em;
  line-height: 1.15;
}
p{ line-height: 1.7; margin: 0 0 1em; color: var(--muted); }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }

.container{
  width: min(1140px, 92%);
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Signature element: geometric star lattice
   ============================================ */
.star-field{
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.star-field svg{
  position: absolute;
  width: 140%;
  height: 140%;
  left: -20%;
  top: -20%;
  opacity: 0.09;
  animation: driftStars 120s linear infinite;
}
.star-field.light svg{ opacity: 0.05; }
@keyframes driftStars{
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(3deg) scale(1.03); }
  100% { transform: rotate(0deg) scale(1); }
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 15, 25, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--navy-line);
  transition: box-shadow 0.3s ease;
}
.nav-wrap{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 10px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.brand img{
  height: 54px;
  width: 54px;
  border-radius: 50%;
  object-fit: cover; /* Ensures logo2be.jpeg is a perfect non-distorted circle */
}
.brand-text{
  display:flex;
  flex-direction:column;
  color: var(--sand);
}
.brand-text strong{
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--white);
}
.brand-text span{
  font-size: 0.68rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links{
  display:flex;
  gap: 4px;
  align-items:center;
}
.nav-links a{
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 18px;
  border-radius: 6px;
  position: relative;
  transition: color 0.25s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible{
  color: var(--gold-light);
}
/* True "current page" indicator: a slim gold underline, NOT a filled pill,
   so it never gets confused with the Contact call-to-action button. */
.nav-links a.active{
  color: var(--sand);
}
.nav-links a.active::after{
  content:"";
  position:absolute;
  left: 18px;
  right: 18px;
  bottom: 3px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
/* Contact is always a distinct call-to-action button, on every page,
   regardless of which page is active. */
.nav-cta{
  background: var(--gold);
  color: var(--navy-deep) !important;
  font-weight: 700 !important;
  border-radius: 6px 6px 3px 3px !important;
  padding: 9px 20px !important;
}
.nav-cta::after{ display:none !important; }
.nav-cta:hover{ background: var(--gold-light); color: var(--navy-deep) !important; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--navy-soft);
  border: 2px solid var(--gold);
  border-radius: 10px;
  width: 46px;
  height: 46px;
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
  z-index: 1001;
}

/* SVG Graphic Styling matching your palette */
.kaaba-icon {
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.kaaba-icon .cube-body { fill: var(--navy-deep); }
.kaaba-icon .cube-left { fill: rgba(0, 0, 0, 0.2); } /* Gives a 3D shadow side */
.kaaba-icon .gold-stripe { fill: var(--gold); }
.kaaba-icon .gold-door { fill: var(--gold-light); }

/* Interactive Hover States */
.nav-toggle:hover { 
  border-color: var(--gold-light); 
  box-shadow: 0 0 14px rgba(201,162,39,0.4);
}
.nav-toggle:hover .kaaba-icon {
  transform: scale(1.08);
}

/* Open Interaction: Smoothly tilts and highlights when open */
.nav-toggle.open { 
  border-color: var(--white);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}
.nav-toggle.open .kaaba-icon {
  transform: rotate(15deg) scale(0.95);
}
.nav-toggle.open .gold-stripe {
  fill: var(--white); /* Changes stripe color to confirm it's active */
}

/* ============================================
   Corrected Mobile Navigation Block
   ============================================ */
@media (max-width: 1024px){
  .nav-links{
    position: fixed;
    top: 100%; /* Ensures it aligns perfectly right below the header bar */
    left: 0;
    right: 0;
    height: auto; /* Hugs the content tightly instead of stretching to the screen bottom */
    background: var(--card-bg); /* Changed from navy-deep to a lighter premium panel color */
    border-top: 2px solid var(--gold); /* Subtle gold accent top separator */
    border-bottom: 3px solid var(--gold); /* Adds a clean gold underline border at the bottom edge */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); /* Drops a shadow onto the webpage beneath it */
    flex-direction: column;
    align-items: stretch;
    padding: 24px 18px;
    transform: translateY(-150%); /* Keeps it safely hidden behind the header when closed */
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    gap: 8px;
    z-index: 1000;
  }
  
  .nav-links.open{ 
    transform: translateY(0); 
  }
  
  .nav-toggle{ 
    display: flex; 
  }
  
  .nav-links a{
    width: 100%;
    padding: 16px 18px;
    font-size: 1.05rem;
    color: var(--sand) !important; /* Forces links to be highly visible against the dark background */
    border-bottom: 1px solid var(--navy-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
  }
  
  .nav-links a:hover,
  .nav-links a:focus{
    background: var(--navy-soft);
    color: var(--gold-light) !important;
  }
  
  .nav-cta{ 
    margin-top: 16px; 
    text-align: center; 
    justify-content: center; 
    display: flex; 
    background: var(--gold) !important;
    color: var(--navy-deep) !important;
  }
} /* <--- The media query now properly closes down here! */

/* ============================================
   Hero — real photography, not a graphic
   ============================================ */
.hero{
  position: relative;
  min-height: 640px;
  display:flex;
  align-items:center;
  color: var(--white);
  overflow: hidden;
  padding: 150px 0 140px;
}
.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
  background-image:
    linear-gradient(100deg, rgba(6,15,25,0.86) 0%, rgba(6,15,25,0.58) 32%, rgba(6,15,25,0.12) 58%, rgba(6,15,25,0) 78%),
    linear-gradient(0deg, rgba(6,15,25,0.5) 0%, rgba(6,15,25,0) 18%),
    url('https://images.unsplash.com/photo-1513072064285-240f87fa81e8?fm=jpg&q=80&w=2400&auto=format&fit=crop');
  background-size: cover;
  background-position: center 65%;
  animation: kenBurnsOnce 22s ease-out forwards;
}
@keyframes kenBurnsOnce{
  0%   { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.hero .container{
  position: relative;
  z-index: 2;
}
.hero-inner{
  max-width: 640px;
}
.eyebrow-accent{
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.05rem;
  display:block;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}
.hero h1{
  color: var(--white);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 800;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}
.hero h1 em{
  font-style: normal;
  color: var(--gold-light);
}
.hero p.lead{
  color: rgba(243,236,216,0.86);
  font-size: 1.12rem;
  max-width: 46ch;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}
.hero-ctas{
  display:flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 26px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(18px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes floatY{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-12px); }
}
@media (max-width: 760px){
  .hero{ min-height: auto; padding: 120px 0 90px; }
  .hero-bg{
    background-image:
      linear-gradient(180deg, rgba(6,15,25,0.55) 0%, rgba(6,15,25,0.72) 55%, rgba(6,15,25,0.92) 100%),
      url('https://images.unsplash.com/photo-1513072064285-240f87fa81e8?fm=jpg&q=80&w=1400&auto=format&fit=crop');
    background-position: center 60%;
  }
  .hero-ctas{ flex-direction: column; align-items: stretch; gap: 14px; }
  .hero-ctas .btn{ justify-content:center; width: 100%; }
}

/* ============================================
   Buttons — shaped like a mosque minaret:
   a tapered tower with a small dome + crescent finial
   ============================================ */
.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 15px 30px 14px;
  margin-top: 20px;
  border-radius: 5px 5px 2px 2px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  overflow: visible;
}
.btn-finial{
  position:absolute;
  top: -26px;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  pointer-events:none;
  border-radius: 50%;
  background-color: var(--sand);
  background-image: url("images/minaret-black.png");
  background-repeat:no-repeat;
  background-position: center 58%;
  background-size: 62%;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
/* The little minaret badge is a desktop flourish only —
   it gets in the way of thumbs on phones & tablets */
@media (max-width: 1024px){
  .btn-finial{ display:none; }
}
.btn:hover{ transform: translateY(-3px); }
.btn-primary{
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 10px 26px rgba(201,162,39,0.3);
}
.btn-primary:hover{ box-shadow: 0 18px 36px rgba(201,162,39,0.4); }
.btn-ghost{
  background: rgba(255,255,255,0.03);
  color: var(--sand);
  border-color: rgba(232,200,120,0.4);
}
.btn-ghost:hover{ border-color: var(--gold-light); color: var(--gold-light); background: rgba(232,200,120,0.06); }
.btn-dark{
  background: var(--card-bg);
  color: var(--sand);
  border-color: var(--navy-line);
}
.btn-dark:hover{ background: var(--card-bg-soft); }

/* ============================================
   Why-strip — a real feature bar, not a bare text row
   ============================================ */
.why-strip{
  background: var(--navy);
  padding: 44px 0;
  border-bottom: 1px solid var(--navy-line);
  position: relative;
  z-index: 3;
}
.why-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.why-item{
  display:flex;
  align-items:flex-start;
  gap: 14px;
}
.why-icon{
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  transition: transform 0.3s ease;
}
.why-item:hover .why-icon{ transform: translateY(-3px) rotate(-4deg); }
.why-icon svg{ width: 22px; height: 22px; }
.why-item strong{ display:block; color: var(--sand); font-size: 0.95rem; margin-bottom: 3px; }
.why-item span{ display:block; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
@media (max-width: 900px){ .why-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .why-grid{ grid-template-columns: 1fr; } }

/* ============================================
   Sections
   ============================================ */
section{
  padding: 90px 0;
  position: relative;
  background: var(--navy-deep);
}
.section-alt{ background: var(--navy); }
.section-teal{
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy-deep) 100%);
  color: var(--white);
}

.kicker{
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold-light);
  font-size: 1rem;
  display:block;
  margin-bottom: 8px;
}

h2.section-title{
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 30ch;
}
.section-head{ margin-bottom: 48px; }
.section-head.center{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
  max-width: 640px;
}

/* Service card — image top, minaret-arch frame */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items:center;
}
.service-card{
  background: var(--card-bg);
  border: 1px solid var(--navy-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.service-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-deep);
  border-color: rgba(201,162,39,0.4);
}
.service-card .photo{
  height: 170px;
  background-size: cover;
  background-position: center;
  position:relative;
  overflow: hidden;
}
.service-card .photo{ background-size: 108%; transition: background-size 0.6s ease; }
.service-card:hover .photo{ background-size: 118%; }
.service-card .photo::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(6,15,25,0) 40%, rgba(6,15,25,0.9) 100%);
}
.service-card .body{ padding: 30px 22px 26px; text-align:center; position:relative; }
.service-card h3{ font-size: 1.1rem; }
.service-card p{ font-size: 0.93rem; margin-bottom:0; }
.service-card .icon-badge{
  position:absolute;
  top: -28px; left:50%;
  transform: translateX(-50%);
  width: 56px; height:56px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
  border: 2px solid var(--card-bg);
}
.service-card .icon-badge svg{ width: 26px; height:26px; }

@media (max-width: 900px){
  .grid-3{ grid-template-columns: 1fr 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
}
@media (max-width: 620px){
  .grid-3{ grid-template-columns: 1fr; }
}

/* Feature list with custom crescent-star bullets (not generic checkmarks) */
.check-list li{
  display:flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items:flex-start;
}
.check-list .mark{
  flex-shrink:0;
  width: 26px; height:26px;
  border-radius:50%;
  background: rgba(201,162,39,0.14);
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'><path d='M14.5 5.2a6.6 6.6 0 1 0 6.3 8.6 5.2 5.2 0 0 1-6.3-8.6z' fill='%23E8C878'/><path d='M18.2 4.4l0.5 1.4 1.4 0.5-1.4 0.5-0.5 1.4-0.5-1.4-1.4-0.5 1.4-0.5z' fill='%23E8C878'/></svg>");
  background-repeat:no-repeat;
  background-position:center;
  background-size: 15px 15px;
}

/* Language chips (translation service) */
.lang-chips{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.lang-chips span{
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--navy-line);
}

/* Quote / verse accent block */
.verse-block{
  text-align:center;
  max-width: 700px;
  margin: 0 auto;
}
.verse-block p{
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold-light);
  line-height: 1.6;
}
.verse-block span{
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
}

/* Timeline (real sequence: booking steps) */
.steps{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
  counter-reset: step;
}
.step{
  position:relative;
  padding: 28px 20px;
  background: var(--card-bg);
  border: 1px solid var(--navy-line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.step::before{
  counter-increment: step;
  content: counter(step);
  position:absolute;
  top:-16px; left: 20px;
  width: 34px; height:34px;
  border-radius:50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight:800;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 6px 14px rgba(201,162,39,0.4);
}
@media (max-width: 900px){ .steps{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .steps{ grid-template-columns: 1fr; } }

/* Value cards on About */
.value-card{
  padding: 30px;
  border-left: 3px solid var(--gold);
  background: var(--card-bg);
  border-radius: 4px 16px 16px 4px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-deep); }
.value-card p{ margin: 0; }
.value-icon{
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 16px;
}
.value-icon svg{ width: 22px; height: 22px; }

/* Photo panel replacing any oversized logo placement */
.photo-panel{
  border-radius: 20px;
  overflow:hidden;
  height: 360px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-deep);
  position:relative;
  border: 1px solid var(--navy-line);
}
.photo-panel::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(160deg, rgba(6,15,25,0.25), rgba(6,15,25,0.05));
}

/* Contact page */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.contact-card{
  background: var(--card-bg);
  border: 1px solid var(--navy-line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.contact-card h3{ color: var(--sand); }
.contact-line{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  margin-bottom: 22px;
}
.contact-line .icon-wrap{
  width: 44px; height:44px;
  border-radius:50%;
  background: rgba(28,124,147,0.16);
  color: var(--teal-light);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.contact-line strong{ display:block; color: var(--sand); }
.contact-line a:hover{ color: var(--gold-light); }

form.form-elegant{
  display:flex;
  flex-direction:column;
  gap: 16px;
}
form.form-elegant label{
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 4px;
  display:block;
}
form.form-elegant input,
form.form-elegant select,
form.form-elegant textarea{
  width:100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--navy-line);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--navy);
  color: var(--sand);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
form.form-elegant input:focus,
form.form-elegant select:focus,
form.form-elegant textarea:focus{
  outline:none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.18);
}
form.form-elegant textarea{ resize: vertical; min-height: 120px; }

/* Footer */
.site-footer{
  background: var(--navy-deep);
  color: rgba(243,236,216,0.7);
  padding: 60px 0 26px;
  position: relative;
  border-top: 1px solid var(--navy-line);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--navy-line);
}
.footer-grid h4{ color: var(--gold-light); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-grid a{ display:flex; align-items:center; gap:8px; margin-bottom: 10px; color: rgba(243,236,216,0.75); font-size: 0.92rem; }
.footer-grid a:hover{ color: var(--gold-light); }
.footer-brand{ display:flex; gap:12px; align-items:center; margin-bottom: 14px; }
.footer-brand img{ 
  height: 48px; 
  width:48px; 
  border-radius:50%; 
  object-fit: cover; /* Keeps footer brand logo perfectly proportional and circular */
}
.footer-bottom{
  padding-top: 22px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 10px;
  font-size: 0.82rem;
}
@media (max-width: 800px){
  .footer-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}

/* Reveal on scroll */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in{ opacity: 1; transform: translateY(0); }

/* Page hero (interior pages) */
.page-hero{
  position:relative;
  background: linear-gradient(150deg, var(--navy-deep), var(--navy) 70%);
  color: var(--white);
  padding: 80px 0 70px;
  text-align:center;
  overflow:hidden;
}
.page-hero h1{ color:var(--white); position:relative; z-index:1; }
.page-hero p{ color: rgba(243,236,216,0.8); max-width: 60ch; margin: 0 auto; position:relative; z-index:1; }
.page-hero .kicker{ position:relative; z-index:1; }

/* Floating WhatsApp button — recolored to the site's own teal,
   not the default WhatsApp brand green */
.wa-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
  z-index: 200;
  animation: pulse 3.6s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ box-shadow: 0 10px 24px rgba(201,162,39,0.35); }
  50%{ box-shadow: 0 10px 30px rgba(201,162,39,0.55); }
}

/* ============================================
   Compatibility layer — keeps Services & À propos
   (not yet redesigned) looking correct on the new
   dark palette. Home page uses .service-card instead.
   ============================================ */
.section-navy{ background: var(--navy); color: var(--sand); }
.section-navy h2{ color: var(--white); }
.arch-card{
  background: var(--card-bg);
  border: 1px solid var(--navy-line);
  border-radius: 20px;
  padding: 40px 26px 32px;
  text-align:center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.arch-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-deep); border-color: rgba(201,162,39,0.4); }
.arch-card .icon-wrap{
  width: 74px; height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  display:flex; align-items:center; justify-content:center;
  font-size: 1.8rem;
}
.arch-card h3{ font-size: 1.15rem; }
.arch-card p{ font-size: 0.95rem; margin-bottom: 0; }
.hero-emblem{
  display:flex; justify-content:center; align-items:center;
  animation: floatY 6s ease-in-out infinite;
}
.hero-emblem img{ width: min(300px, 80%); filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); }

/* ============================================
   Bottom mobile tab bar removed — the hamburger
   dropdown (Kaaba icon, above) now handles all
   navigation on mobile & tablet.
   ============================================ */
.mobile-tabbar{ display:none !important; }

@media (max-width: 760px){
  section{ padding: 56px 0; }
  .section-head{ margin-bottom: 32px; }
  h2.section-title{ font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .service-card .body{ padding: 30px 18px 22px; }
  .photo-panel{ height: 240px; }
  .contact-card{ padding: 24px; }
  .footer-grid{ gap: 30px; }
  .verse-block p{ font-size: 1.15rem; }
  .wa-float{ width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .why-strip{ padding: 32px 0; }
}
@media (max-width: 420px){
  .btn{ padding: 13px 22px; font-size: 0.88rem; }
  .brand-text strong{ font-size: 1rem; }
}

/* ============================================
   Professional animation & interaction layer
   ============================================ */

/* Whole-page entrance: avoids a "flash of everything" on load */
body.preload{ opacity: 0; }
body{ opacity: 1; transition: opacity 0.5s ease; }

/* Thin gold progress bar tracking scroll position */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 500;
  box-shadow: 0 0 8px rgba(201,162,39,0.6);
  transition: width 0.12s ease-out;
}

/* Sticky header gains depth once the page has scrolled */
.site-header.scrolled{
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  background: rgba(6, 15, 25, 0.98);
}

/* Staggered reveal — same fade/slide as .reveal, but children animate
   in sequence via a --d (delay) custom property set by script.js */
.reveal{ transition-delay: var(--d, 0s); }

/* Nav link underline sweeps in on hover, rather than snapping */
.nav-links a{ overflow: hidden; }
.nav-links a:not(.nav-cta)::before{
  content:"";
  position:absolute;
  left:18px; right:18px; bottom:3px;
  height:2px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:not(.nav-cta):hover::before{ transform: scaleX(1); }
.nav-links a.active::before{ display:none; }

/* Button ripple — a soft light burst from the click point */
.btn{ position: relative; overflow: hidden; }
.btn .ripple{
  position:absolute;
  border-radius:50%;
  background: rgba(255,255,255,0.45);
  transform: scale(0);
  animation: rippleOut 0.6s ease-out forwards;
  pointer-events:none;
}
@keyframes rippleOut{
  to{ transform: scale(1); opacity: 0; }
}
.btn-dark .ripple{ background: rgba(232,200,120,0.35); }

/* Logo gets a gentle breathing glow, echoing the WhatsApp pulse */
.brand img{
  transition: transform 0.4s ease, filter 0.4s ease;
}
.brand:hover img{
  transform: scale(1.06) rotate(-3deg);
  filter: drop-shadow(0 0 10px rgba(201,162,39,0.55));
}

/* WhatsApp float button: friendlier entrance + hover lift */
.wa-float{
  animation: pulse 3.6s ease-in-out infinite, waIntro 0.6s ease 0.4s both;
}
.wa-float:hover{ transform: translateY(-4px) scale(1.05); }
.wa-float{ transition: transform 0.25s ease; }
@keyframes waIntro{
  from{ opacity:0; transform: scale(0.4) translateY(20px); }
  to{ opacity:1; transform: scale(1) translateY(0); }
}

/* Form fields lift slightly on focus for tactile feedback */
form.form-elegant input:focus,
form.form-elegant select:focus,
form.form-elegant textarea:focus{
  transform: translateY(-1px);
}

/* Respect reduced-motion preference across all additions above */
@media (prefers-reduced-motion: reduce){
  body.preload{ opacity: 1; }
  .wa-float{ animation: none; }
  .reveal{ transition-delay: 0s !important; }
}

/* ============================================
   Extra-fine responsive tuning for small phones
   ============================================ */
@media (max-width: 480px){
  .nav-wrap{ padding: 8px 0; }
  .brand img{ height: 42px; width: 42px; }
  .brand-text strong{ font-size: 0.92rem; }
  .brand-text span{ font-size: 0.6rem; }
  .nav-toggle{ width: 40px; height: 40px; }
  .hero{ padding: 100px 0 70px; }
  .hero-ctas{ margin-top: 20px; }
  .container{ width: 94%; }
  .value-card, .service-card .body{ padding: 24px 16px; }
  .contact-card{ padding: 20px; }
  h2.section-title{ font-size: clamp(1.35rem, 7vw, 1.7rem); }
  .kicker{ font-size: 0.9rem; }
}
@media (max-width: 380px){
  .brand-text span{ display:none; }
  .btn{ width: 100%; justify-content:center; }
  .hero-ctas{ flex-direction: column; }
}

/* ============================================
   New homepage content — stats counters
   ============================================ */
.stats-strip{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align:center;
}
.stat-block{ padding: 10px; }
.stat-number{
  display:block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label{
  display:block;
  font-size: 0.88rem;
  color: rgba(243,236,216,0.75);
  letter-spacing: 0.02em;
}
@media (max-width: 700px){
  .stats-strip{ grid-template-columns: 1fr 1fr; gap: 26px 20px; }
}

/* Testimonials */
.testimonial-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial-card{
  background: var(--card-bg);
  border: 1px solid var(--navy-line);
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}
.testimonial-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-deep); border-color: rgba(201,162,39,0.4); }
.testimonial-stars{ color: var(--gold); font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p{ font-style: italic; color: var(--sand); margin-bottom: 18px; }
.testimonial-author{ display:flex; align-items:center; gap: 12px; }
.testimonial-avatar{
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  display:flex; align-items:center; justify-content:center;
  color: var(--navy-deep);
  font-weight: 800;
  flex-shrink:0;
}
.testimonial-author strong{ display:block; color:var(--sand); font-size:0.92rem; }
.testimonial-author span{ display:block; font-size:0.78rem; color: var(--muted); }
@media (max-width: 900px){ .testimonial-grid{ grid-template-columns: 1fr; } }

/* FAQ accordion */
.faq-list{ max-width: 760px; margin: 0 auto; }
.faq-item{
  border: 1px solid var(--navy-line);
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--card-bg);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item.open{ border-color: rgba(201,162,39,0.45); }
.faq-question{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--sand);
  font-size: 0.98rem;
}
.faq-question .faq-plus{
  flex-shrink:0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  display:flex; align-items:center; justify-content:center;
  font-size: 1.1rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq-item.open .faq-question .faq-plus{
  transform: rotate(135deg);
  background: var(--gold);
  color: var(--navy-deep);
}
.faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 22px;
}
.faq-item.open .faq-answer{
  max-height: 300px;
  padding: 0 22px 20px;
}
.faq-answer p{ margin: 0; font-size: 0.92rem; }

/* SVG Fixes for Custom Footer Links Layout */
.footer-grid a svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}