/* ============================================================
   Kanya Packaging — Premium Design System (2025/26)
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy:        #0c1630;
  --navy-light:  #162040;
  --brand-blue:  #1e3a8a;
  --brand-blue-l:#2563eb;
  --accent-teal: #0ea5e9;
  --accent-amber:#f59e0b;
  --surface:     #f1f5f9;
  --surface-2:   #e2e8f0;
  --card-bg:     rgba(255,255,255,0.72);
  --card-border: rgba(255,255,255,0.35);
  --text:        #1e293b;
  --text-muted:  #64748b;
  --radius:      16px;
  --radius-sm:   10px;
  --radius-xs:   6px;
  --shadow-sm:   0 2px 8px rgba(15,23,42,0.06);
  --shadow-md:   0 8px 24px rgba(15,23,42,0.10);
  --shadow-lg:   0 16px 48px rgba(15,23,42,0.14);
  --shadow-glow: 0 0 28px rgba(30,58,138,0.18);
  --transition:  0.3s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset & Base ---------- */
*,*::before,*::after { box-sizing: border-box; }

body {
  background: var(--surface);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--navy);
}

img { max-width: 100%; height: auto; }

a {
  color: var(--brand-blue-l);
  transition: color var(--transition);
}
a:hover { color: var(--accent-teal); }

::selection {
  background: var(--accent-teal);
  color: #fff;
}

/* ---------- Scroll Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(14,165,233,0.25); }
  50%     { box-shadow: 0 0 20px 6px rgba(14,165,233,0.18); }
}

.fade-in-up {
  animation: fadeInUp 0.7s ease both;
}

/* ---------- Top Announcement Strip ---------- */
.top-strip {
  background: linear-gradient(90deg, var(--navy), var(--brand-blue));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  letter-spacing: 0.03em;
  text-align: center;
}
.top-strip i { margin-right: 6px; color: var(--accent-amber); }

/* ---------- Navbar ---------- */
.site-nav {
  background: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-2);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.site-nav .navbar-brand {
  color: #1b1464;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.site-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-xs);
  padding: 3px 4px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.site-logo:hover {
  transform: scale(1.06);
}

.site-nav .nav-link {
  color: #1b1464;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: #1b1464;
  background: rgba(27,20,100,0.05);
  font-weight: 600;
}
.site-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px;
  background: #1b1464;
  border-radius: 3px;
}

.nav-cart-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent-teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 4px;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--accent-teal) 50%, var(--brand-blue) 100%);
  background-size: 200% 200%;
  animation: shimmer 8s ease-in-out infinite;
  color: #fff;
  box-shadow: var(--shadow-lg);
  min-height: 320px;
  display: flex;
  align-items: center;
  width: 100%;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(12,22,48,0.55) 0%, rgba(12,22,48,0.15) 100%);
  z-index: 1;
}
.hero > * { position: relative; z-index: 2; }

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.hero .lead {
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  opacity: 0.92;
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  color: var(--accent-amber);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.18);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue-l), var(--accent-teal));
  border: none;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-teal), var(--brand-blue-l));
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(14,165,233,0.35);
}

.btn-light {
  background: #fff;
  color: var(--brand-blue);
  font-weight: 700;
  border: none;
  box-shadow: var(--shadow-sm);
}
.btn-light:hover {
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 2px solid var(--brand-blue-l);
  color: var(--brand-blue-l);
}
.btn-outline-primary:hover {
  background: var(--brand-blue-l);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.2);
}

.btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  border: none;
  box-shadow: 0 4px 16px rgba(5,150,105,0.25);
}
.btn-success:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16,185,129,0.35);
}

.btn-outline-danger {
  border: 2px solid #ef4444;
  color: #ef4444;
  border-radius: var(--radius-xs);
}
.btn-outline-danger:hover {
  background: #ef4444;
  color: #fff;
}

/* ---------- Cards — Glassmorphism ---------- */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--brand-blue) 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border: none;
  padding: 0.85rem 1.25rem;
}

.card-body {
  padding: 1.5rem;
}

.card-product {
  border: 1px solid var(--surface-2);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(30,58,138,0.12);
}

/* ---------- Premium Product Cards ---------- */
.premium-card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}
.premium-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--brand-blue-l), var(--accent-teal), var(--accent-amber));
}

.img-tile {
  height: 240px;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}
.premium-card:hover .img-tile {
  transform: scale(1.06);
}

/* ---------- Feature Banners ---------- */
.feature-banner {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  position: relative;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-banner:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}
.feature-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,22,48,0.78) 0%, rgba(12,22,48,0.08) 60%);
  transition: opacity var(--transition);
}
.feature-banner:hover::before {
  background: linear-gradient(to top, rgba(12,22,48,0.85) 0%, rgba(12,22,48,0.15) 60%);
}
.feature-banner > * {
  position: relative;
  z-index: 2;
}
.feature-banner span {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* ---------- Why-Us / Icon Cards ---------- */
.icon-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.icon-card .icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue-l), var(--accent-teal));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 20px rgba(14,165,233,0.22);
  transition: transform var(--transition);
}
.icon-card:hover .icon-wrap {
  transform: scale(1.1) rotate(-5deg);
}
.icon-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* ---------- Stats Counter Strip ---------- */
.stats-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--brand-blue) 100%);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-teal);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent-teal);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.testimonial-card .quote-icon {
  font-size: 2rem;
  color: var(--accent-teal);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.testimonial-card p {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.testimonial-card strong {
  color: var(--navy);
  font-weight: 600;
}
.testimonial-stars {
  color: var(--accent-amber);
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

/* ---------- Section Headings ---------- */
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  padding-bottom: 0.7rem;
  margin-bottom: 1.5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 50px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-blue-l), var(--accent-teal));
}
.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- Page Header (Inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--brand-blue) 100%);
  color: #fff;
  padding: 2.5rem 0;
  margin-bottom: 2rem;
  border-radius: 0 0 var(--radius) var(--radius);
}
.page-header h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #fff;
  font-size: 1.8rem;
  margin: 0;
}
.page-header .breadcrumb {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
}
.page-header .breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.page-header .breadcrumb a:hover { color: #fff; }
.page-header .breadcrumb span { color: var(--accent-teal); }

/* ---------- Form Enhancements ---------- */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--surface-2);
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 4px rgba(14,165,233,0.12);
}
.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

/* ---------- Tables ---------- */
.table {
  border-radius: var(--radius);
  overflow: hidden;
}
.table thead {
  background: linear-gradient(135deg, var(--navy), var(--brand-blue));
  color: #fff;
}
.table thead th {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.9rem 1rem;
  border: none;
}
.table tbody tr {
  transition: background var(--transition);
}
.table tbody tr:hover {
  background: rgba(14,165,233,0.04);
}
.table td {
  vertical-align: middle;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
}

/* ---------- Alerts ---------- */
.alert {
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 500;
  font-size: 0.92rem;
}
.alert-success {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
}
.alert-info {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
}
.alert-warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

/* ---------- Calc Result Boxes ---------- */
.calc-result {
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--surface-2);
  background: var(--surface);
}
.calc-result-total {
  background: linear-gradient(135deg, #dcfce7, #d1fae5);
  border-color: #86efac;
  font-size: 1rem;
}
.calc-result strong {
  color: var(--navy);
}

/* ---------- Footer ---------- */
.footer-premium {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1d3a 40%, var(--navy-light) 100%);
  color: rgba(255,255,255,0.7);
  padding-top: 3rem;
  position: relative;
  overflow: hidden;
}
.footer-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue-l), var(--accent-teal), var(--accent-amber), var(--accent-teal), var(--brand-blue-l));
}

.footer-premium h6 {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.6rem;
}
.footer-premium h6::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 3px;
  background: var(--accent-teal);
  border-radius: 3px;
}

.footer-premium a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}
.footer-premium a:hover {
  color: var(--accent-teal);
  padding-left: 4px;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
  filter: grayscale(1) invert(1) brightness(200%);
  mix-blend-mode: screen;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.2rem 0;
  margin-top: 2rem;
  font-size: 0.84rem;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-teal);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition);
}
.back-to-top:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Utility ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-blue-l), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-tag {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero {
    min-height: 240px;
    border-radius: var(--radius-sm);
  }
  .hero h1 { font-size: 1.5rem; }
  .stats-strip { padding: 1.5rem 1rem; }
  .stat-number { font-size: 1.8rem; }
  .page-header { padding: 1.8rem 0; }
  .page-header h1 { font-size: 1.4rem; }
  .card-body { padding: 1.15rem; }
  .feature-banner { min-height: 220px; }
  .footer-premium { padding-top: 2rem; }
}

@media (max-width: 576px) {
  .top-strip { font-size: 0.76rem; padding: 0.4rem 0.5rem; }
  .site-logo { height: 38px; }
  .section-title { font-size: 1.25rem; }
}

/* ---------- Scrollbar (Webkit) ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--brand-blue-l), var(--accent-teal));
  border-radius: 10px;
}
