/* =========================
   Buckhorn — Global Styles
   ========================= */

/* Design tokens */
:root {
  --ink: #082567;
  --muted: #2b3f6d;

  --btn-bg: #0a3a66;
  --btn-hover: #004f7a;
  --btn-text: #ffd54d;

  --surface: #fff;
  --line: #e9edf5;
  --bg-soft: #f7f9fc;

  --pad-x: 28px;
  --container: 1200px;

  /* Header sizing */
  --logo-h: 220px;
  --nav-h: 42px;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Tahoma, Verdana, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}

/* Make anchor targets land below header */
section { scroll-margin-top: calc(var(--logo-h) + 24px); }

/* =========================
   Header (logo | text + tagline | buttons bottom-right)
   ========================= */
.site-header {
  display: grid;
  grid-template-columns: auto 1fr;     /* logo | text */
  align-items: center;
  column-gap: 24px;

  padding: 14px var(--pad-x) calc(var(--nav-h) + 6px);
  min-height: calc(var(--logo-h) + var(--nav-h) + 20px);

  background: var(--surface);
  border-bottom: 1.5px solid var(--line);
  position: relative;
}

.logo-link { grid-column: 1; align-self: center; justify-self: start; }
.logo {
  height: var(--logo-h);
  width: auto;
  display: block;
  object-fit: contain;
  max-width: 100%;
}

.header-text {
  grid-column: 2;
  justify-self: start;
  text-align: left;
  margin: 0;
  max-width: 52ch;
  white-space: normal;
  min-width: 0;
}
.header-text h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.12;
  white-space: nowrap;
}
.header-text p {
  margin: 0;
  font: 500 1.05rem/1.25 inherit;
  color: var(--muted);
}

/* Buttons — bottom-right */
.nav {
  position: absolute;
  bottom: 10px;
  right: var(--pad-x);
  height: var(--nav-h);

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.nav-btn {
  display: inline-block;
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 10px 16px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 10px;
  line-height: 1;
  letter-spacing: .2px;
  transition: background .2s, transform .05s, box-shadow .2s;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.nav-btn:hover { background: var(--btn-hover); box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.nav-btn:active { transform: translateY(1px); }

/* =========================
   Hero
   ========================= */
.hero {
  min-height: 70vh;
  background: url("infrastructure.png") center / cover no-repeat;
  position: relative;
}
.hero::before {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.5) 28%, rgba(255,255,255,0) 100%);
  pointer-events:none;
}

/* =========================
   Sections (shared)
   ========================= */
main { display: block; }
.section { padding: 56px var(--pad-x); }
.section .container { max-width: var(--container); margin: 0 auto; }

/* =========================
   Services — 3 equal-height cards with uniform images
   ========================= */
#services {
  background: var(--bg-soft);
  padding: 60px var(--pad-x);
}
#services .container { max-width: var(--container); margin: 0 auto; }

/* Title */
.svc-title {
  margin: 0 0 18px;
  font-size: clamp(24px, 2.2vw, 34px);
  color: var(--ink);
  text-align: center;
}

/* Grid */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

/* Card */
.svc-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.10); }

/* Uniform image size across all cards */
.svc-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* Card text */
.svc-card h3 {
  margin: 0 0 2px;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.svc-blurb {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.45;
}

/* =========================
   >>> DOT-JOT ALIGNMENT (only change) <<<
   Use a hanging indent + inline bullet.
   This keeps boxes/layout identical and aligns bullets across lines.
   ========================= */
.svc-points,
.about-points,
.cred-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.svc-points li,
.about-points li,
.cred-list li {
  margin: 6px 0;
  line-height: 1.45;        /* consistent line box */
  padding-left: 18px;       /* indent width = bullet + gap */
  text-indent: -18px;       /* hanging indent so wrapped lines align */
}

/* Inline, baseline-aligned dot + gap that matches the indent */
.svc-points li::before,
.about-points li::before,
.cred-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 11px;       /* 7px dot + 11px gap = 18px total */
  border-radius: 50%;
  background: var(--btn-bg);
  vertical-align: 0.15em;   /* tiny nudge to sit on first-line x-height */
}

/* =========================
   About — Director Profile
   ========================= */
.about.container { max-width: var(--container); }

/* Header band: headshot + bio */
.about-header{
  display: grid;
  grid-template-columns: 180px 1fr; /* photo | text */
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.about-headshot{
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
  background: #eee;
}

.about-meta h2{
  margin: 0 0 6px;
  font-size: clamp(24px, 2.2vw, 34px);
  color: var(--ink);
}
.about-name{
  margin: 0 0 6px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  color: var(--ink);
}
.about-tagline{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.45;
}

.about-facts{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.about-facts li{
  margin: 0;
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.35;
}
.about-facts li span{
  color: var(--muted);
  font-weight: 600;
}

/* Three mini-pillars */
.about-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 6px;
}
.about-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.about-card:hover{ transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.10); }
.about-card h4{ margin:0 0 6px; font-size:1.05rem; color:var(--ink); }
.about-card p{ margin:0 0 8px; color:var(--muted); }

/* Selected engagements (optional future section) */
.about-engagements{ margin-top: 22px; }
.about-engagements h4{ margin:0 0 8px; font-size:1.05rem; color:var(--ink); }
.about-engagements ul{ margin:0; padding-left:18px; color:var(--muted); }
.about-engagements li{ margin:6px 0; line-height:1.45; }

/* --------------------
   CONTACT SECTION STYLES
-------------------- */
.contact-container {
  display: flex;
  align-items: center;
  gap: 12px; /* space between icon and text */
}
.contact-icon { width: 40px; height: auto; }
.contact-text h2 { margin: 0; }
.contact-text p { margin: 4px 0 0 0; }

/* Responsive layout for smaller screens */
@media (max-width: 600px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
  }
  .contact-icon { margin-bottom: 10px; }
}

/* =========================
   Responsive (global)
   ========================= */
@media (max-width: 1000px) {
  :root { --logo-h: 190px; }
}
@media (max-width: 960px){
  .about-header{ grid-template-columns: 140px 1fr; }
  .about-headshot{ width: 140px; height: 140px; }
  .about-facts{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 14px 18px calc(var(--nav-h) + 6px);
    min-height: auto;
    text-align: center;
  }
  .logo { height: 150px; margin: 0 auto; }
  .header-text { justify-self: center; max-width: 58ch; }
  .header-text h1 { white-space: normal; }
  .nav { left: 18px; right: 18px; justify-content: center; }
  .svc-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px){
  .about-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  :root { --logo-h: 135px; }
  .nav-btn { padding: 9px 12px; font-size: .92rem; }
}
