:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f1eee8;
  --ink: #252b2a;
  --muted: #66706e;
  --accent: #476b64;
  --accent-dark: #34524c;
  --accent-soft: #dce7e3;
  --warm: #c69f7c;
  --line: #e7e3dc;
  --shadow: 0 22px 60px rgba(28, 43, 40, .10);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 13px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100%, 820px);
}

.hidden,
.hidden-field {
  display: none !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
  line-height: 1.09;
  letter-spacing: -.025em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 4.5vw, 4.8rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  line-height: 1.25;
}

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

.lead {
  max-width: 780px;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-dark);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: .92rem;
}

.btn-light {
  border-color: #fff;
  background: #fff;
  color: var(--accent-dark);
}

.btn-light:hover {
  background: #f6f6f2;
  border-color: #f6f6f2;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(231, 227, 220, .85);
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: .95rem;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: -2px;
  color: var(--muted);
  font-size: .78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav > a:not(.btn) {
  position: relative;
  font-size: .95rem;
  font-weight: 600;
}

.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--accent);
  transition: .25s ease;
}

.main-nav > a.active::after,
.main-nav > a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: .25s ease;
}

/* Hero */
.hero {
  overflow: hidden;
  padding: 70px 0 95px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.hero-copy h1 {
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  display: flex;
  max-width: 620px;
  align-items: flex-start;
  gap: 11px;
  margin-top: 28px;
  color: var(--muted);
  font-size: .92rem;
}

.dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--warm);
}

.hero-visual {
  position: relative;
  min-height: 610px;
}

.image-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.image-card-main {
  position: absolute;
  inset: 0 0 35px 40px;
}

.image-card-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  top: -35px;
  right: -35px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  left: 0;
  bottom: 0;
  border: 1px solid var(--warm);
  border-radius: 50%;
}

.floating-card {
  position: absolute;
  z-index: 3;
  right: -20px;
  bottom: 55px;
  width: 230px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 45px rgba(31, 45, 42, .13);
  backdrop-filter: blur(10px);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card strong {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
}

.floating-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .9rem;
}

/* Sections */
.section {
  padding: 100px 0;
}

.soft-bg {
  background: var(--surface-soft);
}

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
}

.section-copy {
  max-width: 680px;
  font-size: 1.07rem;
}

.centered {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.centered .eyebrow::before {
  display: none;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid rgba(71,107,100,.12);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.78);
  transition: .25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(34, 48, 45, .08);
}

.service-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .86rem;
  font-weight: 700;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.16rem;
}

.service-card p {
  margin-bottom: 0;
  font-size: .94rem;
}

.process-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 80px;
}

.process-image img {
  width: 100%;
  height: 610px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.steps {
  display: grid;
  gap: 24px;
  margin: 32px 0 28px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.step > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.step h3 {
  margin: 3px 0 5px;
  font-size: 1.08rem;
}

.step p {
  margin-bottom: 0;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.quote-section {
  padding: 84px 0;
  background: var(--accent);
}

blockquote {
  margin: 0;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.25;
  text-align: center;
}

.latest-post-section {
  padding-bottom: 120px;
}

.featured-post {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.featured-post img {
  width: 100%;
  min-height: 390px;
  height: 100%;
  object-fit: cover;
}

.featured-post-content {
  padding: 48px;
  align-self: center;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: .84rem;
}

.post-meta span + span::before {
  content: "•";
  margin-right: 12px;
}

.featured-post h3 {
  margin-bottom: 15px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.cta-section {
  padding: 0 0 100px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 55px 60px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: #fff;
}

.cta-card .eyebrow {
  color: #dbeae6;
}

.cta-card .eyebrow::before {
  background: #dbeae6;
}

.cta-card h2 {
  margin-bottom: 10px;
}

.cta-card p {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255,255,255,.78);
}

/* Page hero */
.page-hero {
  padding: 105px 0 75px;
  background:
    radial-gradient(circle at 80% 20%, rgba(220,231,227,.9), transparent 34%),
    linear-gradient(180deg, #fbfaf7, #f6f3ee);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 5.5vw, 5.3rem);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  transition: .25s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(34,48,45,.08);
}

.blog-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.blog-card-content {
  padding: 26px;
}

.blog-card h2 {
  margin-bottom: 13px;
  font-size: 1.55rem;
}

.blog-card p {
  margin-bottom: 22px;
}

.article-page {
  max-width: 860px;
  margin: 0 auto;
}

.article-back {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--accent-dark);
  font-weight: 700;
}

.article-header {
  margin-bottom: 38px;
}

.article-header h1 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.article-cover {
  width: 100%;
  height: 470px;
  margin: 35px 0 50px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.article-body {
  font-size: 1.08rem;
}

.article-body h2 {
  margin: 44px 0 18px;
  font-size: 2rem;
}

.article-body p,
.article-body li {
  color: #4d5755;
}

.article-body ul {
  padding-left: 22px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 50px;
  align-items: start;
}

.contact-panel,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.contact-panel {
  position: sticky;
  top: 112px;
  padding: 38px;
}

.contact-panel h2 {
  margin-bottom: 4px;
  font-size: 2.3rem;
}

.contact-role {
  margin-bottom: 35px;
}

.contact-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.contact-item a {
  color: var(--accent-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-item p {
  margin-bottom: 0;
}

.contact-notice {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: #f6f2ec;
}

.contact-notice strong {
  display: block;
  margin-bottom: 6px;
}

.contact-notice p {
  margin-bottom: 0;
  font-size: .9rem;
}

.form-card {
  padding: 42px;
  box-shadow: var(--shadow);
}

.form-heading {
  margin-bottom: 30px;
}

.form-heading h2 {
  margin-bottom: 12px;
  font-size: 2.6rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: .9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8d4cd;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: .2s ease;
}

input,
select {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  padding: 13px 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(71,107,100,.10);
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 5px 0 24px;
  color: var(--muted);
  font-size: .86rem;
}

.consent input {
  width: 18px;
  min-height: auto;
  height: 18px;
  margin-top: 2px;
}

.form-submit {
  min-width: 190px;
}

.form-footnote {
  margin: 17px 0 0;
  font-size: .8rem;
}

/* Footer */
.site-footer {
  padding: 70px 0 28px;
  background: #202826;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr .9fr;
  gap: 70px;
}

.footer-brand {
  margin-bottom: 20px;
}

.footer-brand .brand-mark {
  background: #d7e5e1;
  color: var(--accent-dark);
}

.footer-brand small,
.footer-note,
.site-footer p {
  color: #aeb8b5;
}

.footer-note {
  max-width: 440px;
  font-size: .86rem;
}

.site-footer h3 {
  margin: 0 0 16px;
  font-size: .95rem;
}

.site-footer > .container a {
  display: block;
  margin-bottom: 9px;
  color: #dfe6e4;
}

.site-footer > .container .brand {
  display: inline-flex;
}

.footer-bottom {
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #97a29f;
  font-size: .82rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    inset: 82px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 22px 20px 26px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 18px 32px rgba(0,0,0,.06);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a:not(.btn) {
    padding: 10px 2px;
  }

  .main-nav > a:not(.btn)::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid,
  .split,
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 55px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .split,
  .process-grid {
    gap: 50px;
  }

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

  .process-image img {
    height: 480px;
  }

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

  .contact-panel {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .section {
    padding: 75px 0;
  }

  .hero-visual {
    min-height: 430px;
  }

  .image-card-main {
    inset: 0 0 28px 18px;
  }

  .floating-card {
    right: 0;
    bottom: 32px;
    width: 210px;
  }

  .cards-grid,
  .blog-grid,
  .form-row,
  .featured-post {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-icon {
    margin-bottom: 24px;
  }

  .process-image img,
  .article-cover {
    height: 360px;
  }

  .featured-post img {
    min-height: 260px;
  }

  .featured-post-content,
  .form-card,
  .contact-panel {
    padding: 28px;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 38px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
