/* ═══════════════════════════════════════════════════
   ABOUT PAGE — Carbo Valencia Realty
   Animation system: fade-up on scroll via .is-visible
   ═══════════════════════════════════════════════════ */

/* ── Shared scroll-reveal base ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger helpers */
.reveal-d1 {
  transition-delay: 0.08s;
}
.reveal-d2 {
  transition-delay: 0.16s;
}
.reveal-d3 {
  transition-delay: 0.24s;
}
.reveal-d4 {
  transition-delay: 0.32s;
}
.reveal-d5 {
  transition-delay: 0.4s;
}

/* ── Page header ── */
.about-hero {
  background-color: var(--color-blue);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.about-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: -80px;
  width: 340px;
  height: 100%;
  background-color: rgba(212, 160, 23, 0.07);
  transform: skewX(-12deg);
  pointer-events: none;
}

.about-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.about-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: var(--space-5);
}

.about-hero__title em {
  font-style: italic;
  color: var(--color-yellow-light);
}

.about-hero__sub {
  font-size: var(--text-lg);
  color: rgba(248, 247, 244, 0.72);
  line-height: var(--leading-normal);
  max-width: 520px;
}

/* ── Story section ── */
.story {
  padding: var(--space-20) 0;
}

.story__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.story__image-wrap {
  position: relative;
}

.story__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  background-color: var(--color-light);
  display: block;
}

.story__image-wrap::before {
  content: "";
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 2px solid var(--color-yellow);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.5;
}

.story__image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    var(--color-blue-light) 0%,
    var(--color-light) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  opacity: 0.5;
}

.story__content .section-label {
  margin-bottom: var(--space-3);
}

.story__content h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
  line-height: var(--leading-snug);
}

.story__content p {
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

/* ── Values Header ── */
.values {
  padding: var(--space-20) 0;
  background-color: var(
    --color-light,
    #f4eee6
  ); /* Matches the warm background */
}

.values__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-12);
}

.values__eyebrow {
  color: var(--color-yellow-dark, #d4a017);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-3);
}

.values__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: var(--color-blue);
  margin: 0 0 var(--space-4) 0;
  line-height: 1.1;
}

.values__lead {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}

/* ── Values Cards Grid (Image Style) ── */
.vals-grid {
  display: grid;
  grid-template-columns: repeat(
    5,
    1fr
  ); /* Fits all 5 side-by-side on large screens */
  gap: var(--space-5);
}

.val-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 380px; /* Forces tall, rectangular cards */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Pushes content to bottom */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  isolation: isolate; /* Creates a new stacking context */
}

/* Background Image Layer */
.val-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--color-blue); /* Fallback */
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -2;
}

/* Dark Gradient Overlay Layer */
.val-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.1) 0%,
    rgba(15, 23, 42, 0.85) 100%
  );
  z-index: -1;
  transition: background 0.4s ease;
}

/* Hover Effect: Zoom background slightly */
.val-card:hover .val-card__bg {
  transform: scale(1.08);
}
.val-card:hover .val-card__overlay {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.2) 0%,
    rgba(15, 23, 42, 0.95) 100%
  );
}

/* Content Container */
.val-card__content {
  padding: var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

/* Yellow Square Icon Wrap */
.val-card__icon-wrap {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--color-yellow); /* Yellow thin border */
  border-radius: var(--radius-md); /* Rounded square look */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-yellow);
  font-size: 22px;
  background-color: rgba(
    212,
    160,
    23,
    0.05
  ); /* Very faint yellow tint inside */
}

/* White Serif Title */
.val-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-white);
  margin: 0;
  line-height: var(--leading-snug);
  font-weight: 500;
}

/* ── Team Section (Restored Original) ── */
.team {
  padding: var(--space-20) 0;
}

.team__header {
  margin-bottom: var(--space-16);
  max-width: 560px;
}

.team__header h2 {
  margin-bottom: var(--space-3);
}

.team-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.team-grid__top {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.team-grid__bottom {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.team-card-new {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: 280px;
  position: relative;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.team-card-new:hover {
  box-shadow: 0 12px 40px rgba(30, 58, 95, 0.12);
  transform: translateY(-4px);
}

.team-card-new::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-yellow) 0%,
    var(--color-yellow-light, #f0c84a) 100%
  );
}

.team-card-new__photo-wrap {
  position: relative;
  overflow: hidden;
  background-color: var(--color-blue-light);
  width: 280px;
  height: 373px;
  flex-shrink: 0;
}

.team-card-new__photo {
  width: 280px;
  height: 373px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card-new:hover .team-card-new__photo {
  transform: scale(1.04);
}

.team-card-new__photo-placeholder {
  width: 280px;
  height: 373px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  opacity: 0.4;
  background: linear-gradient(
    145deg,
    var(--color-blue-light) 0%,
    var(--color-light) 100%
  );
}

.team-card-new__badge {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  background-color: var(--color-blue);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  line-height: 1.6;
  backdrop-filter: blur(4px);
}

.team-card-new__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.team-card-new__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-blue);
  margin: 0 0 var(--space-2);
  line-height: var(--leading-snug);
}

.team-card-new__divider {
  width: 28px;
  height: 2px;
  background-color: var(--color-yellow);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}

.team-card-new__role-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-yellow-dark);
}

/* ── Why CVR ── */
.why {
  background: var(--color-light, #f4eee6);
  padding: var(--space-20) 0;
}

/* Centered Header Layout */
.why__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-16);
}

.why__eyebrow {
  color: var(--color-yellow-dark, #d4a017);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-3);
}

.why__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: var(--color-blue);
  margin: 0 0 var(--space-5) 0;
  line-height: 1.1;
}

.why__title em {
  font-style: italic;
}

.why__lead {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto var(--space-6) auto;
}

.why__rule {
  width: 48px;
  height: 2px;
  background-color: var(--color-yellow-dark, #d4a017);
}

/* Badges Layout */
.why__badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.why__badge {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-blue);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5); /* Increased gap slightly for breathing room */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* Made Logos Much Larger */
.why__badge-logo {
  height: 96px; /* Increased from 56px/64px */
  display: flex;
  align-items: center;
  justify-content: center;
}

.why__badge-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.why__badge-logo-placeholder {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  background: var(--color-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--color-blue);
}

.why__badge-divider {
  width: 24px;
  height: 2px;
  background-color: rgba(212, 160, 23, 0.4);
}

.why__badge-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-blue);
  line-height: 1.4;
  margin: 0;
}

/* ── Mission & Vision — Bigger & More Important ── */
.mission-vision {
  background-color: var(--color-blue);
  /* INCREASED: Massive top/bottom padding for a grand entrance */
  padding: clamp(6rem, 12vw, 10rem) 0;
  position: relative;
  overflow: hidden;
}

.mission-vision::before {
  content: "";
  position: absolute;
  top: 0;
  right: -10%;
  /* INCREASED: Made the background skew element much wider */
  width: 45%;
  height: 100%;
  background: rgba(212, 160, 23, 0.06);
  transform: skewX(-12deg);
  pointer-events: none;
}

.mv-eyebrow {
  color: var(--color-yellow);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  /* INCREASED: Wider letter spacing for a premium feel */
  letter-spacing: 0.2em;
  font-size: var(--text-base, 1rem);
  margin-bottom: var(--space-4, 1rem);
}

.mv-title {
  color: var(--color-white);
  /* INCREASED: Responsive massive font size (up to ~5.5rem on large screens) */
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: var(--weight-bold, 700);
  line-height: 1.1;
}

.mv-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* INCREASED: Much larger gap between columns to let them breathe */
  gap: clamp(2rem, 8vw, 6rem);
  /* INCREASED: Pushed the panels further down from the main title */
  margin-top: clamp(4rem, 10vw, 7rem);
}

.mv-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mv-panel:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  /* INCREASED: Breathing room before the divider line */
  padding-right: clamp(2rem, 5vw, 4rem);
}

.mv-panel:last-child {
  /* INCREASED: Breathing room after the divider line */
  padding-left: clamp(2rem, 5vw, 4rem);
}

.mv-panel__tag {
  color: var(--color-yellow);
  /* INCREASED: Slightly larger tag font */
  font-size: var(--text-base, 1.125rem);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.mv-panel__line {
  /* INCREASED: Longer and thicker accent line to anchor the large text */
  width: 80px;
  height: 3px;
  background-color: var(--color-yellow);
  margin: 1.5rem 0;
}

.mv-panel__headline {
  color: var(--color-white);
  /* INCREASED: Much larger statement text (up to ~2.5rem) */
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  /* Thinner font weights often feel more premium on oversized text */
  font-weight: 300;
  line-height: 1.4;
}

/* ── CTA ── */
.about-cta {
  padding: var(--space-20) 0;
  text-align: center;
}
.about-cta h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}
.about-cta p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto var(--space-8);
}
.about-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

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

@media (max-width: 900px) {
  .vals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* ADDED: Smoother wrap for tablet so badges aren't squeezed */
  .why__badges {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .story__layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .story__image-wrap {
    order: -1;
  }

  /* Mission / Vision responsive stack */
  .mv-split {
    grid-template-columns: 1fr;
  }
  .mv-panel:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 0;
    padding-bottom: 3rem;
  }
  .mv-panel:last-child {
    padding-left: 0;
    padding-top: 3rem;
  }
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 280px;
  }
  .why__badges {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .vals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 500px) {
  .vals-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive fixes */
@media (max-width: 900px) {
  .why__badges {
    grid-template-columns: repeat(2, 1fr);
  }
}

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