/*
 * page-presidents-message.css
 *
 * Styles unique to template-presidents-message.php.
 * Enqueue via wp_enqueue_style() only when is_page_template( 'template-presidents-message.php' ).
 *
 * Global elements (nav, breadcrumb, footer, eyebrow, page-nav, seo-h1)
 * are handled by main.css and are NOT repeated here.
 *
 * Dependency: main.css (must load first).
 */


/* ==========================================================================
   HERO — two-column split: text left, portrait right
   ========================================================================== */

.page-hero {
  padding: 100px 0 80px;
  background: var(--black);
  border-bottom: 1px solid rgba(184, 184, 184, 0.1);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind the portrait column */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 50%, rgba(184, 184, 184, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 72px;
  align-items: end;
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 680px;
}


/* ==========================================================================
   PRESIDENT PORTRAIT — hero frame + name caption
   ========================================================================== */

.hero-portrait {
  flex-shrink: 0;
}

.portrait-frame {
  width: 220px;
  position: relative;
}

/* Corner bracket: top-left */
.portrait-frame::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  width: 72px;
  height: 72px;
  border-top: 2px solid var(--silver);
  border-left: 2px solid var(--silver);
  z-index: 1;
}

/* Corner bracket: bottom-right */
.portrait-frame::after {
  content: "";
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 72px;
  height: 72px;
  border-bottom: 2px solid var(--silver);
  border-right: 2px solid var(--silver);
  z-index: 1;
}

.portrait-frame img {
  width: 100%;
  display: block;
  /* filter: grayscale(100%) contrast(1.05); */
  border: 1px solid rgba(184, 184, 184, 0.2);
}

.portrait-name {
  margin-top: 20px;
  text-align: center;
}

.portrait-name strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  display: block;
  letter-spacing: -0.01em;
}

.portrait-name span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dark);
  font-weight: 500;
  display: block;
  margin-top: 4px;
}


/* ==========================================================================
   MESSAGE BODY — full-width letter layout
   ========================================================================== */

.message-section {
  padding: 100px 0 120px;
}

/* Constrain the letter column for comfortable reading */
.message-grid {
  max-width: 800px;
}

.message-letter {
  font-size: 18px;
  color: var(--silver-light);
  line-height: 1.9;
  font-weight: 300;
}

.message-letter .salutation {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 36px;
  font-style: italic;
  display: block;
}

.message-letter p {
  margin-bottom: 28px;
}

.message-letter p:last-of-type {
  margin-bottom: 40px;
}

.message-letter strong {
  font-weight: 600;
  color: var(--white);
}


/* ==========================================================================
   SIGN-OFF BLOCK — closing line, avatar, name, title, email
   ========================================================================== */

.sign-off {
  padding-top: 40px;
  border-top: 1px solid rgba(184, 184, 184, 0.12);
}

.sign-off .closing {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--silver);
  margin-bottom: 28px;
}

.sign-off-block {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Small circular portrait crop — reuses the ACF portrait image at 64px */
.sign-off-portrait {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(184, 184, 184, 0.2);
}

.sign-off-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(100%) contrast(1.05); */
}

.sign-off-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sign-off-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.sign-off-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dark);
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.6;
}

.sign-off-email {
  font-size: 13px;
  color: var(--silver);
  margin-top: 6px;
  text-decoration: none;
  transition: color 0.2s;
}

.sign-off-email:hover {
  color: var(--white);
}


/* ==========================================================================
   RESPONSIVE — tablet (1100px)
   ========================================================================== */

@media (max-width: 1100px) {
  .hero-inner {
    gap: 48px;
  }

  .portrait-frame {
    width: 180px;
  }
}


/* ==========================================================================
   RESPONSIVE — mobile (900px)
   ========================================================================== */

@media (max-width: 900px) {
  .page-hero {
    padding: 64px 0 56px;
  }

  /* Stack hero to single column, portrait centered below text */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .portrait-frame {
    width: 160px;
  }

  .hero-text h1 {
    font-size: clamp(34px, 10vw, 52px);
  }

  .hero-text p {
    font-size: 15px;
  }

  .message-section {
    padding: 56px 0 80px;
  }

  .message-letter {
    font-size: 16px;
  }

  .pull-quote {
    padding: 24px;
  }

  .sign-off-block {
    gap: 18px;
  }
}


/* ==========================================================================
   RESPONSIVE — small phone (600px)
   ========================================================================== */

@media (max-width: 600px) {
  .portrait-frame {
    width: 140px;
  }

  .hero-text h1 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .message-letter .salutation {
    font-size: 18px;
  }

  /* Stack the sign-off avatar and name vertically */
  .sign-off-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}