/* ==========================================================================
   Consult Hamill — shared stylesheet
   Warm professional palette: soft neutrals, muted blue & sage
   ========================================================================== */

:root {
  --bg:          #f7f4ef;   /* warm off-white */
  --surface:     #ffffff;
  --surface-alt: #f0ebe3;   /* soft sand */
  --ink:         #232a2f;   /* near-black text */
  --ink-soft:    #4d5860;   /* muted body text */
  --primary:     #2f5061;   /* deep muted blue */
  --primary-dk:  #22323d;   /* darker blue for headers */
  --accent:      #7c8f6f;   /* muted sage green */
  --accent-dk:   #5f7154;
  --gold:        #b08d4f;   /* warm sand accent line */
  --line:        #e2dbd0;
  --shadow:      0 10px 30px rgba(34, 50, 61, .08);
  --shadow-sm:   0 4px 14px rgba(34, 50, 61, .06);
  --radius:      14px;
  --maxw:        1140px;
  --serif:       "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--primary-dk); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; color: var(--ink-soft); }
a  { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-dk); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 .8em;
  display: inline-block;
}

.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-dk); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--light { background: #fff; color: var(--primary-dk); }
.btn--light:hover { background: var(--surface-alt); transform: translateY(-2px); color: var(--primary-dk); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 239, .9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-weight: 500; font-size: .95rem; color: var(--ink);
  position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary-dk); }
.nav-cta { margin-left: 8px; }
/* Ensure nav CTA button keeps white text (override .nav-links a colour) */
.nav-links .nav-cta a.btn--primary { color: #fff; }
.nav-links .nav-cta a.btn--primary:hover { color: #fff; }
.nav-links .nav-cta a::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(34,50,61,.92) 0%, rgba(47,80,97,.86) 55%, rgba(95,113,84,.82) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 80% 20%, rgba(176,141,79,.25), transparent 45%);
  pointer-events:none;
}
.hero-inner { position: relative; z-index: 2; padding: 120px 0 128px; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lead { color: rgba(255,255,255,.9); }
.hero .eyebrow { color: #d8c39a; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero-tagline {
  display:flex; gap: 30px; flex-wrap: wrap; margin-top: 54px;
  font-family: var(--serif); font-size: 1.05rem; color: rgba(255,255,255,.92);
}
.hero-tagline span { position: relative; padding-left: 22px; }
.hero-tagline span::before {
  content:""; position:absolute; left:0; top:.55em; width:10px; height:10px;
  border-radius:50%; background: var(--gold);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--surface-alt); color: var(--primary);
}
.card h3 { color: var(--primary-dk); margin-bottom: .35em; }
.card p { margin: 0; font-size: .96rem; }

/* Split feature block */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.panel {
  background: var(--primary-dk); color:#fff; border-radius: var(--radius);
  padding: 44px 40px; box-shadow: var(--shadow);
}
.panel h3 { color:#fff; }
.panel p { color: rgba(255,255,255,.85); }
.panel .tick { color:#fff; }
.bg-alt { background: var(--surface-alt); }

/* Ticked list */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 8px 0 8px 34px; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content:""; position:absolute; left:4px; top:14px; width:16px; height:9px;
  border-left:2px solid var(--accent); border-bottom:2px solid var(--accent);
  transform: rotate(-45deg);
}
.panel .ticks li { color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.12); }
.panel .ticks li::before { border-color:#d8c39a; }

/* Services detailed list */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.svc-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.svc-item h3 { font-size: 1.08rem; margin-bottom: .3em; color: var(--primary-dk); }
.svc-item p { margin: 0; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--primary-dk), var(--primary));
  color:#fff; border-radius: 20px; padding: 56px 48px; text-align:center;
  box-shadow: var(--shadow);
}
.cta h2 { color:#fff; }
.cta p { color: rgba(255,255,255,.88); max-width: 52ch; margin: 0 auto 26px; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47,80,97,.12);
}
.field textarea { resize: vertical; min-height: 130px; }

.contact-cols { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.info-row { display:flex; gap:14px; align-items:flex-start; padding: 16px 0; border-bottom:1px solid var(--line); }
.info-row:last-child { border-bottom:0; }
.info-row .ico { flex:0 0 auto; width:40px; height:40px; border-radius:10px; background:var(--surface-alt); color:var(--primary); display:grid; place-items:center; }
.info-row strong { display:block; color: var(--ink); }
.info-row span { color: var(--ink-soft); font-size:.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dk); color: rgba(255,255,255,.8); padding: 60px 0 28px; margin-top: 20px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color:#fff; font-family: var(--sans); font-size:.82rem; text-transform:uppercase; letter-spacing:.14em; margin-bottom:16px; }
.site-footer a { color: rgba(255,255,255,.78); display:block; padding: 5px 0; font-size:.95rem; }
.site-footer a:hover { color:#fff; }
.footer-tag { max-width: 34ch; font-size:.95rem; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.14); margin-top:44px; padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.85rem; color: rgba(255,255,255,.6); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .contact-cols { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .nav-links {
    position: absolute; top: 88px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 10px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display:block; padding: 12px 0; width:100%; border-bottom:1px solid var(--line); }
  .nav-links .nav-cta { padding-top: 14px; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .svc-list, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 84px 0 92px; }
  .cta { padding: 40px 24px; }
  .panel { padding: 32px 26px; }
}
