/* Mario Carmona — child theme. No parallax, no scroll-in slides. */
:root {
  --mc-ink: #363233;
  --mc-muted: #888;
  --mc-slate: #808d9b;
  --mc-line: #e7e7e7;
  --mc-wash: #f5f5f5;
  --mc-paper: #fbfaf8;
  --mc-white: #fff;
  --mc-max: 980px;
  --mc-wide: 1240px;
  --mc-hero-pos: 72% 18%;
  --mc-ease: 280ms ease;
  --mc-header: 5.75rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--mc-paper);
  color: var(--mc-ink);
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:not(.mc-btn):not(.mc-wordmark):not(.mc-gallery__item):not(.mc-card__media) {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:not(.mc-btn):hover { color: #000; }

:focus-visible {
  outline: 2px solid var(--mc-ink);
  outline-offset: 3px;
}

.mc-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.mc-skip:focus { left: 1rem; top: 1rem; }

/* Header */
.mc-header {
  position: relative;
  z-index: 20;
  background: var(--mc-white);
}
.mc-header--overlay {
  position: absolute;
  left: 0; right: 0; top: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.55), rgba(255,255,255,0));
}
.mc-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.5rem 2rem;
  max-width: calc(var(--mc-wide) + 4rem);
  margin: 0 auto;
  padding: 1.15rem 1.5rem 1rem;
}

.mc-wordmark {
  text-decoration: none;
  display: block;
  color: var(--mc-ink);
}
.mc-wordmark:hover { color: var(--mc-ink); }
.mc-wordmark__name {
  display: block;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 0.95;
  letter-spacing: 0.18em;
  text-transform: none;
}
.mc-wordmark__tag {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: none;
  font-weight: 400;
  color: var(--mc-ink);
}

.mc-social {
  display: flex;
  gap: 0.45rem;
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
}
.mc-social a {
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  color: var(--mc-ink);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(54,50,51,0.12);
  border-radius: 999px;
  text-decoration: none;
  transition: transform var(--mc-ease), background var(--mc-ease), box-shadow var(--mc-ease);
}
.mc-social a:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 6px 16px rgba(54,50,51,0.12);
}

.mc-nav { justify-self: center; }
.mc-nav__list,
.mc-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mc-nav a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mc-ink);
  position: relative;
  transition: color var(--mc-ease);
}
.mc-nav a::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.2rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--mc-ease);
}
.mc-nav a:hover::after,
.mc-nav .current-menu-item a::after { transform: scaleX(1); }

.mc-nav-toggle {
  display: none !important;
  width: 2.6rem;
  height: 2.6rem;
  border: 0 !important;
  background: transparent !important;
  color: var(--mc-ink) !important;
  cursor: pointer;
  justify-self: end;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.mc-nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 1.5px;
  background: var(--mc-ink);
  transition: transform var(--mc-ease), opacity var(--mc-ease);
}

/* Hero */
.mc-main--hero { padding: 0; }
.mc-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #1a1e24;
}
.mc-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--mc-hero-pos);
  max-width: none;
}
.mc-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,24,30,0.08), transparent 42%);
  pointer-events: none;
}
.mc-curve {
  line-height: 0;
  color: var(--mc-paper);
}
.mc-curve svg {
  display: block;
  width: 100%;
  height: 72px;
}
.mc-curve path { fill: currentColor; }
.mc-curve--hero {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  color: var(--mc-paper);
}
.mc-home .mc-footer { margin-top: 0; }
.mc-home .mc-footer .mc-curve--up { display: none; }

/* Inner pages */
.mc-pagehead {
  background: var(--mc-white);
  padding: 3.2rem 0 0;
  position: relative;
}
.mc-pagehead h1 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.mc-kicker {
  margin: 0 0 0.4rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mc-muted);
}
.mc-kicker a { text-decoration: none; color: inherit; }
.mc-curve--down {
  color: var(--mc-paper);
  margin-top: 0.5rem;
}
.mc-curve--down svg { height: 56px; }

.mc-wrap {
  width: min(100% - 2.5rem, var(--mc-max));
  margin: 0 auto;
}
.mc-wrap--wide { width: min(100% - 2rem, var(--mc-wide)); }

/* About photo: static, no parallax */
.mc-about-photo {
  margin: -0.5rem 0 2.5rem;
  width: 100%;
  overflow: hidden;
}
.mc-about-photo img {
  width: 100%;
  height: clamp(240px, 46vw, 520px);
  object-fit: cover;
  object-position: 50% 35%;
}

.mc-prose {
  padding: 0 0 4.5rem;
  color: #4a4647;
  font-size: 1.05rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.mc-prose--about { max-width: 44rem; }
.mc-prose p { margin: 0 0 1.15rem; }
.mc-prose p.mc-lead,
.mc-prose blockquote,
.mc-prose .mc-quote {
  font-size: 1.15rem;
  color: var(--mc-ink);
  font-style: italic;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

.mc-prose--poem p {
  margin: 0 0 0.85rem;
  line-height: 1.7;
}
.mc-feature {
  margin: 0 0 2.25rem;
}
.mc-feature img {
  width: 100%;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(54,50,51,0.12);
}

/* Gallery */
.mc-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0.25rem 0 4.5rem;
  /* JS justified layout sets flex-basis / height on items */
}
.mc-gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.85rem;
  background: #eceae7;
  flex: 1 1 auto;
  text-decoration: none;
  transition: transform var(--mc-ease), box-shadow var(--mc-ease);
}
.mc-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mc-gallery__item:hover,
.mc-gallery__item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(54,50,51,0.16);
  z-index: 2;
}
@media (hover: none) {
  .mc-gallery__item:hover { transform: none; box-shadow: none; }
}

/* Blog */
.mc-blog { padding: 0 0 4.5rem; }
.mc-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}
.mc-card__media {
  display: block;
  overflow: hidden;
  border-radius: 1.25rem;
  transition: transform var(--mc-ease), box-shadow var(--mc-ease);
}
.mc-card__media:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(54,50,51,0.12);
}
.mc-card__media img { width: 100%; }
.mc-card__title { margin: 0 0 0.4rem; font-size: 1.55rem; letter-spacing: 0.02em; }
.mc-card__title a { text-decoration: none; }
.mc-card__meta {
  color: var(--mc-muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  margin: 0 0 1.2rem;
}

.mc-btn,
.wpcf7-submit {
  display: inline-block;
  border: 1px solid var(--mc-ink);
  background: transparent;
  color: var(--mc-ink);
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--mc-ease), color var(--mc-ease), transform var(--mc-ease), box-shadow var(--mc-ease);
}
.mc-btn:hover,
.wpcf7-submit:hover {
  background: var(--mc-ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(54,50,51,0.16);
}

/* Contact / CF7 */
.mc-contact { max-width: 36rem; }
.wpcf7 { margin-top: 1.5rem; }
.wpcf7 p { margin: 0 0 1rem; }
.wpcf7 label { display: block; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mc-muted); margin-bottom: 0.35rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #d5d6d9;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--mc-ink);
  padding: 0.65rem 0;
  border-radius: 0;
  transition: border-color var(--mc-ease);
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-bottom-color: var(--mc-ink);
}
.wpcf7 textarea { min-height: 8rem; resize: vertical; }
.wpcf7-not-valid-tip { color: #9a3b3b; font-size: 0.85rem; }
.wpcf7-response-output { border: 0 !important; padding: 0.75rem 0 !important; }

/* Footer */
.mc-footer {
  background: var(--mc-ink);
  color: #efeae6;
  margin-top: 1rem;
  position: relative;
}
.mc-curve--up { color: var(--mc-ink); margin-top: -70px; pointer-events: none; }
.mc-curve--up svg { height: 70px; }
.mc-footer__inner {
  width: min(100% - 2.5rem, var(--mc-max));
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
  text-align: center;
}
.mc-footer__mark {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 1.05rem;
}
.mc-footer__tag {
  margin: 0.25rem 0 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #c9c3bf;
}
.mc-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.15rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mc-footer__links a { text-decoration: none; color: #efeae6; }
.mc-footer__links a:hover { color: #fff; }
.mc-social--footer { justify-content: center; margin: 0 0 1.2rem; }
.mc-social--footer a {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: #efeae6;
}
.mc-footer__copy {
  margin: 0;
  font-size: 0.82rem;
  color: #b9b3af;
}

/* Preview banner: only in admin bar context we don't need one on the public page.
   A discreet noindex site is enough. */

@media (max-width: 860px) {
  .mc-about-photo img {
    height: clamp(280px, 88vw, 420px);
    object-position: 42% 30%;
  }
  .mc-header__inner {
    grid-template-columns: 1fr auto;
  }
  .mc-nav-toggle { display: flex !important; }
  .mc-nav {
    display: none;
    grid-column: 1 / -1;
    background: rgba(255,255,255,0.96);
    border-radius: 1rem;
    padding: 0.6rem 0.4rem 0.9rem;
    box-shadow: 0 16px 40px rgba(54,50,51,0.12);
  }
  .mc-nav.is-open { display: block; }
  .mc-nav__list, .mc-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .mc-nav a { padding: 0.7rem 1rem; }
  .mc-card { grid-template-columns: 1fr; }
  .mc-wordmark__name { font-size: 1.55rem; letter-spacing: 0.14em; }
  .mc-hero { min-height: 100svh; min-height: 100vh; }

  /* Home: keep the wordmark in a bar above the portrait so it never sits on his face */
  .mc-home .mc-header--overlay {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 0 rgba(54, 50, 51, 0.08);
  }
  .mc-home .mc-main--hero,
  .mc-home .mc-hero {
    min-height: calc(100svh - 9.1rem);
    min-height: calc(100vh - 9.1rem);
  }
}


/* PhotoSwipe must sit above the site header */
.pswp {
  z-index: 200000 !important;
}
html.pswp-open .mc-header,
body.pswp-open .mc-header,
html.mc-lightbox-open .mc-header {
  visibility: hidden;
  pointer-events: none;
}

/* Gentle fade-in on load only — no scroll-in slides, no parallax */
@media (prefers-reduced-motion: no-preference) {
  .mc-pagehead,
  .mc-about-photo,
  .mc-prose,
  .mc-gallery,
  .mc-blog,
  .mc-hero__image {
    animation: mcFade 0.65s ease both;
  }
  @keyframes mcFade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
