/*
Theme Name: Abuja Phones, Gadgets & Tech
Theme URI: https://abujaphones.com
Author: Abuja Phones, Gadgets & Tech
Author URI: https://abujaphones.com
Description: Custom Apple-inspired storefront theme for Abuja Phones, Gadgets & Tech — multi-brand phones, laptops, and gadgets in Wuse 2, Abuja. Built-in Product catalog (custom post type + Brand taxonomy), WhatsApp-first buying flow, and a Store Settings panel in the Customizer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: apgt
*/

:root {
  --black: #000;
  --white: #fff;
  --bg: #ffffff;
  --gray-100: #f5f5f7;
  --gray-200: #e8e8ed;
  --gray-400: #d2d2d7;
  --gray-600: #86868b;
  --gray-800: #1d1d1f;
  --blue: #0071e3;
  --blue-dark: #0058b3;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 72px;
  --max-w: 1200px;
  --ease: cubic-bezier(.4,0,.2,1);
  font-size: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--gray-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Placeholder marker (shown to logged-in admins only) ---------- */
.needs-content {
  outline: 2px dashed #ff9f0a;
  outline-offset: 4px;
  position: relative;
}
.needs-content::after {
  content: attr(data-placeholder);
  position: absolute;
  top: -12px;
  left: 8px;
  background: #ff9f0a;
  color: #1d1d1f;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--gray-200); }

.nav .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { font-weight: 700; font-size: 22px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.custom-logo { max-height: 32px; width: auto; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-800);
  opacity: .85;
  transition: opacity .2s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"] { color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gray-100);
  transition: transform .2s var(--ease);
}
.icon-btn:hover { transform: scale(1.08); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--black); margin: 5px 0; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    padding: 8px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    border-bottom: 1px solid var(--gray-200);
  }
  .nav.open .nav-links { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--gray-100); font-size: 22px; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 30px; border-radius: 980px; font-size: 20px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { text-decoration: underline; }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #2b2b2d; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  background: linear-gradient(180deg, #eaf6ff 0%, #d7edfb 55%, #bfe3f5 100%);
  color: var(--gray-800);
  position: relative;
  overflow: hidden;
}
.hero-eyebrow { font-size: 24px; font-weight: 600; color: var(--blue-dark); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(3rem, 7.5vw, 6.5rem); font-weight: 700; letter-spacing: -.03em; margin: 0 0 20px; max-width: 900px; }
.hero p { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--gray-600); max-width: 600px; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-visual {
  margin-top: 56px; width: 100%; max-width: 860px; aspect-ratio: 16/9; border-radius: var(--radius);
  background: linear-gradient(135deg, #dceefc, #c3e2f5); border: 1px solid #a9d4ec;
  display: grid; place-items: center; color: var(--gray-600); font-size: 18px; overflow: hidden;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.hero-visual.hero-carousel { position: relative; display: block; overflow: hidden; }
.hero-carousel-track { display: flex; width: 100%; height: 100%; transition: transform .7s var(--ease); }
.hero-carousel-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.hero-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel-dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero-carousel-dot { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease); }
.hero-carousel-dot:hover { background: rgba(255,255,255,.7); }
.hero-carousel-dot.is-active { background: var(--white); transform: scale(1.25); }
/* ---------- Section basics ---------- */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { font-size: 20px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.02em; margin: 0 0 12px; }
.section-head p { color: var(--gray-600); font-size: 24px; margin: 0; }
.section-alt { background: var(--gray-100); }

/* ---------- Feature / value grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.feature-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 32px 24px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.06); }
.feature-card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gray-100); display: grid; place-items: center; margin-bottom: 18px; font-size: 28px; }
.feature-card h3 { font-size: 24px; margin: 0 0 8px; }
.feature-card p { font-size: 20px; color: var(--gray-600); margin: 0; }

/* ---------- Category / brand strip ---------- */
.brand-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.brand-strip::-webkit-scrollbar { display: none; }
.brand-tile { flex: 0 0 auto; min-width: 200px; border-radius: var(--radius); padding: 28px; background: var(--gray-800); color: var(--white); transition: transform .25s var(--ease); }
.brand-tile:hover { transform: scale(1.03); }
.brand-tile h3 { margin: 0 0 6px; font-size: 26px; }
.brand-tile p { margin: 0; font-size: 19px; color: var(--gray-400); }

/* ---------- Product filter + grid ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.filter-btn { padding: 12px 24px; border-radius: 980px; border: 1px solid var(--gray-400); background: var(--white); font-size: 19px; font-weight: 500; cursor: pointer; transition: all .2s var(--ease); }
.filter-btn:hover { border-color: var(--black); }
.filter-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.product-card { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: transform .25s var(--ease), box-shadow .25s var(--ease); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,.08); }
.product-media { aspect-ratio: 1/1; background: linear-gradient(135deg, var(--gray-100), var(--gray-200)); display: grid; place-items: center; color: var(--gray-600); font-size: 18px; text-align: center; padding: 16px; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-tag { font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-600); }
.product-body h3 { margin: 4px 0; font-size: 24px; }
.product-body p { margin: 0 0 14px; font-size: 19px; color: var(--gray-600); flex: 1; }

/* ---------- Single product ---------- */
.single-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding-top: calc(var(--nav-h) + 40px); }
.single-product-media { aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--gray-100), var(--gray-200)); display: grid; place-items: center; color: var(--gray-600); }
.single-product-media img { width: 100%; height: 100%; object-fit: cover; }
.single-product-info h1 { font-size: clamp(2.3rem,5vw,3.4rem); letter-spacing: -.02em; margin: 8px 0 20px; }
.single-product-info .entry-content { color: var(--gray-600); font-size: 22px; margin-bottom: 28px; }
@media (max-width: 860px) { .single-product-layout { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-item { aspect-ratio: 4/5; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--gray-800), #3a3a3c); display: grid; place-items: center; color: var(--gray-400); font-size: 18px; cursor: pointer; overflow: hidden; position: relative; transition: transform .3s var(--ease); }
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item span { position: absolute; bottom: 14px; left: 14px; font-size: 16px; color: var(--white); background: rgba(0,0,0,.4); padding: 4px 10px; border-radius: 999px; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox-box { max-width: 700px; width: 100%; position: relative; }
.lightbox-inner { width: 100%; aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(135deg, var(--gray-800), #3a3a3c); display: grid; place-items: center; color: var(--gray-400); overflow: hidden; }
.lightbox-inner img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: -44px; right: 0; background: none; border: none; color: var(--white); font-size: 28px; cursor: pointer; }

/* ---------- About ---------- */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-visual { aspect-ratio: 4/3; border-radius: var(--radius); background: linear-gradient(135deg, var(--gray-800), #1d1d1f); display: grid; place-items: center; color: var(--gray-600); font-size: 18px; overflow: hidden; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(2.3rem,5vw,3.3rem); letter-spacing: -.02em; margin: 0 0 20px; }
.about-copy p { color: var(--gray-600); font-size: 22px; margin: 0 0 16px; }
.stat-row { display: flex; gap: 40px; margin-top: 32px; }
.stat h4 { font-size: 38px; margin: 0; letter-spacing: -.02em; }
.stat p { font-size: 18px; color: var(--gray-600); margin: 4px 0 0; }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.article-card { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.06); }
.article-media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--gray-100), var(--gray-200)); display: grid; place-items: center; color: var(--gray-600); font-size: 17px; overflow: hidden; }
.article-media img { width: 100%; height: 100%; object-fit: cover; }
.article-card .article-body { padding: 22px; }
.article-meta { font-size: 16px; color: var(--gray-600); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; }
.article-card h2 { font-size: 25px; line-height: 1.35; margin: 0 0 10px; }
.article-card p { font-size: 20px; color: var(--gray-600); margin: 0 0 16px; }

/* ---------- Single post ---------- */
.single-post { max-width: 720px; margin: 0 auto; padding-top: calc(var(--nav-h) + 40px); }
.single-post .article-meta { text-align: center; margin-bottom: 12px; }
.single-post h1 { font-size: clamp(2.3rem,5vw,3.4rem); letter-spacing: -.02em; text-align: center; margin: 0 0 32px; }
.single-post .entry-content { font-size: 24px; color: var(--gray-800); }
.single-post .entry-content p { margin: 0 0 20px; }
.single-post .entry-content h2 { font-size: 32px; margin: 36px 0 14px; letter-spacing: -.01em; }
.single-post .entry-content h3 { font-size: 26px; margin: 28px 0 12px; }
.single-post .entry-content img { border-radius: var(--radius-sm); margin: 20px 0; }
.single-post .entry-content blockquote { border-left: 3px solid var(--blue); margin: 24px 0; padding: 4px 0 4px 20px; color: var(--gray-600); font-style: italic; }
.single-post .entry-content ul, .single-post .entry-content ol { margin: 0 0 20px; padding-left: 22px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { padding: 12px 18px; border-radius: 980px; border: 1px solid var(--gray-400); font-size: 19px; }
.pagination .current { background: var(--black); color: var(--white); border-color: var(--black); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--black); color: var(--white); text-align: center; padding: 80px 24px; border-radius: var(--radius); margin: 0 24px; }
.cta-band h2 { font-size: clamp(2.3rem,5vw,3.3rem); margin: 0 0 14px; letter-spacing: -.02em; }
.cta-band p { color: var(--gray-400); margin: 0 0 32px; }

/* ---------- Footer ---------- */
footer { background: var(--gray-100); padding: 64px 0 32px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-col h4 { font-size: 18px; margin: 0 0 16px; color: var(--gray-800); }
.footer-col p, .footer-col a { display: block; font-size: 18px; color: var(--gray-600); margin-bottom: 10px; }
.footer-col a:hover { color: var(--black); }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-bottom { border-top: 1px solid var(--gray-400); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 16px; color: var(--gray-600); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.2); z-index: 1500; transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Utility / animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

.page-hero { padding: calc(var(--nav-h) + 64px) 0 48px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem,5vw,3.2rem); letter-spacing: -.02em; margin: 0 0 12px; }
.page-hero p { color: var(--gray-600); font-size: 17px; max-width: 560px; margin: 0 auto; }
