:root {
  --bg: #f5eee3;
  --surface: #fff9f0;
  --muted: #f2e6d9;
  --accent: #d1762f;
  --accent-2: #3c2718;
  --text: #2c1f16;
  --text-muted: #6a5648;
  --border: #e5d6c6;
  --shadow: 0 15px 40px rgba(44, 31, 22, 0.14);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 18% 18%, #fff3e0 0, #f5eee3 36%, #f5eee3 100%);
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: calc(var(--radius) - 6px);
  object-fit: cover;
}

section {
  padding: 80px 0;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 249, 240, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 124px;
  height: 124px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--border);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 18px;
}

.brand-tag {
  font-size: 13px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-tag {
  font-size: 12px;
  color: var(--text-muted);
}

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

.nav a {
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--text);
  background: var(--muted);
}

.nav .pill {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
}

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

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

.hero-copy h1 {
  font-size: clamp(30px, 3vw + 16px, 44px);
  margin: 12px 0 10px;
}

.hero .lede {
  max-width: 580px;
}

.lede {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 12px;
  color: var(--accent-2);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

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

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 24px;
}

.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.icon-wa {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle fill='%2325D366' cx='16' cy='16' r='16'/%3E%3Cpath fill='%23fff' d='M9.2 23.9l.8-2.9a8.2 8.2 0 111.6 1.6l-2.4.7z'/%3E%3Cpath fill='%2325D366' d='M12.7 14.4c-.1-.3-.3-.3-.5-.3h-.4c-.1 0-.4.1-.7.4s-.9.8-.9 1.9 1 2.2 1.2 2.4c.3.3 1.8 3 4.4 4.1 2.2.9 2.6.7 3.1.6.5-.1 1.5-.6 1.7-1.1.2-.6.2-1.1.2-1.2 0-.1-.1-.2-.3-.3l-1.4-.7c-.2-.1-.3-.1-.5.1l-.6.8c-.1.1-.3.1-.5 0-.2-.1-.8-.3-1.6-1s-1.2-1.5-1.3-1.7c-.1-.1 0-.3.1-.4l.4-.5c.1-.1.1-.2.2-.3 0-.1 0-.2 0-.3l-.7-1.6z'/%3E%3C/svg%3E");
}

.icon-tg {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle fill='%232CA5E0' cx='120' cy='120' r='120'/%3E%3Cpath fill='%23fff' d='M173 74L53 119c-4 1-4 5-1 6l29 9 12 38c1 2 3 3 5 2l19-16 29 21c2 1 4 1 5-1l24-120c0-3-3-5-5-4z'/%3E%3Cpath fill='%230088CC' opacity='.2' d='M92 148l-3 27c1 1 2 1 3 0l7-13 20-18 36-66-60 64z'/%3E%3C/svg%3E");
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.secondary {
  background: var(--accent-2);
  color: white;
}

.button.ghost {
  background: white;
  border-color: var(--border);
  color: var(--text);
}

.button.full {
  width: 100%;
}

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

.metric {
  padding: 14px 12px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.metric-value {
  font-weight: 800;
  font-size: 22px;
}

.metric-label {
  display: block;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-media .card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-body {
  padding: 8px 6px 4px;
}

.card-body h3 {
  margin: 6px 0 4px;
}

.card-body p {
  margin: 0 0 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-short {
  display: flex;
  gap: 12px;
  font-weight: 700;
}

.contact-short a {
  align-items: center;
}

.section {
  background: var(--surface);
}

.section.muted {
  background: var(--muted);
}

.section.highlight {
  background: linear-gradient(135deg, #ffe8d4, #fff9f0);
}

.section-header h2 {
  margin: 8px 0 4px;
}

.section-header {
  margin-bottom: 24px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--muted);
  box-shadow: var(--shadow);
}

.case-actions {
  margin-top: 12px;
}

.case-card header h3 {
  margin: 6px 0;
}

.case-location {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.case-result {
  color: var(--accent-2);
  font-weight: 700;
  margin: 4px 0 10px;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.case-gallery figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.case-note {
  margin: 12px 0 0;
  color: var(--text-muted);
}

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

.step {
  background: white;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
}

.step h3 {
  margin: 0 0 6px;
}

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

.step-index {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.bullets {
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-card {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  background: #ffe0c2;
  color: #8c4a16;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.contact-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
}

.contact-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-value {
  font-weight: 700;
  color: var(--accent-2);
}

.cta-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cta-box h3 {
  margin-top: 0;
}

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

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff4e5;
  font: inherit;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #ffd7b0;
  border-color: #efb47f;
  background: #fffaf3;
}

.form-note {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.form-status {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff3e5;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.form-status .status-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.footer {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 12px;
  font-weight: 600;
}

.tg-embed {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--muted);
  box-shadow: var(--shadow);
}

.tg-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--muted);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.tg-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}

.tg-title {
  font-size: 16px;
}

.tg-link {
  display: inline-flex;
  color: var(--text-muted);
  font-weight: 600;
}

.tg-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

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

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

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.doc-card h3 {
  margin: 0 0 6px;
}

.doc-note {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.project-meta .metric {
  background: var(--surface);
}

.photo-section {
  padding: 24px 0 12px;
}

.photo-section h3 {
  margin: 0 0 6px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.photo-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  padding: 8px;
  box-shadow: var(--shadow);
}

.photo-card img {
  border-radius: 10px;
}

.photo-card figcaption {
  display: none;
}

.zoomable {
  cursor: zoom-in;
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 249, 240, 0.95);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar .container {
    padding: 12px 0;
  }

  .nav {
    position: fixed;
    inset: 64px 16px auto;
    padding: 14px;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.open {
    display: flex;
  }

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

  .hero {
    padding-top: 86px;
  }

  section {
    padding: 64px 0;
  }

  .container {
    width: 92vw;
  }

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