/*
Theme Name: Go Child (Menlove)
Theme URI: https://menloveconstruction.com
Description: Child theme of Go for Menlove Construction. Design system + custom footer.
Author: Menlove Construction
Template: go
Version: 1.0.0
*/

/* === Typography === */
body, button, input, select, textarea,
.entry-content, .entry-content p, p, li, blockquote, figcaption {
  font-family: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
h1, h2, h3, h4, h5, h6, .wp-block-heading, .site-title {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: -0.01em;
}

/* === Home: tighten section rhythm (sections set their own padding) === */
.page-id-58 .entry-content > *,
.page-id-61 .entry-content > *,
.page-id-108 .entry-content > *,
.page-id-60 .entry-content > * { margin-top: 0 !important; margin-bottom: 0 !important; }

/* === Service cards: subtle lift on hover === */
.wp-block-group.has-quaternary-background-color { transition: box-shadow .2s ease; }
.wp-block-group.has-quaternary-background-color:hover { box-shadow: 0 6px 20px rgba(21,32,42,.08); }

/* === Header CTA: turn Contact Us into a button === */
.primary-menu .menu-item-80 > a {
  background: var(--wp--preset--color--primary, #265E78); color: #fff !important;
  padding: 11px 22px; border-radius: 6px; transition: background .2s ease;
}
.primary-menu .menu-item-80 > a:hover { background: #15384a; color: #fff !important; }
.primary-menu .menu-item-80 > a::before, .primary-menu .menu-item-80 > a::after { display: none !important; }

/* === Sticky header polish === */
.has-sticky-header .site-header, .site-header.is-sticky { box-shadow: 0 1px 0 rgba(0,0,0,.07); }

/* === Custom footer === */
.menlove-footer { background: #15202a; color: #aeb8c0; padding: 64px 24px 28px; }
.menlove-footer a { color: #cdd6dd; text-decoration: none; transition: color .2s ease; }
.menlove-footer a:hover { color: #ffffff; }
.menlove-footer__grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.menlove-footer h3 { color: #ffffff; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 14px; }
.menlove-footer__brand p { line-height: 1.7; font-size: 15px; margin: 0; max-width: 420px; }
.menlove-footer__logo { color: #ffffff; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .5px; display: block; margin-bottom: 12px; }
.menlove-footer ul { list-style: none; margin: 0; padding: 0; }
.menlove-footer li { margin-bottom: 9px; font-size: 15px; line-height: 1.5; }
.menlove-footer__bottom { max-width: 1080px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #8b97a1; }
.menlove-footer__bottom a { color: #8b97a1; }
@media (max-width: 781px) {
  .menlove-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .menlove-footer { padding: 48px 24px 24px; }
}


/* === Project gallery: editorial cards (Big-D style) === */
.page-id-108 .wp-block-gallery{gap:24px!important;align-items:flex-start!important;}
.page-id-108 .wp-block-gallery.has-nested-images figure.wp-block-image{display:block;background:#fff;border:1px solid #e4e8eb;border-radius:12px;overflow:hidden;margin:0;box-shadow:0 1px 3px rgba(21,32,42,.06);transition:box-shadow .3s ease;}
.page-id-108 .wp-block-gallery.has-nested-images figure.wp-block-image img{width:100%!important;height:auto!important;aspect-ratio:4/3;object-fit:cover;display:block;transition:transform .55s ease;}
.page-id-108 .wp-block-gallery.has-nested-images figure.wp-block-image:hover{box-shadow:0 14px 32px rgba(21,32,42,.16);}
.page-id-108 .wp-block-gallery.has-nested-images figure.wp-block-image:hover img{transform:scale(1.05);}
.page-id-108 .wp-block-gallery.has-nested-images figure.wp-block-image figcaption{position:static!important;margin:0;padding:15px 18px 17px;background:#fff;text-align:left;font-family:"Montserrat",sans-serif;font-weight:600;font-size:15.5px;line-height:1.35;color:#1A1D21!important;border-top:2px solid #265E78;}
.page-id-58 .wp-block-gallery.has-nested-images figure.wp-block-image{border-radius:12px;overflow:hidden;}
.page-id-58 .wp-block-gallery.has-nested-images figure.wp-block-image img{aspect-ratio:4/3;object-fit:cover;width:100%!important;height:auto!important;display:block;transition:transform .5s ease;}
.page-id-58 .wp-block-gallery.has-nested-images figure.wp-block-image:hover img{transform:scale(1.05);}

/* force 3-col grid on Our Work gallery */
.page-id-108 .wp-block-gallery.is-layout-flex{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px!important;align-items:start!important;}
.page-id-108 .wp-block-gallery.is-layout-flex>figure.wp-block-image{width:auto!important;max-width:none!important;margin:0!important;flex:none!important;}
@media(max-width:1024px){.page-id-108 .wp-block-gallery.is-layout-flex{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:600px){.page-id-108 .wp-block-gallery.is-layout-flex{grid-template-columns:1fr!important;}}

/* Hide-on-mobile utility (desktop-only content) */
@media (max-width:781px){ .menlove-hide-mobile{ display:none !important; } }
