:root {
  --bg: #f6efe6;
  --bg-2: #fff7ec;
  --ink: #1f1b16;
  --muted: #6a5d4b;
  --accent: #c65a2e;
  --accent-2: #2f6f4e;
  --accent-3: #e2b76f;
  --card: #fffdf8;
  --stroke: #e6d7c3;
  --shadow: 0 20px 60px rgba(31, 27, 22, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(800px 600px at 10% -10%, rgba(198, 90, 46, 0.18), transparent 70%),
    radial-gradient(700px 600px at 85% 0%, rgba(47, 111, 78, 0.2), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 45%, #f2eadf 100%);
  min-height: 100vh;
  line-height: 1.6;
}

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

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

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

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 10px 16px;
  background: var(--accent-2);
  color: #fff;
  border-radius: 8px;
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(246, 239, 230, 0.85);
  border-bottom: 1px solid rgba(230, 215, 195, 0.7);
}

.site-header.is-scrolled {
  background: rgba(246, 239, 230, 0.96);
  box-shadow: 0 10px 30px rgba(31, 27, 22, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(198, 90, 46, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(198, 90, 46, 0.4);
}

.btn.small {
  padding: 10px 16px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(106, 93, 75, 0.4);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hero {
  padding: 80px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 24px;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.hero-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(47, 111, 78, 0.1);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 13px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.stat {
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid rgba(230, 215, 195, 0.7);
}

.stat strong {
  font-size: 22px;
  display: block;
}

.section {
  padding: 60px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title span {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
}

.section-title::before {
  content: "";
  width: 36px;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 30px rgba(31, 27, 22, 0.08);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:visited {
  color: inherit;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  overflow: hidden;
  height: 100%;
}

.blog-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--stroke);
  background: #fff;
}

.blog-card > :not(img) {
  padding-left: 20px;
  padding-right: 20px;
}

.blog-card > :not(img):last-child {
  padding-bottom: 20px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.blog-meta .tag {
  font-size: 11px;
  min-height: 24px;
  padding: 4px 8px;
}

.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(31, 27, 22, 0.12);
}

.card-link:focus-visible {
  outline: 2px solid rgba(47, 111, 78, 0.4);
  outline-offset: 4px;
}

.media-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.media-collage img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: #fff;
  box-shadow: 0 12px 24px rgba(31, 27, 22, 0.08);
}

.media-collage img:only-child {
  grid-column: 1 / -1;
  height: 100%;
  min-height: 380px;
  object-fit: contain;
  object-position: top center;
  width: calc(100% + 4px);
  margin-left: -2px;
  margin-right: -2px;
  border-left: 0;
  border-right: 0;
}

.media-collage img.tall {
  height: 100%;
  min-height: 380px;
  grid-row: span 2;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  overflow: hidden;
  height: 100%;
}

.service-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 0;
  border-bottom: 1px solid var(--stroke);
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card .service-meta {
  order: 0;
  margin-top: 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 0;
  border-bottom: 1px solid var(--stroke);
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card img.is-contain {
  object-fit: contain;
}

.project-card img:hover,
.service-card img:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(31, 27, 22, 0.12);
}

.project-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.project-specs .spec {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 4px 6px;
  border: 1px solid rgba(230, 215, 195, 0.8);
  font-size: 9px;
  color: var(--muted);
  min-height: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.project-specs .spec strong {
  display: block;
  font-size: 11px;
  color: var(--ink);
  line-height: 1.1;
}

.project-card h3 {
  min-height: 28px;
}

.project-card p {
  line-height: 1.5;
  min-height: calc(1.5em * 3);
}

.project-card .service-meta {
  margin-top: auto;
}

.service-card > :not(img),
.project-card > :not(img) {
  padding-left: 20px;
  padding-right: 20px;
}

.service-card > :not(img):last-child,
.project-card > :not(img):last-child {
  padding-bottom: 20px;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(47, 111, 78, 0.12);
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  line-height: 1;
  white-space: nowrap;
}

.article-hero {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #fff;
  box-shadow: 0 16px 30px rgba(31, 27, 22, 0.12);
}

.article-hero-grid {
  gap: 32px;
  align-items: center;
}

.article-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.article-lead {
  max-width: 640px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.article-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(47, 111, 78, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(47, 111, 78, 0.18);
}

.article-content {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  color: var(--ink);
}

.article-content h2 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 28px;
}

.article-content p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.8;
}

.article-content .highlight h2 {
  margin-top: 0;
}

.article-keywords {
  font-size: 14px;
  color: var(--muted);
}

.article-keywords strong {
  color: var(--ink);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(31, 27, 22, 0.45);
  z-index: 240;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
}

.modal-card {
  position: relative;
  width: min(92vw, 92vh);
  aspect-ratio: 1 / 1;
  max-height: none;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  z-index: 1;
}

.modal-media {
  background: #efe4d6;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  position: relative;
  z-index: 1;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 12px;
  justify-items: end;
  z-index: 2;
}

.modal-cta {
  width: auto;
  justify-content: center;
  font-size: 16px;
  padding: 10px 18px;
}

.modal-cta.is-hidden {
  display: none;
}

.modal-form {
  display: grid;
  gap: 10px;
  width: min(360px, 86vw);
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(31, 27, 22, 0.12);
}

.modal-form.is-hidden,
.modal-success.is-hidden {
  display: none;
}

.modal-label {
  font-size: 14px;
  font-weight: 600;
}

.modal-error {
  color: #b23b27;
  font-size: 13px;
}

.modal-success {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(47, 111, 78, 0.12);
  color: var(--accent-2);
  font-weight: 600;
  width: min(360px, 86vw);
}

.modal-note {
  color: var(--muted);
  font-size: 12px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(106, 93, 75, 0.4);
  background: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 8px 18px rgba(31, 27, 22, 0.18);
}

body.modal-open {
  overflow: hidden;
}

.list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent-2);
}

.highlight {
  background: linear-gradient(120deg, rgba(226, 183, 111, 0.4), rgba(226, 183, 111, 0.1));
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(226, 183, 111, 0.4);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(198, 90, 46, 0.12);
  color: var(--accent);
}

.cta {
  background: linear-gradient(120deg, rgba(198, 90, 46, 0.2), rgba(47, 111, 78, 0.15));
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(198, 90, 46, 0.25);
  display: grid;
  gap: 12px;
}

.cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 24px;
  align-items: start;
}

.builder-form {
  display: grid;
  gap: 24px;
}

.builder-block {
  display: grid;
  gap: 14px;
}

.builder-block h3 {
  margin: 0;
  font-size: 20px;
}

.builder-field {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.builder-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.builder-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.builder-range strong {
  color: var(--ink);
  font-size: 16px;
}

.builder-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.builder-option {
  position: relative;
}

.builder-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.builder-option-box {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  min-height: 72px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.builder-option-title {
  font-weight: 600;
  color: var(--ink);
}

.builder-option-note {
  font-size: 12px;
  color: var(--muted);
}

.builder-option input:checked + .builder-option-box {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 24px rgba(198, 90, 46, 0.18);
  transform: translateY(-1px);
}

.builder-option input:focus-visible + .builder-option-box {
  outline: 2px solid rgba(47, 111, 78, 0.4);
  outline-offset: 2px;
}

.builder-select,
.builder-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
}

.builder-textarea {
  resize: vertical;
}

.builder-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.builder-error {
  color: #b23b27;
  font-size: 13px;
}

.builder-success {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(47, 111, 78, 0.12);
  color: var(--accent-2);
  font-weight: 600;
}

.builder-success.is-hidden {
  display: none;
}

.builder-summary {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 12px;
}

.builder-summary-lead {
  color: var(--muted);
  margin: 0;
}

.builder-summary-list {
  display: grid;
  gap: 10px;
}

.builder-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.builder-summary-row strong {
  color: var(--ink);
}

.form {
  display: grid;
  gap: 12px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-family: inherit;
  font-size: 15px;
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.chat-card {
  display: grid;
  gap: 14px;
}

.chat-status {
  font-size: 13px;
  color: var(--muted);
}

.chat-log {
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: #fff;
  padding: 12px;
  height: 260px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
}

.chat-empty {
  color: var(--muted);
  font-size: 14px;
}

.chat-message {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 88%;
}

.chat-message.is-visitor {
  align-self: flex-end;
  text-align: right;
}

.chat-message.is-manager {
  align-self: flex-start;
}

.chat-bubble {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(47, 111, 78, 0.08);
}

.chat-message.is-manager .chat-bubble {
  background: rgba(198, 90, 46, 0.08);
  border-color: rgba(198, 90, 46, 0.24);
}

.chat-meta {
  font-size: 12px;
  color: var(--muted);
}

.chat-form textarea {
  min-height: 90px;
}

.chat-error {
  min-height: 18px;
  font-size: 13px;
  color: #b42318;
}

.footer {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(230, 215, 195, 0.7);
  background: rgba(255, 255, 255, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

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

.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

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

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(47, 111, 78, 0.25), rgba(198, 90, 46, 0.2));
  padding: 26px;
  position: relative;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--radius) - 10px);
  border: 1px dashed rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.hero-image h3 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 10px;
}

.hero-image p {
  margin: 0;
  color: rgba(31, 27, 22, 0.7);
}

.reveal {
  animation: rise 0.8s ease both;
}

.reveal.delay-1 {
  animation-delay: 0.15s;
}

.reveal.delay-2 {
  animation-delay: 0.3s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 72px;
    right: 16px;
    background: var(--card);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--stroke);
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  body.nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-cta {
    display: none;
  }

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

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .media-collage {
    grid-template-columns: 1fr;
  }

  .media-collage img,
  .media-collage img.tall {
    height: 200px;
    min-height: 200px;
    grid-row: auto;
  }

  .blog-card img {
    height: 160px;
  }

  .modal-card {
    grid-template-columns: 1fr;
    width: min(94vw, 94vh);
  }

  .modal-panel {
    right: 12px;
    bottom: 12px;
  }

  .builder-grid {
    grid-template-columns: 1fr;
  }

  .builder-summary {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
