/* About page — layout & page-only styling
   Reuses global header/nav/font/cursor from css/styles.css */

/* Container: leave background black as on Home, just add top padding to clear fixed header */
.about-container{
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 100px 1rem 40px; /* top = header space */
  flex: 1;
}

/* Two-column pairs on desktop, stack on mobile */
.pair{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "image text";
  align-items: stretch;
  gap: 0;
}

/* Flip order on desktop only where requested */
@media (min-width: 901px){
  .pair--flip-desktop{ grid-template-areas: "text image"; }
}

/* Keep hover zoom from overlapping adjacent columns/rows */
.pair .image{
  grid-area: image;
  display: flex;
  position: relative;
  overflow: hidden;   /* <-- crops the scaled img to this cell */
  contain: paint;     /* extra safety + performance */
}

.pair .image img{
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, box-shadow .4s ease;
}

.pair .image img:hover{
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.pair .text{
  grid-area: text;
  padding: 2.5rem;
  background: #000;             /* keep same page background */
  color: #f5f5f7;               /* readable on black */
  font-size: 1.1rem;
  line-height: 1.6;
  display: flex;
  align-items: center;
  text-align: left;
}

/* Larger screens: slightly bigger type and padding */
@media (min-width: 1400px){
  .pair .text{
    font-size: 1.25rem;
    line-height: 1.8;
    padding: 3.5rem;
  }
}

/* Mobile: stack image then text, center-align text, remove hover effects */
@media (max-width: 900px){
  .pair,
  .pair--flip-desktop{
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "text";
  }
  .pair .text{
    text-align: center;
    font-size: 1rem;
    padding: 1rem;
  }
  .pair .image img{
    max-height: none;
  }
  .pair .image img:hover{
    transform: none;
    box-shadow: none;
  }
}

/* Footer edge line to match Home aesthetic */
footer{
  border-top: 1px solid #2a2a2a;
}

/* ==== Footer social: consistent across pages (stacked + centered) ==== */

/* Center everything and reset default spacing */
footer { text-align: center; }
footer p { margin: 0; }

/* The first <p> contains the social block */
footer p:first-of-type {
  margin-top: -1rem;
  margin-bottom: -1rem;
}

/* Make the <strong> wrap behave like a vertical stack:
   line 1 = small "FOLLOW US ON INSTAGRAM"
   line 2 = big hashtag + icon */
footer p:first-of-type strong{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0rem;                              /* space between the two lines */
  font-family: var(--font-heading) !important;
  font-size: clamp(1rem, 1vw, 1rem);    /* small top line */
  letter-spacing: .10em;
  line-height: 1.05;
}


/* The hashtag line (bigger) stays on one row with the icon */
footer p:first-of-type strong a{
  display: inline-flex;
  align-items: center;                      /* aligns the icon baseline */
  gap: 0rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-heading) !important;
  font-size: clamp(1.4rem, 2vw, 1rem);  /* bigger second line */
  letter-spacing: .08em;
}

/* Icon sizing + tiny baseline nudge */
footer .instagram-icon{
  width: clamp(20px, 2.2vw, 24px);
  height: auto;
  margin: 0;
  vertical-align: middle;
  transform: translateY(1px);
  filter: brightness(0) invert(1);
}

/* Hover accent */
footer p:first-of-type strong a:hover { color: #c4a000; }
footer p:first-of-type strong a:hover .instagram-icon{
  transform: translateY(1px) scale(1.05);
}

/* Legal line spacing & readable size */
footer p:last-of-type{
  margin-top: .75rem;
  font-size: clamp(.85rem, 1.2vw, .95rem);
  line-height: 1.35;
}
