/* ==========================================================================
   Mahima Growth Labs — Portfolio & Case Study styles
   Extends existing design tokens/components; no new colors introduced.
   ========================================================================== */

/* ---- Our Online Presence icons ---- */
.connect-card .card__icon {
  font-size: var(--fs-xl);
}

/* ---- Portfolio listing card ---- */
.portfolio-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.portfolio-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.portfolio-card__category {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  background: rgba(20, 184, 166, 0.1);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
}

.portfolio-card__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}

.portfolio-card__text {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  flex: 1;
}

.portfolio-card__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
}

.card > .portfolio-card__badge {
  margin-bottom: var(--space-4);
}

/* ---- Generic image placeholder ---- */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  padding: var(--space-4);
}

.image-placeholder--sm {
  min-height: 120px;
}

.image-placeholder--tall {
  min-height: 220px;
}

/* ---- Case study hero ---- */
.case-hero {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}

.case-hero--image {
  isolation: isolate;
}

.case-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.case-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.72) 0%, rgba(10, 15, 28, 0.85) 100%);
  z-index: 1;
}

.case-hero__inner {
  padding: var(--space-7) 0 var(--space-6);
  text-align: center;
  position: relative;
  z-index: 2;
}

/* ---- Compact, premium spacing for the BrightSmile case study page only ---- */
.case-study-page .section__header {
  margin-bottom: var(--space-6);
}

.case-study-page .grid {
  gap: var(--space-5);
}

.case-study-page .card {
  padding: var(--space-5);
}

.case-study-page .card__title {
  margin-bottom: var(--space-1);
}

.case-hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: var(--space-4);
}

.case-hero__title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-2);
  color: var(--color-text-inverse);
}

.case-hero__subtitle {
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  color: var(--color-text-inverse-muted);
  margin-bottom: var(--space-5);
}

.case-hero__note {
  max-width: 640px;
  margin: 0 auto;
  font-size: var(--fs-sm);
  color: var(--color-text-inverse-muted);
  line-height: var(--lh-normal);
}

/* ---- Team & brand identity cards ---- */
.identity-card,
.team-card {
  text-align: center;
}

.team-card__media {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Generic photo frame (consistent size + object-fit: cover) ---- */
.photo-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.photo-frame--tall {
  aspect-ratio: 4 / 3;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Logo display ---- */
.identity-card__logo {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.identity-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Brand color swatches ---- */
.swatch-row {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.swatch {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.swatch--outline {
  border: 1px solid var(--color-border);
}

/* ---- Typography sample ---- */
.type-sample {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.type-sample__aa {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

/* ---- Campaign cards ---- */
.campaign-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.campaign-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.campaign-card__eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.campaign-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}

.campaign-card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
  flex: 1;
}

/* ---- Disabled button state (reuses .btn) ---- */
.btn[disabled],
.btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---- Simple feature list used in Project Overview ---- */
.overview-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-6);
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
}

.overview-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-base);
  color: var(--color-text);
}

.overview-list li::before {
  content: "✦";
  color: var(--color-accent);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .overview-list {
    grid-template-columns: 1fr;
  }
}

/* ---- Industry availability cards ---- */
.industry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-direction: row;
  text-align: left;
}

.industry-status {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  white-space: nowrap;
}

.industry-status--available {
  color: var(--color-accent-hover);
  border-color: var(--color-accent);
  background: rgba(20, 184, 166, 0.1);
}

/* ---- Stat block ---- */
.stat-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  text-align: center;
}

.stat-block--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 480px;
  margin: 0 auto;
}

.stat-block__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.stat-block__number {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--color-accent-hover);
  line-height: var(--lh-tight);
}

.stat-block__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .stat-block {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .industry-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Responsive device showcase ---- */
.device-showcase {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-7);
  flex-wrap: wrap;
}

.device-showcase__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  flex: 0 0 auto;
  padding-top: var(--space-6);
}

.device-frame {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.device-frame:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.device-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.device-frame--desktop {
  flex: 1 1 480px;
  max-width: 560px;
  border-radius: var(--radius-lg);
}

.device-frame--desktop .device-frame__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 28px;
  padding: 0 var(--space-4);
  background: var(--color-gray-100);
  border-bottom: 1px solid var(--color-border);
}

.device-frame__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-gray-300);
}

.device-frame--tablet {
  width: 200px;
  border-radius: var(--radius-lg);
  border-width: 6px;
  border-color: var(--color-navy-950);
}

.device-frame--mobile {
  width: 128px;
  border-radius: 20px;
  border-width: 8px;
  border-color: var(--color-navy-950);
}

@media (max-width: 900px) {
  .device-showcase {
    justify-content: center;
  }

  .device-frame--desktop {
    flex-basis: 100%;
    max-width: 480px;
  }

  .device-showcase__side {
    flex-direction: row;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .device-showcase__side {
    gap: var(--space-4);
  }

  .device-frame--tablet {
    width: 150px;
  }

  .device-frame--mobile {
    width: 96px;
  }
}

/* ---- "Why this matters" callout box ---- */
.why-box {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: rgba(20, 184, 166, 0.06);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
}

.why-box__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  margin-bottom: var(--space-1);
}

.why-box__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
  margin: 0;
}

/* ---- What We Delivered checklist ---- */
.delivered-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4) var(--space-6);
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
}

.delivered-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}

.delivered-list__icon {
  font-size: var(--fs-lg);
  line-height: 1;
}

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

@media (max-width: 560px) {
  .delivered-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Premium polish for the BrightSmile case study page only.
   Scoped under .case-study-page so nothing else on the site is affected.
   ========================================================================== */

/* ---- Warm off-white background on plain sections ---- */
.case-study-page .section:not(.section--alt) {
  background: #fdfcfa;
}

/* ---- Curved divider under the hero ---- */
.case-hero__divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 2;
  display: block;
}

.case-hero__divider path {
  fill: #fdfcfa;
}

/* ---- Soft background glow behind select sections ---- */
.case-study-page .has-glow {
  position: relative;
  overflow: hidden;
}

.case-study-page .has-glow::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, rgba(20, 184, 166, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.case-study-page .has-glow::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -140px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(10, 15, 28, 0.06) 0%, rgba(10, 15, 28, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.case-study-page .has-glow > .container {
  position: relative;
  z-index: 1;
}

/* ---- Stronger typographic contrast on headings ---- */
.case-study-page .section__header h2,
.case-study-page .split__title {
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

/* ---- Scroll reveal ---- */
.case-study-page .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Floating "Book Appointment" button ---- */
.floating-book-btn {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base), background var(--transition-fast);
}

.floating-book-btn:hover {
  background: var(--color-accent-hover);
}

.floating-book-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 640px) {
  .floating-book-btn {
    bottom: var(--space-4);
    right: var(--space-4);
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-xs);
  }
}
