/* =======================================================
   COVERBOX DIGITAL — Global Shared Styles
   Corporate Design System (Brand Chanakya Alignment)
   ======================================================= */

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

:root {
  /* Colors */
  --primary: #D21A46;
  --primary-hover: #B01235;
  --primary-rgb: 210, 26, 70;
  
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-dark: #111827; /* Dark slate for footer */
  
  --text-primary: #1E293B;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --text-white: #FFFFFF;
  
  /* Spacing */
  --section-padding: clamp(60px, 8vw, 120px);
  --container-width: 1200px;
  --container-padding: clamp(16px, 4vw, 32px);
  
  /* Fonts */
  --font-family: 'Poppins', sans-serif;
  
  /* Borders & Shadows */
  --border-color: #E5E7EB;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index */
  --z-sticky: 100;
  --z-overlay: 200;
  --z-toast: 300;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #E2E8F0;
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: #CBD5E1;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-white);
}

/* ---------- Section Styling ---------- */
.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-tag {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* ---------- Header & Announcement Bar ---------- */
.announcement-bar {
  background-color: var(--text-primary);
  color: var(--text-white);
  padding: 10px 0;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  position: relative;
}

.announcement-bar strong {
  color: #FBBF24;
}

.navbar {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  transition: padding var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: height var(--transition-base);
}

.footer-logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-logo-icon {
  display: none; /* replaced by image logo */
}

.nav-logo-text {
  display: none; /* replaced by image logo */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 6px 0;
  position: relative;
}

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

.nav-item-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-item-dropdown:hover > .nav-link {
  color: var(--primary);
}

.nav-dropdown-item {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition-base), background-color var(--transition-base);
}

.nav-dropdown-item:hover {
  background-color: var(--bg-secondary);
  color: var(--primary);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: var(--z-overlay);
  padding: 80px 24px 40px;
  flex-direction: column;
  gap: 16px;
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}

.nav-mobile-menu.active {
  transform: translateX(0);
}

.nav-mobile-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 8px 0;
  display: block;
  transition: color var(--transition-base);
}

.nav-mobile-link:hover {
  color: var(--primary);
}

/* Mobile menu accordion dropdown styles */
.mobile-dropdown {
  width: 100%;
}

.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 8px 0;
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-base);
}

.mobile-dropdown-toggle:hover {
  color: var(--primary);
}

.mobile-dropdown-toggle .arrow {
  font-size: 0.8rem;
  transition: transform var(--transition-base);
  color: var(--text-muted);
}

.mobile-dropdown-toggle.active .arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1), padding var(--transition-base) ease;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-dropdown-menu.active {
  max-height: 500px;
  padding: 4px 0 16px 16px;
}

.mobile-dropdown-item {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition-base);
  display: block;
}

.mobile-dropdown-item:hover {
  color: var(--primary);
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  font-size: 0.8rem;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs-item {
  color: var(--text-muted);
}

.breadcrumbs-item a {
  color: var(--text-secondary);
}

.breadcrumbs-item a:hover {
  color: var(--primary);
}

.breadcrumbs-separator {
  color: var(--text-muted);
}

/* ---------- Card & Grid Templates ---------- */
.card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.3);
}

/* ---------- Form Elements ---------- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--bg-dark);
  color: #D1D5DB;
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-logo .nav-logo-text {
  color: var(--text-white);
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-column h4 {
  color: var(--text-white);
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: #9CA3AF;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  background-color: #374151;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1rem;
}

.footer-social-link[aria-label="Facebook"]:hover { background-color: #1877F2; }
.footer-social-link[aria-label="Instagram"]:hover { background-color: #E4405F; }
.footer-social-link[aria-label="LinkedIn"]:hover { background-color: #0A66C2; }
.footer-social-link[aria-label="YouTube"]:hover { background-color: #FF0000; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.footer-contact-item a {
  color: #D1D5DB;
}

.footer-contact-item a:hover {
  color: var(--primary);
}

.footer-contact-icon {
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: #9CA3AF;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #9CA3AF;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ---------- Toast Notification ---------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background-color: var(--bg-primary);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease;
  min-width: 280px;
  max-width: 380px;
  font-size: 0.85rem;
  font-weight: 500;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.hide {
  transform: translateY(-20px);
  opacity: 0;
}

.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.toast-success {
  border-left-color: #10B981;
}

.toast-success .toast-icon {
  background-color: #D1FAE5;
  color: #10B981;
}

.toast-error {
  border-left-color: #EF4444;
}

.toast-error .toast-icon {
  background-color: #FEE2E2;
  color: #EF4444;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-logo-img { height: 38px; }
  .footer-logo-img { height: 38px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; width: 100%; }
}
