/* ============================================
   Hill Country Digital — Shared Design System
   ============================================ */

:root {
  --paper: #F6F5F1;
  --paper-deep: #ECE8DE;
  --ink: #12181D;
  --ink-soft: #48525B;
  --ink-faint: #7B838A;
  --signal: #1B4F63;
  --signal-bright: #2F8FA6;
  --signal-pale: #E7EFF1;
  --limestone: #B99A63;
  --accent: #FF5C39;
  --accent-hover: #FF7A57;
  --line: #DCD5C7;
  --night: #10151A;
  --night-line: #263039;
  --night-ink-soft: #9BA6AD;
  --radius: 3px;
  --max: 1180px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, .display {
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

p { line-height: 1.6; color: var(--ink-soft); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 241, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--signal);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { width: 100%; background: var(--limestone); }
.nav-contact {
  border: 1px solid var(--ink);
  padding: 9px 20px !important;
  border-radius: var(--radius);
}
.nav-contact::after { display: none; }
.nav-contact:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

.nav-toggle { display: none; }

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 300px; }
  .nav-links a { width: 100%; padding: 16px 32px; }
  .nav-links a::after { display: none; }
  .nav-links a.nav-contact { margin: 8px 32px 16px; width: calc(100% - 64px); text-align: center; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s ease; flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-on-dark { background: var(--accent); color: #fff; }
.btn-on-dark:hover { background: var(--accent-hover); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: var(--night-ink-soft);
  padding: 64px 0 32px;
}
.site-footer .brand { color: var(--paper); }
.site-footer .brand-logo {
  height: 44px;
  max-height: 44px;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 6px 10px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--night-line);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  row-gap: 12px;
  column-gap: 32px;
  font-size: 14px;
}
.footer-links a { transition: color .2s ease; }
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.footer-credits { font-size: 11.5px; color: #5C6870; max-width: 520px; line-height: 1.5; }
.footer-credits a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Placeholder page shared ---------- */
.placeholder-hero {
  background: var(--night);
  color: var(--paper);
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}
.placeholder-hero .wrap { position: relative; z-index: 2; max-width: 760px; }
.placeholder-hero h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 20px; color: var(--paper); }
.placeholder-hero p { color: var(--night-ink-soft); font-size: 18px; max-width: 540px; }
.placeholder-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255,92,57,0.12);
  border: 1px solid rgba(255,92,57,0.35);
  padding: 6px 14px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.placeholder-body {
  padding: 80px 0;
  max-width: 680px;
  margin: 0 auto;
}
.placeholder-body p { font-size: 17px; margin-bottom: 20px; }
