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

:root {
  --primary: #1E6B45;
  /* Forest Green */
  --secondary: #4A8C65;
  /* Sage Green */
  --accent: #A8D4B8;
  /* Soft Mint */
  --bg-cream: #F0EDE6;
  /* Warm Cream */
  --bg-surface: #F8F6F1;
  /* Off White */
  --text-primary: #2C4A38;
  /* Deep Moss */
  --text-secondary: #6B8F78;
  /* Muted Sage */
  --border: #D4E6DC;
  /* Pale Green */

  /* New Fonts */
  --font-primary: "Fredoka", sans-serif;
  --font-secondary: "Nunito", sans-serif;
  --font-body: "Quicksand", sans-serif;

  /* Legacy Mappings to prevent breakage */
  --font-display: var(--font-primary);
  --font-mono: var(--font-secondary);
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 100px;
  border: 2px solid var(--bg-cream);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  background: var(--bg-cream);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Font helper utility classes */
.primary-heading {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.1;
}

.secondary-heading {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.3;
}

.body-text {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  mix-blend-mode: normal;
  transition: background .3s, backdrop-filter .3s;
}

nav.scrolled {
  background: rgba(248, 246, 241, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -.02em;
  z-index: 101;
  line-height: 1.1;
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: .02em;
  opacity: .7;
  transition: opacity .2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a.active {
  opacity: 1;
  color: var(--primary);
}

.nav-links a.nav-cta.active {
  color: var(--bg-cream) !important;
  background: var(--primary) !important;
}

body.inner-page section:first-of-type {
  padding-top: 140px;
}

.nav-cta {
  background: var(--text-primary);
  color: var(--bg-cream) !important;
  opacity: 1 !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: background .2s !important;
}

.nav-cta:hover {
  background: var(--primary) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--text-secondary);
}

.hero-headline {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(52px, 8vw, 110px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 48px;
  max-width: 900px;
}

.hero-headline .pill-dark {
  display: inline-block;
  background: var(--text-primary);
  color: var(--bg-surface);
  padding: 4px 28px 8px;
  border-radius: 100px;
  margin-right: 12px;
}

.hero-headline .pill-dark .accent {
  color: var(--accent);
}

.hero-headline .line-light {
  color: var(--text-primary);
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 420px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-cream);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: -.01em;
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(30, 107, 69, .25);
}

.btn-ghost {
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: .6;
  transition: opacity .2s;
}

.btn-ghost:hover {
  opacity: 1;
}

.btn-ghost span {
  font-size: 18px;
}

.hero-stats {
  position: absolute;
  right: 48px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: right;
}

.stat-num {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.stat-num .accent {
  color: var(--primary);
}

.stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: var(--font-secondary);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-scroll-line {
  position: absolute;
  left: 48px;
  bottom: 0;
  width: 1px;
  height: 80px;
  background: var(--border);
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    top: -100%;
  }

  100% {
    top: 200%;
  }
}

/* MARQUEE */
.marquee-section {
  background: var(--text-primary);
  color: var(--bg-cream);
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid rgba(212, 230, 220, 0.15);
}

.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 18s linear infinite;
  white-space: nowrap;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-item {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--border);
  display: flex;
  align-items: center;
  gap: 48px;
  flex-shrink: 0;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* SECTION COMMONS */
section {
  padding: 120px 48px;
}

.section-eyebrow {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  display: block;
}

.section-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -.02em;
  line-height: 1.1;
}

/* ABOUT */
.about {
  background: var(--bg-cream);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
}

.about-left .section-title {
  margin-bottom: 32px;
}

.about-left .section-title em {
  font-style: normal;
  color: var(--text-secondary);
  font-weight: 400;
}

.about-body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 440px;
}

.about-right {
  position: relative;
}

.about-card {
  background: var(--text-primary);
  color: var(--bg-cream);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.about-card-bg {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .15;
  filter: blur(40px);
}

.about-card-label {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.about-card-big {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.about-card-big .accent {
  color: var(--accent);
}

.about-card-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-tag {
  border: 1px solid rgba(212, 230, 220, 0.15);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--border);
  font-family: var(--font-secondary);
  font-weight: 500;
  letter-spacing: .04em;
}

/* SERVICES */
.services {
  background: var(--text-primary);
  color: var(--bg-cream);
}

.services .section-eyebrow {
  color: var(--text-secondary);
}

.services .section-title {
  color: var(--bg-cream);
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(212, 230, 220, 0.15);
  border: 1px solid rgba(212, 230, 220, 0.15);
  border-radius: 24px;
  overflow: hidden;
  max-width: 1200px;
}

.service-card {
  background: var(--text-primary);
  padding: 40px 36px;
  transition: background .25s;
  cursor: default;
}

.service-card:hover {
  background: rgba(30, 107, 69, 0.25);
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--text-primary);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 24px;
  transition: background .25s, color .25s;
  color: var(--bg-cream);
}

.service-name {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 17px;
  color: var(--bg-cream);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-desc {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  font-size: 13px;
  color: var(--border);
}

/* WORK */
.work {
  background: var(--bg-cream);
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  max-width: 1200px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1200px;
}

.work-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--border);
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform .3s;
}

.work-card:hover {
  transform: scale(.98);
}

.work-card:first-child {
  aspect-ratio: unset;
  grid-row: span 2;
}

.work-card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s;
}

.work-card:hover .work-card-inner {
  opacity: 1;
}

.work-card-tag {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.work-card-title {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 22px;
  color: white;
  line-height: 1.3;
}

.work-bg-1 {
  background: linear-gradient(135deg, #2C4A38 0%, #1E6B45 100%);
}

.work-bg-2 {
  background: linear-gradient(135deg, #1E6B45 0%, #4A8C65 100%);
}

.work-bg-3 {
  background: linear-gradient(135deg, #2C4A38 0%, #4A8C65 100%);
}

.work-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 72px;
  font-weight: 700;
  opacity: .08;
  color: white;
  letter-spacing: -.05em;
}

.work-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
}

.work-category-card {
  aspect-ratio: 1;
  border-radius: 20px;
  padding: 28px;
  background: var(--secondary);
  border: 1px solid rgba(30, 107, 69, 0.35);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  cursor: pointer;
  text-decoration: none;
  color: var(--bg-cream);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    background 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

.work-category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.work-category-card:hover {
  transform: translateY(-8px);
  background: var(--primary);
  box-shadow: 0 20px 48px rgba(30, 107, 69, 0.28);
  border-color: var(--primary);
}

.work-category-card:hover .work-category-icon {
  background: var(--accent);
  color: var(--text-primary);
  transform: scale(1.08) rotate(-4deg);
}

.work-category-card:hover .work-category-arrow {
  opacity: 1;
  transform: translate(0, 0);
  background: var(--accent);
  color: var(--text-primary);
}

.work-category-card:active,
.work-category-card.is-pressed {
  transform: translateY(-2px) scale(0.97);
}

.work-category-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 16px 40px rgba(30, 107, 69, 0.22);
}

.work-category-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(168, 212, 184, 0.45);
  transform: scale(0);
  animation: categoryRipple 0.55s ease-out forwards;
  pointer-events: none;
}

@keyframes categoryRipple {
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

.work-category-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(30, 107, 69, 0.35);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-category-icon svg {
  width: 26px;
  height: 26px;
}

.work-category-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.work-category-name {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--bg-cream);
}

.work-category-desc {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(240, 237, 230, 0.82);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-category-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(30, 107, 69, 0.5);
  color: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  z-index: 1;
  transform: translate(-6px, 6px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s ease, color 0.35s ease;
}

/* PROCESS */
.process {
  background: var(--bg-surface);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 64px;
  max-width: 1200px;
}

.process-step {
  padding: 0 32px 0 0;
  border-right: 1px solid var(--border);
}

.process-step:last-child {
  border-right: none;
}

.step-num {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: .06em;
  margin-bottom: 32px;
}

.step-title {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.step-desc {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  font-size: 13px;
  color: var(--text-secondary);
}

/* CONTACT */
.contact {
  background: var(--text-primary);
  color: var(--bg-cream);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
  width: 100%;
}

.contact .section-eyebrow {
  color: var(--text-secondary);
}

.contact .section-title {
  color: var(--bg-cream);
  margin-bottom: 24px;
}

.contact-body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  font-size: 15px;
  color: var(--border);
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-detail-text {
  font-size: 14px;
  color: var(--border);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  background: rgba(30, 107, 69, 0.15);
  border: 1px solid rgba(212, 230, 220, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--bg-cream);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-textarea {
  resize: none;
  height: 120px;
}

.form-select {
  background: rgba(30, 107, 69, 0.15);
  border: 1px solid rgba(212, 230, 220, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--bg-cream);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  width: 100%;
  transition: border-color .2s;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--accent);
}

.form-select option {
  background: var(--text-primary);
  color: var(--bg-cream);
}

.form-submit {
  background: var(--accent);
  color: var(--text-primary);
  border: none;
  border-radius: 100px;
  padding: 16px 40px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  letter-spacing: -.01em;
  transition: transform .2s, box-shadow .2s;
  align-self: flex-start;
  margin-top: 8px;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(168, 212, 184, .35);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  text-decoration: none;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  border: 1px solid rgba(212, 230, 220, 0.15);
}

.social-link:hover {
  background: var(--accent);
  color: var(--text-primary);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* FOOTER */
footer {
  background: var(--text-primary);
  color: var(--bg-cream);
  padding: 40px 48px;
  border-top: 1px solid rgba(212, 230, 220, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.footer-logo span {
  color: var(--accent);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-secondary);
  font-weight: 500;
}

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

.footer-links a {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-secondary);
  font-weight: 500;
  letter-spacing: .04em;
  transition: color .2s;
}

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

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

.reveal-delay-4 {
  transition-delay: .4s;
}

/* Touch screen fallback (no-hover devices) */
@media (hover: none) {
  .work-card-inner {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
  }
}

/* RESPONSIVE MEDIA QUERIES */

/* Tablet Landscape & iPad Pro */
@media (max-width: 1024px) {
  nav {
    padding: 18px 36px;
  }

  section {
    padding: 100px 36px;
  }

  .hero {
    padding: 120px 36px 80px;
  }

  .hero-stats {
    position: static;
    flex-direction: row;
    gap: 48px;
    text-align: left;
    margin-top: 48px;
  }

  .about-inner {
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .service-card:last-child {
    grid-column: span 2;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-step {
    border-right: none;
    padding-right: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }

  .process-step:nth-child(3),
  .process-step:nth-child(4) {
    border-bottom: none;
    padding-bottom: 0;
  }

  .contact-inner {
    gap: 40px;
  }
}

/* Tablet Portrait & Mobile Drawer Trigger */
@media (max-width: 768px) {
  nav {
    padding: 16px 24px;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile slide down drawer menu */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(240, 237, 230, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 120px 24px 48px;
    gap: 24px;
    justify-content: center;
    align-items: center;
    z-index: 99;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-open .nav-links {
    transform: translateY(0);
  }

  /* Open X toggle button styling */
  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text-primary);
    opacity: 1;
    padding: 12px 0;
    transition: color 0.2s;
    line-height: 1.1;
  }

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

  .nav-links .nav-cta {
    display: inline-block;
    width: auto;
    min-width: 200px;
    background: var(--text-primary);
    color: var(--bg-cream) !important;
    margin-top: 12px;
    font-size: 16px !important;
  }

  .nav-cta:hover {
    background: var(--primary) !important;
  }

  section {
    padding: 80px 24px;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .hero-scroll-line {
    display: none;
  }

  .hero-stats {
    position: static;
    flex-direction: row;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
  }

  .hero-headline {
    margin-bottom: 32px;
  }

  .hero-headline .pill-dark {
    padding: 4px 20px 8px;
    margin-right: 8px;
  }

  .marquee-section {
    padding: 14px 0;
  }

  .marquee-item {
    font-size: 10px;
    gap: 24px;
  }

  .marquee-track {
    gap: 24px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-card {
    padding: 32px;
  }

  .about-card-big {
    font-size: clamp(36px, 8vw, 48px);
  }

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

  .services-grid .service-card:last-child {
    grid-column: auto;
  }

  .service-card {
    padding: 32px 24px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .work-category-card {
    padding: 22px;
  }

  .work-category-desc {
    -webkit-line-clamp: 2;
  }

  .work-card:first-child {
    grid-row: auto;
    aspect-ratio: 4/3;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-step {
    border-right: none;
    padding-right: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }

  .process-step:nth-child(3) {
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
  }

  .process-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Small Mobile / Narrow Screens */
@media (max-width: 480px) {
  nav {
    padding: 14px 16px;
  }

  section {
    padding: 60px 16px;
  }

  .hero {
    padding: 90px 16px 50px;
  }

  .hero-headline {
    font-size: clamp(38px, 12vw, 52px);
  }

  .hero-stats {
    gap: 24px 32px;
    flex-wrap: wrap;
  }

  .stat-num {
    font-size: 28px;
  }

  .about-card-big {
    font-size: clamp(32px, 10vw, 40px);
  }

  .form-submit {
    width: 100%;
    justify-content: center;
  }

  .work-categories {
    grid-template-columns: 1fr;
  }

  .work-category-card {
    aspect-ratio: auto;
    min-height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee-track {
    animation: none;
  }

  .hero-scroll-line::after {
    animation: none;
  }

  .work-category-card,
  .work-category-card:hover,
  .work-category-card:hover .work-category-icon {
    transform: none;
    transition: none;
  }

  .work-category-ripple {
    display: none;
  }
}

/* ==========================================================================
   SMM POPUP MODAL & SINGLE ROW CARDS
   ========================================================================== */
.smm-modal, .vcc-modal, .wd-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.smm-modal.is-active, .vcc-modal.is-active, .wd-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.smm-modal-overlay, .vcc-modal-overlay, .wd-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 48, 38, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.4s ease;
}

.smm-modal-container, .vcc-modal-container, .wd-modal-container {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  width: 90%;
  max-width: 1100px;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 1001;
  box-shadow: 0 32px 80px rgba(44, 74, 56, 0.25);
  transform: scale(0.95) translateY(30px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 56px 48px;
}

.smm-modal.is-active .smm-modal-container,
.vcc-modal.is-active .vcc-modal-container,
.wd-modal.is-active .wd-modal-container {
  transform: scale(1) translateY(0);
}

.smm-modal-close, .vcc-modal-close, .wd-modal-close {
  position: absolute;
  top: 32px;
  right: 32px;
  background: rgba(44, 74, 56, 0.05);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, color 0.3s;
}

.smm-modal-close:hover, .vcc-modal-close:hover, .wd-modal-close:hover {
  background: var(--primary);
  color: var(--bg-cream);
  transform: rotate(90deg);
}

.smm-modal-content, .vcc-modal-content, .wd-modal-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.smm-modal-header, .vcc-modal-header, .wd-modal-header {
  max-width: 600px;
  text-align: left;
}

.smm-modal-eyebrow, .vcc-modal-eyebrow, .wd-modal-eyebrow {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.smm-modal-title, .vcc-modal-title, .wd-modal-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 16px;
}

.smm-modal-desc, .vcc-modal-desc, .wd-modal-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Card Common Elements */
.smm-small-card, .vcc-small-card, .wd-small-card {
  background: var(--bg-cream);
  border: 1px solid rgba(212, 230, 220, 0.6);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.35s ease;
}

.smm-small-card:hover, .vcc-small-card:hover, .wd-small-card:hover {
  transform: translateY(-6px);
  background: white;
  box-shadow: 0 16px 36px rgba(44, 74, 56, 0.08);
}

.smm-small-card-header, .vcc-small-card-header, .wd-small-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.smm-small-card-tag, .vcc-small-card-tag, .wd-small-card-tag {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(30, 107, 69, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
}

.smm-small-card-icon, .vcc-small-card-icon, .wd-small-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease, color 0.35s ease;
}

.smm-small-card-icon svg, .vcc-small-card-icon svg, .wd-small-card-icon svg {
  width: 18px;
  height: 18px;
}

.smm-small-card:hover .smm-small-card-icon,
.vcc-small-card:hover .vcc-small-card-icon,
.wd-small-card:hover .wd-small-card-icon {
  background: var(--primary);
  color: white;
}

.smm-small-card-title, .vcc-small-card-title, .wd-small-card-title {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.3;
}

.smm-small-card-desc, .vcc-small-card-desc, .wd-small-card-desc {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.smm-card-btn, .vcc-card-btn, .wd-card-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(30, 107, 69, 0.08);
  border: 1px solid rgba(30, 107, 69, 0.15);
  border-radius: 100px;
  color: var(--primary);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-decoration: none;
  width: fit-content;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.smm-card-btn svg, .vcc-card-btn svg, .wd-card-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}

.smm-card-btn:hover, .vcc-card-btn:hover, .wd-card-btn:hover {
  background: var(--primary);
  color: var(--bg-cream);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.smm-card-btn:hover svg, .vcc-card-btn:hover svg, .wd-card-btn:hover svg {
  transform: translateX(2px);
}

.smm-modal-footer, .vcc-modal-footer, .wd-modal-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

/* Specific Grid Layouts */
.smm-cards-row, .vcc-cards-grid, .wd-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

/* Responsiveness Media Queries */
@media (max-width: 991px) {
  .smm-cards-row, .vcc-cards-grid, .wd-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .smm-modal-container, .vcc-modal-container, .wd-modal-container {
    padding: 48px 36px;
  }
}

@media (max-width: 600px) {
  .smm-cards-row, .vcc-cards-grid, .wd-cards-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .smm-modal-container, .vcc-modal-container, .wd-modal-container {
    padding: 36px 24px;
    width: 95%;
  }
  
  .smm-modal-close, .vcc-modal-close, .wd-modal-close {
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}
