/* ============================================================
   JS ARCHITECTS — Home Page Styles
   home.css
   ============================================================ */

/* ── Hero Photo Strip ────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--color-charcoal);
}

.hero__strip-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
}

.hero__strip-wrapper:active { cursor: grabbing; }

.hero__strip {
  display: flex;
  height: 100%;
  will-change: transform;
  user-select: none;
}

.hero__slide {
  flex: none;
  position: relative;
  width: 45vw;
  height: 100%;
  overflow: hidden;
}

.hero__slide:first-child  { width: 55vw; }
.hero__slide:nth-child(3n){ width: 38vw; }

.hero__slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms ease;
  pointer-events: none;
  filter: brightness(0.6);
}

.hero__slide:hover .hero__slide-img {
  transform: scale(1.04);
  filter: brightness(0.5);
}

.hero__slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.hero__slide:hover .hero__slide-overlay { opacity: 1; }

.hero__slide-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brass);
  margin-bottom: 4px;
}

.hero__slide-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-white);
  font-weight: 300;
}

/* Global dark overlay */
.hero__global-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.1) 50%,
    rgba(0,0,0,0.25) 100%
  );
}

/* Centered text overlay */
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: var(--space-md);
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-brass);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
  max-width: 800px;
}

.hero__title em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

.hero__cta {
  pointer-events: auto;
}

/* Arrow Controls */
.hero__controls {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero__arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1rem;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(4px);
}

.hero__arrow:hover {
  border-color: var(--color-brass);
  background: rgba(184,148,63,0.2);
  color: var(--color-brass);
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.2); }
}

/* ── About Snapshot ──────────────────────────────────────── */
.about-snapshot {
  padding: var(--space-xl) 0;
  background-color: var(--color-white);
}

.about-snapshot__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 520px;
}

.about-snapshot__image-wrap {
  position: relative;
  overflow: hidden;
}

.about-snapshot__image-wrap::after {
  content: '';
  position: absolute;
  right: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: var(--color-brass);
  opacity: 0.4;
}

.about-snapshot__img {
  width: 100%;
  height: 100%;
  max-height: 720px;
  object-fit: contain;
  object-position: center;
  transition: transform 800ms ease;
}

.about-snapshot__image-wrap:hover .about-snapshot__img {
  transform: scale(1.03);
}

.about-snapshot__content {
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-snapshot__quote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-brass);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.about-snapshot__body {
  color: var(--color-grey);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
  line-height: 2;
}

/* ── Services ────────────────────────────────────────────── */
.services {
  background-color: var(--color-offwhite);
  padding: var(--space-xl) 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--color-border);
  border: 1px solid var(--color-border);
}

.service-card {
  background-color: var(--color-white);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: background-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background-color: var(--color-brass);
  transition: width var(--transition-base);
}

.service-card:hover::before { width: 100%; }
.service-card:hover { background-color: #faf9f7; }

.service-card__icon {
  font-size: 2rem;
  color: var(--color-brass);
  margin-bottom: var(--space-md);
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: rgba(26,26,26,0.05);
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  line-height: 1;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-grey);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.service-card__link {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brass);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.service-card__link:hover { gap: 10px; }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials {
  background-color: var(--color-charcoal);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 30rem;
  color: rgba(255,255,255,0.02);
  position: absolute;
  top: -5rem;
  left: -2rem;
  line-height: 1;
  pointer-events: none;
}

.testimonials__carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  min-height: 280px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.testimonial__divider {
  width: 32px;
  height: 1px;
  background: var(--color-brass);
  margin: 0 auto var(--space-sm);
}

.testimonial__author {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
}

.testimonial__project {
  font-size: var(--text-xs);
  color: var(--color-grey);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-lg);
  position: relative;
  z-index: 2;
}

.testimonials__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  padding: 0;
}

.testimonials__dot.active {
  background: var(--color-brass);
  transform: scale(1.4);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__slide { width: 55vw; }
  .hero__slide:first-child { width: 65vw; }
}

@media (max-width: 768px) {
  .hero__slide { width: 80vw; }
  .hero__slide:first-child { width: 80vw; }

  .about-snapshot__grid { grid-template-columns: 1fr; }
  .about-snapshot__image-wrap { height: 300px; }
  .about-snapshot__image-wrap::after { display: none; }
  .about-snapshot__content { padding: var(--space-lg) var(--space-sm); }

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

  .hero__title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
}
