/* =========================================================
   Main CSS Entry Point
   Order matters.
   ========================================================= */

@import url("/css/tokens.css");
@import url("/css/base.css");
@import url("/css/layout.css");
@import url("/css/components.css");

/* @import url("/css/pages.css"); */

/*  ==============
        Hero
    ============= */
.hero{
  padding: 3.75rem 0 4.25rem;
}

.hero-row{
  min-height: clamp(420px, 58vh, 620px);
}

/* Content column */
.hero-content{
  height: 100%;
  display: flex;
  flex-direction: column;   /* kicker above measure */
  justify-content: center;  /* vertically centered overall */
  padding-left: .5rem;
}

.hero-kicker{
  margin: 0 0 .85rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--color-accent-ink);
  font: var(--font-display);
}

.hero-measure{
  max-width: 64ch;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  color: var(--color-white);
}

.hero-h1{
  margin: 0;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.5px;
  font-size: clamp(2.1rem, 3.2vw, 3.25rem);
}

.hero #hero-rotate {
  color: var(--color-accent-ink);
}


.text-accent{ color: var(--accent); }

.hero-cta{ margin-top: .75rem; }

/* This works now because the column is flex-column */
.hero-media{
  height:70%;          /* bottom half of the hero column */
  width: 100%;
  margin-top: auto;     /* push it to the bottom */
  overflow: hidden;

  border-radius: 1rem;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
}

/* Fill the hero-media fully */
.hero-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;          /* your preferred look */
  object-position: center;    /* adjust if needed */
}

/* Rotate animation styling */
#hero-rotate{
  display: inline-block;
  transition: opacity 260ms var(--ease-standard), transform 260ms var(--ease-standard);
}

#hero-rotate.is-out{
  opacity: 0;
  transform: translateY(6px);
}

/* Mobile */
@media (max-width: 991.98px){
  .hero{
    padding: 2.75rem 0 3.25rem;
  }

  .hero-content{
    padding-left: 0;
    justify-content: flex-start;
  }

  .hero-media{
    height: 260px;     /* fixed height reads better on mobile */
    margin-top: 0;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  #hero-rotate{ transition: none; }
}


.hero-descriptor{
  margin-top: .5rem;
  max-width: 60ch;
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--color-text-muted);
  letter-spacing: .01em;
}

/* =========================
   Home – Approach Section
   ========================= */

.home-approach{
  padding: 4.5rem 0 5rem;
  background: transparent; /* stays black */

}


/* Section heading */
.section-title{
  margin: 0 0 1rem;
  font-weight: 600;
  line-height: 1.15;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

/* Lead paragraph */
.section-lede{
  margin: 0;
  max-width: 36ch;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Pillars */
.pillar{
  height: 100%;
  padding-top: .25rem;
  border-top: 1px solid var(--color-accent-ink);
}

.pillar-title{
  margin: .75rem 0 .35rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-teal);
}

.pillar-text{
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* Bridge line */
.approach-bridge{
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-rule);
}

.bridge-text{
  margin: 0;
  font-size: .95rem;
  color: var(--color-text-muted);
}

/* Mobile adjustments */
@media (max-width: 991.98px){
  .home-approach{
    padding: 3.25rem 0 3.75rem;
  }

  .section-lede{
    max-width: none;
  }
}

/* =========================
   Home – Free Audit Section
   ========================= */

.home-audit{
  padding: 4.5rem 0 5rem;
  background: transparent;
  border-top: 1px solid var(--color-rule);
}

/* Left column CTA spacing */
.audit-cta{
  margin-top: var(--space-md);
}

/* Right column list */
.audit-list{
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Individual audit items */
.audit-item{
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-accent-ink);
}

/* Item titles */
.audit-title{
  margin: 0 0 .35rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-teal);
}

/* Item text */
.audit-text{
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

/* Closing note */
.audit-note{
  margin-top: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* Mobile */
@media (max-width: 991.98px){
  .home-audit{
    padding: 3.25rem 0 3.75rem;
  }
}

/* Audit visual */
.audit-media{
  margin: var(--space-lg) 0 0;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
}

.audit-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}


/* =========================
   Home – About Bridge (4 Col)
   ========================= */

.home-about-bridge{
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-rule);
}

.about-bridge-grid{
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: var(--space-xl);
  align-items: center;
}


/* Images */
.about-bridge-media{
  margin: 0;
  height: 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
}

.about-bridge-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.about-bridge-media--doc{
  height: 180px;
  background: var(--color-black);
}

.about-bridge-media--doc img{
  object-fit: cover;
  object-position: center 50%;
  background: rgba(255,255,255,0.02);
}

.about-bridge-zoom{
  display: block;
  height: 100%;
  cursor: zoom-in;
}


.about-bridge-linkcol{
  border-left: 0;
  padding-left: 0;
}

.about-bridge-copy{
  border-left: 1px solid var(--color-rule);
  padding-left: var(--space-lg);
}


/* Entire block is the link */
.about-bridge-linkblock{
  display: inline-grid;
  gap: .35rem;
  text-decoration: none;
  color: inherit;
}

/* Label */
.about-bridge-label{
  font-size: var(--text-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Name */
.about-bridge-name{
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.1;
  color: var(--color-link);
}

/* Arrow */
.about-bridge-arrow{
  font-size: var(--text-sm);
  color: var(--color-link);
  opacity: .9;
}

/* Hover */
.about-bridge-linkblock:hover .about-bridge-label,
.about-bridge-linkblock:hover .about-bridge-arrow{
  color: var(--color-link-hover);
}

.about-bridge-linkblock:hover .about-bridge-name{
  color: var(--color-text-primary);
}


/* Copy column */
.about-bridge-copy{
  border-left: 1px solid var(--color-rule);
  padding-left: var(--space-lg);
}

.about-bridge-text{
  margin: 0;
  max-width: 60ch;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.35;
  color: var(--color-text-subtle);
}

/* Mobile */
@media (max-width: 991.98px){
  .home-about-bridge{
    padding: var(--space-xl) 0;
  }

  .about-bridge-grid{
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: start;
  }

  .about-bridge-media{
    height: 180px;
  }

  .about-bridge-linkcol,
  .about-bridge-copy{
    border-left: 0;
    padding-left: 0;
  }

  .about-bridge-copy{
    border-top: 1px solid var(--color-rule);
    padding-top: var(--space-md);
  }
}

/* =========================================================
   Footer — responsive polish
   ========================================================= */

.site-footer{
  margin-top: var(--space-2xl);
  background: var(--color-bg);
  border-top: 1px solid var(--color-rule);
}

/* Top row layout */
.footer-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-col{
  display: flex;
  flex-direction: column;
}

.footer-left{ gap: var(--space-sm); }

.footer-name{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-subtle);
}

/* Social */
.footer-social{
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.icon-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;                 /* slightly bigger tap target */
  height: 40px;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  text-decoration: none;
}

.icon-link:hover,
.icon-link:focus-visible{
  color: var(--color-text-primary);
  border-color: rgba(255,255,255,0.18);
  cursor: pointer;
}

/* Right links */
.footer-right{
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 520px;            /* prevents “endless” wrapping on mid widths */
}

.footer-link{
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
}

.footer-link:hover,
.footer-link:focus-visible{
  color: var(--color-text-primary);
  cursor: pointer;
}

/* Divider + bottom */
.footer-divider{
  border-top: 1px solid var(--color-rule);
  margin: 0;
  padding: 0;
}

.footer-bottom{
  display: flex;
  justify-content: center;
  padding: var(--space-md) 0 var(--space-xl);
}

.footer-bottom-mid{
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  flex-wrap: wrap;             /* allows graceful wrap */
  justify-content: center;
  text-align: center;
}

.footer-sep{
  margin: 0 var(--space-xs);
  color: rgba(255,255,255,0.35);
}

.footer-brand{
  color: var(--color-text-primary);
  font-weight: 500;
  text-decoration: none;
}

.footer-brand:hover,
.footer-brand:focus-visible{
  color: var(--color-text-primary);
  text-decoration: underline;
}

/* Keep container padding consistent */
.site-footer .layout-container{
  padding-left: var(--space-2xl);
  padding-right: var(--space-2xl);
}

/* Responsive */
@media (max-width: 991.98px){
  .footer-top{
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
  }

  .footer-right{
    justify-content: flex-start;
    max-width: none;
    gap: var(--space-sm) var(--space-md); /* tighter + nicer wrap */
  }

  .footer-bottom{
    padding: var(--space-md) 0 var(--space-lg);
  }

  .footer-sep{
    display: none;             /* remove the “|” on small screens */
  }

  .site-footer .layout-container{
    padding-left: var(--space-lg);   /* reduce edge crush on mobile */
    padding-right: var(--space-lg);
  }
}

