/*
Theme Name: SLM CONSULT
Theme URI: https://example.com
Author: SLM Consult Inc.
Description: A custom theme for a Project, Program & Portfolio Management consultancy specializing in IT and Telecom.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: meridian-programs
*/

/* =========================================================
   TOKENS
   ========================================================= */
:root{
  --ink: #1E2A31;
  --navy-deep: #3C4C57;
  --blue-mid: #3E8DAD;
  --blue-bright: #5AAFCB;
  --blue-pale: #EAF3F6;
  --paper: #FAFBFC;
  --line: #D7E3E7;
  --line-strong: #A9C2CB;
  --white: #FFFFFF;
  --success: #1B7A5C;

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --maxw: 1180px;
  --gap: 24px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: var(--blue-mid); text-decoration:none; }
a:hover{ color: var(--blue-bright); }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }

h1,h2,h3,h4{
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--navy-deep);
}
h1{ font-size: clamp(2.1rem, 3.2vw + 1rem, 3.4rem); font-weight: 650; }
h2{ font-size: clamp(1.6rem, 1.6vw + 1rem, 2.3rem); }
h3{ font-size: 1.25rem; }
p{ margin: 0 0 1em; max-width: 62ch; }
.lede{ font-size: 1.15rem; color: #2B3A4E; max-width: 52ch; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section--pale{ background: var(--blue-pale); }
.section--deep{ background: var(--navy-deep); color: #DCE8F4; }
.section--deep h2, .section--deep h3{ color: #FFFFFF; }
.section--deep p{ color: #B9CBDD; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-mid);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  display:block;
}
.section--deep .eyebrow{ color: #6FA8D8; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid var(--navy-deep);
  background: var(--navy-deep);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover{ background: var(--blue-mid); border-color: var(--blue-mid); color:#fff; }
.btn--ghost{
  background: transparent;
  color: var(--navy-deep);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover{ background: var(--blue-pale); color: var(--navy-deep); border-color: var(--blue-mid); }
.section--deep .btn--ghost{ color: #fff; border-color: #3E6690; }
.section--deep .btn--ghost:hover{ background: rgba(255,255,255,0.06); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,251,252,0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content: space-between;
  height: 78px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 1.1rem;
  color: var(--navy-deep);
}
.brand-logo{
  height: 40px;
  width: auto;
  flex: none;
}
.footer-brand .brand-logo{ height: 34px; }

.main-nav ul{ display:flex; align-items:center; gap: 34px; }
.main-nav a{
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 500;
}
.main-nav a:hover{ color: var(--blue-mid); }
.header-cta{ display:flex; align-items:center; gap: 20px; }

/* Dropdown sub-menus (Services > sub-services, About > Our Clients) */
.main-nav li{ position: relative; }
.main-nav ul ul{
  display:none;
  position:absolute;
  top: 100%; left: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(10,26,47,0.08);
  padding: 6px 0;
  z-index: 20;
}
.main-nav li:hover > ul,
.main-nav li:focus-within > ul{ display:flex; }
.main-nav ul ul li{ width:100%; }
.main-nav ul ul a{
  display:block;
  padding: 10px 18px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.main-nav ul ul a:hover{ background: var(--blue-pale); }

.nav-toggle{
  display:none;
  background:none; border:none; padding: 6px;
}
.nav-toggle span{
  display:block; width: 24px; height: 2px; background: var(--navy-deep); margin: 5px 0;
}

@media (max-width: 860px){
  .main-nav{
    position: absolute;
    top: 78px; left:0; right:0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display:none;
  }
  .main-nav.is-open{ display:block; }
  .main-nav ul{ flex-direction:column; align-items:flex-start; gap:0; padding: 8px 28px 20px; }
  .main-nav li{ width:100%; border-bottom: 1px solid var(--line); }
  .main-nav a{ display:block; padding: 14px 0; }
  .main-nav ul ul{
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 6px 14px;
  }
  .main-nav ul ul li{ border-bottom: none; }
  .main-nav ul ul a{ padding: 8px 0; color: #4B5C70; }
  .nav-toggle{ display:block; }
  .header-cta .btn span.btn-label-full{ display:none; }
}

/* =========================================================
   HERO / TIMELINE SCHEMATIC
   ========================================================= */
.hero{
  position: relative;
  padding: 76px 0 60px;
  overflow: hidden;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    repeating-linear-gradient(90deg, rgba(62,141,173,0.08) 0, rgba(62,141,173,0.08) 1px, transparent 1px, transparent 64px);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1{ margin-bottom: 20px; }
.hero .lede{ margin-bottom: 30px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.hero-stats{
  display:flex;
  gap: 34px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stat b{
  display:block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--navy-deep);
}
.hero-stat span{
  font-size: 0.82rem;
  color: #4B5C70;
}

/* Program timeline schematic */
.timeline-card{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 26px 26px;
}
.timeline-card .eyebrow{ margin-bottom: 4px; }
.timeline-card h3{ margin-bottom: 22px; font-size: 1.02rem; color: var(--navy-deep); }
.timeline{
  position: relative;
  padding-left: 4px;
}
.timeline::before{
  content:"";
  position:absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line-strong);
}
.timeline-phase{
  position: relative;
  padding: 0 0 26px 34px;
}
.timeline-phase:last-child{ padding-bottom: 0; }
.timeline-phase::before{
  content: attr(data-n);
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--blue-mid);
  color: var(--navy-deep);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  display:flex; align-items:center; justify-content:center;
}
.timeline-phase.is-active::before{ background: var(--blue-mid); color: #fff; }
.timeline-phase h4{
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin: 0 0 3px;
  color: var(--navy-deep);
}
.timeline-phase p{ margin:0; font-size: 0.85rem; color: #4B5C70; }

/* =========================================================
   LOGO / TRUST STRIP
   ========================================================= */
.trust-strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.trust-strip .container{
  display:flex;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.trust-strip .eyebrow{ margin:0; }
.trust-list{ display:flex; gap: 34px; flex-wrap: wrap; }
.trust-list li{
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #4B5C70;
}

/* =========================================================
   GRID / CARDS (deliberately hairline, not shadow-cards)
   ========================================================= */
.grid{ display:grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--2{ grid-template-columns: repeat(2, 1fr); }
.grid-cell{ background: var(--paper); padding: 34px 30px; }
.section--pale .grid-cell{ background: var(--blue-pale); }
.grid-cell .num{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-mid);
  display:block;
  margin-bottom: 14px;
}
.grid-cell h3{ margin-bottom: 10px; }
.grid-cell p{ font-size: 0.94rem; color: #3B4C60; margin-bottom: 0; }

@media (max-width: 860px){
  .grid--3{ grid-template-columns: 1fr; }
  .grid--2{ grid-template-columns: 1fr; }
  .hero-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head{
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 44px;
}
.section-head h2{ margin:0; }
.section-head .lede{ margin: 10px 0 0; }
.section-head-actions{ flex: none; }

/* =========================================================
   PRICING TABLE
   ========================================================= */
.pricing-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: stretch;
}
.price-card{
  border: 1px solid var(--line);
  background: var(--white);
  padding: 32px 28px;
  display:flex;
  flex-direction: column;
}
.price-card--featured{
  border-color: var(--blue-mid);
  box-shadow: inset 0 0 0 1px var(--blue-mid);
}
.price-card .tier{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue-mid); margin-bottom: 10px; display:block;}
.price-card .amount{ font-size: 2.1rem; font-weight: 650; color: var(--navy-deep); margin-bottom: 4px; }
.price-card .amount small{ font-size: 0.9rem; font-weight: 400; color: #4B5C70; }
.price-card p.desc{ font-size: 0.9rem; color: #4B5C70; margin-bottom: 22px; }
.price-card ul{ margin: 0 0 26px; flex:1; }
.price-card li{
  font-size: 0.9rem;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: #2B3A4E;
}
.price-card li:first-child{ border-top: none; }
@media (max-width: 860px){ .pricing-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   QUOTE / CASE
   ========================================================= */
.quote-block{
  border-left: 2px solid var(--blue-mid);
  padding-left: 28px;
  max-width: 62ch;
}
.quote-block p{ font-size: 1.2rem; color: var(--navy-deep); font-weight: 500; }
.quote-block cite{
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #4B5C70;
}

/* =========================================================
   FORM (Contact)
   ========================================================= */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full{ grid-column: 1 / -1; }
.field label{
  display:block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select{
  width:100%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  padding: 12px 13px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline: 2px solid var(--blue-bright);
  outline-offset: 1px;
}
.field textarea{ resize: vertical; min-height: 120px; }
@media (max-width: 700px){ .form-grid{ grid-template-columns: 1fr; } }

.contact-meta{ display:flex; flex-direction:column; gap:22px; }
.contact-meta .item span{ display:block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--blue-mid); margin-bottom: 4px;}
.contact-meta .item p{ margin:0; font-size:0.98rem; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2{ margin:0; max-width: 30ch; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  background: var(--navy-deep);
  color: #B9CBDD;
  padding: 64px 0 28px;
}
.site-footer a{ color: #DCE8F4; }
.site-footer a:hover{ color: #fff; }
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 44px;
  border-bottom: 1px solid #1D3E60;
}
.footer-brand .brand{ color:#fff; }
.footer-brand p{ color:#93A9BE; font-size:0.9rem; margin-top: 14px; }
.footer-col h4{
  color:#fff;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.footer-col li{ margin-bottom: 10px; font-size: 0.92rem; }
.footer-bottom{
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #6F87A0;
}
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   PAGE HEADER (interior pages)
   ========================================================= */
.page-header{
  padding: 56px 0 46px;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(62,141,173,0.07) 0, rgba(62,141,173,0.07) 1px, transparent 1px, transparent 64px);
}
.page-header h1{ margin-bottom: 12px; }

/* =========================================================
   UTILITIES
   ========================================================= */
.mt-0{ margin-top:0; }
.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:start; }
@media (max-width: 860px){ .two-col{ grid-template-columns: 1fr; } }

.skip-link{
  position:absolute; left:-9999px; top:auto;
  background: var(--navy-deep); color:#fff; padding: 12px 18px; z-index: 200;
}
.skip-link:focus{ left: 16px; top: 16px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
