/* Ethos Communications Group — shared styles */
:root {
  --teal: #1E4A4C;
  --teal-deep: #143536;
  --teal-line: #3E6E6F;
  --teal-tint: #E4ECE8;
  --cream: #F4EEE2;
  --paper: #FBF8F2;
  --ink: #1E2B2B;
  --muted: #56625F;
  --clay: #B5552F;
  --clay-dark: #974424;
  --line: #DCD3C2;
  --on-teal: #F6F1E7;
  --on-teal-muted: #CFDAD5;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--clay-dark); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; color: inherit; }
h2 { font-size: clamp(2rem, 4vw, 2.85rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--clay); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  padding: .85rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-dark); color: #fff; }
.btn-ghost { border-color: var(--on-teal); color: var(--on-teal); }
.btn-ghost:hover { background: var(--on-teal); color: var(--teal-deep); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--teal); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; }
.brand-name span { font-size: .8rem; letter-spacing: .04em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--clay-dark); }
.nav .btn { color: #fff; padding: .6rem 1.1rem; font-size: .98rem; }
.nav-toggle { display: none; background: none; user-select: none; border: 1px solid var(--line); border-radius: 6px; padding: .5rem .8rem; font: 600 1rem var(--sans); color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; text-align: center; border-bottom: 0; padding: .85rem 1rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--teal); color: var(--on-teal); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(4rem, 10vw, 7.5rem); padding-bottom: clamp(4rem, 10vw, 7.5rem); }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.2rem); letter-spacing: -0.02em; max-width: 11ch; }
.hero-lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--on-teal-muted); max-width: 36rem; margin: 1.5rem 0 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-note { margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--teal-line); max-width: 36rem; font-size: 1rem; color: var(--on-teal-muted); }

.rings { position: absolute; right: -14rem; top: 50%; width: 52rem; height: 52rem; transform: translateY(-50%); pointer-events: none; }
.rings circle { fill: none; stroke-width: 2; }
.rings .r0 { stroke: var(--clay); stroke-width: 3; }
.rings .r1 { stroke: #4A7B7B; }
.rings .r2 { stroke: #3F6F70; }
.rings .r3 { stroke: #366566; }
.rings .r4 { stroke: #2E5A5B; }
@media (prefers-reduced-motion: no-preference) {
  .rings circle { opacity: 0; animation: ring-in .9s ease-out forwards; }
  .rings .r1 { animation-delay: .15s; } .rings .r2 { animation-delay: .3s; }
  .rings .r3 { animation-delay: .45s; } .rings .r4 { animation-delay: .6s; }
}
@keyframes ring-in { from { opacity: 0; transform: scale(.94); transform-origin: center; } to { opacity: 1; transform: scale(1); } }
@media (max-width: 860px) { .rings { right: -26rem; opacity: .55; } }

.page-hero .wrap { padding-top: clamp(3.5rem, 8vw, 5.5rem); padding-bottom: clamp(3.5rem, 8vw, 5.5rem); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); max-width: 16ch; }

/* Who we serve strip */
.serve { background: var(--teal-deep); color: var(--on-teal-muted); }
.serve .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.75rem; padding-top: 1.4rem; padding-bottom: 1.4rem; font-size: 1rem; }
.serve strong { color: var(--on-teal); font-weight: 600; }

/* Sections */
.section { padding: var(--section) 0; }
.section-cream { background: var(--cream); }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head p { color: var(--muted); font-size: 1.2rem; margin-top: 1rem; }

/* Problem */
.problem { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.problem-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.problem-list li { padding: 1.25rem 0 1.25rem 2.25rem; border-bottom: 1px solid var(--line); position: relative; }
.problem-list li::before { content: ""; position: absolute; left: 0; top: 1.65rem; width: 1rem; height: 1rem; border: 2px solid var(--clay); border-radius: 50%; }
.problem-close { margin-top: 1.5rem; color: var(--muted); }
@media (max-width: 860px) { .problem { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 6vw, 5rem); }
.services-intro { position: sticky; top: 104px; align-self: start; }
.services-intro p { color: var(--muted); font-size: 1.2rem; margin-top: 1rem; }
.service { padding: 2rem 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { margin-bottom: .6rem; }
.service p { color: var(--muted); margin: 0; }
.service-feature { background: var(--teal); color: var(--on-teal); border-radius: 10px; padding: 2rem; margin: 1.5rem 0; border: 0; }
.service-feature p { color: var(--on-teal-muted); }
.service-feature .flag { display: inline-block; font-size: .9rem; font-weight: 600; color: var(--teal-deep); background: var(--on-teal); border-radius: 999px; padding: .2rem .75rem; margin-bottom: 1rem; }
.service-feature + .service { border-top: 0; }
.service-extra { font-size: 1rem; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } .services-intro { position: static; } }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.portrait { position: relative; aspect-ratio: 4 / 5; background: var(--teal); border-radius: 10px; overflow: hidden; display: grid; place-items: center; color: var(--on-teal); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .initials { font-family: var(--serif); font-size: 5rem; }
.portrait-caption { margin-top: .9rem; font-size: 1rem; color: var(--muted); }
.portrait-caption strong { color: var(--ink); display: block; font-size: 1.1rem; }
.about-quote { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.35rem); line-height: 1.25; margin-bottom: 1.75rem; }
.about-body p { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.values h3 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; margin-bottom: .4rem; color: var(--teal); }
.values p { font-size: 1rem; margin: 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 22rem; } .values { grid-template-columns: 1fr; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.quote { margin: 0; background: var(--paper); border-radius: 10px; padding: 2rem; border-left: 4px solid var(--clay); }
.quote blockquote { margin: 0 0 1.25rem; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; }
.quote figcaption { font-size: .98rem; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--teal); padding-top: 1.25rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2.25rem; color: var(--clay); line-height: 1; margin-bottom: .75rem; }
.steps h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: 1.02rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Blog cards */
.post-card { display: grid; grid-template-columns: 1fr 2fr; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); }
.post-card:hover { border-color: var(--teal); color: var(--ink); }
.post-card:hover h3 { color: var(--clay-dark); }
.post-art { background: var(--teal); position: relative; min-height: 220px; overflow: hidden; }
.post-art svg { position: absolute; width: 140%; height: 140%; left: -20%; top: -20%; }
.post-body { padding: clamp(1.5rem, 4vw, 2.5rem); }
.post-meta { font-size: .95rem; color: var(--muted); margin-bottom: .6rem; }
.post-body h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .75rem; }
.post-body p { color: var(--muted); }
.read-more { font-weight: 600; color: var(--teal); }
@media (max-width: 760px) { .post-card { grid-template-columns: 1fr; } .post-art { min-height: 140px; } }
.blog-empty { margin-top: 2.5rem; color: var(--muted); }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.35rem 2.5rem 1.35rem 0; font-family: var(--serif); font-size: 1.3rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1.1rem; font-family: var(--sans); font-size: 1.7rem; color: var(--clay); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding-right: 2.5rem; }

/* Contact */
.contact { background: var(--teal); color: var(--on-teal); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-copy p { color: var(--on-teal-muted); font-size: 1.15rem; margin-top: 1rem; }
.contact-copy .small { font-size: 1rem; }
.form { background: var(--paper); color: var(--ink); border-radius: 10px; padding: clamp(1.5rem, 4vw, 2.25rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fff; border: 1px solid #BDB4A3; border-radius: 6px; padding: .75rem .85rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--clay); outline-offset: 1px; border-color: var(--clay); }
.form .btn { width: 100%; font-size: 1.1rem; }
.form-note { font-size: .95rem; color: var(--muted); margin: .9rem 0 0; }
.hp { position: absolute; left: -5000px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Article */
.article { max-width: 42rem; margin: 0 auto; padding: var(--section) var(--gutter); }
.article .post-meta { margin-bottom: 1rem; }
.article h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); letter-spacing: -0.015em; margin-bottom: 1.5rem; }
.article .dek { font-size: 1.3rem; color: var(--muted); margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.article h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 2.75rem 0 1rem; }
.article p, .article li { font-size: 1.2rem; line-height: 1.7; }
.article ul, .article ol { padding-left: 1.4rem; margin: 0 0 1.25em; }
.article li { margin-bottom: .5rem; }
.article .callout { background: var(--cream); border-left: 4px solid var(--clay); padding: 1.25rem 1.5rem; border-radius: 0 8px 8px 0; margin: 1.75rem 0; }
.article .callout p { margin: 0; }
.article-cta { background: var(--teal); color: var(--on-teal); border-radius: 10px; padding: 2rem; margin-top: 3rem; }
.article-cta h2 { margin: 0 0 .75rem; }
.article-cta p { color: var(--on-teal-muted); font-size: 1.1rem; }
.back-link { display: inline-block; margin-bottom: 2rem; font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer { background: var(--teal-deep); color: var(--on-teal-muted); font-size: 1rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.site-footer a { color: var(--on-teal); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--on-teal); margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: var(--on-teal); margin-bottom: .5rem; }
.footer-legal { border-top: 1px solid #2B4F50; }
.footer-legal .wrap { display: block; padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: .92rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Pure-CSS mobile menu and photo (no JavaScript) */
.nav-check { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-check:focus-visible + .nav-toggle { outline: 3px solid var(--clay); outline-offset: 3px; }
@media (max-width: 860px) {
  .nav-check:checked ~ .nav { display: flex; }
  .nav-check:checked + .nav-toggle { background: var(--teal-tint); }
}
/* Headshot: drop images/michael-decinti.jpg in place and it covers the MD placeholder automatically */
.portrait::after { content: ""; position: absolute; inset: 0; background: url("../images/michael-decinti.jpg") center / cover no-repeat; }
