/* =========================================================
   Clutton Associates Ltd — main.css
   Distinct, corporate identity: navy ground, serif headings,
   a single restrained slate-blue accent.
   ========================================================= */

:root {
  --navy:        #142840;
  --navy-deep:   #0e1c2f;
  --ink:         #26313f;
  --muted:       #5f6b7a;
  --accent:      #355f86;
  --accent-dark: #284b6c;
  --accent-soft: #7da6c8;
  --line:        #e4e7ec;
  --bg:          #ffffff;
  --bg-soft:     #f5f6f8;
  --maxw:        1120px;
  --radius:      10px;
  --shadow:      0 1px 2px rgba(20,40,64,.05), 0 10px 28px rgba(20,40,64,.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography -------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -.012em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.05rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1.1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 .9rem;
}

/* ---- Header / navigation ---------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .8rem 1.5rem;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; flex: none; }
.brand-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--navy);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a { color: var(--ink); font-size: .96rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: .5rem 1.05rem;
  border-radius: 6px;
  font-size: .92rem;
}
.nav-cta:hover { background: var(--navy-deep); text-decoration: none; }

/* ---- Buttons ----------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: .8rem 1.55rem;
  border-radius: 7px;
  border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---- Sections ---------------------------------------------------- */
section { padding: 4.6rem 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #e8edf3; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: var(--accent-soft); }

.section-head { max-width: 680px; margin-bottom: 2.6rem; }
.section-head h2 { margin-bottom: .7rem; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }
.section-navy .section-head p { color: var(--accent-soft); }

/* ---- Hero -------------------------------------------------------- */
.hero {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #e8edf3;
  padding: 6rem 0 6.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 320px at 85% -12%, rgba(125,166,200,.20), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; max-width: 840px; }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero .eyebrow { color: var(--accent-soft); }
.hero-rule { width: 54px; height: 3px; background: var(--accent-soft); margin: 0 0 1.6rem; }
.hero-lede {
  font-size: 1.22rem;
  color: #c5d0db;
  margin-bottom: 2rem;
  max-width: 620px;
}
.hero .btn-row { margin-top: .4rem; }

/* ---- Card grids -------------------------------------------------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 0; }
.card-meta {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .7rem;
}
.card-link { display: inline-block; font-weight: 600; font-size: .96rem; }

/* "Where I can help" features */
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 3px 3px 8px 8px;
  padding: 1.4rem 1.3rem;
}
.feature h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---- Page header band ------------------------------------------- */
.page-head {
  background: linear-gradient(165deg, var(--navy), var(--navy-deep));
  color: #fff;
  padding: 4.2rem 0 3.6rem;
}
.page-head h1 { color: #fff; margin-bottom: .6rem; }
.page-head .lede { font-size: 1.16rem; color: #c5d0db; max-width: 660px; margin: 0; }

/* ---- Prose ------------------------------------------------------- */
.prose { padding: 3.6rem 0 4.6rem; }
.prose .container { max-width: 760px; }
.prose h2 { margin: 2.7rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.9rem 0 .55rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.7rem 0; }
.prose strong { color: var(--navy); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: .15rem 0 .15rem 1.3rem;
  margin: 1.7rem 0;
  color: var(--muted);
  font-style: italic;
  font-size: 1.08rem;
}
.lead { font-size: 1.2rem; color: var(--ink); }

/* ---- Engagement blocks (Services) ------------------------------- */
.engagement {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.9rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow);
}
.engagement h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.engagement p { color: var(--muted); }
.engagement p:last-of-type { margin-bottom: 0; }
.eng-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.eng-meta dt {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .7rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .15rem;
}
.eng-meta dd { margin: 0; font-weight: 500; color: var(--ink); font-size: .94rem; }

/* ---- CTA band ---------------------------------------------------- */
.cta .container { max-width: 640px; text-align: center; }
.cta h2 { margin-bottom: .7rem; }
.cta p { color: var(--accent-soft); margin-bottom: 1.7rem; }
.cta .btn-row { justify-content: center; }

/* ---- About: portrait -------------------------------------------- */
.about-intro {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-bottom: 2.2rem;
}
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(165deg, var(--navy), var(--navy-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  flex: none;
}
.headshot { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.about-intro p { margin: 0; color: var(--muted); }
.about-intro strong { display: block; color: var(--navy); font-size: 1.05rem; }

/* ---- Contact cards & writing list ------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin: 1.8rem 0;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.contact-card p { color: var(--muted); font-size: .93rem; margin-bottom: .6rem; }
.contact-card a { font-weight: 600; }

.writing-list { list-style: none; margin: 1.3rem 0 !important; }
.writing-list li {
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0 !important;
}
.writing-list li:first-child { padding-top: 0; }
.w-date {
  display: block;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .1rem;
}
.w-summary {
  color: var(--muted);
  font-size: .92rem;
  margin: .3rem 0 0 !important;
  max-width: 58ch;
}

/* ---- Footer ------------------------------------------------------ */
.site-footer {
  background: var(--navy-deep);
  color: #9fb0c2;
  padding: 3rem 0 2.2rem;
  font-size: .92rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.footer-grid p { margin: 0; }
.footer-brand-block { max-width: 280px; }
.footer-brand {
  font-family: "Source Serif 4", Georgia, serif;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: .25rem !important;
}
.footer-nav {
  display: flex;
  gap: 3.2rem;
  flex-wrap: wrap;
}
.footer-heading {
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 .85rem !important;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  list-style: none;
}
.site-footer a { color: #cdd8e4; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: #7e90a4;
}

/* ---- Responsive -------------------------------------------------- */
@media (max-width: 800px) {
  body { font-size: 17px; }
  section { padding: 3.4rem 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; gap: .65rem 1.2rem; }
  .nav-links { width: 100%; gap: .85rem 1.1rem; }
  .hero { padding: 4.2rem 0 4.6rem; }
  .hero-lede { font-size: 1.12rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .eng-meta { gap: 1.1rem; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
}
