/*
 Theme Name:   Molly McGuffin
 Theme URI:    https://mollymcguffin.com
 Description:  Child theme for Molly McGuffin portfolio site
 Author:       Molly McGuffin
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  mollymcguffin
*/

/* ============================================================
   molly mcguffin — site stylesheet
   ============================================================ */

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --black:  #111;
  --mid:    #777;
  --light:  #bbb;
  --border: #e8e8e8;
  --bg:     #ffffff;
}

/* ── BASE ───────────────────────────────────────────────────── */
html, body {
  height: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--black);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Remove GeneratePress default styles we don't need */
.site-header,
.main-navigation,
#site-navigation,
.header-widget,
.generate-back-to-top {
  display: none !important;
}

.site-content {
  padding: 0 !important;
}

.inside-article,
.entry-content,
.post-content {
  padding: 0 !important;
  max-width: 100% !important;
}

/* ── MOLLY HEADER ───────────────────────────────────────────── */
.mm-header {
  text-align: center;
  padding: 56px 24px 36px;
  animation: fadeUp 0.5s ease both;
}

.mm-header a {
  text-decoration: none;
  color: inherit;
}

.mm-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--black);
  line-height: 1.1;
}

.mm-header .tagline {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--mid);
  letter-spacing: 0.16em;
}

/* ── NAV ────────────────────────────────────────────────────── */
.mm-nav {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Desktop + Tablet */
.mm-desktop-nav {
  display: flex;
  justify-content: center;
}

.mm-desktop-nav a {
  display: inline-block;
  padding: 16px 28px;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--mid);
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.mm-desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--black);
  transition: left 0.25s ease, right 0.25s ease;
}

.mm-desktop-nav a:hover { color: var(--black); }
.mm-desktop-nav a:hover::after { left: 28px; right: 28px; }

.mm-desktop-nav a.current-menu-item,
.mm-desktop-nav a.active {
  color: var(--light);
  pointer-events: none;
  cursor: default;
}
.mm-desktop-nav a.current-menu-item::after,
.mm-desktop-nav a.active::after { display: none; }

/* Mobile hamburger — hidden by default */
.mm-mobile-nav { display: none; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.mm-footer {
  text-align: center;
  padding: 24px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--light);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.mm-footer a { color: var(--light); text-decoration: none; transition: color 0.2s; }
.mm-footer a:hover { color: var(--mid); }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MOBILE BREAKPOINT ──────────────────────────────────────── */
@media (max-width: 600px) {
  .mm-desktop-nav { display: none; }
  .mm-mobile-nav  { display: block; }

  .mm-nav-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 52px;
  }

  .mm-nav-mobile-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: var(--mid);
    text-transform: lowercase;
  }

  .mm-hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-right: -6px;
  }

  .mm-hamburger-btn span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--black);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  .mm-hamburger-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .mm-hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .mm-hamburger-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .mm-mobile-nav-links {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    border-top: 1px solid transparent;
  }

  .mm-mobile-nav-links.open {
    max-height: 300px;
    opacity: 1;
    border-top-color: var(--border);
  }

  .mm-mobile-nav-links a {
    display: block;
    padding: 14px 20px;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: lowercase;
    text-decoration: none;
    color: var(--mid);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, background 0.2s;
  }

  .mm-mobile-nav-links a:last-child { border-bottom: none; }
  .mm-mobile-nav-links a:hover { color: var(--black); background: #fafafa; }

  .mm-mobile-nav-links a.current-menu-item,
  .mm-mobile-nav-links a.active {
    color: var(--light);
    pointer-events: none;
    cursor: default;
    font-style: italic;
  }
}


/* ============================================================
   HOMEPAGE — matchbox stage
   ============================================================ */

.matchbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 32px 60px;
}

.matchbox-row {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: center;
}

.matchbox-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  animation: fadeUp 0.5s ease both;
}

.matchbox-link:nth-child(1) { animation-delay: 0.08s; }
.matchbox-link:nth-child(2) { animation-delay: 0.16s; }
.matchbox-link:nth-child(3) { animation-delay: 0.24s; }
.matchbox-link:nth-child(4) { animation-delay: 0.32s; }
.matchbox-link:nth-child(5) { animation-delay: 0.40s; }

.matchbox-img-wrap {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.matchbox-link:nth-child(1) .matchbox-img-wrap { transform: rotate(-4deg); }
.matchbox-link:nth-child(2) .matchbox-img-wrap { transform: rotate(2.5deg) translateY(-10px); }
.matchbox-link:nth-child(3) .matchbox-img-wrap { transform: rotate(-1.5deg) translateY(6px); }
.matchbox-link:nth-child(4) .matchbox-img-wrap { transform: rotate(3.5deg) translateY(-4px); }
.matchbox-link:nth-child(5) .matchbox-img-wrap { transform: rotate(-2.5deg) translateY(8px); }

.matchbox-link:hover .matchbox-img-wrap,
.matchbox-link:focus .matchbox-img-wrap {
  transform: rotate(0deg) translateY(-16px) scale(1.06) !important;
}

.matchbox-img-wrap img {
  display: block;
  width: 130px;
  height: auto;
  object-fit: contain;
}

.resume-box {
  width: 130px;
  height: 168px;
  background: #e8e0d4;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

.resume-box::before {
  content: '';
  position: absolute;
  bottom: 44px;
  left: 0;
  right: 0;
  height: 14px;
  background: #8b7355;
}

.resume-box svg {
  position: absolute;
  top: 20px;
  width: 64px;
  height: 64px;
  opacity: 0.55;
}

.resume-box-label {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: #5a4a38;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .matchbox-row { gap: 16px; }
  .matchbox-img-wrap img,
  .resume-box { width: 100px; }
  .resume-box { height: 130px; }
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 32px 80px;
  width: 100%;
  animation: fadeUp 0.5s ease both 0.1s;
}

.about-greeting {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 44px;
  color: var(--black);
}

.about-body p {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.85;
  color: #444;
  margin-bottom: 28px;
}

.about-body p:last-of-type { margin-bottom: 0; }

.about-cta {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.about-cta p {
  font-size: 0.9rem;
  font-weight: 300;
  color: #555;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

.contact-list li { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--mid); }

.contact-list li span {
  color: var(--light);
  margin-right: 12px;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.contact-list a {
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.contact-list a:hover { border-color: var(--black); }

.location-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--light);
}

.fun-fact {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--light);
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
}

@media (max-width: 600px) {
  .about-main { padding: 48px 24px 64px; }
}


/* ============================================================
   PHOTO PAGE
   ============================================================ */

.photo-main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 80px;
  animation: fadeUp 0.5s ease both 0.1s;
}

.photo-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-row-single img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.photo-row-triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photo-row-triple img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.photo-row-single img,
.photo-row-triple img {
  transition: opacity 0.25s ease;
}

.photo-row-single img:hover,
.photo-row-triple img:hover { opacity: 0.88; }

@media (max-width: 600px) {
  .photo-main { padding: 32px 16px 64px; }
  .photo-gallery { gap: 8px; }
  .photo-row-single img { aspect-ratio: 4 / 3; }
  .photo-row-triple { gap: 6px; }
  .photo-row-triple img { aspect-ratio: 1 / 1; }
}


/* ============================================================
   VIDEO PAGE
   ============================================================ */

.video-main {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 32px 80px;
  animation: fadeUp 0.5s ease both 0.1s;
}

.video-interlude {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.video-bio {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.85;
  color: #444;
  margin-bottom: 16px;
}

.video-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 16px;
}

.video-section-label {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--black);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0;
  text-transform: none;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.video-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.video-item:nth-child(even) .video-embed { order: 2; }
.video-item:nth-child(even) .video-info  { order: 1; }

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-item--reel { display: block; }
.video-item--reel .video-embed { width: 100%; }
.video-item--reel .video-info { margin-top: 20px; text-align: center; }

.video-info h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 16px;
  line-height: 1.2;
}

.video-info p {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
}

.video-info .video-credit {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--light);
  font-style: italic;
}

@media (max-width: 768px) {
  .video-main { padding: 40px 20px 64px; }
  .video-item { grid-template-columns: 1fr; gap: 24px; }
  .video-item:nth-child(even) .video-embed,
  .video-item:nth-child(even) .video-info { order: unset; }
}


/* ============================================================
   COMMERCIAL WORK PAGE
   ============================================================ */

.commercial-main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 32px 80px;
  width: 100%;
  animation: fadeUp 0.5s ease both 0.1s;
}

.commercial-greeting {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 44px;
  color: var(--black);
}

.commercial-body p {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.85;
  color: #444;
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .commercial-main { padding: 48px 24px 64px; }
}


/* ============================================================
   RESUME PAGE
   ============================================================ */

.resume-main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 32px 80px;
  width: 100%;
  animation: fadeUp 0.5s ease both 0.1s;
}

.resume-greeting {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 44px;
  color: var(--black);
}

.resume-body p {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.85;
  color: #444;
  margin-bottom: 28px;
}

.resume-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--black);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.resume-body ul {
  list-style: none;
  margin-bottom: 28px;
}

.resume-body ul li {
  font-size: 0.9rem;
  font-weight: 300;
  color: #444;
  line-height: 1.8;
  padding-left: 0;
}

.resume-body ul li::before {
  content: '—';
  color: var(--light);
  margin-right: 10px;
}

@media (max-width: 600px) {
  .resume-main { padding: 48px 24px 64px; }
}


/* ============================================================
   FOOGALLERY OVERRIDES
   ============================================================ */

.photo-gallery-wrapper {
  width: 100%;
}

/* Remove any default padding/margins FooGallery adds */
.photo-main .foogallery-container {
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure images have no unwanted borders or shadows */
.photo-main .foogallery-container .fg-item img {
  border: none !important;
  box-shadow: none !important;
  transition: opacity 0.25s ease !important;
}

.photo-main .foogallery-container .fg-item img:hover {
  opacity: 0.88 !important;
}

/* Remove captions if shown */
.photo-main .foogallery-container .fg-item-caption {
  display: none !important;
}


/* ============================================================
   COMMERCIAL WORK GALLERY
   ============================================================ */

.commercial-main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 80px;
  animation: fadeUp 0.5s ease both 0.1s;
}

.commercial-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Full width */
.commercial-row-single img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* Three column */
.commercial-row-triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.commercial-row-triple img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

/* Video cell sits in the grid alongside images */
.commercial-video-cell {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #000;
}

.commercial-video-cell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Two column */
.commercial-row-double {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.commercial-row-double img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Hover */
.commercial-row-single img,
.commercial-row-triple img,
.commercial-row-double img {
  transition: opacity 0.25s ease;
}

.commercial-row-single img:hover,
.commercial-row-triple img:hover,
.commercial-row-double img:hover {
  opacity: 0.88;
}

@media (max-width: 600px) {
  .commercial-main { padding: 32px 16px 64px; }
  .commercial-gallery { gap: 8px; }
  .commercial-row-triple,
  .commercial-row-double { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .commercial-row-triple img,
  .commercial-row-double img,
  .commercial-video-cell { aspect-ratio: 1 / 1; }
  .commercial-row-single img { aspect-ratio: 4 / 3; }
}
