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

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  /* Colors - Sleek & Premium editorial color scheme */
  --primary: #0e3a2f;        /* Deep Forest Green */
  --primary-light: #164f40;
  --primary-rgb: 14, 58, 47;
  --accent: #d48c46;         /* Golden Oak / Warm cedar tone */
  --accent-hover: #c57b34;
  --accent-rgb: 212, 140, 70;
  
  --bg-cream: #faf9f5;       /* Warm elegant cream */
  --bg-neutral: #f4f3ee;     /* Muted grey-cream */
  --bg-white: #ffffff;
  --bg-dark: #091411;        /* Midnight Forest Slate */
  
  --text-dark: #121c19;      /* Slate black */
  --text-light: #f5f7f6;
  --text-muted: #53645f;     /* Sophisticated muted slate */
  
  --border-color: rgba(14, 58, 47, 0.08);
  --border-light: rgba(255, 255, 255, 0.08);
  
  /* Typography */
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout */
  --sidebar-width: 250px;
  
  /* Animations & Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.25s var(--ease-in-out);
  --transition-normal: 0.45s var(--ease-out-expo);
  --transition-slow: 0.85s var(--ease-out-expo);
  
  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(9, 20, 17, 0.03);
  --shadow-md: 0 12px 35px rgba(9, 20, 17, 0.05);
  --shadow-lg: 0 24px 60px rgba(9, 20, 17, 0.08);
  --shadow-glass: inset 0 1px 2px rgba(255, 255, 255, 0.15), 0 8px 32px rgba(9, 20, 17, 0.08);
}

/* --- RESET & BASIC STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Customized scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Typographic Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.01em;
}

p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Brand tag accent */
.section-label {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* Buttons - Capsule, clean styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(212, 140, 70, 0.2);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 140, 70, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-white-outline {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-white-outline:hover {
  background-color: var(--text-light);
  color: var(--primary);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

/* --- LAYOUT STRUCTURE --- */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
}

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
}

/* --- SIDEBAR NAVIGATION (DESKTOP) --- */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(250, 249, 245, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  padding: 3rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 100;
  transition: var(--transition-normal);
}

.brand-container {
  display: flex;
  flex-direction: column;
}

.logo-img {
  max-width: 100%;
  height: auto;
  transition: transform var(--transition-normal);
}

.logo-link:hover .logo-img {
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2.5rem;
  margin-bottom: auto;
}

.nav-item {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-fast);
}

.nav-item i {
  font-size: 0.9rem;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.nav-item:hover {
  color: var(--primary);
  background-color: rgba(14, 58, 47, 0.05);
}

.nav-item:hover i {
  color: var(--accent);
  opacity: 1;
}

.nav-item.active {
  color: var(--primary);
  background-color: rgba(14, 58, 47, 0.08);
  font-weight: 600;
}

.nav-item.active i {
  color: var(--accent);
  opacity: 1;
}

.sidebar-cta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.sidebar-contact {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sidebar-contact p {
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.sidebar-contact a {
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sidebar-contact a:hover {
  color: var(--accent);
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
  display: flex;
  align-items: center;
  padding: 4rem clamp(2rem, 8vw, 6rem);
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.8s ease-in-out;
}

/* Ken burns visual effect on slide active */
@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -0.5%); }
}

.slide.active {
  opacity: 1;
  animation: kenBurns 7s ease-out forwards;
}

/* Radial dark gradient overlay to give high-end editorial contrast */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 35%, rgba(9, 20, 17, 0.15) 0%, rgba(9, 20, 17, 0.85) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s var(--ease-out-expo) forwards 0.2s;
}

.hero-title {
  color: var(--text-light);
  line-height: 1.05;
}

.hero-title span {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  display: block;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Scroll cues */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-light);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.8s ease-in-out infinite;
}

.scroll-text {
  font-family: var(--font-title);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* --- SECTION DEFAULTS --- */
section {
  padding: clamp(4rem, 10vw, 8rem) clamp(2rem, 6vw, 4rem);
  position: relative;
}

.section-header {
  max-width: 800px;
  margin-bottom: clamp(3rem, 8vw, 4.5rem);
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.15rem;
  max-width: 650px;
}

/* --- VALUE PROP / ABOUT SECTION --- */
.value-prop {
  background-color: var(--bg-cream);
  overflow: hidden;
}

.value-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.value-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.trex-badge-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background-color: var(--bg-white);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.trex-badge-img {
  height: 40px;
  width: auto;
}

.trex-badge-text {
  font-size: 0.85rem;
  line-height: 1.35;
}

.trex-badge-text strong {
  color: var(--primary);
  display: block;
  font-weight: 600;
}

.value-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1/1.1;
  box-shadow: var(--shadow-lg);
}

.value-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.value-visual:hover .value-visual-img {
  transform: scale(1.04);
}

.brand-graphic {
  position: absolute;
  top: -15%;
  right: -10%;
  width: 45%;
  height: auto;
  opacity: 0.03;
  pointer-events: none;
  color: var(--primary);
}

/* --- SERVICES GRID SECTION --- */
.services {
  background-color: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--bg-neutral);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-img-container {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  background-color: var(--primary);
}

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

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 20, 17, 0.3), transparent);
}

.service-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-card-icon {
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform var(--transition-normal);
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.service-card-link {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Card Hover Animations */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 140, 70, 0.2);
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card:hover .service-card-icon {
  transform: translateX(4px);
}

/* --- STATS COUNTER BAR --- */
.stats-bar {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 4.5rem clamp(2rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.stat-num {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245, 247, 246, 0.7);
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
}

/* --- INTERACTIVE SALES FUNNEL (QUIZ) --- */
.funnel-section {
  background-color: var(--bg-cream);
}

.funnel-container {
  max-width: 850px;
  margin: 0 auto;
  background-color: var(--bg-white);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.quiz-header {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 1.75rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-title {
  color: var(--text-light);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.quiz-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quiz-progress-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.quiz-progress-bar-container {
  width: 100px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  width: 20%;
  background-color: var(--accent);
  border-radius: 10px;
  transition: width var(--transition-normal);
}

.quiz-body {
  padding: 3rem 2.5rem;
  min-height: 380px;
}

.quiz-step {
  display: none;
  animation: fadeSlideIn var(--transition-normal) forwards;
}

.quiz-step.active {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.quiz-step-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.25rem;
}

.quiz-step-desc {
  text-align: center;
  max-width: 500px;
  margin: -0.75rem auto 0.75rem auto;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.option-card {
  background-color: var(--bg-neutral);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.option-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(14, 58, 47, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.35rem;
  transition: all var(--transition-normal);
}

.option-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}

.option-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Selected state */
.option-card.selected {
  background-color: rgba(212, 140, 70, 0.06);
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(212, 140, 70, 0.08);
}

.option-card.selected .option-icon-wrapper {
  background-color: var(--accent);
  color: var(--text-light);
}

.option-card:hover {
  border-color: var(--accent);
  background-color: var(--bg-white);
  transform: translateY(-3px);
}

.quiz-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 650px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.form-control {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-neutral);
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--bg-white);
}

.quiz-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-neutral);
}

.quiz-btn-prev {
  visibility: hidden;
}

.quiz-btn-prev.visible {
  visibility: visible;
}

.quiz-success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 1.5rem 0;
}

.success-icon-wrapper {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background-color: rgba(14, 58, 47, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* --- CASE STUDIES / RECENT PROJECTS --- */
.gallery-section {
  background-color: var(--bg-white);
}

.gallery-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  flex-wrap: wrap;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.filter-btn {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  background-color: var(--bg-neutral);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.filter-btn.active {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

/* Redesigned grid to look like case studies in menatwork.ca */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Custom layout logic for staggered grid widths */
#gallery-item-1 { grid-column: span 8; }
#gallery-item-2 { grid-column: span 4; }
#gallery-item-3 { grid-column: span 4; }
#gallery-item-4 { grid-column: span 8; }
#gallery-item-5 { grid-column: span 6; }
#gallery-item-6 { grid-column: span 6; }

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  cursor: pointer;
  position: relative;
  transition: opacity var(--transition-normal);
}

.gallery-card-img-wrapper {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background-color: var(--primary);
  width: 100%;
}

/* Staggered aspect ratios for the grid */
#gallery-item-1 .gallery-card-img-wrapper { aspect-ratio: 16/10; }
#gallery-item-2 .gallery-card-img-wrapper { aspect-ratio: 1/1.25; }
#gallery-item-3 .gallery-card-img-wrapper { aspect-ratio: 1/1.25; }
#gallery-item-4 .gallery-card-img-wrapper { aspect-ratio: 16/10; }
#gallery-item-5 .gallery-card-img-wrapper { aspect-ratio: 16/11; }
#gallery-item-6 .gallery-card-img-wrapper { aspect-ratio: 16/11; }

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow), opacity var(--transition-normal);
}

/* Subtle dark overlay and Discover button revealed on hover */
.gallery-card-hover-box {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.5rem;
  pointer-events: none;
}

.gallery-discover-btn {
  background-color: rgba(9, 20, 17, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.gallery-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.gallery-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-weight: 300;
}

.gallery-card-category {
  font-family: var(--font-title);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

/* Hover effects */
.gallery-card:hover .gallery-card-img {
  transform: scale(1.03);
  opacity: 0.75;
}

.gallery-card:hover .gallery-discover-btn {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card:hover .gallery-card-title {
  text-decoration: underline;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials {
  background-color: var(--bg-neutral);
  overflow: hidden;
}

.testimonials-slider {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  padding: 3.5rem 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: none;
  animation: fadeSlideIn var(--transition-normal) forwards;
}

.testimonial-card.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
  color: var(--accent);
  font-size: 1.15rem;
}

.testimonial-text {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  color: var(--primary);
  line-height: 1.5;
}

.testimonial-author {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
}

.testimonial-author span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.test-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition-fast);
}

.test-nav-btn:hover {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

/* --- FOOTER --- */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 3.5rem auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  max-width: 200px;
  height: auto;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.55);
  max-width: 380px;
  font-size: 0.9rem;
  font-weight: 300;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-heading {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-light);
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.footer-contact-info a {
  color: var(--text-light);
  font-weight: 600;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 5vw, 3rem) 0 clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
}

.social-icon:hover {
  background-color: var(--accent);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* --- MOBILE HEADER & SLIDE OVERLAY --- */
.mobile-header {
  display: none;
}

.mobile-nav-trigger {
  display: none;
}

.mobile-overlay {
  display: none;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 0.2;
    transform: translate(-50%, 12px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  /* Hide desktop sidebar */
  .sidebar {
    transform: translateX(-100%);
    pointer-events: none;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  /* Mobile Header */
  .mobile-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(250, 249, 245, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 2rem;
    z-index: 90;
  }
  
  .mobile-brand {
    max-height: 40px;
    width: auto;
  }
  
  /* Floating Bottom Menu capsule trigger (Men at Work style) */
  .mobile-nav-trigger {
    display: flex;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(14, 58, 47, 0.1);
    box-shadow: 0 8px 30px rgba(9, 20, 17, 0.1);
    border-radius: 50px;
    width: 130px;
    height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 110;
    transition: all var(--transition-normal);
  }
  
  .mobile-nav-trigger:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateX(-50%) translateY(-2px);
  }
  
  .menu-icon-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .menu-icon-bar {
    width: 16px;
    height: 1.5px;
    background-color: currentColor;
    transition: var(--transition-fast);
  }
  
  /* Active icon state */
  .mobile-nav-trigger.active .menu-icon-bar:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }
  
  .mobile-nav-trigger.active .menu-icon-bar:nth-child(2) {
    transform: scaleX(0);
  }
  
  .mobile-nav-trigger.active .menu-icon-bar:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }
  
  .menu-text {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  /* Fullscreen Overlay Menu sliding from bottom */
  .mobile-overlay {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    inset: 0;
    background-color: var(--bg-dark);
    z-index: 105;
    transform: translateY(100%);
    transition: transform 0.6s var(--ease-out-expo);
    padding: 7rem 2rem 4rem 2rem;
  }
  
  .mobile-overlay.active {
    transform: translateY(0);
  }
  
  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    overflow-y: auto;
    width: 100%;
  }
  
  .mobile-menu-item {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  
  .mobile-menu-item:hover,
  .mobile-menu-item.active {
    color: var(--accent);
  }
  
  .mobile-overlay-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    margin-top: 2rem;
  }
  
  /* Layout adjustments */
  .hero {
    padding-top: 7rem;
  }
  
  .value-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .value-visual {
    aspect-ratio: 4/3;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  /* Case Studies Staggered Grid to Single Grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  #gallery-item-1, #gallery-item-2, #gallery-item-3, 
  #gallery-item-4, #gallery-item-5, #gallery-item-6 {
    grid-column: span 1;
  }
  
  .gallery-card-img-wrapper {
    aspect-ratio: 16/10 !important;
  }
}

@media (max-width: 768px) {
  .hero-content {
    gap: 1.25rem;
  }
  
  .quiz-body {
    padding: 2rem 1.5rem;
  }
  
  .quiz-header, .quiz-footer {
    padding: 1.25rem 1.5rem;
  }
  
  .quiz-form {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .badge-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .trex-badge-container {
    width: 100%;
  }
  
  .gallery-filters {
    justify-content: center;
  }
  
  .filter-btn {
    width: 100%;
    text-align: center;
  }
}
