/*
 * Northern Planning Child — minimal layout + coloured services/CTA
 * Customizer controls colours site-wide EXCEPT the two sections below:
 *  - Services grid cards
 *  - Contact CTA panel
 */

/* ---------- Utilities / base (no colours) ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* First block margin escaping above header */
.site .entry-content > *:first-child { margin-top: 0 !important; }

/* Ensure header has no unintended top margin */
.site-header, .main-header-bar { margin-top: 0 !important; }

/* If you used a page-wide background overlay, keep it behind */
body::before { z-index: 0 !important; }
.site-header, .ast-container { position: relative; z-index: 1; }


html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body { margin: 0; }  /* colours/typography via Customizer */

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
img { max-width: 100%; height: auto; display: block; }

/* Buttons — size only (colour via Customizer) */
.npc-btn { display:inline-block; padding:.75rem 1.1rem; border-radius:.6rem; line-height:1; font-weight:600; }

/* ---------- Hero / Banner / Projects — layout only ---------- */
.npc-hero { padding:3rem 1rem 1.5rem; text-align:center; }
.npc-hero h1 { margin:0 0 .5rem; font-size:clamp(2rem,4.5vw,3rem); }
.npc-hero .lead { max-width:62ch; margin:0 auto 1rem; }

.npc-service-areas { padding:1rem 1.25rem; border-radius:14px; margin:1rem auto 2rem; text-align:center; font-weight:500; }

/* ---------- Service area banner — colour + centered text ---------- */
.npc-service-areas {
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
  text-align: center;
  background: #c8d8e48c;
  color: #143c46;           /* dark teal text for contrast */
  font-weight: 500;
  padding: 1.5rem 1.25rem;
  border-radius: 14px;
  margin: 1.5rem auto 2rem;
}

.npc-projects { display:flex; flex-wrap:wrap; gap:1rem; margin:2rem 0; }
.npc-project { flex:1 1 250px; max-width:31%; border-radius:12px; overflow:hidden; }
.npc-project img { width:100%; height:auto; }
.npc-project .inner { padding:.8rem 1rem; }
.npc-meta { font-size:.875rem; }

body.page-id-45 {
  background-image: url('https://www.northarrowplanning.co.uk/wp-content/uploads/2025/10/arch-1.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Home page faded background image */
.home {
  position: relative;
  background-color: #FBF7F2; /* your soft cream brand background */
  background-image: url('https://www.northarrowplanning.co.uk/wp-content/uploads/2025/10/arch-1.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

/* Overlay tint to fade the image */
.home::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 249, 242, 0.8); /* same as bg color + opacity */
  z-index: 0;
}

/* Ensure your content sits above the overlay */
.home > * {
  position: relative;
  z-index: 1;
}

/* ---------- Services grid — layout + COLOUR restored ---------- */
.npc-services-grid .npc-grid {
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  margin-bottom:2rem;
}

/* Card visual style (colours/shadows from the look you liked) */
.npc-card{
  flex:1 1 220px;          /* min card width */
  max-width:31%;           /* ~3-up on large screens */
  background:#ffffff;      /* white card */
  border:1px solid #e4eaef;/* soft blue-grey border */
  border-radius:12px;
  padding:1rem;
  box-shadow:0 1px 3px rgba(16,57,68,.06);
  transition:transform .2s ease, box-shadow .2s ease;
}
.npc-card:hover{
  transform:translateY(-3px);
  box-shadow:0 6px 16px rgba(16,57,68,.12);
}
.npc-card h3{ margin:0 0 .4rem; }

/* ---------- Contact CTA — layout + COLOUR restored ---------- */
.npc-cta{
  /* gentle blue-grey wash you had before */
  background:linear-gradient(180deg, rgba(200,216,228,.55), rgba(200,216,228,.35));
  border:1px solid rgba(16,57,68,.06);
  border-radius:16px;
  padding:2rem 1.25rem;
  text-align:center;
  max-width:900px;
  margin:2rem auto;
}
.npc-cta h2{ margin:0 0 .5rem; }
.npc-cta p{ margin:0 0 .75rem; }

/* If you want the phone/email links tinted slightly like before, keep these.
   Comment them out if you'd rather let the Customizer colour links. */
.npc-cta a[href^="tel:"],
.npc-cta a[href^="mailto:"]{
  color:#2B6777;              /* subtle teal for contact lines */
  text-decoration:underline;
}

/* Hide the Above Header row on desktop */
.ast-above-header {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Hide it on mobile breakpoint too */
.ast-header-break-point .ast-above-header {
  display: none !important;
}


/* ---------- Small screens ---------- */
@media (max-width: 960px){
  .npc-card, .npc-project{ max-width:48%; } /* 2-up */
}
@media (max-width: 540px){
  .npc-card, .npc-project{ max-width:100%; } /* single column */
  .npc-hero{ padding:2.25rem 1rem 1rem; }
  .npc-cta{ padding:1.5rem 1rem; }
}