/* AP Perfect Pest Control - Bootstrap + UIkit Custom Theme */
:root {
  --ap-blue: #0B2C6B;
  --ap-blue-light: #1a4a9e;
  --ap-gold: #D4AF37;
  --ap-gold-light: #e8c84a;
  --ap-dark: #071d45;
}

body { font-family: 'Inter', system-ui, sans-serif; color: #1e293b; overflow-x: hidden; }
h1, h2, h3, .uk-heading-small, .display-5 { font-family: 'Playfair Display', Georgia, serif; }

/* Top bar */
.ap-topbar { background: var(--ap-dark); color: #fff; font-size: .85rem; }
.ap-topbar a { color: var(--ap-gold); text-decoration: none; font-weight: 600; }

/* Navbar */
.ap-navbar { background: rgba(255,255,255,.97) !important; backdrop-filter: blur(12px); border-bottom: 1px solid rgba(11,44,107,.08); box-shadow: 0 2px 20px rgba(11,44,107,.06); }
.ap-navbar .navbar-brand img { height: 56px; width: auto; }
.ap-navbar .nav-link { color: #475569 !important; font-weight: 500; font-size: .9rem; padding: .5rem .75rem !important; transition: color .2s; }
.ap-navbar .nav-link:hover, .ap-navbar .nav-link.active { color: var(--ap-blue) !important; }
.btn-ap-gold { background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-light)); color: var(--ap-blue); font-weight: 600; border: none; transition: transform .2s, box-shadow .2s; }
.btn-ap-gold:hover { background: var(--ap-gold-light); color: var(--ap-blue); box-shadow: 0 4px 15px rgba(212,175,55,.4); transform: translateY(-1px); }
.btn-ap-outline { border: 2px solid var(--ap-blue); color: var(--ap-blue); font-weight: 600; }
.btn-ap-outline:hover { background: var(--ap-blue); color: #fff; }

/* Hero Slider */
.ap-hero-slider { position: relative; min-height: 88vh; }
.ap-hero-slider .uk-slideshow-items { min-height: 88vh; }
.ap-hero-slide {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.ap-hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(7,29,69,.92) 0%, rgba(11,44,107,.78) 45%, rgba(11,44,107,.55) 100%);
  z-index: 1;
}
.ap-hero-slide::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(7,29,69,.4), transparent);
  z-index: 1;
}
.ap-hero-content { position: relative; z-index: 2; padding: 6rem 0 5rem; }
.ap-hero-slider h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.ap-hero-slider h1 span { color: var(--ap-gold); }
.ap-hero-slider .lead { font-size: clamp(1rem, 2vw, 1.15rem); max-width: 540px; }
.ap-badge { background: rgba(212,175,55,.18); border: 1px solid rgba(212,175,55,.4); color: var(--ap-gold); border-radius: 50px; padding: .45rem 1.1rem; font-size: .82rem; font-weight: 600; display: inline-block; letter-spacing: .3px; }
.ap-hero-slider .uk-slidenav { color: #fff; background: rgba(255,255,255,.12); border-radius: 50%; padding: .5rem; backdrop-filter: blur(4px); transition: background .2s; }
.ap-hero-slider .uk-slidenav:hover { background: rgba(212,175,55,.35); color: #fff; }
.ap-hero-dots { bottom: 28px !important; z-index: 3; }
.ap-hero-dots > * > * { width: 10px; height: 10px; border-color: rgba(255,255,255,.5); transition: all .3s; }
.ap-hero-dots > .uk-active > * { background: var(--ap-gold); border-color: var(--ap-gold); width: 28px; border-radius: 5px; }

/* Trust bar */
.ap-trust-bar { background: #fff; border-bottom: 1px solid rgba(11,44,107,.08); box-shadow: 0 4px 24px rgba(11,44,107,.06); margin-top: -2px; position: relative; z-index: 10; }
.ap-trust-item { display: flex; align-items: center; gap: .75rem; padding: 1.25rem 1rem; transition: transform .2s; }
.ap-trust-item:hover { transform: translateY(-2px); }
.ap-trust-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(11,44,107,.08), rgba(212,175,55,.18));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ap-blue); font-size: 1.25rem;
}
.ap-trust-item strong { display: block; font-size: .85rem; color: var(--ap-blue); line-height: 1.3; }

/* Legacy hero (inner pages) */
.ap-hero { background: linear-gradient(135deg, #071d45, var(--ap-blue) 50%, var(--ap-blue-light)); color: #fff; padding: 4rem 0; min-height: 85vh; display: flex; align-items: center; }
.ap-hero .hero-logo { max-height: 300px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); }
.ap-hero h1 span { color: var(--ap-gold); }

/* Sections */
.ap-section { padding: 5rem 0; }
.ap-section-alt { background: #f8fafc; }
.ap-label { color: var(--ap-gold); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; }
.ap-section-title { font-size: clamp(1.75rem, 3vw, 2.25rem); }

/* Cards */
.ap-card { border: none; border-radius: 16px; box-shadow: 0 4px 20px rgba(11,44,107,.08); transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s; height: 100%; overflow: hidden; background: #fff; }
.ap-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(11,44,107,.14); }
.ap-card .icon-wrap {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(11,44,107,.08), rgba(212,175,55,.15));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ap-blue); font-size: 1.5rem; margin-bottom: 1rem;
  transition: transform .3s, background .3s;
}
.ap-card:hover .icon-wrap { transform: scale(1.08); background: linear-gradient(135deg, var(--ap-blue), var(--ap-blue-light)); color: #fff; }

/* Service image cards */
.ap-service-card { border: none; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(11,44,107,.1); transition: transform .35s, box-shadow .35s; height: 100%; background: #fff; }
.ap-service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(11,44,107,.16); }
.ap-service-card .ap-service-img { position: relative; height: 200px; overflow: hidden; }
.ap-service-card .ap-service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ap-service-card:hover .ap-service-img img { transform: scale(1.08); }
.ap-service-card .ap-service-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,29,69,.75) 0%, transparent 60%);
}
.ap-service-icon {
  position: absolute; bottom: 14px; left: 16px; z-index: 2;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-light));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ap-blue); font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(0,0,0,.25);
}
.ap-service-card .card-body { padding: 1.35rem 1.5rem 1.5rem; }
.ap-service-card h5 { color: var(--ap-blue); font-family: 'Playfair Display', serif; margin-bottom: .5rem; }
.ap-service-link { color: var(--ap-gold); font-weight: 600; text-decoration: none; font-size: .9rem; transition: gap .2s; display: inline-flex; align-items: center; gap: .35rem; }
.ap-service-link:hover { color: var(--ap-blue); gap: .55rem; }

/* About preview */
.ap-about-img { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(11,44,107,.2); position: relative; }
.ap-about-img img { width: 100%; height: 420px; object-fit: cover; }
.ap-about-badge {
  position: absolute; bottom: 24px; right: 24px;
  background: linear-gradient(135deg, var(--ap-gold), var(--ap-gold-light));
  color: var(--ap-blue); font-weight: 700;
  padding: 1rem 1.5rem; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  text-align: center; line-height: 1.2;
}
.ap-about-badge .num { font-size: 2rem; font-family: 'Playfair Display', serif; display: block; }
.ap-about-badge .txt { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; }
.ap-check-list { list-style: none; padding: 0; margin: 0; }
.ap-check-list li { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; font-size: .95rem; }
.ap-check-list li i { color: var(--ap-gold); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }

/* Process steps */
.ap-process-num {
  font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700;
  color: rgba(11,44,107,.08); line-height: 1; margin-bottom: .5rem;
}
.ap-process-card { text-align: center; padding: 2rem 1.5rem; }
.ap-process-card .icon-wrap { margin: 0 auto 1rem; width: 64px; height: 64px; border-radius: 50%; font-size: 1.6rem; }

/* Stats */
.ap-stat-num { font-family: 'Playfair Display', serif; font-size: 2.75rem; font-weight: 700; color: var(--ap-blue); line-height: 1; }
.ap-stat-num span { color: var(--ap-gold); }
.ap-stat-card { border-left: 4px solid var(--ap-gold); }

/* Why choose feature grid */
.ap-feature-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ap-blue), var(--ap-blue-light));
  color: #fff; font-size: 1.75rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(11,44,107,.25);
  transition: transform .3s;
}
.ap-card:hover .ap-feature-icon { transform: scale(1.1) rotate(-5deg); }

/* Page hero */
.ap-page-hero { background: linear-gradient(135deg, #071d45, var(--ap-blue)); color: #fff; padding: 3.5rem 0 3rem; }
.ap-page-hero .breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.ap-page-hero .breadcrumb-item.active { color: var(--ap-gold); }

/* CTA */
.ap-cta { background: linear-gradient(135deg, #071d45, var(--ap-blue)); color: #fff; padding: 5rem 0; position: relative; overflow: hidden; }
.ap-cta::before {
  content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,175,55,.12) 0%, transparent 70%);
  border-radius: 50%;
}

/* Footer */
.ap-footer { background: #071d45; color: rgba(255,255,255,.8); }
.ap-footer a { color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s; }
.ap-footer a:hover { color: var(--ap-gold); }
.ap-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-family: 'Playfair Display', serif; }
.ap-footer-logo { height: 72px; }

/* Float buttons */
.ap-wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 1050; width: 58px; height: 58px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.75rem; box-shadow: 0 4px 20px rgba(37,211,102,.4); text-decoration: none; transition: transform .2s; }
.ap-wa-float:hover { transform: scale(1.08); color: #fff; }
.ap-call-float { position: fixed; bottom: 24px; left: 24px; z-index: 1050; width: 50px; height: 50px; background: var(--ap-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ap-blue); font-size: 1.25rem; box-shadow: 0 4px 15px rgba(212,175,55,.4); text-decoration: none; transition: transform .2s; }
.ap-call-float:hover { transform: scale(1.08); color: var(--ap-blue); }
@media (max-width: 768px) { .ap-call-float { bottom: 92px; } .ap-hero-slider, .ap-hero-slider .uk-slideshow-items, .ap-hero-slide { min-height: 75vh; } .ap-about-img img { height: 280px; } }

/* UIkit overrides */
.uk-accordion-title { font-size: 1rem; font-weight: 600; color: var(--ap-blue); padding: 1rem 0; }
.uk-accordion-title:hover { color: var(--ap-gold); }
.uk-dotnav > * > * { border-color: var(--ap-gold); }
.uk-dotnav > .uk-active > * { background: var(--ap-gold); }

/* Gallery */
.ap-gallery-item {
  border-radius: 14px; overflow: hidden;
  aspect-ratio: 1; position: relative;
  box-shadow: 0 4px 20px rgba(11,44,107,.1);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}
.ap-gallery-item:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(11,44,107,.18); }
.ap-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ap-gallery-item:hover img { transform: scale(1.06); }
.ap-gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,29,69,.85) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0; transition: opacity .3s;
}
.ap-gallery-item:hover .ap-gallery-overlay { opacity: 1; }
.ap-gallery-overlay span { color: #fff; font-weight: 600; font-size: .85rem; }

/* Loader */
#page-loader { position: fixed; inset: 0; background: var(--ap-blue); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity .5s; }
#page-loader.hide { opacity: 0; pointer-events: none; }
#page-loader img { height: 80px; animation: apPulse 1.5s ease infinite; }
@keyframes apPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.7;transform:scale(.95)} }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }
