/* =========================================================
   BUSINESS DIRECTORY PAGE
   Matches /businesses/directory.php
   ========================================================= */

/* ------------------------------
   Root colors
------------------------------ */
:root{
    --bg:#f0f2f5;
    --white:#ffffff;
    --dark:#1f2937;
    --muted:#6b7280;
    --blue:#1e90ff;
    --blue-dark:#0f66c3;
    --green:#1fa971;
    --green-dark:#168a5d;
    --border:#dbe4ee;
    --shadow:0 12px 30px rgba(20,20,40,.08);
    --shadow-soft:0 8px 24px rgba(30,144,255,.08);
    --radius:18px;
}

/* ------------------------------
   Reset
------------------------------ */
*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

html,
body{
    max-width:100%;
    overflow-x:hidden;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:linear-gradient(180deg, #f7f9fc 0%, #eef4fb 100%);
    color:var(--dark);
    line-height:1.6;
}

body.menu-open{
    overflow:hidden;
    touch-action:none;
}

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

img{
    max-width:100%;
    display:block;
}

/* ------------------------------
   Decorative background
------------------------------ */
.bg-decor{
    position:fixed;
    inset:0;
    overflow:hidden;
    z-index:-1;
    pointer-events:none;
}

.blob{
    position:absolute;
    border-radius:50%;
    filter:blur(60px);
    opacity:.18;
}

.b1{
    width:280px;
    height:280px;
    background:#1e90ff;
    top:80px;
    left:-40px;
}

.b2{
    width:320px;
    height:320px;
    background:#22c55e;
    right:-60px;
    top:220px;
}

.b3{
    width:240px;
    height:240px;
    background:#60a5fa;
    bottom:40px;
    left:20%;
}

/* ------------------------------
   Accessibility
------------------------------ */
.skip-link{
    position:absolute;
    top:-44px;
    left:12px;
    background:#111827;
    color:#fff;
    padding:10px 14px;
    border-radius:10px;
    z-index:9999;
}

.skip-link:focus{
    top:12px;
}

/* ------------------------------
   Announcement
------------------------------ */
.announcement-bar{
    background:linear-gradient(90deg, var(--blue), var(--green));
    color:#fff;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    text-align:center;
}

.announcement-bar .badge{
    background:rgba(255,255,255,.15);
    padding:6px 10px;
    border-radius:999px;
    font-weight:bold;
    font-size:.9rem;
}

.announcement-bar p{
    margin:0;
}

/* ------------------------------
   Header
------------------------------ */
header{
    position:sticky;
    top:0;
    z-index:999;
    background:rgba(255,255,255,.88);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(0,0,0,.06);
    box-shadow:0 10px 30px rgba(20,20,40,.05);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:12px 18px;
}

.logo{
    display:flex;
    align-items:center;
    width:220px;
    max-width:60%;
    border-radius:14px;
    overflow:hidden;
}

.logo img{
    width:100%;
    height:auto;
    object-fit:contain;
    border-radius:14px;
}

.main-nav{
    flex:1;
    display:flex;
    justify-content:center;
}

.nav-links{
    list-style:none;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:14px;
}

.nav-links a{
    color:var(--dark);
    font-weight:600;
    padding:10px 12px;
    border-radius:12px;
    transition:.25s ease;
}

.nav-links a:hover{
    background:#eaf4ff;
    color:var(--blue-dark);
}

.menu-toggle{
    display:none;
    width:44px;
    height:44px;
    border:none;
    border-radius:12px;
    background:#edf4fb;
    color:var(--dark);
    font-size:1.2rem;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

/* ------------------------------
   Sidebar
------------------------------ */
.sidebar{
    position:fixed;
    top:0;
    right:-320px;
    width:300px;
    max-width:85%;
    height:100vh;
    background:#fff;
    box-shadow:-10px 0 30px rgba(0,0,0,.12);
    z-index:1200;
    padding:24px 18px;
    transition:right .3s ease;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
}

.sidebar.active{
    right:0;
}

.sidebar ul{
    list-style:none;
    margin:0;
    padding:0 0 20px 0;
}

.sidebar ul li{
    margin:8px 0;
}

.sidebar ul li a{
    display:block;
    padding:12px 14px;
    border-radius:12px;
    background:#f7fafc;
    color:var(--dark);
    font-weight:600;
    word-wrap:break-word;
}

.sidebar ul li a:hover{
    background:#eaf4ff;
    color:var(--blue-dark);
}

.sidebar-social{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:18px;
}

.sidebar-social a{
    width:40px;
    height:40px;
    border-radius:50%;
    background:#eef5fb;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--dark);
    transition:.25s ease;
}

.sidebar-social a:hover{
    background:var(--blue);
    color:#fff;
}

.close-btn{
    position:sticky;
    top:0;
    z-index:5;
    background:#fff;
    font-size:1.3rem;
    cursor:pointer;
    text-align:right;
    margin-bottom:14px;
    font-weight:bold;
    padding:4px 0 10px 0;
}

/* ------------------------------
   Main
------------------------------ */
main{
    width:min(1200px, calc(100% - 28px));
    margin:28px auto 40px;
}

/* ------------------------------
   Hero
------------------------------ */
.hero{
    background:linear-gradient(135deg, rgba(30,144,255,.10), rgba(31,169,113,.10));
    border:1px solid rgba(30,144,255,.12);
    border-radius:26px;
    padding:30px 24px;
    box-shadow:var(--shadow);
    margin-bottom:24px;
}

.hero-grid{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:22px;
    align-items:center;
}

.hero h1{
    font-size:2.2rem;
    line-height:1.2;
    margin-bottom:12px;
}

.hero p{
    color:var(--muted);
    font-size:1.03rem;
    margin-bottom:18px;
}

.hero-badges{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.hero-badges span{
    background:#fff;
    border:1px solid var(--border);
    border-radius:999px;
    padding:10px 14px;
    font-size:.95rem;
    font-weight:700;
    box-shadow:var(--shadow-soft);
}

.hero-card{
    background:#fff;
    border-radius:22px;
    padding:20px;
    border:1px solid var(--border);
    box-shadow:var(--shadow-soft);
}

.hero-card h3{
    margin-bottom:12px;
    font-size:1.15rem;
}

.hero-card ul{
    padding-left:18px;
    color:var(--muted);
}

/* ------------------------------
   Shared card box + filter
------------------------------ */
.card-box{
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    box-shadow:var(--shadow);
    padding:24px;
}

.filter-wrap{
    margin-bottom:24px;
}

.section-title{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:1.35rem;
    margin-bottom:16px;
}

.section-title i{
    color:var(--blue);
}

.section-sub{
    color:var(--muted);
    margin-bottom:18px;
}

.filter-controls{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.field label{
    display:block;
    font-weight:700;
    margin-bottom:8px;
    font-size:.96rem;
}

.field input,
.field select{
    width:100%;
    padding:14px 14px;
    border:1px solid var(--border);
    border-radius:14px;
    outline:none;
    font-size:1rem;
    background:#fbfdff;
    transition:border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field select:focus{
    border-color:var(--blue);
    box-shadow:0 0 0 4px rgba(30,144,255,.12);
}

/* ------------------------------
   Directory grid
------------------------------ */
.directory-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:20px;
}

/* ------------------------------
   Business cards
------------------------------ */
.business-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    overflow:hidden;
    box-shadow:var(--shadow);
    display:flex;
    flex-direction:column;
    min-height:100%;
    transition:transform .25s ease, box-shadow .25s ease;
}

.business-card:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 34px rgba(20,20,40,.10);
}

.business-card.hidden{
    display:none;
}

.business-card-media{
    background:linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
    border-bottom:1px solid var(--border);
    min-height:220px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:14px;
}

.business-card-media img{
    width:100%;
    max-height:260px;
    object-fit:contain;
    border-radius:14px;
    background:#fff;
}

.pdf-card-preview{
    width:100%;
    min-height:180px;
    border:1px dashed #b9d7f7;
    border-radius:16px;
    background:#fff;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    text-align:center;
    padding:20px;
    color:var(--muted);
}

.pdf-card-preview i{
    font-size:2.2rem;
    color:#dc2626;
}

.pdf-card-preview a{
    display:inline-block;
    padding:10px 14px;
    border-radius:999px;
    background:#edf6ff;
    color:var(--blue-dark);
    font-weight:700;
}

.pdf-card-preview a:hover{
    background:#dbeeff;
}

.business-card-body{
    padding:18px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.business-card-body h3{
    font-size:1.15rem;
    line-height:1.3;
}

.business-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.tag{
    display:inline-block;
    padding:7px 10px;
    border-radius:999px;
    background:#edf6ff;
    color:var(--blue-dark);
    font-size:.8rem;
    font-weight:700;
}

.business-desc{
    color:var(--muted);
    font-size:.96rem;
}

.business-contact-list{
    display:grid;
    gap:8px;
}

.business-contact-list p{
    color:var(--dark);
    font-size:.94rem;
    word-break:break-word;
}

.business-contact-list i{
    color:var(--blue);
    margin-right:6px;
}

.business-contact-list a{
    color:var(--blue-dark);
    text-decoration:underline;
    font-weight:700;
}

.business-date{
    margin-top:auto;
    padding-top:8px;
    color:var(--muted);
    font-size:.9rem;
    border-top:1px solid #eef3f9;
}

.business-date i{
    color:var(--green);
}

.empty-state{
    grid-column:1 / -1;
    text-align:center;
}

/* ------------------------------
   Footer
------------------------------ */
footer{
    background:#111827;
    color:#e5e7eb;
    padding:34px 18px 28px;
}

.footer-wrap{
    width:min(1200px, calc(100% - 10px));
    margin:0 auto;
}

.footer-top{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:18px;
    margin-bottom:24px;
}




.footer-promo{
  width:100%;
  text-align:center;
  margin:0 0 24px;
  padding:0 0 18px;
  border:none;
  box-shadow:none;
  background:transparent;
}

.footer-promo-text{
  max-width:1000px;
  margin:5px auto 12px;
  font-size:18px;
  line-height:1.7;
  font-weight:500;
}

.footer-promo-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin:5px auto 12px;
}

.footer-btn{
  display:inline-block;
  padding:10px 18px;
  border:none;
  border-radius:10px;
  text-decoration:none;
  font-weight:900;
  background:linear-gradient(45deg, dodgerblue, purple);
  color:#fff;
  transition:all 0.3s ease;
}




.footer-btn{
  position:relative;
  overflow:hidden;
  z-index:1;
  color:#fff;
}

/* HOVER BASE */
.footer-btn:hover{
  background:linear-gradient(45deg, orange, red);
  transform:scale(1.05);
}

/* SHINE STRIP */
.footer-btn::before{
  content:"";
  position:absolute;
  top:0;
  left:-40%;                 /* start slightly outside left */
  width:40%;                 /* thin strip → keeps text clear */
  height:100%;
  background:linear-gradient(
    90deg,
    transparent,
    rgba(255,200,0,0.5),
    rgba(255,80,0,0.7),
    transparent
  );
  transform:translateX(0);
  transition:transform .6s ease;
  pointer-events:none;
  z-index:0;
}

/* SWEEP ACROSS AND DISAPPEAR */
.footer-btn:hover::before{
  transform:translateX(300%);
}



.footer-directory-link{
  display:inline-block;
  text-decoration:none;
  font-weight:900;
  color:orange;
  border:none;
  box-shadow:none;
  background:transparent;
}

.footer-col{
     border:none !important;
  box-shadow:none !important;
  background:transparent !important;
}

.footer-col h4{
    margin-bottom:12px;
    color:#fff;
}

.footer-col a{
    display:block;
    color:#d1d5db;
    margin-bottom:8px;
    transition:.2s ease;
}

.footer-col a:hover{
    color:#fff;
}

.footer-social{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    justify-content:center;
    margin:20px 0 14px;
}

.footer-social a{
    width:44px;
    height:44px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    transition:.25s ease;
}

.footer-social a:hover{
    background:var(--blue);
    transform:translateY(-2px);
}

.footer-copy{
    text-align:center;
    color:#c7d0da;
    font-size:.95rem;
}

/* ------------------------------
   Go top
------------------------------ */
#goTopBtn{
    position:fixed;
    right:16px;
    bottom:16px;
    width:48px;
    height:48px;
    border:none;
    border-radius:50%;
    background:linear-gradient(90deg, var(--blue), var(--green));
    color:#fff;
    font-size:1rem;
    cursor:pointer;
    box-shadow:0 12px 25px rgba(30,144,255,.28);
    display:none;
    z-index:999;
}

#goTopBtn.show{
    display:block;
}



/* =========================================
   Upload CTA Button Animation
========================================= */

.upload-cta{
  position:relative;
  display:inline-block;
  padding:12px 20px;
  border-radius:14px;
  font-weight:700;
  text-decoration:none;
  color:#fff;
  margin-top:20px;
 

  /* Gradient */
  background:linear-gradient(135deg,#1e90ff,#1fa971);

  /* Smooth transitions */
  transition:transform .25s ease, box-shadow .25s ease;

  /* Glow pulse animation */
  animation:pulseGlow 2.5s infinite;
}

/* Hover effect */
.upload-cta:hover{
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 15px 40px rgba(30,144,255,.5);
}

/* Active click */
.upload-cta:active{
  transform:scale(.97);
}

/* Pulse animation */
@keyframes pulseGlow{
  0%{
    box-shadow:0 0 0 rgba(30,144,255,0.4);
  }
  50%{
    box-shadow:0 0 20px rgba(30,144,255,0.7);
  }
  100%{
    box-shadow:0 0 0 rgba(30,144,255,0.4);
  }
}


/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 1100px){
    .hero-grid{
        grid-template-columns:1fr;
    }

    .directory-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px){
    .main-nav{
        display:none;
    }

    .menu-toggle{
        display:flex;
    }

    .footer-top{
        grid-template-columns:repeat(3, 1fr);
    }
}

@media (max-width: 700px){
    header{
        padding:10px 12px;
    }

    .logo{
        width:180px;
        max-width:70%;
    }

    .hero h1{
        font-size:1.7rem;
    }

    .filter-controls,
    .directory-grid,
    .footer-top{
      grid-template-columns:repeat(3, 1fr) !important;
    }

    .card-box{
        padding:18px;
    }

    .business-card-media{
        min-height:180px;
    }
}