/* ==========================================================================
   DodhWala - Modern Dairy Ecosystem
   Design System & Master Stylesheet
   ========================================================================== */

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

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Brand Color Palette */
  --dw-primary: #163A2A;
  --dw-primary-rgb: 22, 58, 42;
  --dw-secondary: #24543B;
  --dw-secondary-rgb: 36, 84, 59;
  --dw-deep: #0B2117;
  --dw-deep-rgb: 11, 33, 23;
  --dw-cream: #F5F1E8;
  --dw-cream-rgb: 245, 241, 232;
  --dw-warm-white: #FCFBF7;
  --dw-warm-white-rgb: 252, 251, 247;
  --dw-gold: #C8A96B;
  --dw-gold-rgb: 200, 169, 107;
  --dw-gold-hover: #b69656;
  --dw-soft-green: #DCE8D8;
  --dw-soft-green-rgb: 220, 232, 216;
  --dw-dark-text: #172019;
  --dw-muted-text: #68736B;
  --dw-border-light: rgba(22, 58, 42, 0.09);
  --dw-border-dark: rgba(255, 255, 255, 0.12);

  /* Typography */
  --dw-font-heading: 'Plus Jakarta Sans', 'Manrope', -apple-system, sans-serif;
  --dw-font-body: 'Inter', -apple-system, sans-serif;

  /* Component Dimensions & Radius */
  --dw-radius-sm: 10px;
  --dw-radius-md: 16px;
  --dw-radius-lg: 24px;
  --dw-radius-xl: 32px;
  --dw-radius-pill: 9999px;

  /* Shadows */
  --dw-shadow-sm: 0 2px 8px rgba(11, 33, 23, 0.04);
  --dw-shadow-md: 0 8px 24px -4px rgba(11, 33, 23, 0.06), 0 2px 6px -1px rgba(11, 33, 23, 0.04);
  --dw-shadow-lg: 0 20px 40px -8px rgba(11, 33, 23, 0.1), 0 4px 12px -2px rgba(11, 33, 23, 0.04);
  --dw-shadow-hover: 0 24px 48px -10px rgba(11, 33, 23, 0.14), 0 8px 16px -2px rgba(11, 33, 23, 0.06);

  /* Transitions */
  --dw-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --dw-transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--dw-font-body);
  color: var(--dw-dark-text);
  background-color: var(--dw-warm-white);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* --- Typography System --- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--dw-font-heading);
  color: var(--dw-dark-text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.heading-display {
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.heading-section {
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.heading-sub {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}

.text-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--dw-font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--dw-gold);
  margin-bottom: 0.875rem;
}

.text-eyebrow.text-eyebrow-dark {
  color: var(--dw-secondary);
}

.text-eyebrow-pill {
  background: rgba(200, 169, 107, 0.12);
  color: var(--dw-gold);
  padding: 0.35rem 1rem;
  border-radius: var(--dw-radius-pill);
  border: 1px solid rgba(200, 169, 107, 0.25);
}

.text-eyebrow-pill.pill-green {
  background: rgba(36, 84, 59, 0.08);
  color: var(--dw-secondary);
  border-color: rgba(36, 84, 59, 0.18);
}

.lead-text {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--dw-muted-text);
  line-height: 1.75;
  max-inline-size: 68ch;
}

.text-gold {
  color: var(--dw-gold) !important;
}

.text-forest {
  color: var(--dw-primary) !important;
}

.text-soft-green {
  color: var(--dw-soft-green) !important;
}

.text-muted-custom {
  color: var(--dw-muted-text) !important;
}

/* --- Global Spacing & Layout --- */
.section-padding {
  padding-top: clamp(4.5rem, 8vw, 8rem);
  padding-bottom: clamp(4.5rem, 8vw, 8rem);
}

.section-padding-sm {
  padding-top: clamp(3rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.container-dw {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
}

/* Background Variations */
.bg-cream {
  background-color: var(--dw-cream) !important;
}

.bg-warm-white {
  background-color: var(--dw-warm-white) !important;
}

.bg-forest {
  background-color: var(--dw-primary) !important;
  color: #ffffff;
}

.bg-deep {
  background-color: var(--dw-deep) !important;
  color: #ffffff;
}

.bg-forest h1, .bg-forest h2, .bg-forest h3, .bg-forest h4,
.bg-deep h1, .bg-deep h2, .bg-deep h3, .bg-deep h4 {
  color: #ffffff;
}

.bg-forest .text-muted-custom,
.bg-deep .text-muted-custom {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* --- Buttons --- */
.btn-dw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--dw-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--dw-radius-pill);
  transition: var(--dw-transition);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-dw-primary {
  background-color: var(--dw-primary);
  color: #ffffff;
  border-color: var(--dw-primary);
  box-shadow: 0 4px 14px rgba(22, 58, 42, 0.2);
}

.btn-dw-primary:hover {
  background-color: var(--dw-secondary);
  border-color: var(--dw-secondary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(22, 58, 42, 0.3);
}

.btn-dw-gold {
  background-color: var(--dw-gold);
  color: var(--dw-deep);
  border-color: var(--dw-gold);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(200, 169, 107, 0.25);
}

.btn-dw-gold:hover {
  background-color: var(--dw-gold-hover);
  border-color: var(--dw-gold-hover);
  color: var(--dw-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(200, 169, 107, 0.38);
}

.btn-dw-outline {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-dw-outline:hover {
  background-color: #ffffff;
  color: var(--dw-deep);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-dw-outline-dark {
  background-color: transparent;
  color: var(--dw-primary);
  border-color: rgba(22, 58, 42, 0.3);
}

.btn-dw-outline-dark:hover {
  background-color: var(--dw-primary);
  color: #ffffff;
  border-color: var(--dw-primary);
  transform: translateY(-2px);
}

.btn-dw-ghost {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-dw-ghost:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--dw-gold);
  color: var(--dw-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  border: none;
  cursor: pointer;
  transition: var(--dw-transition);
  position: relative;
  box-shadow: 0 0 0 0 rgba(200, 169, 107, 0.6);
  animation: pulse-ring 2s infinite;
}

.btn-play:hover {
  transform: scale(1.08);
  background: #ffffff;
  color: var(--dw-primary);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 169, 107, 0.6);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(200, 169, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 169, 107, 0);
  }
}

/* --- Cards --- */
.card-dw {
  background-color: #ffffff;
  border-radius: var(--dw-radius-lg);
  border: 1px solid var(--dw-border-light);
  box-shadow: var(--dw-shadow-sm);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: var(--dw-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-dw:hover {
  transform: translateY(-6px);
  box-shadow: var(--dw-shadow-hover);
  border-color: rgba(22, 58, 42, 0.18);
}

.card-dw-dark {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dw-border-dark);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.card-dw-dark:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(200, 169, 107, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.card-dw-cream {
  background-color: var(--dw-cream);
  border-color: rgba(22, 58, 42, 0.08);
}

.card-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--dw-radius-md);
  background: rgba(36, 84, 59, 0.08);
  color: var(--dw-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: var(--dw-transition);
}

.card-dw:hover .card-icon-box {
  background: var(--dw-primary);
  color: #ffffff;
  transform: scale(1.06);
}

.card-dw-dark .card-icon-box {
  background: rgba(200, 169, 107, 0.15);
  color: var(--dw-gold);
}

.card-dw-dark:hover .card-icon-box {
  background: var(--dw-gold);
  color: var(--dw-deep);
}

/* Image Card */
.card-image-wrap {
  border-radius: var(--dw-radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--dw-shadow-md);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--dw-transition-slow);
}

.card-image-wrap:hover img {
  transform: scale(1.04);
}

/* --- Navigation Header --- */
.navbar-dw {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 1.25rem 0;
  transition: all 0.35s ease-in-out;
  background-color: transparent;
}

.navbar-dw.scrolled {
  background-color: rgba(252, 251, 247, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.85rem 0;
  box-shadow: 0 4px 20px rgba(11, 33, 23, 0.06);
  border-bottom: 1px solid rgba(22, 58, 42, 0.06);
}

.navbar-dw .logo-light {
  display: block;
}

.navbar-dw .logo-dark {
  display: none;
}

.navbar-dw.scrolled .logo-light {
  display: none;
}

.navbar-dw.scrolled .logo-dark {
  display: block;
}

/* Nav links */
.navbar-dw .nav-link {
  font-family: var(--dw-font-heading);
  font-weight: 600;
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.5rem 0.95rem;
  border-radius: var(--dw-radius-pill);
  transition: var(--dw-transition);
  position: relative;
}

.navbar-dw .nav-link:hover,
.navbar-dw .nav-link.active {
  color: #ffffff;
}

.navbar-dw.scrolled .nav-link {
  color: var(--dw-dark-text);
}

.navbar-dw.scrolled .nav-link:hover,
.navbar-dw.scrolled .nav-link.active {
  color: var(--dw-primary);
  background-color: rgba(36, 84, 59, 0.06);
}

.navbar-dw .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background-color: var(--dw-gold);
  border-radius: 2px;
}

/* Custom Hamburger Toggle */
.navbar-toggler-dw {
  border: none;
  background: transparent;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.navbar-toggler-dw span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: var(--dw-transition);
}

.navbar-dw.scrolled .navbar-toggler-dw span {
  background-color: var(--dw-primary);
}

/* Mobile Offcanvas Drawer */
.offcanvas-dw {
  background-color: var(--dw-deep);
  color: #ffffff;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
}

.offcanvas-dw .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.offcanvas-dw .nav-link:hover,
.offcanvas-dw .nav-link.active {
  color: var(--dw-gold);
  padding-left: 0.5rem;
}

/* --- Hero Section --- */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  background-color: var(--dw-deep);
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-media img,
.hero-bg-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(11, 33, 23, 0.72) 0%,
    rgba(11, 33, 23, 0.45) 45%,
    rgba(11, 33, 23, 0.88) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--dw-transition);
}

.scroll-indicator:hover {
  color: var(--dw-gold);
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background-color: var(--dw-gold);
  border-radius: 2px;
  animation: mouse-scroll 1.6s infinite ease-in-out;
}

@keyframes mouse-scroll {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* Page Hero for Subpages */
.page-hero {
  position: relative;
  background-color: var(--dw-deep);
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
  color: #ffffff;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(36, 84, 59, 0.4) 0%, rgba(11, 33, 23, 0.95) 70%);
  z-index: 1;
}

.page-hero .container-dw {
  position: relative;
  z-index: 2;
}

/* Breadcrumb */
.dw-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
}

.dw-breadcrumb a {
  color: var(--dw-gold);
  text-decoration: none;
}

.dw-breadcrumb a:hover {
  text-decoration: underline;
}

/* --- Numbers / Statistics --- */
.stat-item {
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child {
  border-right: none;
}

@media (max-width: 767px) {
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
}

.stat-number {
  font-family: var(--dw-font-heading);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--dw-gold);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Technology Dashboard Mockup (CSS) --- */
.dashboard-mockup {
  background: #0D261B;
  border-radius: var(--dw-radius-lg);
  border: 1px solid rgba(200, 169, 107, 0.3);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
  padding: 1.75rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.25rem;
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

.metric-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--dw-radius-md);
  padding: 1rem;
}

.metric-pill .label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: block;
}

.metric-pill .value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

.chart-bar-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 85px;
  padding-top: 15px;
}

.chart-bar {
  flex: 1;
  background: rgba(200, 169, 107, 0.25);
  border-radius: 4px 4px 0 0;
  transition: var(--dw-transition);
  position: relative;
}

.chart-bar:hover,
.chart-bar.active {
  background: var(--dw-gold);
}

/* --- Traceability Connected Flow --- */
.traceability-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  position: relative;
  align-items: center;
}

.trace-step {
  text-align: center;
  position: relative;
  padding: 1rem 0.5rem;
}

.trace-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(200, 169, 107, 0.15);
  color: var(--dw-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 1.5px solid var(--dw-gold);
  margin-bottom: 0.8rem;
  transition: var(--dw-transition);
}

.trace-step:hover .trace-icon {
  background: var(--dw-gold);
  color: var(--dw-deep);
  transform: scale(1.1);
}

.trace-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Timeline Steps (Quality & Process) --- */
.process-step-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.process-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--dw-primary);
  color: var(--dw-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--dw-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(22, 58, 42, 0.2);
}

/* --- Photo Masonry & Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--dw-radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--dw-shadow-sm);
  background: var(--dw-cream);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--dw-transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 33, 23, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: var(--dw-transition);
}

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

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

.gallery-caption {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Masonry spans */
.gallery-col-4 { grid-column: span 4; height: 260px; }
.gallery-col-8 { grid-column: span 8; height: 260px; }
.gallery-col-6 { grid-column: span 6; height: 320px; }
.gallery-col-12 { grid-column: span 12; height: 340px; }

@media (max-width: 991px) {
  .gallery-col-4, .gallery-col-8, .gallery-col-6 {
    grid-column: span 6;
    height: 240px;
  }
}

@media (max-width: 575px) {
  .gallery-col-4, .gallery-col-8, .gallery-col-6, .gallery-col-12 {
    grid-column: span 12;
    height: 220px;
  }
}

/* --- FAQ Accordion --- */
.accordion-dw .accordion-item {
  background-color: #ffffff;
  border: 1px solid var(--dw-border-light);
  border-radius: var(--dw-radius-md) !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--dw-shadow-sm);
  transition: var(--dw-transition);
}

.accordion-dw .accordion-item:hover {
  border-color: rgba(22, 58, 42, 0.2);
}

.accordion-dw .accordion-button {
  font-family: var(--dw-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dw-dark-text);
  background-color: transparent;
  padding: 1.35rem 1.75rem;
  box-shadow: none;
}

.accordion-dw .accordion-button:not(.collapsed) {
  color: var(--dw-primary);
  background-color: rgba(36, 84, 59, 0.03);
}

.accordion-dw .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23163A2A'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: var(--dw-transition);
}

.accordion-dw .accordion-body {
  padding: 0 1.75rem 1.5rem 1.75rem;
  color: var(--dw-muted-text);
  line-height: 1.7;
}

/* --- Blog Cards & Category Filtering --- */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background-color: #ffffff;
  color: var(--dw-muted-text);
  border: 1px solid var(--dw-border-light);
  padding: 0.5rem 1.35rem;
  border-radius: var(--dw-radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--dw-transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--dw-primary);
  color: #ffffff;
  border-color: var(--dw-primary);
}

.blog-card {
  background: #ffffff;
  border-radius: var(--dw-radius-lg);
  border: 1px solid var(--dw-border-light);
  overflow: hidden;
  transition: var(--dw-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--dw-shadow-hover);
}

.blog-img-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--dw-transition-slow);
}

.blog-card:hover .blog-img-wrap img {
  transform: scale(1.06);
}

.blog-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 33, 23, 0.85);
  color: var(--dw-gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--dw-radius-pill);
  backdrop-filter: blur(8px);
}

.blog-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  font-size: 0.8125rem;
  color: var(--dw-muted-text);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 1rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--dw-dark-text);
}

.blog-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--dw-transition);
}

.blog-title a:hover {
  color: var(--dw-primary);
}

/* --- Forms & Inputs --- */
.form-dw .form-control,
.form-dw .form-select {
  border-radius: var(--dw-radius-md);
  border: 1.5px solid var(--dw-border-light);
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  background-color: #ffffff;
  color: var(--dw-dark-text);
  transition: var(--dw-transition);
}

.form-dw .form-control:focus,
.form-dw .form-select:focus {
  border-color: var(--dw-primary);
  box-shadow: 0 0 0 4px rgba(22, 58, 42, 0.12);
}

.form-dw label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dw-dark-text);
  margin-bottom: 0.4rem;
}

/* --- Footer --- */
.footer-dw {
  background-color: var(--dw-deep);
  color: rgba(255, 255, 255, 0.75);
  padding-top: clamp(4rem, 6vw, 6rem);
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-dw h5 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}

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

.footer-dw ul li {
  margin-bottom: 0.75rem;
}

.footer-dw ul li a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.925rem;
  transition: var(--dw-transition);
}

.footer-dw ul li a:hover {
  color: var(--dw-gold);
  padding-left: 4px;
}

.footer-social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  text-decoration: none;
  transition: var(--dw-transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-link:hover {
  background: var(--dw-gold);
  color: var(--dw-deep);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* --- Scroll Reveal Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.in-view {
  opacity: 1;
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Accessibility & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- Focus Rings & Accessibility --- */
:focus-visible {
  outline: 2.5px solid var(--dw-gold);
  outline-offset: 3px;
}
