/* ==========================================================================
   SEIB CONSTRUCTION — ABOUT PAGE
   Styles unique to about.html only.
   Shared tokens → global.css | Shared components → components.css
   ========================================================================== */


/* --------------------------------------------------------------------------
   SCROLL REVEAL (global.js watches [data-animate], adds .is-visible)
   -------------------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* --------------------------------------------------------------------------
   HERO ENTRANCE ANIMATION
   Above-the-fold elements can't use IntersectionObserver — use CSS keyframes
   -------------------------------------------------------------------------- */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-animate {
  animation: heroFadeUp 0.7s ease forwards;
}

.hero-animate--delay {
  animation-delay: 0.25s;
  opacity: 0;
}


/* --------------------------------------------------------------------------
   §01 HERO
   -------------------------------------------------------------------------- */
.about-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  padding-top: 72px; /* clear fixed nav */
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 72% 50%, rgba(184, 115, 51, 0.14) 0%, transparent 62%);
  pointer-events: none;
}

/* subtle copper dot pattern */
.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(184, 115, 51, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 88px);
  position: relative;
  z-index: 1;
}

/* Modifier — applied when the hero photo is hidden.
   Collapses the 2-col grid to a single readable column, centered. */
.about-hero-inner.about-hero-inner--no-photo {
  grid-template-columns: 1fr;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.about-hero-inner.about-hero-inner--no-photo .about-hero-sub {
  margin-inline: auto;
}

.about-hero-inner.about-hero-inner--no-photo .about-hero-stats {
  justify-content: center;
}

.about-hero-content .section-eyebrow {
  color: var(--copper-light);
}

.about-hero-headline {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
}

.about-hero-headline em {
  font-style: italic;
  color: var(--copper-light);
}

.about-hero-sub {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.8;
  max-width: 750px;
  margin-bottom: var(--space-8);
}

.about-hero-stats {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  padding-top: var(--space-7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-hero-stat-value {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--copper-light);
  line-height: 1;
  display: block;
}

.about-hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  display: block;
  margin-top: 6px;
}

.about-hero-photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, rgba(184, 115, 51, 0.18) 0%, rgba(27, 42, 74, 0.7) 100%),
              linear-gradient(to bottom right, #2a3d60, #1B2A4A);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184, 115, 51, 0.25);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(184, 115, 51, 0.1);
}

.about-hero-photo-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: var(--space-5);
  line-height: 2;
}

.about-hero-photo-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
}

@media (max-width: 960px) {
  .about-hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-9);
  }
  .about-hero-photo {
    aspect-ratio: unset;
    max-height: 540px;
  }
}

@media (max-width: 540px) {
  .about-hero-stats {
    gap: var(--space-6);
  }
}


/* --------------------------------------------------------------------------
   §02 OWNER BIO & PHILOSOPHY
   -------------------------------------------------------------------------- */
.about-owner-inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

/* Modifier — applied when the owner portrait is hidden.
   Collapses the 2-col grid to a single readable column. */
.about-owner-inner.about-owner-inner--no-photo {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin-inline: auto;
}

.about-owner-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 6;
  background: linear-gradient(160deg, var(--off-white) 0%, var(--cream) 100%);
  border: 1px solid var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.about-owner-photo-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
  padding: var(--space-5);
  line-height: 2;
}

.about-owner-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-5) var(--space-6);
  background: linear-gradient(to top, rgba(15, 27, 51, 0.92) 0%, transparent 100%);
}

.about-owner-photo-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.about-owner-photo-caption span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--copper-light);
}

.about-owner-content .section-eyebrow {
  margin-bottom: var(--space-3);
}

.about-owner-content h2 {
  margin-bottom: var(--space-6);
}

.about-owner-body p {
  margin-bottom: var(--space-4);
}

.about-owner-quote {
  margin: var(--space-5) 0;
  padding: var(--space-2) var(--space-3);
  background-color: var(--off-white);
  border-left: 4px solid var(--copper);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
  overflow: hidden;
}

.about-owner-quote-mark {
  font-family: var(--font-display);
  font-size: 96px;
  color: rgba(184, 115, 51, 0.12);
  line-height: 1;
  position: absolute;
  top: -12px;
  left: 14px;
  pointer-events: none;
  user-select: none;
}

.about-owner-quote blockquote {
  position: relative;
  z-index: 1;
}

.about-owner-quote p {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--navy);
  line-height: 1.65;
  font-style: italic;
  margin: 0;
}

.about-owner-quote-attr {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--copper);
  font-style: normal;
}

@media (max-width: 1024px) {
  .about-owner-inner {
    grid-template-columns: 320px 1fr;
  }
}

@media (max-width: 860px) {
  .about-owner-inner {
    grid-template-columns: 1fr;
  }
  .about-owner-photo {
    aspect-ratio: 5 / 7;
    max-height: none;
    max-width: none;
  }
}


/* --------------------------------------------------------------------------
   §03 IN-HOUSE CABINET SHOP
   -------------------------------------------------------------------------- */
.about-shop-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  margin-bottom: var(--space-10);
}

.about-shop-photo {
  border-radius: var(--radius-lg);
  aspect-ratio: 8 / 8;
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.9) 0%, rgba(31, 50, 89, 0.85) 60%, rgba(184, 115, 51, 0.1) 100%),
              linear-gradient(to bottom right, #1e2f4a, #2a3d5e);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cream);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.about-shop-photo-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  padding: var(--space-5);
  line-height: 2;
}

.about-shop-text p {
  margin-bottom: var(--space-4);
}

.about-shop-text .btn {
  margin-top: var(--space-3);
}

.about-shop-process-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--copper);
  text-align: center;
  margin-bottom: var(--space-7);
}

.about-shop-process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  position: relative;
}

/* Connecting line — spans between first and last circle centers.
   5 columns → each column is 20%, half = 10% → left/right offset = 100%/10. */
.about-shop-process::before {
  content: '';
  position: absolute;
  top: 31px;
  left: calc(100% / 10);
  right: calc(100% / 10);
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
  opacity: 0.25;
}

.shop-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.shop-step-num {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-base), color var(--transition-base);
}

.shop-step:hover .shop-step-num {
  background-color: var(--copper);
  color: var(--white);
}

.shop-step-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.shop-step-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .about-shop-intro {
    grid-template-columns: 1fr;
  }
  .about-shop-process {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
  .about-shop-process::before {
    display: none;
  }
}

@media (max-width: 520px) {
  .about-shop-process {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* --------------------------------------------------------------------------
   §04 MEET THE TEAM
   -------------------------------------------------------------------------- */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}

.team-card {
  flex: 0 1 340px;
  background-color: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-card-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--off-white) 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.team-card-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border: 3px solid var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.team-photo-note {
  position: absolute;
  bottom: var(--space-3);
  left: 0;
  right: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
}

.team-card-body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  text-align: center;
}

.team-card-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-card-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: var(--space-4);
}

.team-card-tenure {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-inline: auto;
  }
}


/* --------------------------------------------------------------------------
   §05 CERTIFICATIONS & CREDENTIALS
   -------------------------------------------------------------------------- */
.creds-grid {
  display: grid;
  /* 3 visible cards (the 4th, review count, is hidden) — cap each column and
     center the group so the tiles sit centered instead of hugging the left. */
  grid-template-columns: repeat(3, minmax(0, 280px));
  justify-content: center;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.cred-card {
  background-color: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.cred-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cred-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--copper-light));
}

.cred-icon {
  font-size: 30px;
  display: block;
  margin-bottom: var(--space-4);
}

.cred-value {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  display: block;
  margin-bottom: var(--space-2);
}

.cred-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
}

.creds-badge-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-7);
  background-color: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream);
}

.cred-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cred-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.cred-badge-text strong {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.cred-badge-text span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
}

.cred-divider {
  width: 1px;
  height: 40px;
  background-color: var(--cream);
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .creds-grid {
    grid-template-columns: repeat(2, minmax(0, 280px));
  }
  .creds-badge-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .creds-grid {
    grid-template-columns: minmax(0, 320px);
  }
}

@media (max-width: 480px) {
  .creds-badge-row {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   §06 CLOSING CTA
   -------------------------------------------------------------------------- */
.about-cta-inner {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  /* No padding-block: parent .section already provides --section-pad-y top &
     bottom; the extra padding here doubled it into empty navy bands. */
}

.about-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(212, 149, 90, 0.85);
  display: block;
  margin-bottom: var(--space-4);
}

.about-cta-headline {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: var(--space-5);
}

.about-cta-sub {
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.about-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-bottom: var(--space-7);
}

.about-cta-detail {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

.about-cta-detail a {
  color: var(--copper-light);
  text-decoration: none;
  transition: color var(--transition-base);
}

.about-cta-detail a:hover {
  color: var(--white);
}
