/* ============================================================
   UcheGod Communication Nig. Ltd — Design System
   Navy / Sky Blue / Signal Gold — classic, clean, sophisticated
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --navy: #0A1F44;
  --navy-deep: #071431;
  --sky: #1E90FF;
  --sky-light: #29B6F6;
  --gold: #F5A623;
  --paper: #FAF9F6;
  --paper-dim: #F1EFE9;
  --ink: #16213A;
  --ink-soft: #4A5670;
  --line: rgba(10, 31, 68, 0.12);
  --shadow: 0 12px 30px rgba(10, 31, 68, 0.10);
  --radius: 10px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Fraunces', serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p { max-width: 62ch; }

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

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

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

/* -------------------- Buttons -------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary{
  background: var(--navy);
  color: var(--paper);
}
.btn-primary:hover{ background: var(--navy-deep); box-shadow: var(--shadow); }
.btn-gold{
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover{ box-shadow: 0 10px 24px rgba(245,166,35,0.35); }
.btn-outline{
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover{ background: var(--navy); color: var(--paper); }
.btn-whatsapp{
  background: #25D366;
  color: #06210f;
}
.btn-whatsapp:hover{ box-shadow: 0 10px 24px rgba(37,211,102,0.35); }
.btn-block{ width: 100%; }
.btn[disabled]{ opacity: 0.5; cursor: not-allowed; }

/* -------------------- Header -------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img{ height: 46px; width: auto; }
.brand-name{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: 0.2px;
}
.brand-name small{
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.4px;
}
nav.main-nav{
  display: flex;
  align-items: center;
  gap: 32px;
}
nav.main-nav a{
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
nav.main-nav a:hover, nav.main-nav a.active{ color: var(--navy); }
nav.main-nav a.active::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
}
.cart-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--paper);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
}
.cart-pill .count{
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  padding: 0 5px;
}
.nav-toggle{ display: none; background: none; border: none; cursor: pointer; }

/* -------------------- Hero -------------------- */
.hero{
  position: relative;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--paper);
  overflow: hidden;
  padding: 90px 0 110px;
}
.hero .wrap{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-eyebrow{
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}
.hero h1{
  color: var(--paper);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  max-width: 14ch;
}
.hero p.lede{
  color: rgba(250,249,246,0.82);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

/* Signal rings animation — the one orchestrated hero moment */
.signal-stage{
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.signal-core{
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--sky-light), var(--sky) 60%, #0d5fb8 100%);
  box-shadow: 0 0 60px rgba(30,144,255,0.55);
  position: relative;
  z-index: 3;
}
.signal-ring{
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: pulse-ring 3.2s ease-out infinite;
}
.signal-ring.r1{ width: 180px; height: 180px; animation-delay: 0s; }
.signal-ring.r2{ width: 180px; height: 180px; animation-delay: 0.7s; }
.signal-ring.r3{ width: 180px; height: 180px; animation-delay: 1.4s; }
@keyframes pulse-ring{
  0%   { width: 130px; height: 130px; opacity: 0.85; border-color: var(--gold); }
  100% { width: 420px; height: 420px; opacity: 0; border-color: var(--sky-light); }
}
@media (prefers-reduced-motion: reduce){
  .signal-ring{ animation: none; opacity: 0.25; }
}

/* -------------------- Sections -------------------- */
section{ padding: 84px 0; }
.section-head{ max-width: 60ch; margin-bottom: 44px; }
.section-head .kicker{
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.section-alt{ background: var(--paper-dim); }

/* Category grid */
.cat-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.cat-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.cat-card:hover{ box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card{ padding: 0 0 24px; }
.cat-card .cat-photo{
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--paper-dim);
  margin-bottom: 18px;
  position: relative;
}
.cat-card .cat-photo img{
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.cat-card .cat-photo img.active{ opacity: 1; }
@media (prefers-reduced-motion: reduce){
  .cat-card .cat-photo img{ transition: none; }
}
.cat-card .cat-text{ padding: 0 24px; }
.cat-card h3{ font-size: 1.05rem; margin-bottom: 6px; }
.cat-card p{ color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* -------------------- Products -------------------- */
.toolbar{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.chip{
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink-soft);
}
.chip.active{ background: var(--navy); color: var(--paper); border-color: var(--navy); }

.product-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.product-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover{ box-shadow: var(--shadow); transform: translateY(-3px); }
.product-thumb{
  aspect-ratio: 1/1;
  background: var(--paper-dim);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.product-body{ padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat{ font-size: 0.74rem; color: var(--gold); font-weight: 700; }
.product-name{ font-family: 'Fraunces', serif; font-size: 1.02rem; color: var(--navy); }
.product-price{ font-weight: 700; color: var(--ink); margin-top: auto; }
.product-body .btn{ margin-top: 10px; padding: 10px; font-size: 0.86rem; }
.empty-state{
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
}

/* -------------------- Testimonials -------------------- */
.testi-stage{
  position: relative;
  min-height: 210px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--paper);
  padding: 40px;
  overflow: hidden;
}
.testi-slide{
  position: absolute;
  inset: 0;
  padding: 40px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.testi-slide.active{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.testi-quote{ font-family: 'Fraunces', serif; font-size: 1.2rem; max-width: 60ch; margin-bottom: 18px; }
.testi-meta{ display: flex; align-items: center; gap: 12px; color: rgba(250,249,246,0.75); font-size: 0.9rem; }
.stars{ color: var(--gold); letter-spacing: 2px; }
.testi-dots{ display: flex; gap: 8px; margin-top: 22px; }
.testi-dots span{ width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.testi-dots span.active{ background: var(--gold); }

.testi-form{
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.testi-form h3{ margin-bottom: 4px; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.single{ grid-template-columns: 1fr; }
label{ display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
input, select, textarea{
  width: 100%;
  padding: 11px 13px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  font-family: 'Inter', sans-serif;
  font-size: 0.94rem;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus{
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(30,144,255,0.15);
}
.rating-picker{ display: flex; gap: 6px; font-size: 1.4rem; }
.rating-picker button{
  background: none; border: none; cursor: pointer; color: var(--line); padding: 0;
}
.rating-picker button.on{ color: var(--gold); }

/* -------------------- Map / Contact -------------------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.contact-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-list{ list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
.contact-list li{ display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; }
.contact-list .ic{
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper-dim); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}
.map-frame{
  width: 100%; height: 100%; min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-frame iframe{ width: 100%; height: 100%; min-height: 340px; border: 0; }

/* -------------------- Footer -------------------- */
footer{
  background: var(--navy-deep);
  color: rgba(250,249,246,0.75);
  padding: 50px 0 24px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 34px;
}
footer h4{ color: var(--paper); font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.9rem; margin-bottom: 16px; }
footer .brand-name, footer .brand-name small{ color: var(--paper); }
footer p{ font-size: 0.9rem; }
footer ul{ list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.9rem; }
footer a:hover{ color: var(--gold); }
.footer-bottom{
  border-top: 1px solid rgba(250,249,246,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* -------------------- Cart Drawer -------------------- */
.overlay{
  position: fixed; inset: 0;
  background: rgba(7,20,49,0.55);
  z-index: 800;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.overlay.open{ opacity: 1; pointer-events: auto; }
.drawer{
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: #fff;
  z-index: 900;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.drawer.open{ transform: translateX(0); }
.drawer-head{
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer-head h3{ margin: 0; }
.drawer-close{ background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink-soft); }
.drawer-body{ padding: 20px 24px; overflow-y: auto; flex: 1; }
.cart-item{ display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img{ width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--paper-dim); }
.cart-item .ci-info{ flex: 1; }
.cart-item .ci-name{ font-weight: 600; font-size: 0.94rem; }
.cart-item .ci-price{ color: var(--ink-soft); font-size: 0.85rem; }
.qty-control{ display: flex; align-items: center; gap: 8px; }
.qty-control button{
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; font-weight: 700; color: var(--navy);
}
.remove-item{ background: none; border: none; color: #c0392b; cursor: pointer; font-size: 0.8rem; margin-left: 8px; }
.drawer-foot{ padding: 20px 24px; border-top: 1px solid var(--line); }
.total-row{ display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; }

/* -------------------- Modals -------------------- */
.modal{
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,20,49,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 20px;
}
.modal.open{ opacity: 1; pointer-events: auto; }
.modal-card{
  background: #fff;
  border-radius: var(--radius);
  width: 100%; max-width: 440px;
  padding: 32px;
  transform: scale(0.96);
  transition: transform 0.2s ease;
}
.modal.open .modal-card{ transform: scale(1); }
.modal-card.wide{ max-width: 560px; }
.modal-actions{ display: flex; gap: 12px; margin-top: 24px; }
.modal-actions .btn{ flex: 1; }

.receipt{
  font-family: 'Inter', sans-serif;
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  padding: 20px;
  margin: 18px 0;
  max-height: 300px;
  overflow-y: auto;
}
.receipt-row{ display: flex; justify-content: space-between; font-size: 0.9rem; padding: 6px 0; border-bottom: 1px dotted var(--line); }
.receipt-total{ display: flex; justify-content: space-between; font-weight: 700; padding-top: 12px; font-size: 1rem; }
.receipt-id{ font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 10px; }

.toast{
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: var(--paper);
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 0.92rem;
  z-index: 1100;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}
.toast.show{ opacity: 1; transform: translateX(-50%) translateY(0); }

/* -------------------- Admin -------------------- */
.admin-shell{ min-height: 100vh; background: var(--paper-dim); }
.admin-login{
  max-width: 400px; margin: 90px auto; background: #fff; padding: 36px;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.admin-bar{
  background: var(--navy); color: var(--paper);
  padding: 16px 0;
}
.admin-bar .wrap{ display: flex; justify-content: space-between; align-items: center; }
.admin-main{ padding: 40px 0; }
.admin-grid{ display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.panel{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.admin-table{ width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td{ text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.admin-table img{ width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.small-btn{ padding: 6px 12px; font-size: 0.78rem; border-radius: 5px; }
.error-msg{ color: #b3261e; font-size: 0.88rem; margin-top: 8px; min-height: 1.2em; }
.success-msg{ color: #1b7a3d; font-size: 0.88rem; margin-top: 8px; min-height: 1.2em; }

/* -------------------- Responsive -------------------- */
@media (max-width: 860px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .signal-stage{ height: 260px; order: -1; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .admin-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  nav.main-nav{
    position: fixed; top: 78px; left: 0; right: 0; bottom: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 22px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 400;
  }
  nav.main-nav.open{ transform: translateX(0); }
  .nav-toggle{ display: block; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}
