/*
Theme Name: Cooper Potter & Partners
Theme URI: https://cpp.consulting
Author: CPP Internal
Description: Official theme for Cooper Potter & Partners — Sustainability Consultants
Version: 1.0.0
License: Private
Text Domain: cpp
*/

/* ============================================================
   FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --navy:        #0D2340;
  --navy-mid:    #1A3A5C;
  --navy-light:  #2A5278;
  --gold:        #B8944A;
  --gold-light:  #D4B47A;
  --gold-pale:   #F5ECD8;
  --sage:        #4A7C6B;
  --sage-light:  #7AAE9E;
  --sage-pale:   #D6EAE4;
  --linen:       #F8F6F1;
  --warm-gray:   #E8E4DC;
  --stone:       #8A8780;
  --dark:        #1A1916;
  --white:       #ffffff;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --container: 1200px;
  --section-pad: 5rem 2rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--linen);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.18;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin-bottom: 1rem; color: var(--stone); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: var(--section-pad); }
.section-light { background: var(--white); }
.section-linen { background: var(--linen); }
.section-navy  { background: var(--navy); }
.section-navy-mid { background: var(--navy-mid); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.688rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold    { background: var(--gold); color: var(--navy); }
.btn-navy    { background: var(--navy); color: var(--white); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.38);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo badge */
.site-logo { display: flex; align-items: center; gap: 14px; }
.logo-badge {
  background: var(--gold);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.logo-badge-cpp {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: 0.06em;
  line-height: 1;
}
.logo-badge-rule {
  width: 100%;
  height: 2px;
  background: rgba(13,35,64,0.3);
  margin-top: 3px;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.logo-strap {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-light);
  font-weight: 300;
  margin-top: 2px;
}

/* Nav links */
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a {
  font-size: 0.813rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-menu a:hover,
.nav-menu a.current-menu-item { color: var(--white); }
.nav-menu .btn-gold { color: var(--navy); font-size: 0.688rem; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-top: 0.5px solid rgba(255,255,255,0.1);
  }
  .nav-menu.open { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13,35,64,0.94) 0%, rgba(13,35,64,0.82) 55%, rgba(13,35,64,0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}
.hero-tag {
  font-size: 0.563rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-tag::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--gold);
}
.hero h1 {
  color: var(--white);
  max-width: 600px;
  margin-bottom: 1rem;
}
.hero h1 em {
  color: var(--gold-light);
  font-style: normal;
}
.hero-sub {
  font-size: 0.938rem;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 0.5px solid rgba(255,255,255,0.14);
  flex-wrap: wrap;
}
.hero-stat-n {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat-l {
  font-size: 0.625rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

/* Inner page hero (shorter) */
.hero-inner { min-height: 300px; }
.hero-inner .hero-content { padding: 3rem 2rem; }
.hero-inner h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }

/* ============================================================
   INTRO BAND
   ============================================================ */
.intro-band {
  background: var(--gold);
  padding: 1.25rem 2rem;
}
.intro-band-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.intro-band p {
  font-size: 0.875rem;
  color: var(--navy);
  font-weight: 500;
  margin: 0;
}
.intro-band-link {
  font-size: 0.688rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.7;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--linen);
  border: 0.5px solid var(--warm-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(13,35,64,0.12); }

.service-card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.service-card-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,35,64,0.45);
}
.service-card-icon {
  position: absolute;
  bottom: 12px;
  left: 14px;
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.1rem;
}
.service-card-body { padding: 1.25rem; }
.service-card-body h3 { font-size: 0.938rem; margin-bottom: 0.5rem; color: var(--navy); }
.service-card-body p  { font-size: 0.813rem; line-height: 1.6; margin-bottom: 0.75rem; }
.service-card-link {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.service-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.75rem; }
.service-tag {
  background: var(--sage-pale);
  color: var(--sage);
  font-size: 0.563rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 900px)  { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  background: var(--white);
  border: 0.5px solid var(--warm-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s;
}
.project-card:hover { transform: translateY(-4px); }
.project-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.project-tag-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.563rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.project-card-body { padding: 1.25rem; }
.project-card-body h3 { font-size: 0.938rem; margin-bottom: 0.5rem; color: var(--navy); }
.project-card-body p  { font-size: 0.813rem; line-height: 1.55; margin-bottom: 0; }
.project-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 0.5px solid var(--warm-gray);
  font-size: 0.688rem;
  color: var(--stone);
}
.project-card-readmore { font-weight: 600; color: var(--sage); }

/* ============================================================
   ABOUT STRIP (homepage)
   ============================================================ */
.about-strip {
  background: var(--navy-mid);
  padding: var(--section-pad);
}
.about-strip-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 800px) { .about-strip-inner { grid-template-columns: 1fr; } }
.about-strip-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 340px;
  background-size: cover;
  background-position: center;
}
.about-strip-text .eyebrow { color: var(--gold-light); }
.about-strip-text h2 { color: var(--white); margin-bottom: 1rem; }
.about-strip-text p  { color: rgba(255,255,255,0.62); margin-bottom: 1rem; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.about-stat {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.about-stat-n {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.about-stat-l { font-size: 0.625rem; color: rgba(255,255,255,0.4); margin-top: 4px; }

/* ============================================================
   NEWS / INSIGHTS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  background: var(--linen);
  border: 0.5px solid var(--warm-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s;
}
.news-card:hover { transform: translateY(-3px); }
.news-card-img   { height: 160px; background-size: cover; background-position: center; }
.news-card-body  { padding: 1.25rem; }
.news-category {
  display: inline-block;
  background: var(--sage-pale);
  color: var(--sage);
  font-size: 0.563rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}
.news-date  { font-size: 0.688rem; color: var(--stone); margin-bottom: 0.5rem; }
.news-card h3  { font-size: 0.938rem; margin-bottom: 0.5rem; color: var(--navy); line-height: 1.35; }
.news-card p   { font-size: 0.813rem; line-height: 1.55; }
.news-read-more { font-size: 0.625rem; font-weight: 600; color: var(--sage); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.75rem; display: block; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-band {
  background: var(--linen);
  padding: 2.5rem 2rem;
  border-top: 0.5px solid var(--warm-gray);
}
.newsletter-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.newsletter-text h3 { font-size: 1.25rem; color: var(--navy); font-family: var(--font-serif); margin-bottom: 0.25rem; }
.newsletter-text p  { font-size: 0.813rem; color: var(--stone); margin: 0; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input[type="email"] {
  border: 0.5px solid #C0BDB7;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 0.813rem;
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--dark);
  width: 260px;
  outline: none;
}
.newsletter-form input[type="email"]:focus { border-color: var(--navy); }

/* ============================================================
   ACCREDITATION BAR
   ============================================================ */
.accred-bar {
  background: var(--white);
  padding: 1.25rem 2rem;
  border-top: 0.5px solid var(--warm-gray);
}
.accred-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.accred-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone);
  flex-shrink: 0;
}
.accred-logos { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.accred-badge {
  border: 0.5px solid var(--warm-gray);
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--stone);
  letter-spacing: 0.06em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); padding: 3rem 2rem 1.5rem; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px)  { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .footer-top { grid-template-columns: 1fr; } }

.footer-brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.03em;
}
.footer-brand-strap {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-light);
  font-weight: 300;
  margin-top: 2px;
  margin-bottom: 0.75rem;
}
.footer-gold-rule { width: 28px; height: 2px; background: var(--gold); margin-bottom: 1rem; }
.footer-brand-desc { font-size: 0.75rem; color: rgba(255,255,255,0.4); line-height: 1.65; margin: 0; }
.footer-brand-url  { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 1rem; }

.footer-col-title {
  font-size: 0.563rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.813rem;
  color: rgba(255,255,255,0.52);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-col a.footer-highlight { color: var(--gold-light); }

.footer-bottom {
  border-top: 0.5px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy   { font-size: 0.688rem; color: rgba(255,255,255,0.28); }
.footer-social { display: flex; gap: 0.625rem; }
.social-link {
  border: 0.5px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 0.688rem;
  color: rgba(255,255,255,0.45);
  transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   SINGLE SERVICE / PAGE INTERIOR
   ============================================================ */
.page-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 2rem;
}
.page-content h2 { margin: 2rem 0 0.75rem; }
.page-content h3 { margin: 1.5rem 0 0.5rem; }
.page-content p  { margin-bottom: 1rem; }
.page-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content ul li { margin-bottom: 0.4rem; color: var(--stone); }

/* Two-column content layout */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 800px) { .content-grid { grid-template-columns: 1fr; } }

/* Sidebar card */
.sidebar-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--white);
}
.sidebar-card h4 {
  color: var(--gold-light);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.sidebar-detail {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.813rem;
}
.sidebar-detail-label { color: rgba(255,255,255,0.4); min-width: 80px; }
.sidebar-detail-value { color: var(--white); }

/* ============================================================
   ABOUT PAGE — TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--white);
  border: 0.5px solid var(--warm-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.team-card-header { height: 60px; position: relative; }
.team-avatar {
  position: absolute;
  bottom: -22px;
  left: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  border: 3px solid var(--white);
}
.team-card-body { padding: 2rem 1.25rem 1.25rem; }
.team-card-body h3 { font-size: 0.938rem; color: var(--navy); margin-bottom: 2px; }
.team-role {
  font-size: 0.563rem;
  color: var(--sage);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}
.team-card-body p { font-size: 0.75rem; color: var(--stone); line-height: 1.65; }
.team-quals { font-size: 0.688rem; color: var(--gold); margin-top: 0.5rem; font-weight: 500; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  display: block;
  margin-bottom: 5px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0.5px solid #C0BDB7;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.875rem;
  font-size: 0.813rem;
  font-family: var(--font-sans);
  background: var(--linen);
  color: var(--dark);
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--navy); background: var(--white); }
.contact-form textarea { height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.contact-info-title {
  font-size: 0.563rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
}
.contact-detail {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.contact-detail-icon {
  color: var(--gold-light);
  font-size: 1rem;
  margin-top: 1px;
  flex-shrink: 0;
}
.contact-detail-label { font-size: 0.625rem; color: rgba(255,255,255,0.38); margin-bottom: 2px; }
.contact-detail-value { font-size: 0.813rem; color: var(--white); line-height: 1.6; }

.contact-hours-card {
  background: var(--sage-pale);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.contact-hours-card h4 { font-size: 0.75rem; color: var(--sage); margin-bottom: 0.5rem; }
.contact-hours-card p  { font-size: 0.813rem; color: var(--stone); margin: 0; line-height: 1.7; }

.contact-linkedin-card {
  background: var(--gold-pale);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.contact-linkedin-card h4 { font-size: 0.75rem; color: var(--gold); margin-bottom: 0.5rem; }
.contact-linkedin-card p  { font-size: 0.813rem; color: var(--stone); margin-bottom: 0.875rem; }
.contact-linkedin-link { font-size: 0.688rem; font-weight: 600; color: var(--navy); letter-spacing: 0.06em; }

/* ============================================================
   SINGLE POST (article)
   ============================================================ */
.single-post { background: var(--white); }
.post-header {
  background: var(--navy);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}
.post-header-inner { max-width: var(--container); margin: 0 auto; position: relative; z-index: 2; }
.post-header h1 { color: var(--white); max-width: 700px; }
.post-meta { display: flex; gap: 1.5rem; margin-top: 1rem; flex-wrap: wrap; }
.post-meta-item { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.post-meta-item strong { color: rgba(255,255,255,0.75); }

.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.post-body h2 { font-size: 1.4rem; margin: 2.5rem 0 0.75rem; }
.post-body h3 { font-size: 1.1rem; margin: 2rem 0 0.5rem; }
.post-body p  { font-size: 1rem; color: #444; margin-bottom: 1.25rem; line-height: 1.75; }
.post-body ul { list-style: disc; padding-left: 1.75rem; margin-bottom: 1.25rem; }
.post-body ul li { margin-bottom: 0.5rem; color: #444; font-size: 1rem; }
.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--gold-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-body blockquote p { color: var(--navy); font-style: italic; margin: 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center  { text-align: center; }
.text-white   { color: var(--white); }
.text-gold    { color: var(--gold); }
.text-sage    { color: var(--sage); }
.text-navy    { color: var(--navy); }
.text-stone   { color: var(--stone); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.gold-rule { width: 32px; height: 2px; background: var(--gold); margin: 0.875rem 0; }

/* ============================================================
   WORDPRESS NATIVE CLASSES
   ============================================================ */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.75rem; color: var(--stone); margin-top: 0.4rem; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}


/* ============================================================
   RESPONSIVE — MOBILE & TABLET
   Added to fix iPhone display issues across all templates
   ============================================================ */

/* ── Global overflow prevention ── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
*, *::before, *::after {
  max-width: 100%;
  box-sizing: border-box;
}
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* ── Tablet (max 900px) ── */
@media (max-width: 900px) {

  /* Homepage services: 5-col → 2-col */
  .services-grid-home {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Why CPP 3-col band */
  .why-cpp-grid {
    grid-template-columns: 1fr !important;
    text-align: left !important;
  }

  /* About story: 3fr 2fr → stack */
  .about-story-grid {
    grid-template-columns: 1fr !important;
  }

  /* About image+text pairs */
  .about-img-grid {
    grid-template-columns: 1fr !important;
  }

  /* About credentials: 4-col → 2-col */
  .about-creds-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Service content + sidebar */
  .service-content-grid {
    grid-template-columns: 1fr !important;
  }

  /* Service page sidebar: unstick */
  .service-content-grid > div[style*="position:sticky"] {
    position: static !important;
  }

  /* Project content + sidebar */
  .project-content-grid {
    grid-template-columns: 1fr !important;
  }
  .project-content-grid > div[style*="position:sticky"] {
    position: static !important;
  }

  /* Subscribe band in archive */
  .container[style*="display:flex"] {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* Archive subscribe form */
  .container[style*="display:flex"] form[style*="display:flex"] {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  .container[style*="display:flex"] form input[type="email"] {
    width: 100% !important;
  }

}

/* ── Mobile (max 768px) ── */
@media (max-width: 768px) {

  /* Section padding */
  :root {
    --section-pad: 3rem 1.25rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Services page alternating rows */
  .service-row {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-bottom: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .service-row > div[style*="height:320px"] {
    height: 200px !important;
    order: -1 !important;
    width: 100% !important;
  }

  /* Service lead image */
  .service-lead-img,
  .project-lead-img {
    height: 200px !important;
  }

  /* Service CTA block */
  .service-cta-block {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .service-cta-block > div:last-child {
    width: 100% !important;
  }

  /* Homepage services: 2-col on tablet, 1-col on mobile */
  .services-grid-home {
    grid-template-columns: 1fr !important;
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  /* FAQ grid */
  .faq-grid {
    grid-template-columns: 1fr !important;
  }

  /* About CTA flex */
  .about-cta-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .about-cta-flex > div:last-child {
    flex-direction: column !important;
    width: 100% !important;
  }

  /* About credentials: 2-col → 1-col */
  .about-creds-grid {
    grid-template-columns: 1fr !important;
  }

  /* About stats small */
  .about-stats-sm {
    grid-template-columns: 1fr 1fr !important;
  }

  /* About story images: shorter */
  .about-img-grid > div[style*="height:280px"] {
    height: 180px !important;
  }

  /* Newsletter */
  .newsletter-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .newsletter-form {
    flex-direction: column !important;
    width: 100% !important;
  }
  .newsletter-form input[type="email"] {
    width: 100% !important;
  }
  .newsletter-form .btn {
    width: 100% !important;
  }

  /* Intro band */
  .intro-band-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  /* Hero stats: 2 per row */
  .hero-stats {
    gap: 1rem !important;
  }
  .hero-stats > div {
    flex: 0 0 calc(50% - 0.5rem) !important;
  }

  /* Hero inner */
  .hero-inner {
    min-height: 240px !important;
  }

  /* About mission max-width */
  [style*="max-width:760px"] {
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Post body */
  .post-body {
    padding: 2rem 1.25rem !important;
  }

  /* Page content */
  .page-content {
    padding: 2rem 1.25rem !important;
  }

  /* Buttons: full width in stacked CTAs */
  .about-cta-flex .btn,
  .service-cta-block .btn {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
  }

  /* Hero buttons */
  .hero-btns {
    flex-direction: column !important;
  }
  .hero-btns .btn {
    width: 100% !important;
    text-align: center !important;
  }

  /* Accred bar: wrap */
  .accred-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  /* Sidebar images */
  .project-content-grid > div[style*="position:sticky"],
  .service-content-grid > div[style*="position:sticky"] {
    position: static !important;
  }

  /* Word break for long text */
  p, h1, h2, h3, h4, li, a {
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* ── Small phones (max 480px) ── */
@media (max-width: 480px) {

  /* Logo: shrink name text */
  .logo-name {
    font-size: 0.75rem !important;
  }

  /* Hero h1 */
  .hero h1 {
    font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
  }

  /* Footer top: already 1-col at 600px from existing rules */

  /* About stats: stack */
  .about-stats {
    grid-template-columns: 1fr !important;
  }

  /* Team grid: already 1-col at 600px */

  /* Project/news card images: shorter */
  .project-card-img {
    height: 160px !important;
  }
  .news-card-img {
    height: 130px !important;
  }

  /* Service card image */
  .service-card-img {
    height: 130px !important;
  }
}
