/* =========================================
   CONTAINERS
   ========================================= */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container--narrow {
  max-width: var(--prose-width);
}

.container--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1-5) var(--space-3);
  border-radius: var(--radius-base);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-small);
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  border: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

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

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

.btn--lg {
  padding: 16px 36px;
  font-size: var(--text-body);
  font-weight: 600;
}

/* =========================================
   SECTIONS (shared)
   ========================================= */

.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--color-border);
}

.section__label {
  display: block;
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section__headline {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: var(--leading-h2);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section__body {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
}

.section__sub {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

/* =========================================
   NAV
   ========================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-height);
  transition: background var(--transition-base), backdrop-filter var(--transition-base), border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  /* rgba of --color-bg (#0D1B2A) — opacity required for frosted-glass effect;
     CSS color-mix() not safe across all targets yet */
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.nav__logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

/* =========================================
   HERO
   ========================================= */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background:
    /* rgba of --color-bg (#0D1B2A) at 85% — dims the photo to navy */
    linear-gradient(rgba(13, 27, 42, 0.85), rgba(13, 27, 42, 0.85)),
    /* rgba of --color-accent at 10% — keeps the emerald brand glow */
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(16, 185, 129, 0.10) 0%, transparent 60%),
    url('../assets/images/Dallas Skyline.webp') center / cover no-repeat;
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: var(--space-15);
  padding-bottom: var(--space-15);
}

.hero__headline {
  font-size: var(--text-display);
  font-weight: 600;
  line-height: var(--leading-display);
  color: var(--color-text);
  max-width: 840px;
  margin-bottom: var(--space-4);
}

.hero__sub {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text);
  max-width: 560px;
  margin-bottom: var(--space-6);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    align-items: flex-start;
    padding-top: calc(var(--nav-height) + var(--space-10));
  }

  .hero .container {
    padding-top: 0;
    padding-bottom: var(--space-10);
  }
}

/* =========================================
   WHAT IT IS
   ========================================= */

.what-it-is {
  position: relative;
  padding-top: 80px;
  padding-bottom: 80px;
}

.what-it-is::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/graindark.jpg');
  background-size: 300px 300px;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

.what-it-is .container {
  position: relative;
  z-index: 1;
}

.what-it-is .section__body {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* =========================================
   WHAT YOU GET
   ========================================= */

.deliverables {
  margin-top: var(--space-5);
  max-width: 680px;
}

.deliverables li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

.deliverables li:first-child {
  border-top: 1px solid var(--color-border);
}

.deliverable__num {
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  min-width: 24px;
  padding-top: 3px;
}

.deliverable__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.deliverable__title {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text);
}

.deliverable__desc {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* =========================================
   WHO IT'S FOR
   ========================================= */

.who-its-for {
  padding-top: 80px;
  padding-bottom: 80px;
}

.industries {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.industry-tag {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.08); /* slightly stronger than --color-border for pill outlines */
  border-radius: var(--radius-pill);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

/* =========================================
   WHY IT WORKS
   ========================================= */

.why-it-works {
  position: relative;
}

.why-it-works::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/graindark.jpg');
  background-size: 300px 300px;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

.why-it-works .container {
  position: relative;
  z-index: 1;
}

.why__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-5);
  max-width: 960px;
}

.why__body p {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .why__body {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* =========================================
   FAQ
   ========================================= */

.faq__list {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}

.faq__item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.faq__q {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: var(--leading-h2);
}

.faq__a {
  font-size: var(--text-small);
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* =========================================
   CTA SECTION
   ========================================= */

.cta-section {
  background: var(--color-surface);
}

.cta-section .section__headline {
  margin-bottom: var(--space-3);
}

.cta-section .section__sub {
  color: var(--color-text);
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__text {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

/* =========================================
   ANIMATIONS
   ========================================= */

/* Scroll reveal — sections */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children within animated sections */
[data-animate] .stagger-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 350ms ease-out, transform 350ms ease-out;
  transition-delay: var(--stagger-delay, 0ms);
}

[data-animate].is-visible .stagger-item {
  opacity: 1;
  transform: translateY(0);
}

/* Hero headline word-by-word reveal */
.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.hero__word.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero sub-headline and CTA — fade in after headline */
.hero__sub,
.hero .btn {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

/* !important required: .hero .btn has specificity 0,2,0 vs .hero-fade-in at 0,1,0 */
.hero-fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Industry tag hover — emerald border glow */
.industry-tag {
  transition: border-color 200ms ease, color 200ms ease;
}

.industry-tag:hover {
  border-color: var(--color-accent-subtle);
  color: var(--color-text);
}

/* CTA button glow on hover */
.cta-section .btn--lg:hover {
  box-shadow: 0 0 24px var(--color-accent-glow);
}

/* Reduced motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  [data-animate],
  [data-animate] .stagger-item,
  .hero__word,
  .hero__sub,
  .hero .btn {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================
   RETURN TO WORK
   ========================================= */

.rtw__inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--space-8);
  align-items: center;
}

.rtw__image {
  position: relative;
}

.rtw__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.45);
  border-radius: var(--radius-base);
  pointer-events: none;
}

.rtw__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-base);
  filter: brightness(0.75) saturate(0.7);
}

.rtw__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.rtw__intro {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
}

.rtw__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.rtw__line {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.rtw__line::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  margin-top: 9px;
}

.rtw__line--accent {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: var(--leading-h2);
  color: var(--color-text);
}

@media (max-width: 768px) {
  .rtw__inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}
