/*
Theme Name: ULAP Insights
Author: ULAP Services
Description: Match ulapservices.com header/footer + centered Insights.
Version: 2025-10-29
*/

/* ===== Settings ===== */
:root{
  --ulap-green: #0e8a3d;           /* brand green */
  --ulap-green-dark: #1b712f;      /* darker for gradient/hover */
  --text: #111;
  --muted: #6b7280;
  --bg: #fff;

  --container-max: 1360px;         /* overall site width */
  --reading-max: 1200px;           /* single post text width */
  --pad-inline: 24px;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(16,24,40,.06), 0 2px 6px rgba(16,24,40,.06);
}

/* ===== Base ===== */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font: 18px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}
a{color:var(--ulap-green);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}

/* ===== Container ===== */
.container{
  width:min(92%, var(--container-max));
  margin-inline:auto;
  padding-inline:var(--pad-inline);
}

/* ===== Header (match root site) ===== */
header{
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.06);
}
header .container{
  display:flex;align-items:center;gap:20px;
  justify-content:space-between;
  padding-block:18px;
}
.site-title{font-weight:800;letter-spacing:.2px}
.site-title a{color:var(--ulap-green)}
.nav-menu{list-style:none;margin:0;padding:0;display:flex;gap:26px}
.nav-menu a{color:#1a1a1a;font-weight:500}
.nav-menu a:hover{color:var(--ulap-green)}
.btn-cta{
  background: linear-gradient(180deg, var(--ulap-green) 0%, var(--ulap-green-dark) 100%);
  color:#fff!important;border-radius:999px;padding:10px 18px;font-weight:700;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
}
.btn-cta:hover{filter:brightness(.96)}

/* ===== Main ===== */
main{padding-block:48px}

/* Insights wrapper used by the page template */
section.contact .container{
  width:min(92%, var(--container-max));
  margin-inline:auto;
  padding-inline:var(--pad-inline);
}

/* Card-like group on index and single */
section.contact .container > .wp-block-group{
  background:#f7faf9;border-radius:var(--radius);box-shadow:var(--shadow);
  padding:clamp(20px,2.8vw,32px);
}

/* ===== Blog index ===== */
.blog-post{margin-bottom:40px}
.blog-post h2{margin:0 0 8px;line-height:1.25}
.blog-post .meta{color:var(--muted);font-size:.92rem;margin-bottom:10px}

/* ===== Single post ===== */
.single .entry-header{margin-bottom:18px}
.single .entry-header h1{margin:0;line-height:1.2;font-size:clamp(28px,3vw,40px)}
.single .entry-content,
.single .wp-block-post-content{
  width:min(100%, var(--reading-max));margin-inline:auto
}
.single .entry-content>*{margin-bottom:1.1rem}
.single .entry-content h2{margin-top:1.8rem;font-size:clamp(22px,2.2vw,30px)}
.single .entry-content h3{margin-top:1.2rem;font-size:clamp(19px,1.8vw,24px)}
.single .content-area, .single main, .single article, .single .is-layout-constrained{max-width:100%;width:100%;margin:0}

/* ===== Footer (match root site) ===== */
footer{background:#165b27;color:#fff;margin-top:40px}
footer .container{padding-block:28px}
.footer-grid{
  display:grid;grid-template-columns:2fr 1fr 1fr;gap:28px;align-items:start
}
.footer-grid .brand-name{margin:0 0 6px;font-size:1.1rem}
.footer-grid .tagline{margin:0 0 14px;color:#d7f0db;max-width:42ch}
.footer-links{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.footer-links a{color:#e9ffec}
.footer-links a:hover{text-decoration:underline}
.social{list-style:none;margin:10px 0 0;padding:0;display:flex;gap:10px}
.social a{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;background:#1f6a2f;color:#e9ffec}
.social a:hover{filter:brightness(1.05)}
.footer-legal{border-top:1px solid rgba(255,255,255,.18);text-align:center;padding-block:16px;margin-top:8px}
.footer-legal p{margin:0;color:#e9ffec;font-size:.95rem}

/* ===== Gutenberg helpers ===== */
.alignwide{width:min(100%, calc(var(--container-max) + 200px));margin-inline:auto}
.alignfull{width:100%;margin:0}

/* ===== Responsive ===== */
@media (max-width: 900px){
  body{font-size:16px}
  header .container{flex-wrap:wrap;gap:12px}
  .nav-menu{gap:16px}
  .footer-grid{grid-template-columns:1fr;gap:18px;text-align:center}
  .footer-grid .tagline{margin-inline:auto}
  .social{justify-content:center}
}