/*
Theme Name: MGM Construction Solutions
Theme URI: https://www.mgmhawaii.com
Author: MGM Construction Solutions
Author URI: https://www.mgmhawaii.com
Description: Custom construction theme for MGM Construction Solutions. Full-bleed hero with an overlaid logo + navigation, alternating content sections, and a brand chartreuse accent. Built to replace the mixed-up template.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mgm-construction
*/

/* ============================================================
   ONE PLACE TO TUNE THE BRAND YELLOW.
   Sampled from your logo = #C8C000. If it reads slightly off,
   change this single value and the whole site follows.
   ============================================================ */
:root{
  --mgm-yellow:#C8C000;
  --mgm-yellow-hover:#b3ac00;
  --ink:#1a1a1a;
  --muted:#5a5a5a;
  --dark:#1f1f1f;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;font-family:"Inter",system-ui,-apple-system,sans-serif;color:var(--ink);line-height:1.6;}
h1,h2,h3,h4,.brandfont{font-family:"Poppins",system-ui,sans-serif;}
img{max-width:100%;height:auto;display:block;}
a{text-decoration:none;color:inherit;}

/* skip link + screen reader (WP standards) */
.skip-link{position:absolute;left:-9999px;top:0;}
.skip-link:focus{left:8px;top:8px;z-index:1000;background:#fff;padding:10px 16px;}
.screen-reader-text{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);}

/* ---------- SITE HEADER (shared) ---------- */
.site-header{
  position:absolute;top:0;left:0;right:0;z-index:30;background:transparent;
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 40px;gap:24px;flex-wrap:wrap;
}
/* interior pages: solid bar so nav stays readable on white */
body:not(.home) .site-header{position:relative;background:var(--dark);}

/* the homepage header floats over the photo, so push it below the WordPress
   admin toolbar when it's showing. Only applies to logged-in users — public
   visitors (no toolbar) still see the header flush at the very top. */
.admin-bar.home .site-header{top:32px;}
@media screen and (max-width:782px){
  .admin-bar.home .site-header{top:46px;}
}

.site-header .site-logo img,.site-header .custom-logo{height:80px;width:auto;max-height:80px;filter:drop-shadow(0 2px 6px rgba(0,0,0,.35));}
.site-header .custom-logo-link{display:inline-block;line-height:0;}

.main-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:34px;}
.main-nav a{
  color:#fff;font-weight:600;font-size:15px;letter-spacing:.5px;text-transform:uppercase;
  font-family:"Poppins",sans-serif;text-shadow:0 1px 4px rgba(0,0,0,.6);
  position:relative;padding:4px 0;display:inline-block;
}
.main-nav a::after{content:"";position:absolute;left:0;bottom:-2px;height:3px;width:0;background:var(--mgm-yellow);transition:width .22s ease;}
.main-nav a:hover::after,.main-nav .current-menu-item > a::after{width:100%;}

.btn{
  display:inline-block;background:var(--mgm-yellow);color:var(--ink);
  font-family:"Poppins",sans-serif;font-weight:700;font-size:14px;letter-spacing:.6px;text-transform:uppercase;
  padding:13px 26px;border-radius:4px;transition:background .2s ease,transform .2s ease;box-shadow:0 4px 14px rgba(0,0,0,.25);
}
.btn:hover{background:var(--mgm-yellow-hover);transform:translateY(-1px);color:var(--ink);}

/* ---------- HERO (front page) ---------- */
.hero{position:relative;min-height:100vh;background:#2a2a2a center/cover no-repeat;display:flex;flex-direction:column;}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.55) 0%,rgba(0,0,0,.15) 35%,rgba(0,0,0,.45) 100%);}
.hero-copy{position:relative;z-index:2;margin:auto auto 9vh;text-align:center;color:#fff;padding:0 24px;max-width:880px;}
.hero-copy .eyebrow{font-family:"Poppins",sans-serif;font-weight:600;letter-spacing:3px;text-transform:uppercase;font-size:14px;color:var(--mgm-yellow);margin-bottom:18px;text-shadow:0 1px 6px rgba(0,0,0,.5);}
.hero-copy h1{font-size:clamp(2.2rem,5.5vw,4rem);font-weight:800;line-height:1.05;text-shadow:0 2px 18px rgba(0,0,0,.55);margin:0 0 22px;}
.hero-copy p{font-size:clamp(1rem,1.6vw,1.2rem);max-width:680px;margin:0 auto 30px;text-shadow:0 1px 8px rgba(0,0,0,.55);}

/* ---------- alternating content sections ---------- */
.section{display:flex;align-items:center;gap:60px;max-width:1180px;margin:0 auto;padding:90px 40px;}
.section.reverse{flex-direction:row-reverse;}
.section .media{flex:1;min-width:0;}
.section .media img{width:100%;height:420px;object-fit:cover;border-radius:8px;box-shadow:0 16px 40px rgba(0,0,0,.12);}
.section .text{flex:1;min-width:0;}
.section .text h2{font-size:clamp(1.8rem,3vw,2.5rem);font-weight:700;margin:0 0 18px;line-height:1.15;}
.section .text .rule{width:64px;height:5px;background:var(--mgm-yellow);border-radius:3px;margin-bottom:22px;}
.section .text p{color:var(--muted);font-size:1.08rem;margin:0;}
.alt{background:#f6f6f4;}

/* ---------- CTA band ---------- */
.cta{text-align:center;padding:90px 40px;background:var(--dark);color:#fff;}
.cta h2{font-size:clamp(1.8rem,3.2vw,2.6rem);font-weight:800;max-width:880px;margin:0 auto 14px;}
.cta p{color:#cfcfcf;max-width:620px;margin:0 auto 30px;font-size:1.1rem;}

/* ---------- interior page hero band + content ---------- */
.page-hero{background:#f6f6f4;padding:64px 40px 56px;text-align:center;}
.page-hero h1{font-size:clamp(2rem,4vw,3rem);font-weight:800;margin:0 0 16px;}
.page-hero .rule{width:64px;height:5px;background:var(--mgm-yellow);border-radius:3px;margin:0 auto;}
.entry{max-width:1100px;margin:0 auto;padding:64px 24px;overflow-wrap:break-word;}
.entry h2{font-family:"Poppins",sans-serif;font-size:1.8rem;margin:1.6rem 0 .8rem;}
.entry h3{font-family:"Poppins",sans-serif;font-size:1.4rem;margin:1.4rem 0 .6rem;}
.entry p{color:#333;margin:0 0 1.1rem;font-size:1.08rem;}
.entry ul,.entry ol{margin:0 0 1.2rem 1.4rem;}
.entry li{color:#333;margin-bottom:.45rem;font-size:1.05rem;}
.entry a{color:#0f6e56;}
.entry a:hover{color:var(--mgm-yellow-hover);}
.entry img{max-width:100%;height:auto;border-radius:8px;margin:1.2rem 0;}
/* keep inherited multi-column layouts inside the page, balanced and centered.
   flex:1 1 0 !important forces columns to share the row evenly and overrides
   any fixed per-column widths saved in the old content (which were bunching
   them to the left and leaving a gap on the right). */
.entry .wp-block-columns{display:flex;flex-wrap:wrap;gap:40px;align-items:flex-start;justify-content:center;}
.entry .wp-block-column{flex:1 1 0 !important;min-width:240px;}
.entry .alignwide,.entry .alignfull{max-width:100%;margin-left:auto;margin-right:auto;}
.entry .wp-block-cover{border-radius:8px;overflow:hidden;}
/* center the text inside full-width cover banners (e.g. "Complete Consulting
   Services" and the "Start your journey" CTA). The service-category columns
   above are not covers, so they stay left-aligned. */
.entry .wp-block-cover__inner-container{text-align:center;margin-left:auto;margin-right:auto;}
.entry .wp-block-cover__inner-container .wp-block-buttons{justify-content:center;}
/* reusable: add the class "mgm-center" to any block (Block > Advanced >
   Additional CSS class) to center it, in case a banner isn't a cover block. */
.entry .mgm-center,.entry .mgm-center *{text-align:center;}
.entry .mgm-center .wp-block-buttons{justify-content:center;}
.aligncenter{margin-left:auto;margin-right:auto;}

/* ---------- About page ---------- */
.about-lead{max-width:820px;margin:0 auto;padding:72px 24px 8px;text-align:center;}
.about-lead p{font-size:1.2rem;color:#333;margin:0;}
.section.about-section .media{align-self:stretch;}
.section.about-section .media img{height:100%;min-height:420px;}
.section.about-section .text p{color:var(--muted);margin:0 0 1.1rem;}
.section.about-section .text p:last-child{margin-bottom:0;}

/* ---------- footer ---------- */
.site-footer{background:#141414;color:#bdbdbd;padding:64px 40px 28px;}
.foot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:40px;max-width:1180px;margin:0 auto;}
.site-footer h4{color:#fff;font-family:"Poppins",sans-serif;font-size:1rem;letter-spacing:1px;text-transform:uppercase;margin:0 0 18px;}
.site-footer h4::after{content:"";display:block;width:40px;height:4px;background:var(--mgm-yellow);margin-top:10px;border-radius:2px;}
.site-footer ul{list-style:none;margin:0;padding:0;}
.site-footer li{margin-bottom:10px;}
.site-footer a:hover{color:var(--mgm-yellow);}
.placeholder{outline:1px dashed #555;outline-offset:4px;}
.foot-bottom{text-align:center;border-top:1px solid #2a2a2a;margin-top:48px;padding-top:24px;font-size:.85rem;color:#777;}

/* ---------- mobile ---------- */
@media(max-width:860px){
  .site-header{justify-content:center;gap:16px;padding:16px 20px;}
  .main-nav ul{gap:20px;flex-wrap:wrap;justify-content:center;}
  .section,.section.reverse{flex-direction:column;gap:32px;padding:60px 24px;}
  .section .media img{height:280px;}
  .section.about-section .media img{height:280px;min-height:0;}
  .hero-copy{margin-bottom:14vh;}
}
