/**
 * LevelHeads Advisory - Consolidated Stylesheet
 * Based on Case Studies page design (the reference)
 * All pages should link to this stylesheet
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  --brand-yellow: #fcc953;
  --brand-black: #000000;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-mid: #666666;
  --gray-dark: #333333;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Montserrat', 'Inter', sans-serif;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--brand-black);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--display);
  line-height: 1.1;
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
  background: var(--brand-black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: clamp(35px, 4vw, 50px);
  width: auto;
  transition: transform 0.3s ease;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--brand-yellow);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--brand-yellow);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  border-color: var(--brand-yellow);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.social-icon:hover svg {
  fill: var(--brand-yellow);
}

/* ============================================
   Language Selector
   ============================================ */
.lang-selector {
  position: relative;
  margin-left: 1rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border: 3px solid var(--brand-black);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
  min-width: 160px;
  display: none;
  z-index: 1000;
}

.lang-dropdown.active {
  display: block;
}

.lang-option {
  display: block;
  padding: 0.7rem 1rem;
  color: var(--brand-black);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--gray-light);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: var(--brand-yellow);
}

.lang-option.active {
  background: var(--gray-light);
}

/* ============================================
   Mobile Menu & Hamburger
   ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 15px;
  margin: -15px;
  z-index: 1001;
  box-sizing: content-box;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--brand-black);
  z-index: 999;
  padding-top: 80px;
  padding-top: max(80px, env(safe-area-inset-top, 80px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.mobile-menu a:hover {
  background: rgba(252, 201, 83, 0.1);
  color: var(--brand-yellow);
}

.mobile-menu .mobile-social {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.mobile-menu .mobile-social .social-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
}

.mobile-menu .mobile-social .social-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Mobile Language Selector */
.mobile-lang {
  width: 100%;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.mobile-lang__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.mobile-lang__options {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.mobile-lang__option {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  min-width: 60px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  transition: all 0.2s ease;
}

.mobile-lang__option.active {
  background: var(--brand-yellow);
  color: var(--brand-black);
  border-color: var(--brand-yellow);
}

.mobile-lang__option:hover {
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
}

/* ============================================
   Page Hero (Yellow Section)
   ============================================ */
.page-hero {
  background: var(--brand-yellow);
  padding: clamp(4rem, 8vw, 6rem) 5vw;
}

.page-hero__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

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

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.page-hero__lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 700px;
  line-height: 1.6;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 3px solid;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-black);
  color: var(--white);
  border-color: var(--brand-black);
}

.btn-primary:hover {
  background: var(--brand-yellow);
  color: var(--brand-black);
  border-color: var(--brand-black);
  transform: translateY(-3px);
  box-shadow: 0 6px 0 var(--brand-black);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-yellow {
  background: var(--brand-yellow);
  color: var(--brand-black);
  border-color: var(--brand-yellow);
}

.btn-yellow:hover {
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--brand-black);
  border-color: var(--brand-black);
}

.btn-outline:hover {
  background: var(--brand-black);
  color: var(--brand-yellow);
}

/* ============================================
   Content Sections
   ============================================ */
.section {
  padding: clamp(4rem, 8vw, 6rem) 5vw;
}

.section__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-heading {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.section-lede {
  font-size: 1.1rem;
  color: var(--gray-mid);
  max-width: 700px;
  margin-bottom: 2rem;
}

/* ============================================
   Cards (Generic)
   ============================================ */
.card {
  background: var(--white);
  border: 4px solid var(--brand-black);
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) translateX(-8px);
  box-shadow: 12px 12px 0 var(--brand-yellow);
}

.card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.8rem;
  background: var(--gray-light);
  border: 2px solid var(--brand-black);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.card__tag--highlight {
  background: var(--brand-yellow);
}

.card h2,
.card h3 {
  font-family: var(--display);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.card__excerpt {
  color: var(--gray-mid);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  transition: gap 0.3s ease;
}

.card__link:hover {
  gap: 0.8rem;
  color: var(--brand-yellow);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: var(--brand-black);
  color: var(--white);
  padding: clamp(4rem, 8vw, 6rem) 5vw;
  text-align: center;
}

.cta-section__inner {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--brand-black);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 5vw;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: var(--brand-yellow);
}

/* ============================================
   Touch & Interaction Improvements
   ============================================ */
.hamburger,
.lang-btn,
.btn,
.social-icon,
.nav-links a,
.mobile-menu a,
.lang-option {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hamburger,
.lang-btn {
  -webkit-user-select: none;
  user-select: none;
}

/* ============================================
   Focus Styles for Accessibility
   ============================================ */
.hamburger:focus-visible,
.lang-btn:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 4px;
}

.hamburger:focus:not(:focus-visible),
.lang-btn:focus:not(:focus-visible) {
  outline: none;
}

.lang-option:focus {
  outline: none;
  background: var(--gray-light);
}

.lang-option:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: -2px;
}

.mobile-menu a:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu a:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: -2px;
}

/* ============================================
   Safe Area Insets for Notched Devices
   ============================================ */
@supports (padding: max(0px)) {
  header {
    padding-left: max(0, env(safe-area-inset-left));
    padding-right: max(0, env(safe-area-inset-right));
  }

  footer {
    padding-bottom: max(3rem, env(safe-area-inset-bottom));
  }
}

/* ============================================
   Responsive Breakpoints
   ============================================ */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-social {
    display: none;
  }
}

@media (max-width: 540px) {
  .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 374px) {
  body {
    font-size: 15px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Print Stylesheet
   ============================================ */
@media print {
  header,
  .hamburger,
  .mobile-menu,
  .lang-selector,
  .nav-social,
  .btn {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
  }

  .page-hero,
  .cta-section,
  footer {
    background: white !important;
    color: black !important;
  }

  a {
    color: black !important;
    text-decoration: underline !important;
  }

  a[href^='http']:after {
    content: ' (' attr(href) ')';
    font-size: 0.85em;
    color: #666;
  }

  .card {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd;
  }
}

/* ============================================
   Page-Specific: Homepage Hero
   ============================================ */
.hero {
  background: var(--brand-yellow);
  color: var(--brand-black);
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-yellow);
  opacity: 0.92;
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 5vw;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero__lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   Page-Specific: Case Studies
   ============================================ */
.case-studies-section {
  padding: clamp(4rem, 8vw, 6rem) 5vw;
  background: var(--white);
}

.case-studies-section__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.case-card {
  background: var(--white);
  border: 4px solid var(--brand-black);
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.case-card:hover {
  transform: translateY(-8px) translateX(-8px);
  box-shadow: 12px 12px 0 var(--brand-yellow);
}

.case-card__tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.case-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.8rem;
  background: var(--gray-light);
  border: 2px solid var(--brand-black);
}

.case-card__tag--highlight {
  background: var(--brand-yellow);
}

.case-card h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.case-card__excerpt {
  color: var(--gray-mid);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.case-card__stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--brand-black);
  color: var(--white);
}

.case-card__stat-number {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-yellow);
}

.case-card__stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  transition: gap 0.3s ease;
}

.case-card__link:hover {
  gap: 0.8rem;
  color: var(--brand-yellow);
}

@media (max-width: 768px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Page-Specific: Services
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--white);
  border: 4px solid var(--brand-black);
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px) translateX(-8px);
  box-shadow: 12px 12px 0 var(--brand-yellow);
}

.service-card h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--gray-mid);
  margin-bottom: 1.5rem;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

/* ============================================
   Page-Specific: Team
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  background: var(--white);
  border: 4px solid var(--brand-black);
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-8px) translateX(-8px);
  box-shadow: 12px 12px 0 var(--brand-yellow);
}

.team-member__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-member__info {
  padding: 1.5rem;
}

.team-member__name {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.team-member__role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.team-member__bio {
  color: var(--gray-mid);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   Page-Specific: Contact Form
   ============================================ */
.form-section {
  padding: clamp(4rem, 8vw, 6rem) 5vw;
  background: var(--white);
}

.form-section__inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group label .required {
  color: #e53935;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 1rem;
  border: 3px solid var(--brand-black);
  background: var(--white);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-yellow);
  box-shadow: 4px 4px 0 var(--brand-yellow);
}

.form-group textarea {
  min-height: 180px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Budget Group (Fieldset/Legend for accessibility) */
.budget-group {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.budget-group__label {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0;
  margin-bottom: 0.25rem;
}

.budget-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-light);
  transition: all 0.2s ease;
}

.budget-option:hover {
  border-color: var(--brand-yellow);
  background: rgba(252, 201, 83, 0.1);
}

.budget-option input[type='radio'] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--brand-yellow);
}

.budget-option input[type='radio']:checked + span {
  font-weight: 600;
}

/* ============================================
   Page-Specific: Blog/Insights
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--white);
  border: 4px solid var(--brand-black);
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px) translateX(-8px);
  box-shadow: 12px 12px 0 var(--brand-yellow);
}

.blog-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card__content {
  padding: 1.5rem;
}

.blog-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-mid);
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.blog-card__excerpt {
  color: var(--gray-mid);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

/* ============================================
   Homepage: Hero Section (Extended)
   ============================================ */
.hero__text h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 4px rgba(252, 201, 83, 0.5);
}

.hero__text p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 550px;
  text-shadow: 0 1px 2px rgba(252, 201, 83, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-black);
  border-color: var(--brand-black);
}

.btn-secondary:hover {
  background: var(--brand-black);
  color: var(--brand-yellow);
  transform: translateY(-3px) translateX(-3px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
}

.hero__visual {
  position: relative;
}

.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat-box {
  background: var(--brand-black);
  color: var(--brand-yellow);
  padding: 2rem;
  border: 3px solid var(--brand-black);
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px) translateX(-5px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}

.stat-box__number {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-box__label {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Homepage: Divider Section
   ============================================ */
.divider-section {
  background: var(--brand-black);
  color: var(--white);
  padding: 3rem 0;
}

.divider-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.divider-content h2,
.divider-content h3 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
}

.trusted-by {
  display: flex;
  gap: 2rem;
  align-items: center;
  opacity: 0.7;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   Homepage: Services Section
   ============================================ */
.services {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--gray-light);
}

.services__header {
  max-width: 1400px;
  margin: 0 auto 4rem;
  padding: 0 5vw;
}

.services__header h2 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.services__header p {
  font-size: 1.2rem;
  color: var(--gray-mid);
  max-width: 700px;
}

/* Homepage services grid overrides */
.services .services-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
  margin-top: 0;
}

.services .service-card {
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.services .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.services .service-card:hover::before {
  transform: scaleX(1);
}

.services .service-card:hover {
  box-shadow: 12px 12px 0 var(--accent-color);
}

/* Service card accent colors */
.services .service-card:nth-child(1) {
  --accent-color: #00cec9;
}
.services .service-card:nth-child(2) {
  --accent-color: #ff6b6b;
}
.services .service-card:nth-child(3) {
  --accent-color: #6c5ce7;
}
.services .service-card:nth-child(4) {
  --accent-color: #0984e3;
}
.services .service-card:nth-child(5) {
  --accent-color: #fd7f34;
}
.services .service-card:nth-child(6) {
  --accent-color: #00b894;
}

.service-card__number {
  font-family: var(--display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.services .service-card h3 {
  font-size: 1.6rem;
}

.services .service-card ul {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.services .service-card li {
  display: flex;
  align-items: start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--gray-dark);
}

.services .service-card li::before {
  content: '→';
  color: var(--accent-color);
  font-weight: 900;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ============================================
   Homepage: Results Section
   ============================================ */
.results {
  background: var(--brand-yellow);
  padding: 5rem 0;
}

.results__content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
}

.results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.result-item {
  position: relative;
}

.result-item__number {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.result-item__text {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

/* ============================================
   Homepage: Team Section
   ============================================ */
.team {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.team__header {
  max-width: 1400px;
  margin: 0 auto 4rem;
  padding: 0 5vw;
}

.team__header h2 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.team__grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
  display: grid;
  gap: 3rem;
}

/* Homepage team member (horizontal layout) */
.team .team-member {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
  background: var(--gray-light);
  padding: 3rem;
  border: 4px solid var(--brand-black);
  align-items: start;
  overflow: visible;
}

.team .team-member:hover {
  transform: none;
  box-shadow: none;
}

.team .team-member:nth-child(even) {
  grid-template-columns: 1fr 350px;
}

.team .team-member:nth-child(even) .team-member__info {
  order: -1;
}

.team .team-member__photo {
  background: var(--gray-light);
  aspect-ratio: 1;
  border: 4px solid var(--brand-black);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.team .team-member__photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.team .team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team .team-member__info h3 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.team .team-member__bio {
  line-height: 1.8;
  color: var(--gray-dark);
}

.team-member__links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: #0a66c2;
  color: white;
  border: 3px solid var(--brand-black);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.linkedin-btn:hover {
  transform: translateY(-3px) translateX(-3px);
  box-shadow: 5px 5px 0 var(--brand-black);
}

.linkedin-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* ============================================
   Homepage: Blog Section
   ============================================ */
.blog {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--gray-light);
}

.blog__header {
  max-width: 1400px;
  margin: 0 auto 4rem;
  padding: 0 5vw;
}

.blog__header h2 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.blog__header p {
  font-size: 1.2rem;
  color: var(--gray-mid);
  max-width: 700px;
}

.blog .blog-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 0;
}

.blog .blog-card {
  display: flex;
  flex-direction: column;
}

.blog .blog-card__image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--gray-light);
}

.blog .blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.blog-card__meta {
  background: var(--brand-yellow);
  padding: 1rem 2rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-card__date {
  color: var(--brand-black);
}

.blog .blog-card__category {
  background: var(--brand-black);
  color: var(--brand-yellow);
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  margin-bottom: 0;
}

.blog .blog-card__content {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog .blog-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.blog .blog-card__excerpt {
  margin-bottom: 1.5rem;
  flex: 1;
  line-height: 1.7;
}

.blog .blog-card__link {
  font-size: 0.9rem;
}

.blog .blog-card__link::after {
  content: '→';
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.blog .blog-card__link:hover::after {
  transform: translateX(5px);
}

/* ============================================
   Homepage: Contact Section
   ============================================ */
.contact {
  background: var(--brand-black);
  color: var(--white);
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.contact__content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
}

.contact h2 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 2rem;
}

.contact p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.8;
  max-width: 700px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.contact-item h3 {
  color: var(--brand-yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.contact-item p {
  font-size: 1.1rem;
  margin: 0;
}

.contact-item a:hover {
  color: var(--brand-yellow);
}

/* ============================================
   Homepage: Footer Links
   ============================================ */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

footer strong {
  display: block;
  color: var(--brand-yellow);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

/* ============================================
   Homepage: Mobile CTA Bar
   ============================================ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  padding-left: max(20px, env(safe-area-inset-left, 20px));
  padding-right: max(20px, env(safe-area-inset-right, 20px));
  background: var(--brand-black);
  border-top: 3px solid var(--brand-yellow);
  z-index: 998;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-cta-bar.visible {
  transform: translateY(0);
}

.mobile-cta-bar .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 14px 24px;
}

/* ============================================
   Scroll Animations
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* ============================================
   Scroll Indicator (Mobile Services)
   ============================================ */
.scroll-indicator {
  display: none;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 0;
}

.scroll-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-mid);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.scroll-indicator span.active {
  background: var(--brand-black);
  opacity: 1;
  transform: scale(1.2);
}

/* ============================================
   Homepage: Responsive Adjustments
   ============================================ */
@media (max-width: 1024px) {
  .divider-content {
    flex-direction: column;
    text-align: center;
  }

  .team .team-member {
    grid-template-columns: 1fr !important;
  }

  .team .team-member__info {
    order: 0 !important;
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: block;
  }

  /* Add padding to footer so CTA bar doesn't cover content */
  footer {
    padding-bottom: 100px;
  }

  /* Horizontal swipe service cards on mobile */
  .services .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 5vw 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .services .services-grid::-webkit-scrollbar {
    display: none;
  }

  .services .service-card {
    flex: 0 0 85vw;
    scroll-snap-align: center;
    min-width: 280px;
  }

  .scroll-indicator {
    display: flex;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }
}
