/* ============================================================
   GUILD Consulting Bangladesh — guildconsultingbd.com
   Brand system mirrors guild.consulting:
     red #d2414b (UI accent; logo mark red is #cf3135)
     ink #25212a, body text #4e4756, grey #7c7c7c
     headings PT Serif, body Alegreya Sans, lockup/nav Poppins
   ============================================================ */

:root {
  --red: #d2414b;
  --red-bright: #f24b56;
  --mark-red: #cf3135;
  --ink: #25212a;
  --text: #4e4756;
  --grey: #7c7c7c;
  --line: #dcdadd;
  --tint: #f5f4f6;
  --tint-2: #edecee;
  --paper: #ffffff;
  --serif: 'PT Serif', Georgia, serif;
  --sans: 'Alegreya Sans', 'Helvetica Neue', Arial, sans-serif;
  --geo: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; }

p + p { margin-top: 1em; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-bright); text-decoration: underline; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.wrap { max-width: 1100px; margin-inline: auto; padding-inline: 24px; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px; padding-block: 10px;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand:hover { text-decoration: none; }

.brand-lockup { height: 58px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav > a {
  font-family: var(--geo); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink);
}

.site-nav > a:hover { color: var(--red); text-decoration: none; }

.site-nav > a[aria-current="page"]:not(.btn) {
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
}

.site-nav > a.btn, .site-nav > a.btn:hover { color: #fff; }

.menu-btn {
  display: none;
  font-family: var(--geo); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  background: none; border: 1px solid var(--line); color: var(--ink);
  padding: 9px 14px; cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--geo); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--red); color: #fff;
  padding: 14px 26px; border: 2px solid var(--red);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover { background: var(--red-bright); border-color: var(--red-bright); color: #fff; text-decoration: none; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn-small { padding: 10px 18px; font-size: 0.72rem; }

.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--tint-2); border-color: var(--tint-2); color: var(--ink); }

/* ---------- sections ---------- */

section { padding-block: 76px; }

.section-tint { background: var(--tint); }
.section-ink { background: var(--ink); }
.section-ink h2 { color: #fff; }
.section-ink p { color: #cfccd4; }

.kicker {
  font-family: var(--geo); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 12px; }

.center { text-align: center; }
.center .section-head, .center h1, .center .lede { margin-inline: auto; }

.lede { font-size: 1.25rem; line-height: 1.6; color: var(--grey); }

/* ---------- hero ---------- */

.hero { padding-block: 92px 80px; }

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  max-width: 18ch;
  margin-bottom: 22px;
}

.hero h1 em { font-style: italic; color: var(--red); }

.hero .lede { max-width: 56ch; margin-bottom: 34px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- grids and cards ---------- */

.grid { display: grid; gap: 26px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 30px 26px;
}

.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { font-size: 0.98rem; }

.card .more {
  display: inline-block; margin-top: 14px;
  font-family: var(--geo); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.13em; text-transform: uppercase;
}

/* ---------- service detail blocks ---------- */

.svc { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; padding-block: 44px; border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc h2 { font-size: 1.55rem; }
.svc ul { margin-top: 14px; padding-left: 20px; }
.svc li { margin-bottom: 6px; }

/* ---------- people ---------- */

.person {
  background: var(--paper); border: 1px solid var(--line);
  padding: 34px 28px 30px; text-align: center;
}

.person .photo {
  width: 180px; height: 180px; border-radius: 50%;
  margin: 0 auto 20px;
  background: var(--tint-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 2.6rem; color: var(--grey);
  overflow: hidden;
}

.person .photo img { width: 100%; height: 100%; object-fit: cover; }

.cols-4 .person { padding: 26px 20px 24px; }
.cols-4 .person .photo { width: 140px; height: 140px; font-size: 2.1rem; }
.cols-4 .person h3 { font-size: 1.12rem; }
.cols-4 .person .meta p:not(.role) { font-size: 0.9rem; }

.person h3 { font-size: 1.3rem; margin-bottom: 2px; }

.person .role {
  font-family: var(--geo); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}

.person .meta p:not(.role) { font-size: 0.96rem; text-align: left; }

/* ---------- affiliation strip ---------- */

.affiliation {
  border-left: 4px solid var(--red);
  background: var(--paper);
  padding: 28px 32px;
  max-width: 860px;
}

.affiliation p { font-family: var(--serif); font-size: 1.18rem; color: var(--ink); line-height: 1.55; }

/* ---------- contact ---------- */

.contact-line { font-size: 1.15rem; }
.contact-line strong { color: var(--ink); }

/* ---------- footer ---------- */

.site-foot { background: var(--ink); border-top: 4px solid var(--red); color: #c9c5cd; }

.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px;
  padding-block: 56px 40px;
}

.site-foot h4 {
  color: #fff; font-family: var(--geo); font-weight: 600;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 14px;
}

.site-foot a { color: #e8e6ec; }
.site-foot a:hover { color: #fff; }

.site-foot .foot-links { display: flex; flex-direction: column; gap: 8px; }

.site-foot .foot-links a {
  font-family: var(--geo); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}

.site-foot .foot-links a:hover { color: var(--red-bright); }

.foot-brand { display: flex; align-items: center; margin-bottom: 16px; }
.foot-brand .brand-lockup { height: 64px; }

.site-foot p { font-size: 0.95rem; }

.foot-legal {
  border-top: 1px solid #3a3542;
  padding-block: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 0.85rem; color: #a59fad;
}

.foot-legal p { font-size: 0.85rem; }

/* ---------- placeholder highlight (remove before launch) ---------- */

.ph {
  background: #fff3cd;
  outline: 1px dashed #d4b106;
  padding: 0 3px;
}

.site-foot .ph, .section-ink .ph { background: #5c5230; outline-color: #8a7a1f; color: #ffe9a8; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .cols-4, .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 1fr; gap: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }

  .menu-btn { display: block; }

  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
  }

  .site-nav.open { display: flex; }

  .site-nav > a { padding: 12px 0; }
  .site-nav .btn { margin-top: 10px; }
}

@media (max-width: 560px) {
  .cols-4, .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  section { padding-block: 56px; }
  .hero { padding-block: 64px 56px; }
  .brand-lockup { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
