:root {
  --cream: #f7f1e3;
  --card: #fffaf0;
  --ink: #241f16;
  --muted: #5d564a;
  --accent: #1f6b57;
  --accent-2: #d07a2d;
  --line: #e6dcc8;
  --shadow-soft: 0 18px 50px rgba(23, 21, 15, 0.12);
  --shadow-light: 0 8px 25px rgba(23, 21, 15, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

p {
  color: var(--muted);
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
  box-shadow: var(--shadow-light);
}

.button.secondary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-light);
}

.button.ghost {
  background: rgba(36, 31, 22, 0.05);
  border-color: rgba(36, 31, 22, 0.2);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.top-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  width: 100%;
  backdrop-filter: blur(14px);
  background: rgba(247, 241, 227, 0.94);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.top-nav .brand,
.top-nav .nav-links {
  display: flex;
  align-items: center;
}

.top-nav .brand {
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
}

.brand-mark {
  background: var(--ink);
  color: var(--cream);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark.small {
  width: 38px;
  height: 38px;
  padding: 0;
}

.brand-name {
  font-size: 1rem;
}

.top-nav .nav-links {
  list-style: none;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 150ms ease, color 150ms ease;
}

.nav-links a:hover {
  background: rgba(36, 31, 22, 0.08);
}

.nav-cta {
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 24px 110px;
}

.hero::before,
.hero::after {
    content: "-";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background: radial-gradient(circle at 12% 18%, rgba(208, 122, 45, 0.2), transparent 35%), radial-gradient(circle at 78% 28%, rgba(31, 107, 87, 0.25), transparent 38%);
  opacity: 0.8;
}

.hero::after {
  background: linear-gradient(180deg, rgba(247, 241, 227, 0) 0%, rgba(247, 241, 227, 1) 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, 96vw);
  margin: 40px auto 0;
  display: grid;
  gap: 42px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-copy .lede {
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 160px;
  box-shadow: var(--shadow-light);
}

.stat-number {
  display: block;
  font-weight: 800;
  color: var(--ink);
  font-size: 1.1rem;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.panel-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  width: min(420px, 100%);
}

.panel-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--muted);
}

.panel-price {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.panel-note {
  margin: 0 0 16px;
}

.panel-list {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--muted);
}

.panel-list li + li {
  margin-top: 8px;
}

.hero-badge {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin: 20px auto 0;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow-light);
}

.section {
  padding: 96px 24px;
}

.section-heading {
  width: min(780px, 94vw);
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 14px;
  line-height: 1.2;
}

.pillars {
  width: min(1200px, 96vw);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pillar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-light);
}

.pillar h3 {
  margin-bottom: 10px;
}

.cards {
  width: min(1200px, 96vw);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-light);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(31, 107, 87, 0.4);
}

.card h3 {
  margin-bottom: 10px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 14px;
}

.process {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(247, 241, 227, 0.65));
}

.steps {
  width: min(1100px, 96vw);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.step {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-light);
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 12px;
}

.contact {
  background: #f2e9d7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-wrapper {
  width: min(1100px, 96vw);
  margin: 0 auto;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-copy h2 {
  margin-bottom: 12px;
}

.contact-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.contact-points li {
  position: relative;
  padding-left: 20px;
}

.contact-points li::before {
    content: "-";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-weight: 700;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fdf9f0;
  color: var(--ink);
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.footer {
  background: #f3ead6;
  border-top: 1px solid var(--line);
  padding: 44px 24px 30px;
}

.footer-inner {
  width: min(1200px, 96vw);
  margin: 0 auto 16px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-links a {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.footer-note {
  margin: 8px 0 0;
}

.footer-copy {
  text-align: center;
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ================================
   INNER / SERVICE / PORTFOLIO PAGES
================================ */
.page-hero {
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
    content: "-";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 16% 30%, rgba(31, 107, 87, 0.22), transparent 36%), radial-gradient(circle at 82% 24%, rgba(208, 122, 45, 0.2), transparent 32%);
  opacity: 0.9;
  pointer-events: none;
}

.page-hero .page-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1080px, 96vw);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  line-height: 1.15;
}

.breadcrumbs {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-section {
  padding: 70px 24px;
  background: var(--cream);
}

.page-section.alt {
  background: #f1e7d3;
  border-block: 1px solid var(--line);
}

.page-section .section-inner {
  width: min(1080px, 96vw);
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.page-section .section-inner.blog-layout {
  width: min(1200px, 96vw);
}

.two-col {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.detail-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-light);
}

.detail-card h3 {
  margin-top: 0;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.list-check li {
  position: relative;
  padding-left: 20px;
}

.list-check li::before {
    content: "-";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.package-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.package-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-light);
}

.pill {
  display: inline-flex;
  padding: 6px 10px;
  background: rgba(31, 107, 87, 0.08);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
  box-shadow: var(--shadow-light);
}

.faq-item h4 {
  margin: 0 0 6px;
}

.portfolio-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.portfolio-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-light);
}

.portfolio-card h3 {
  margin-top: 0;
}

.portfolio-card img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: #f1e7d3;
}

/* ================================
   BLOG
================================ */
.blog-layout {
  grid-template-columns: minmax(280px, 420px) 1fr;
  align-items: start;
}

.blog-aside {
  display: grid;
  gap: 18px;
}

.blog-posts {
  display: grid;
  gap: 24px;
}

.section-heading.align-left {
  text-align: left;
  width: 100%;
  margin: 0;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-pills .pill {
  margin-bottom: 0;
}

.feature-panel {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  padding: 32px;
  background: linear-gradient(155deg, rgba(31, 107, 87, 0.12), rgba(208, 122, 45, 0.1));
  border: 1px solid rgba(31, 107, 87, 0.25);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.feature-panel::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -40px;
  top: -40px;
  border-radius: 50%;
  background: rgba(31, 107, 87, 0.16);
}

.feature-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.feature-panel h2 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.feature-panel p {
  margin-bottom: 14px;
}

.feature-meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.feature-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.feature-stats .stat-number {
  font-size: 1.4rem;
}

.feature-stats .stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.accent-card {
  background: #fff6e8;
  border-color: rgba(208, 122, 45, 0.35);
}

.blog-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.blog-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-light);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(31, 107, 87, 0.4);
}

.blog-card h3 {
  margin: 6px 0;
}

.blog-card .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.newsletter {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-light);
}

.newsletter-form {
  display: grid;
  gap: 10px;
}

.newsletter-form input {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fdf9f0;
}

.subscribe-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 999;
}

.subscribe-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.subscribe-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 23, 15, 0.55);
}

.subscribe-modal-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 90vw);
  background: #ffffff;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.subscribe-modal-panel h2 {
  margin-bottom: 12px;
}

.subscribe-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

/* ================================
   ARTICLE PAGES
================================ */
.article-body {
  max-width: 780px;
}

.article-body h2,
.article-body h3 {
  margin-top: 24px;
}

.article-body h2:first-of-type {
  margin-top: 0;
}

.article-meta {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 980px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 900px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 12px;
  }

  .hero-inner {
    margin-top: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    flex-direction: column;
  }
}
