/* ==========================================================================
   Architape — Project / Case Study pages
   Mobile-first. Breakpoints match Bootstrap 5: md 768px, lg 992px.
   ========================================================================== */

/* ---------- Hero ---------- */
.at-hero {
  position: relative;
  height: 100vh;               /* fallback */
  height: 100svh;              /* excludes mobile browser chrome */
  min-height: 560px;
  padding: 24px 20px;
  isolation: isolate;
}
.at-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
/* Soft bottom gradient on mobile only, so stacked buttons/meta stay legible */
.at-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 45%);
  pointer-events: none;
}
.at-hero-title {
  font-size: clamp(34px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0,0,0,0.7);
  overflow-wrap: break-word;
  hyphens: auto;
}
.at-hero-bar {
  flex-direction: column;
  align-items: stretch !important;
  gap: 16px;
}
.at-hero-meta {
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  opacity: 0.95;
}
.at-hero-actions {
  flex-direction: column;
  gap: 10px !important;
}
.at-hero-actions .btn {
  width: 100%;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

@media (min-width: 768px) {
  .at-hero { padding: 40px 50px; }
  .at-hero::after { display: none; }
  .at-hero-title { line-height: 0.98; letter-spacing: -0.04em; }
  .at-hero-bar {
    flex-direction: row;
    align-items: flex-end !important;
  }
  .at-hero-meta {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 12px;
    line-height: 1.25;
  }
  .at-hero-actions { flex-direction: row; gap: 16px !important; }
  .at-hero-actions .btn { width: auto; }
}

/* ---------- Type ---------- */
.at-h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.at-h3 {
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.at-section-title {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.at-cta-title {
  font-size: clamp(24px, 3.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.at-body {
  color: #334155;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}
.at-eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.25;
}
.at-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
  line-height: 1.25;
}
.at-callout-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.at-cta-lead {
  max-width: 850px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .at-body { font-size: 20px; line-height: 1.55; }
  .at-callout-text { font-size: 16px; line-height: 1.4; }
  .at-cta-lead { font-size: 18px; }
}

/* ---------- Specs bar ---------- */
.at-spec-value {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .at-spec-value { font-size: 18px; line-height: 1.4; }
}

/* ---------- Feature blocks ---------- */
.at-feature-img {
  display: block;
  aspect-ratio: 4 / 3;
  max-height: 650px;
}
.at-feature-pair {
  aspect-ratio: 3 / 4;
}
@media (min-width: 992px) {
  .at-feature-img { aspect-ratio: auto; min-height: 480px; }
  .at-feature-pair { aspect-ratio: auto; height: 380px; }
}

/* ---------- Buttons & badges ---------- */
.at-btn {
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 700;
  border-radius: 4px;
}
.at-btn-sm {
  font-size: 12px;
  letter-spacing: 0.08em;
  border-radius: 4px;
  min-height: 44px;            /* comfortable tap target */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.at-badge {
  font-size: 11px;
  letter-spacing: 0.1em;
  border-radius: 4px;
}
.at-cta-actions { width: 100%; flex-direction: column; }
.at-cta-actions .btn { width: 100%; }
@media (min-width: 768px) {
  .at-cta-actions { width: auto; flex-direction: row; }
  .at-cta-actions .btn { width: auto; }
}

/* ---------- Product cards ---------- */
.at-card-media {
  height: 220px;
  background: #f8fafc;
}
.at-card-title {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
}
@media (min-width: 768px) {
  .at-card-media { height: 280px; }
  .at-card-title { font-size: 22px; }
}

/* Swipeable card row on phones, normal grid from md up */
@media (max-width: 767.98px) {
  .at-card-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: -1.5rem;       /* bleed to screen edge */
    padding-right: 1.5rem;
    padding-bottom: 8px;
  }
  .at-card-scroll::-webkit-scrollbar { display: none; }
  .at-card-scroll > [class*="col-"] {
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align: start;
  }
}
