:root {
  --bg: #f5efe8;
  --bg-soft: #fbf7f2;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #fffdf9;
  --ink: #2d312b;
  --muted: #63675e;
  --line: rgba(45, 49, 43, 0.12);
  --accent: #586f63;
  --accent-deep: #35453b;
  --highlight: #d7c8b4;
  --shadow: 0 24px 60px rgba(45, 49, 43, 0.12);
  --radius: 26px;
  --radius-sm: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PT Serif", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(215, 200, 180, 0.42), transparent 30%),
    linear-gradient(180deg, #f8f4ee 0%, #f4ede5 42%, #efe7de 100%);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

body.menu-open {
  overflow: hidden;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(248, 244, 238, 0.78);
  border-bottom: 1px solid var(--line);
}

.topbar-inner,
.section,
.footer-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-mark {
  font-family: "Gilda Display", serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: 0.04em;
}

.brand-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  width: 2.9rem;
  height: 2.9rem;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  font-size: 0.96rem;
}

.nav a.active {
  color: var(--accent);
}

.button,
button,
input,
textarea {
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 180ms ease;
}

.button-primary {
  background: var(--accent-deep);
  color: #fffdf8;
}

.button-primary:hover {
  background: #263329;
  color: #fffdf8;
}

.button-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 1.3rem auto 0;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-card,
.panel,
.card,
.faq-item,
.blog-card,
.contact-card,
.success-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-copy {
  padding: clamp(2rem, 4vw, 4rem);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 13rem;
  height: 13rem;
  background: url("../images/blob.png") center/contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1,
h2,
h3,
.display {
  font-family: "Gilda Display", serif;
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
}

h1,
.display {
  font-size: clamp(2.7rem, 6vw, 5.3rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.65rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 44rem;
}

.hero-actions,
.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-visual {
  min-height: 26rem;
  position: relative;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  max-width: 18rem;
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(14px);
  border-radius: 1.2rem;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.section {
  padding: 5rem 0;
}

.section.compact {
  padding-top: 2.2rem;
}

.section-grid,
.cards,
.blog-grid,
.image-grid,
.two-column,
.contact-layout {
  display: grid;
  gap: 1.5rem;
}

.section-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  align-items: start;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.panel,
.blog-card,
.contact-card,
.success-card {
  padding: 1.6rem;
}

.card p:last-child,
.panel p:last-child {
  margin-bottom: 0;
}

.stat-line {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.94rem;
}

.quote {
  font-size: 1.08rem;
  color: var(--accent-deep);
}

.split-visual,
.page-hero-image img,
.wide-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-visual img,
.page-hero-image img,
.wide-image img {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  object-fit: cover;
}

.page-hero {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 1.3rem auto 0;
}

.page-hero .panel {
  padding: clamp(2rem, 4vw, 3.6rem);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.85fr);
  gap: 1.4rem;
}

.list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.list li {
  margin-bottom: 0.6rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: 0;
  padding: 1.2rem 1.35rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-question span {
  font-family: "Gilda Display", serif;
  font-size: 1.2rem;
}

.faq-answer {
  padding: 0 1.35rem 1.2rem;
  color: var(--muted);
}

.faq-item:not(.open) .faq-answer {
  display: none;
}

.blog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-card {
  display: grid;
  gap: 1rem;
}

.blog-meta,
.post-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.post-shell {
  width: min(calc(100% - 2rem), 860px);
  margin: 1.5rem auto 0;
}

.post-shell .panel {
  padding: clamp(1.8rem, 4vw, 3rem);
}

.post-content p,
.post-content li {
  font-size: 1.04rem;
}

.post-content ul {
  padding-left: 1.2rem;
}

.contact-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1.05fr);
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 1rem;
}

.contact-image {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.contact-image img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.95rem 1rem;
  color: var(--ink);
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(88, 111, 99, 0.24);
  border-color: rgba(88, 111, 99, 0.5);
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer {
  padding: 2.5rem 0 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.center {
  text-align: center;
}

@media (max-width: 980px) {
  .hero,
  .section-grid,
  .page-hero-grid,
  .contact-layout,
  .cards,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 21rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 5.1rem 1rem auto 1rem;
    padding: 1.2rem;
    background: rgba(255, 253, 249, 0.98);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open {
    display: flex;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .section,
  .footer-inner,
  .hero,
  .page-hero,
  .post-shell {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
