/* MASS Agency — Layout, Typography, Base Styles */

/* ==================== UTILITY CLASSES ==================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

.section-sm {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

/* ==================== TYPOGRAPHY ==================== */

.font-heading {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
}

.font-body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
}

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md { font-size: var(--text-md); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-hero { font-size: var(--text-hero); }

.weight-light { font-weight: var(--weight-light); }
.weight-regular { font-weight: var(--weight-regular); }
.weight-medium { font-weight: var(--weight-medium); }
.weight-bold { font-weight: var(--weight-bold); }
.weight-black { font-weight: var(--weight-black); }

.tracked { letter-spacing: 0.12em; text-transform: uppercase; }
.tracked-wide { letter-spacing: 0.05em; }

/* ==================== PAGE HERO (shared) ==================== */

.page-hero {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
  padding-bottom: var(--space-lg);
}

.page-hero--center {
  text-align: center;
  align-items: center;
}

.page-hero--tall {
  min-height: 50vh;
}

.breadcrumb {
  font-size: var(--text-xs);
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin-bottom: var(--space-sm);
}

.breadcrumb a {
  transition: color var(--dur-fast) var(--ease-in-out);
}

.breadcrumb a:hover {
  color: var(--color-black);
}

/* ==================== BUTTONS ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  padding: 0.875rem 1.75rem;
  transition: all var(--dur-base) var(--ease-in-out);
  white-space: nowrap;
}

.btn--filled {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--filled:hover {
  background: var(--color-accent);
  color: var(--color-black);
}

.btn--outlined {
  background: transparent;
  color: var(--color-black);
  border: 1px solid var(--color-black);
}

.btn--outlined:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-black);
}

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

.btn--white-outlined {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn--white-outlined:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

.btn--full {
  width: 100%;
}

/* ==================== LINK UNDERLINE ANIMATION ==================== */

.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-in-out);
}

.link-underline:hover::after {
  transform: scaleX(1);
}

/* ==================== TWO-COLUMN GRID ==================== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.two-col--40-60 {
  grid-template-columns: 40% 60%;
}

.two-col--60-40 {
  grid-template-columns: 60% 40%;
}

/* ==================== THREE-COLUMN GRID ==================== */

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* ==================== CARDS ==================== */

.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: border-color var(--dur-base) var(--ease-smooth),
              transform var(--dur-base) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth);
}

.card:hover {
  border-color: var(--color-black);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transition: border-color var(--dur-base) var(--ease-in-out),
              transform var(--dur-base) var(--ease-in-out),
              box-shadow var(--dur-base) var(--ease-in-out);
}

/* ==================== IMAGE REVEAL ==================== */

.img-reveal {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.img-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-xl) var(--ease-smooth);
}

.img-reveal:hover img {
  transform: scale(1.06);
}

/* ==================== HORIZONTAL RULE ==================== */

.hr-sm {
  width: 60px;
  height: 1px;
  background: var(--color-gray-200);
  border: none;
  margin: var(--space-sm) 0;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  .two-col,
  .two-col--40-60,
  .two-col--60-40 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .three-col {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .page-hero--tall {
    min-height: 35vh;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .three-col {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Principles on approach page always stay 3-col */
  .three-col.three-col--always {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Client logo ticker — prevent text wrapping */
.client-logo {
  white-space: nowrap;
  display: inline-block;
}
