/*
Theme Name: Michelle Wood Events
Theme URI: https://michellewoodevents.com
Description: Child theme of Twenty Twenty-Five recreating the Michelle Wood Events design (formerly Meraki Wood Events).
Author: Michelle Wood Events
Template: twentytwentyfive
Version: 2.1.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: michellewood
*/

/* ---------- Header: logo centred, menu split left / right, sticky ---------- */
.mwe-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
}
.mwe-header .mwe-header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 1180px; margin: 0 auto;
  padding: .6rem 1.5rem;
}
.mwe-header .wp-block-site-logo { margin: 0; }
.mwe-header .wp-block-site-logo img { width: 230px; height: auto; display: block; }
.mwe-header .mwe-nav-left { justify-self: end; }
.mwe-header .mwe-nav-right { justify-self: start; }
.wp-block-navigation .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-submenu__toggle {
  font-family: var(--wp--preset--font-family--korolev);
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #221F20;
}
.wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--gold); }
.wp-block-navigation__submenu-container { border: 0 !important; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.wp-block-navigation__submenu-container .wp-block-navigation-item__content { letter-spacing: .12em; padding: .5rem 1rem; }
/* Desktop: the left menu shows its first three items, the right menu shows the rest. Mobile: left menu's overlay carries everything. */
@media (min-width: 900px) {
  .mwe-nav-left .wp-block-navigation__container > li:nth-child(n+4) { display: none; }
}
@media (max-width: 899px) {
  .mwe-header .mwe-header-row { grid-template-columns: auto 1fr; }
  .mwe-nav-right { display: none; }
  .mwe-nav-left { justify-self: end; order: 2; }
  .mwe-header .wp-block-site-logo img { width: 160px; }
}

/* ---------- Hero / page banners ---------- */
.mwe-hero .wp-block-cover__inner-container,
.mwe-banner .wp-block-cover__inner-container { text-align: center; }
.mwe-hero h1 {
  font-family: var(--wp--preset--font-family--miller);
  color: #fff;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  letter-spacing: .22em;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.mwe-hero h1 em { font-style: italic; }
.mwe-banner .wp-block-post-title { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.35); margin: 0; }

/* ---------- Brush-stroke heading ---------- */
.mwe-brush {
  background: url(assets/img/brush-warm.png) center / 100% 100% no-repeat;
  padding: 1.6rem 3rem 1.7rem;
  text-align: center;
  margin: 0 auto 1.8rem;
}
.mwe-brush h1, .mwe-brush h2 { margin: 0; font-size: clamp(1.1rem, 2.4vw, 1.75rem); }
.mwe-brush h3 { margin: .15rem 0 0; font-size: clamp(1rem, 2vw, 1.3rem); font-style: italic; letter-spacing: .02em; text-transform: none; color: #756E6C; }

/* ---------- Photo band with heading (Weddings / Approach) ---------- */
.mwe-band .wp-block-cover__inner-container { text-align: center; max-width: 1400px !important; }
.mwe-band h2 { color: #fff; font-size: clamp(1.1rem, 2.3vw, 1.9rem); letter-spacing: .14em; white-space: nowrap; text-shadow: 0 2px 8px rgba(0,0,0,.35); margin: 0; }
@media (max-width: 700px) { .mwe-band h2 { white-space: normal; } }

/* ---------- Meraki section with hexagon buttons ---------- */
.mwe-meraki .wp-block-cover__inner-container { text-align: center; }
.mwe-meraki h2 { color: #fff; font-size: 1.4rem; letter-spacing: .3em; margin: 0 0 .4rem; }
.mwe-meraki .mwe-meraki-def {
  font-family: var(--wp--preset--font-family--miller);
  font-style: italic; color: #fff; font-size: clamp(1rem, 1.8vw, 1.25rem);
  margin: 0 auto 2rem;
}
.mwe-ovals { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.mwe-oval {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 200px; height: 270px; border-radius: 50%;
  border: 1px solid var(--wp--preset--color--gold); box-shadow: inset 0 0 0 6px transparent, inset 0 0 0 7px var(--wp--preset--color--gold);
  font-family: var(--wp--preset--font-family--korolev); font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: #fff;
  text-decoration: none; transition: background .3s, color .3s;
}
.mwe-oval:hover, .mwe-oval:focus-visible { background: var(--wp--preset--color--gold); color: #221F20; }

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link { transition: background .25s, color .25s; }

/* ---------- Love notes ---------- */
.mwe-script {
  font-family: var(--wp--preset--font-family--script);
  font-size: 1.9rem; line-height: 1.2; color: #5f6b66; margin: 0;
}
.mwe-note-rule { width: 270px; max-width: 60%; margin: 2.5rem 0; border: 0; border-top: 2px solid var(--wp--preset--color--gold-light); }

/* ---------- Gallery ---------- */
.wp-block-gallery.mwe-gallery { gap: 6px; }
.wp-block-gallery.mwe-gallery .wp-block-image img { transition: opacity .3s; }
.wp-block-gallery.mwe-gallery .wp-block-image:hover img { opacity: .85; }

/* ---------- Social (square gold icons like the old site) ---------- */
.mwe-social.wp-block-social-links .wp-social-link { border-radius: 0; background: var(--wp--preset--color--gold) !important; }
.mwe-social.wp-block-social-links .wp-social-link a { padding: .55rem; color: #fff; }
.mwe-social.wp-block-social-links .wp-social-link:hover { background: #221F20 !important; }

/* ---------- Contact Form 7 (grey fields like the old site) ---------- */
.wpcf7 form p { margin: 0 0 .8rem; }
.wpcf7 input:not([type="submit"]), .wpcf7 textarea, .wpcf7 select {
  width: 100%; font: inherit; font-size: .95rem; padding: .75rem 1rem;
  border: 0; border-radius: 0; background: #ededed; color: var(--wp--preset--color--contrast);
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 1px solid var(--wp--preset--color--gold); }
.wpcf7 textarea { min-height: 8rem; }
.wpcf7 input[type="submit"] {
  font-family: var(--wp--preset--font-family--korolev); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .7em 1.8em; border: 1px solid var(--wp--preset--color--gold); border-radius: 0;
  background: #fff; color: var(--wp--preset--color--gold); cursor: pointer; transition: background .25s, color .25s;
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--gold-light); color: #fff; }
.wpcf7 .wpcf7-not-valid-tip { font-size: .8rem; color: #a0453a; }
.wpcf7 .wpcf7-response-output { border: 1px solid var(--wp--preset--color--gold); margin: 1rem 0 0; padding: .75rem 1rem; font-size: .9rem; }
.wpcf7-spinner { display: none; }

/* ---------- Footer (old Bridge footer: 4 full-width columns on #424243, white links, gold hover) ---------- */
.mwe-footer { font-size: .95rem; line-height: 1.9; }
.mwe-footer .mwe-footer-top { max-width: 1400px; margin: 0 auto; }
.mwe-footer h5 { font-family: var(--wp--preset--font-family--korolev); font-size: 1rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 1rem; }
.mwe-footer p { margin: 0; }
.mwe-footer .mwe-footer-links p { margin: 0 0 .15rem; }
.mwe-footer a { color: #fff; }
.mwe-footer a:hover { color: #BB9D5A; }
.mwe-footer .mwe-social { margin-top: .5rem; }
.mwe-footer .mwe-social .wp-social-link a { padding: .7rem; }
.mwe-footer .mwe-footer-bottom { font-size: 15px; color: #D6CFC7; }
.mwe-footer .mwe-footer-bottom a { color: #D6CFC7; }
.mwe-footer .mwe-footer-bottom a:hover { color: #BB9D5A; }

/* ---------- Misc ---------- */
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 3px; }
.mwe-legal p, .mwe-legal li { font-size: .95rem; line-height: 1.8; }
.wp-block-media-text .wp-block-media-text__media img { object-fit: cover; }

/* Keep the brush stroke at the top of banner photos in view */
.mwe-hero img.wp-block-cover__image-background,
.mwe-banner img.wp-block-cover__image-background,
.mwe-band img.wp-block-cover__image-background,
.mwe-banner .wp-block-cover__image-background { object-position: 50% 0 !important; }

/* Stronger text shadow now that banners have no tint */
.mwe-hero h1, .mwe-banner .wp-block-post-title { text-shadow: 0 2px 14px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.4); }

/* Brush edge meets the menu bar: hide the image's white top strip behind the header */
.mwe-hero.wp-block-cover, .mwe-banner.wp-block-cover { margin-top: -18px !important; }
.mwe-header { padding-bottom: 0; }

/* Masonry gallery, like the old Final Tiles "columns" layout: 3 columns, 20px gutters, natural proportions */
.wp-block-gallery.mwe-masonry { display: flex; gap: 20px; align-items: flex-start; }
.wp-block-gallery.mwe-masonry .mwe-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.wp-block-gallery.mwe-masonry .wp-block-image { width: 100% !important; margin: 0; }
.wp-block-gallery.mwe-masonry .wp-block-image img { width: 100%; height: auto; display: block; }
.wp-block-gallery.mwe-masonry:not(.is-laid-out) .wp-block-image { width: calc(33.333% - 14px) !important; }

/* Contact form button follows the brand web button */
.wpcf7 input[type="submit"] { background: #221F20; color: #fff; border: 0; font-weight: 500; }
.wpcf7 input[type="submit"]:hover { background: #BB9D5A; color: #fff; }
