/* ==========================================================================
   UK PRINT SOLUTIONS - Core Design System & Custom Styles
   ========================================================================== */

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

:root {
  --primary: #E31B23;
  --primary-hover: #C62828;
  --primary-light: #FFEBEE;
  --dark-bg: #0B0E14;
  --dark-surface: #141A23;
  --dark-card: #1C2431;
  --border-dark: #2A3649;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --blue-accent: #2563EB;
  --blue-light: #EFF6FF;
  --gold-accent: #EAB308;
  --green-accent: #10B981;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
  --shadow-glow: 0 0 25px rgba(227, 27, 35, 0.35);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #FAFAFB;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #0F172A;
  line-height: 1.25;
}

/* Force headings to be white inside dark backgrounds */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6 {
  color: #FFF !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

/* Top Announcement Bar */
.top-bar {
  background: var(--dark-bg);
  color: #94A3B8;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dark);
}

.top-bar a {
  color: #E2E8F0;
}
.top-bar a:hover {
  color: var(--primary);
}

/* Sticky Header & Navbar */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
  z-index: 1050;
}

.navbar-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--dark-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  color: #FFF;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(227, 27, 35, 0.25);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark-bg);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155 !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}

/* Custom Buttons */
.btn-uk-primary {
  background: linear-gradient(135deg, #E31B23 0%, #C62828 100%);
  color: #FFF !important;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 4px 15px rgba(227, 27, 35, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-uk-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(227, 27, 35, 0.45);
  color: #FFF;
}

.btn-uk-dark {
  background: var(--dark-bg);
  color: #FFF !important;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-uk-dark:hover {
  background: #1E293B;
  transform: translateY(-2px);
  color: #FFF;
}

.btn-uk-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 10px 24px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-uk-outline:hover {
  background: var(--primary);
  color: #FFF !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0B0E14 0%, #171E2B 60%, #0F172A 100%);
  color: #FFF;
  padding: 90px 0 80px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(227,27,35,0.2) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(227, 27, 35, 0.15);
  border: 1px solid rgba(227, 27, 35, 0.4);
  color: #FF6B6B;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title .highlight {
  background: linear-gradient(90deg, #E31B23 0%, #FF6B6B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #94A3B8;
  max-width: 600px;
  margin-bottom: 35px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(227, 27, 35, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

/* Glass Floating Badge */
.glass-float-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Feature Bullet Cards */
.feature-pill {
  background: #FFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.feature-pill:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* Product & Ink Cards */
.product-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  border: 1px solid #E2E8F0;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -10px rgba(0,0,0,0.12);
  border-color: var(--primary);
}

.product-thumb {
  position: relative;
  height: 230px;
  background: #F1F5F9;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.product-specs {
  list-style: none;
  margin: 14px 0 20px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-specs li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.product-specs li i {
  color: var(--green-accent);
  font-size: 0.85rem;
}

/* Certification Banner */
.cert-section {
  background: var(--dark-bg);
  color: #FFF;
  padding: 40px 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.cert-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cert-icon {
  font-size: 2.2rem;
  color: var(--green-accent);
}

/* Quote Calculator Container */
.calculator-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border: 1px solid #E2E8F0;
  padding: 35px;
}

.calc-price-box {
  background: linear-gradient(135deg, #0B0E14 0%, #1E293B 100%);
  color: #FFF;
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  position: sticky;
  top: 100px;
}

.calc-price-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: #FFF;
  margin: 10px 0;
}

.calc-price-amount span {
  color: var(--primary);
}

/* Form Controls */
.form-label-custom {
  font-weight: 700;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 8px;
}

.form-control-custom, .form-select-custom {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #CBD5E1;
  background: #FFF;
  transition: all 0.2s ease;
}

.form-control-custom:focus, .form-select-custom:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(227, 27, 35, 0.15);
}

/* Filter Buttons for Gallery */
.filter-btn {
  background: #FFF;
  border: 1.5px solid #E2E8F0;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(227, 27, 35, 0.25);
}

/* Gallery Grid item */
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 20, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #FFF;
  padding: 20px;
  text-align: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Footer Styling */
.footer-uk {
  background: var(--dark-bg);
  color: #94A3B8;
  padding: 70px 0 30px;
  border-top: 1px solid var(--border-dark);
}

.footer-uk h5 {
  color: #FFF;
  font-size: 1.1rem;
  margin-bottom: 22px;
  position: relative;
}

.footer-uk h5::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94A3B8;
}

.footer-links a:hover {
  color: #FFF;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 50px;
  padding-top: 25px;
  font-size: 0.85rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1100;
}

.toast-custom {
  background: var(--dark-bg);
  color: #FFF;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 60px 0 50px;
  }
  .calc-price-box {
    position: static;
    margin-top: 30px;
  }
}

/* ==========================================================================
   TAILWIND CSS & BOOTSTRAP CONFLICT FIX
   ========================================================================== */
/* Tailwind defines .collapse as visibility: collapse, which hides Bootstrap's navbars and accordions */
.collapse {
  visibility: visible !important;
}
