/* =====================================================================
   Al Naseeha Digital Marketing — Design tokens
   Palette pulled forward from the existing brand (deep ink-navy + growth
   green) rather than a generic AI default, plus a warm sand neutral.
   ===================================================================== */
:root{
  --ink:        #071233;   /* deep navy — headings, header/footer */
  --ink-2:      #0d1b4d;
  --brand:      #147a1e;   /* growth green — primary accent (from existing logo) */
  --brand-dark: #0c4d13;
  --sand:       #f6f4ee;   /* warm off-white background */
  --paper:      #ffffff;
  --line:       #e4e0d4;
  --text:       #1c2233;
  --text-muted: #5b6274;
  --gold:       #c9a227;   /* small highlight only, used sparingly */

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --radius: 14px;
  --wrap: 1180px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text);
  background:var(--sand);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px;}

.skip-link{position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;padding:10px 16px;z-index:999;}
.skip-link:focus{left:12px;top:12px;}

h1,h2,h3{
  font-family:var(--font-display);
  color:var(--ink);
  line-height:1.12;
  margin:0 0 .5em;
  letter-spacing:-0.01em;
}
h1{font-size:clamp(2.1rem, 4.5vw, 3.4rem); font-weight:700;}
h2{font-size:clamp(1.6rem, 3vw, 2.3rem); font-weight:700;}
h3{font-size:1.15rem; font-weight:700;}
p{margin:0 0 1em;}
.muted{color:var(--text-muted);}

.eyebrow{
  font-family:var(--font-body);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.72rem;
  font-weight:700;
  color:var(--brand);
  margin:0 0 .8em;
}

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.85em 1.6em;
  border-radius:999px;
  font-weight:600;
  font-size:.95rem;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  border:1px solid transparent;
}
.btn-primary{background:var(--brand); color:#fff; box-shadow:0 6px 18px rgba(20,122,30,.28);}
.btn-primary:hover{background:var(--brand-dark); transform:translateY(-1px);}
.btn-ghost{border-color:var(--ink); color:var(--ink);}
.btn-ghost:hover{background:var(--ink); color:#fff;}
.btn-lg{padding:1em 2em; font-size:1.05rem;}

/* ---------------- Header ---------------- */
.site-header{
  background:var(--ink);
  position:sticky; top:0; z-index:50;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.brand{display:flex; align-items:center; gap:16px;}
.brand-logo{
  height:46px; width:auto;
  background:#fff; border-radius:10px; padding:4px 10px;
}
.brand-text{
  color:#fff;
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.05rem;
  letter-spacing:.01em;
  line-height:1.2;
  white-space:nowrap;
}

.site-nav{display:flex; align-items:center; gap:1.6rem;}
.site-nav a{color:#cfd4e6; font-size:.93rem; font-weight:500; transition:color .15s;}
.site-nav a:hover, .site-nav a.is-active{color:#fff;}
.nav-cta{
  background:var(--brand); color:#fff !important;
  padding:.6em 1.3em; border-radius:999px; font-weight:600;
}
.nav-cta:hover{background:var(--brand-dark);}

.nav-toggle{display:none; flex-direction:column; gap:5px; background:none; border:0; padding:8px; cursor:pointer;}
.nav-toggle span{width:24px;height:2px;background:#fff;display:block;}

/* ---------------- Hero ---------------- */
.hero{padding:5rem 0 4rem; background:var(--sand); position:relative; overflow:hidden;}
.hero-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:3rem; align-items:center;}
.lede{font-size:1.1rem; color:var(--text-muted); max-width:52ch;}
.hero-actions{display:flex; gap:1rem; margin-top:1.6rem; flex-wrap:wrap;}

.hero-panel{
  background:var(--ink);
  border-radius:20px;
  padding:2rem;
  position:relative;
  color:#fff;
  overflow:hidden;
}
.panel-row{display:flex; justify-content:space-between; padding:.85rem 0; border-bottom:1px solid rgba(255,255,255,.12); font-size:.92rem;}
.panel-row:last-of-type{border-bottom:none;}
.panel-row strong{font-family:var(--font-display); color:#fff;}
.panel-row span{color:#aab0c6;}

/* signature lattice motif — subtle mashrabiya-inspired geometric pattern */
.lattice{
  position:absolute; right:-40px; bottom:-40px; width:180px; height:180px;
  background-image:
    repeating-linear-gradient(45deg, rgba(20,122,30,.35) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, rgba(201,162,39,.28) 0 2px, transparent 2px 22px);
  border-radius:50%;
  opacity:.7;
  pointer-events:none;
}

/* ---------------- Sections ---------------- */
.section{padding:4.5rem 0;}
.grid-4{display:grid; grid-template-columns:repeat(4,1fr); gap:1.6rem; margin-top:2.2rem;}
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem; margin-top:2.2rem;}

.service-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:1.8rem 1.5rem;
}
.service-card .idx{
  font-family:var(--font-display); font-weight:800; font-size:.85rem;
  color:var(--brand); display:block; margin-bottom:.6rem;
}

.services-strip{background:var(--paper);}

.product-feature{background:var(--ink); color:#fff;}
.product-feature .eyebrow{color:var(--gold);}
.product-feature h2, .product-feature p{color:#fff;}
.product-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:3rem; align-items:center;}
.product-panel{display:flex; flex-direction:column; gap:.8rem;}
.chat-bubble{
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14);
  border-radius:14px; padding:.9rem 1.2rem; font-size:.92rem; max-width:80%;
}
.chat-bubble.alt{align-self:flex-end; background:var(--brand);}

.portfolio-card, .blog-card{
  display:block; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:1.7rem; transition:transform .15s ease, box-shadow .15s ease;
}
.portfolio-card:hover, .blog-card:hover{transform:translateY(-3px); box-shadow:0 12px 28px rgba(7,18,51,.08);}
.link-arrow{color:var(--brand); font-weight:600; font-size:.88rem;}

/* ---------------- Special Offers ---------------- */
.special-offers{background:var(--paper);}
.offers-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:1.8rem; margin-top:2.2rem;
}
.offer-card{
  display:block; position:relative; overflow:hidden; border-radius:var(--radius);
  box-shadow:0 8px 24px rgba(7,18,51,.08);
  animation:offer-float 5s ease-in-out infinite;
  transition:transform .3s ease, box-shadow .3s ease;
}
.offer-card:hover{
  transform:translateY(-8px);
  box-shadow:0 18px 38px rgba(7,18,51,.14);
  animation-play-state:paused;
}
.offer-card img{
  width:100%; aspect-ratio:4/3; object-fit:cover; display:block;
  transition:transform .5s ease;
}
.offer-card:hover img{transform:scale(1.06);}
@keyframes offer-float{
  0%, 100%{transform:translateY(0);}
  50%{transform:translateY(-7px);}
}
.offers-more{text-align:center; margin-top:2rem;}
.offers-more a{color:var(--brand); font-weight:700; font-size:.95rem;}
.offers-more a:hover{color:var(--brand-dark);}

.cta-band{background:var(--brand); color:#fff; text-align:center;}
.cta-band h2, .cta-band p{color:#fff;}
.cta-inner{max-width:640px; margin:0 auto;}
.cta-band .btn-primary{background:#fff; color:var(--brand-dark); box-shadow:none;}
.cta-band .btn-primary:hover{background:var(--sand);}

/* ---------------- Generic page/blog templates ---------------- */
.page-header{padding-bottom:1.5rem;}
.page-body{padding-top:0;}
.prose h2{margin-top:1.6em;}
.prose p, .prose li{color:var(--text); font-size:1.02rem;}
.prose ul, .prose ol{margin:0 0 1.2em; padding-left:1.4em;}
.prose li{margin-bottom:.4em;}
.prose a{color:var(--brand); text-decoration:underline;}

.contact-grid{display:grid; grid-template-columns:1.3fr .9fr; gap:3rem; margin-top:2rem;}
.contact-form{display:flex; flex-direction:column; gap:1.1rem;}
.contact-form label{font-weight:600; font-size:.9rem; display:flex; flex-direction:column; gap:.4rem;}
.contact-form input, .contact-form textarea{
  font-family:var(--font-body); font-size:1rem; padding:.8em 1em;
  border:1px solid var(--line); border-radius:10px; background:var(--paper);
}
.contact-details p{margin-bottom:.6em;}

/* ---------------- Footer ---------------- */
.site-footer{background:var(--ink); color:#c9cee0; padding:3.5rem 0 1.5rem; margin-top:3rem;}
.footer-grid{display:grid; grid-template-columns:1.3fr 1fr 1fr 1.2fr; gap:2.5rem;}
.footer-brand{display:flex; flex-direction:column; gap:.8rem; align-items:flex-start;}
.footer-logo{
  height:64px; width:auto;
  background:#fff; border-radius:12px; padding:8px 14px;
}
.footer-brand p{color:#9aa1bd; font-size:.9rem;}
.footer-col h3{color:#fff; font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:.9rem;}
.footer-col a{display:block; color:#c9cee0; font-size:.92rem; margin-bottom:.6rem;}
.footer-col a:hover{color:#fff;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1); margin-top:2.5rem; padding-top:1.2rem; font-size:.82rem; color:#8890ab;}

.whatsapp-fab{
  position:fixed; right:20px; bottom:20px; width:56px; height:56px; border-radius:50%;
  background:#25D366; color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px rgba(0,0,0,.22); z-index:60;
}

.scroll-top-fab{
  position:fixed; left:20px; bottom:20px; width:48px; height:48px; border-radius:50%;
  background:var(--ink); color:#fff; border:none; display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px rgba(0,0,0,.22); z-index:60; cursor:pointer;
  opacity:0; pointer-events:none; transform:translateY(8px);
  transition:opacity .2s ease, transform .2s ease, background .15s ease;
}
.scroll-top-fab.is-visible{opacity:1; pointer-events:auto; transform:translateY(0);}
.scroll-top-fab:hover{background:var(--brand);}

/* ---------------- Image Gallery (reusable on any page) ---------------- */
.img-gallery{
  display:grid;
  gap:18px;
  margin:2rem 0;
  grid-template-columns:repeat(3, 1fr);
}
.img-gallery.cols-2{grid-template-columns:repeat(2, 1fr);}
.img-gallery.cols-3{grid-template-columns:repeat(3, 1fr);}
.img-gallery.cols-4{grid-template-columns:repeat(4, 1fr);}

.img-gallery img{
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--line);
  box-shadow:0 4px 14px rgba(7,18,51,.06);
  cursor:zoom-in;
  transition:transform .2s ease, box-shadow .2s ease;
  display:block;
}
.img-gallery img:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(7,18,51,.14);
}

/* Lightbox overlay for click-to-enlarge */
.lightbox-overlay{
  position:fixed; inset:0; background:rgba(7,18,51,.92);
  display:flex; align-items:center; justify-content:center;
  z-index:999; padding:5vw; cursor:zoom-out;
  opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.lightbox-overlay.is-open{opacity:1; pointer-events:auto;}
.lightbox-overlay img{
  max-width:90vw; max-height:90vh; border-radius:10px;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}

@media (max-width:900px){
  .img-gallery, .img-gallery.cols-3, .img-gallery.cols-4{grid-template-columns:repeat(2, 1fr);}
}
@media (max-width:560px){
  .img-gallery, .img-gallery.cols-2, .img-gallery.cols-3, .img-gallery.cols-4{grid-template-columns:1fr;}
}

/* ---------------- Motion & accessibility ---------------- */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .portfolio-card, .blog-card, .btn{transition:none;}
  .offer-card{animation:none; transition:none;}
  .offer-card img{transition:none;}
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:3px solid var(--gold); outline-offset:2px;
}

/* ---------------- Responsive ---------------- */
@media (max-width:960px){
  .hero-grid, .product-grid, .contact-grid{grid-template-columns:1fr;}
  .grid-4{grid-template-columns:repeat(2,1fr);}
  .grid-3{grid-template-columns:1fr;}
  .offers-grid{grid-template-columns:repeat(2,1fr); gap:1.1rem;}
  .footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:560px){
  .offers-grid{grid-template-columns:1fr;}
}
@media (max-width:480px){
  .brand-text{display:none;}
}
@media (max-width:760px){
  .nav-toggle{display:flex;}
  .site-nav{
    position:absolute; top:76px; left:0; right:0;
    background:var(--ink); flex-direction:column; align-items:flex-start;
    padding:1rem 24px 1.5rem; gap:.9rem;
    display:none;
  }
  .site-nav.is-open{display:flex;}
  .grid-4{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .header-inner{height:66px;}
}
