/* ===== Theme — colors pulled from the logo ===== */
:root {
  --charcoal: #3D3B39;
  --charcoal-soft: #4b4845;
  --cream: #F6EFDF;
  --cream-deep: #efe6d2;
  --paper: #FBF8F1;
  --ink: #2c2a28;
  --muted: #6f6a63;
  --accent: #9aa886;        /* soft sage, derived to complement cream/charcoal */
  --line: #e6ddca;
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(61, 59, 57, 0.45);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  line-height: 1.1;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 .5em;
}

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 .75rem;
}
.eyebrow.light { color: var(--cream-deep); }

.accent { color: var(--accent); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--charcoal); color: var(--cream); }
.btn-primary:hover { box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--charcoal); color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--cream); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(251, 248, 241, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 600;
}
.brand img { border-radius: 10px; }
.brand-name { font-size: 1.02rem; color: var(--charcoal); }
.brand.small span { font-size: .95rem; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a { font-weight: 500; color: var(--charcoal-soft); }
.nav-menu a:hover { color: var(--accent); }
.nav-cta {
  background: var(--charcoal);
  color: var(--cream) !important;
  padding: .55rem 1.1rem;
  border-radius: 999px;
}
.nav-cta:hover { color: var(--cream) !important; opacity: .9; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ===== Layout ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2.5rem);
}
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(154, 168, 134, 0.18), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem);
}
.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  margin-bottom: .5rem;
}
.tagline {
  font-family: "Fraunces", serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--charcoal);
  margin: 0 0 1.1rem;
}
.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--charcoal-soft);
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin: 1.8rem 0 2.5rem;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  list-style: none;
  margin: 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}
.stats strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--charcoal);
}
.stats span { color: var(--muted); font-size: .92rem; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.about-text p { font-size: 1.06rem; color: var(--charcoal-soft); }
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: .7rem;
}
.checklist li {
  padding-left: 1.9rem;
  position: relative;
  color: var(--charcoal);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(154, 168, 134, 0.2);
}
.about-card {
  background: var(--charcoal);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}
.about-card h3 { color: var(--cream); margin-bottom: 1.2rem; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.steps li { display: flex; gap: .9rem; align-items: baseline; color: var(--cream-deep); font-size: .98rem; }
.steps span {
  font-family: "Fraunces", serif;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
}

/* ===== Services ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.card h3 { font-size: 1.22rem; }
.card p { color: var(--muted); margin: 0; }

/* ===== Work ===== */
.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.project {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .25s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-thumb span {
  font-family: "Fraunces", serif;
  color: var(--cream);
  font-size: 1.4rem;
  letter-spacing: .02em;
}
.project-body { padding: 1.4rem 1.4rem 1.6rem; }
.project-tag {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .5rem;
}
.project-body h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.project-body > p { color: var(--muted); font-size: .96rem; }
.metric {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  color: var(--charcoal);
  margin: .6rem 0 0 !important;
}
.metric span { font-family: "Poppins", sans-serif; font-size: .85rem; color: var(--muted); font-weight: 400; }

/* ===== Brands strip ===== */
.brands-strip {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.8rem);
  border-top: 1px solid var(--line);
  text-align: center;
}
.brands-label {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.brands-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.6rem, 3vw, 2.4rem);
}
.brands-logos img {
  height: 80px;
  width: auto;
  max-width: 320px;
  opacity: .7;
  filter: grayscale(1);
  transition: opacity .2s ease, filter .2s ease;
}
.brands-logos img:hover { opacity: 1; filter: grayscale(0); }

/* ===== Contact ===== */
.contact {
  max-width: none;
  background:
    radial-gradient(700px 400px at 15% 120%, rgba(154, 168, 134, 0.22), transparent 60%),
    var(--charcoal);
  margin-top: 2rem;
}
.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--cream);
}
.contact h2 { color: var(--cream); font-size: clamp(2rem, 5vw, 3rem); }
.contact-sub { color: var(--cream-deep); font-size: 1.1rem; margin-bottom: 2rem; }
.contact-alt { margin-top: 1.4rem; color: var(--cream-deep); font-size: .95rem; }
.contact-alt .email { color: var(--cream); font-weight: 600; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--cream-deep);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
}
.site-footer .brand span { color: var(--cream); }
.footer-note { color: var(--cream-deep); margin: .4rem 0 0; }
.copyright { font-size: .85rem; color: #9c958a; margin: .3rem 0 0; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1.4rem;
  margin: 1.4rem 0 .4rem;
  max-width: 640px;
}
.footer-nav a { color: var(--cream-deep); font-size: .92rem; }
.footer-nav a:hover { color: var(--cream); }

.socials {
  display: flex;
  gap: .8rem;
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 .8rem;
}
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #54504a;
  color: var(--cream-deep);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ===== Guide pages ===== */
.page-hero {
  background:
    radial-gradient(700px 420px at 85% -20%, rgba(154, 168, 134, 0.18), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.8rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem) clamp(2.2rem, 5vw, 3.5rem);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero .lead { color: var(--charcoal-soft); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--accent); }
.crumbs a:hover { text-decoration: underline; }

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
}
.article h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-top: 2.4rem;
}
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.25rem; margin-top: 1.6rem; }
.article p, .article li { font-size: 1.06rem; color: var(--charcoal-soft); }
.article ul, .article ol { padding-left: 1.3rem; display: grid; gap: .5rem; margin: 0 0 1.2rem; }
.article ul li::marker { color: var(--accent); }
.callout {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
}
.callout p { margin: 0; color: var(--charcoal); }

/* Guides hub cards */
.guide-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  max-width: 900px;
  margin: 0 auto;
}
.guide-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.guide-card .tag {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .5rem;
}
.guide-card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.guide-card p { color: var(--muted); flex: 1; }
.guide-card .read { font-weight: 600; color: var(--charcoal); margin: .4rem 0 0; }
.guide-card:hover .read { color: var(--accent); }

.next-steps {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
  margin-top: 2.5rem;
}
.next-steps h2 { margin-top: 0; }

@media (max-width: 680px) {
  .guide-list { grid-template-columns: 1fr; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .portfolio { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .guide-list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .brand-name { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px -8px rgba(61,59,57,.18);
    padding: .5rem 1rem 1rem;
    transform: translateY(-150%);
    transition: transform .3s ease;
    z-index: 40;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu a { display: block; padding: .9rem .25rem; }
  .nav-cta { text-align: center; margin-top: .6rem; }
  .cards { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
