/* ============================================================
   TRI-CORE CONSULTING — Global Stylesheet
   Colours sourced from Tri-Core brand identity
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  --green-deep:    #1E5C35;
  --green-mid:     #2D7A4A;
  --green-light:   #4A9962;
  --green-pale:    #EAF3EE;
  --coral:         #C46648;
  --coral-light:   #F3DDD6;
  --cream:         #F9F7F4;
  --white:         #FFFFFF;
  --ink:           #1A1A18;
  --ink-mid:       #3D3D3A;
  --ink-muted:     #6B6B67;
  --border:        #D8D5CF;
  --border-light:  #EBEBEA;

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;

  --nav-h:         72px;
  --max-w:         1180px;
  --gutter:        clamp(1.25rem, 5vw, 3rem);
  --section-py:    clamp(3.5rem, 8vw, 6rem);
  --radius:        6px;
  --radius-lg:     12px;

  --shadow-sm:     0 1px 4px rgba(26,26,24,.06);
  --shadow-md:     0 4px 20px rgba(26,26,24,.10);
  --shadow-lg:     0 12px 40px rgba(26,26,24,.14);

  --transition:    .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography scale ─────────────────────────────────────── */
.display-xl { font-family: var(--font-display); font-size: clamp(2.6rem,5.5vw,4.2rem); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
.display-lg { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem);       font-weight: 700; line-height: 1.18; }
.display-md { font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2.1rem);   font-weight: 600; line-height: 1.25; }
.display-sm { font-family: var(--font-display); font-size: clamp(1.2rem,2vw,1.5rem);   font-weight: 600; line-height: 1.3;  }
.body-lg    { font-size: 1.125rem; line-height: 1.75; }
.body-sm    { font-size: .9rem;    line-height: 1.65; }
.label      { font-size: .75rem;   font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow    { font-size: .78rem;   font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: .75rem; display: block; }

/* ── Layout helpers ───────────────────────────────────────── */
.container   { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.section     { padding-block: var(--section-py); }
.section-alt { padding-block: var(--section-py); background: var(--cream); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1  { gap: .5rem; }
.gap-2  { gap: 1rem; }
.gap-3  { gap: 1.5rem; }

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter);
}
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--ink-mid);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--green-deep); border-bottom-color: var(--coral); }
.nav-cta {
  background: var(--green-deep); color: var(--white) !important;
  padding: .5rem 1.25rem; border-radius: var(--radius);
  border-bottom: none !important;
  font-size: .85rem !important; font-weight: 600 !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--green-mid) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition); }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem var(--gutter); border-bottom: 1px solid var(--border-light); width: 100%; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { margin: .5rem var(--gutter); border-radius: var(--radius); text-align: center; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; line-height: 1;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary   { background: var(--green-deep); color: var(--white); }
.btn-primary:hover   { background: var(--green-mid); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--green-deep); border: 1.5px solid var(--green-deep); }
.btn-secondary:hover { background: var(--green-pale); }
.btn-coral     { background: var(--coral); color: var(--white); }
.btn-coral:hover     { background: #b05a3e; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-sm { padding: .5rem 1.2rem; font-size: .82rem; }
.btn-lg { padding: .9rem 2.2rem; font-size: 1rem; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-green {
  background: var(--green-deep); color: var(--white);
  border: none;
}
.card-green .card-meta { color: rgba(255,255,255,.65); }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--green-pale); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--green-deep); fill: none; stroke-width: 1.75; }
.card-icon.coral { background: var(--coral-light); }
.card-icon.coral svg { stroke: var(--coral); }
.card-meta { font-size: .8rem; color: var(--ink-muted); margin-bottom: .35rem; }
.card-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: .6rem; }
.card-body  { font-size: .92rem; color: var(--ink-mid); line-height: 1.7; }

/* ── Section headings ─────────────────────────────────────── */
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head-center { max-width: 600px; margin-inline: auto; margin-bottom: 3rem; text-align: center; }
.section-head h2, .section-head-center h2 { margin-top: .5rem; }
.section-head p, .section-head-center p { margin-top: .75rem; color: var(--ink-muted); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--green-deep);
  color: var(--white);
  padding-block: clamp(5rem,10vw,8rem);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 110% 60%, rgba(196,102,72,.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.hero-eyebrow { color: var(--coral); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; display: block; }
.hero h1 { font-family: var(--font-display); color: var(--white); margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.125rem; color: rgba(255,255,255,.78); max-width: 560px; margin-bottom: 2.25rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,.15); }
.hero-stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--white); }
.hero-stat-label { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: .15rem; }

/* ── Green accent bar ─────────────────────────────────────── */
.accent-bar { width: 40px; height: 3px; background: var(--coral); border-radius: 2px; margin-bottom: 1rem; }
.accent-bar-center { margin-inline: auto; }

/* ── Divider ──────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border-light); }
.divider-thick { border: none; border-top: 2px solid var(--border); }

/* ── Service list item (for services page) ────────────────── */
.service-item { padding: 2.25rem 0; border-bottom: 1px solid var(--border-light); }
.service-item:last-child { border-bottom: none; }
.service-item-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
.service-number { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--green-pale); line-height: 1; }
@media (max-width: 640px) { .service-item-inner { grid-template-columns: 1fr; gap: .75rem; } }

/* ── Product cards (Products page) ───────────────────────── */
.product-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card-img {
  height: 180px; background: var(--green-pale);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.product-card-img img { max-height: 110px; width: auto; object-fit: contain; }
.product-card-body { padding: 1.75rem; }
.product-card-tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--green-pale); color: var(--green-deep); padding: .25rem .65rem; border-radius: 30px; margin-bottom: .75rem; }
.product-card-tag.coral { background: var(--coral-light); color: var(--coral); }
.product-card-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: .6rem; }
.product-card-desc { font-size: .9rem; color: var(--ink-mid); margin-bottom: 1.25rem; }
.product-card-price { font-size: 1.5rem; font-weight: 700; color: var(--green-deep); margin-bottom: 1.25rem; }
.product-card-price small { font-size: .8rem; font-weight: 400; color: var(--ink-muted); }

/* ── Blog ─────────────────────────────────────────────────── */
.blog-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-light); transition: box-shadow var(--transition), transform var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card-img { height: 200px; background: var(--green-pale); overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-category { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); margin-bottom: .5rem; display: block; }
.blog-card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.35; margin-bottom: .6rem; }
.blog-card-excerpt { font-size: .88rem; color: var(--ink-muted); margin-bottom: 1rem; }
.blog-meta { display: flex; align-items: center; gap: 1rem; font-size: .78rem; color: var(--ink-muted); }
.blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }
.blog-read-more { font-size: .85rem; font-weight: 600; color: var(--green-deep); display: inline-flex; align-items: center; gap: .35rem; transition: gap var(--transition); }
.blog-read-more:hover { gap: .6rem; }

/* ── Testimonial ──────────────────────────────────────────── */
.testimonial {
  background: var(--green-deep); color: var(--white);
  border-radius: var(--radius-lg); padding: 2.5rem;
}
.testimonial-quote { font-family: var(--font-display); font-size: 1.2rem; font-style: italic; line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-author { font-size: .85rem; font-weight: 600; }
.testimonial-role   { font-size: .8rem;  color: rgba(255,255,255,.6); }

/* ── Contact form ─────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .4rem; color: var(--ink-mid); }
.form-control {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; color: var(--ink);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(45,122,74,.12); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── Paystack notice badge ────────────────────────────────── */
.paystack-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 30px; padding: .35rem .85rem;
  font-size: .78rem; color: var(--ink-muted);
}
.paystack-badge .lock { color: var(--green-deep); font-size: .85rem; }

/* ── FAQ accordion ────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-question {
  width: 100%; text-align: left; padding: 1.25rem 0;
  font-size: 1rem; font-weight: 500; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--green-deep); }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--transition); color: var(--green-mid); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding-bottom: 1.25rem; font-size: .93rem; color: var(--ink-mid); line-height: 1.75; }
.faq-item.open .faq-answer { display: block; }

/* ── Page hero (inner pages) ──────────────────────────────── */
.page-hero {
  background: var(--green-deep); color: var(--white);
  padding-block: clamp(3.5rem,7vw,5.5rem);
}
.page-hero h1 { font-family: var(--font-display); color: var(--white); margin-top: .5rem; }
.page-hero p  { color: rgba(255,255,255,.72); max-width: 540px; margin-top: .75rem; font-size: 1.05rem; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: .5rem; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: .4; }

/* ── Inline icon helper ───────────────────────────────────── */
.icon-sm { width: 18px; height: 18px; vertical-align: middle; }
.icon-md { width: 22px; height: 22px; }

/* ── Utility ──────────────────────────────────────────────── */
.text-green   { color: var(--green-deep); }
.text-coral   { color: var(--coral); }
.text-muted   { color: var(--ink-muted); }
.text-white   { color: var(--white); }
.text-center  { text-align: center; }
.mt-1 { margin-top: .5rem; }  .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }  .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.75);
  padding-block: clamp(3rem,6vw,4.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3rem;
}
.footer-brand img { height: 38px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 280px; }
.footer-col-title { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px)  { .footer-grid { grid-template-columns: 1fr; }    }

/* ── Scroll-reveal animation ──────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive helpers ───────────────────────────────────── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .hero-stats  { gap: 1.5rem; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .grid-4 { grid-template-columns: 1fr; }
}