:root {
  --ink: #2e261b;
  --bg: #f3ece0;
  --soft: #fff8ee;
  --brand: #b68a3a;
  --brand-2: #8f6a2f;
  --card: rgba(255, 255, 255, 0.88);
  --line: #dcc9a3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 250, 240, 0.95) 0, rgba(255, 250, 240, 0) 42%),
    radial-gradient(circle at 85% 20%, rgba(232, 214, 174, 0.55) 0, rgba(232, 214, 174, 0) 45%),
    radial-gradient(circle at 18% 75%, rgba(227, 208, 172, 0.38) 0, rgba(227, 208, 172, 0) 46%),
    linear-gradient(160deg, #f9f3ea 0%, #f1e7d8 48%, #e8ddd0 100%),
    var(--bg);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background:
    radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.95) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 34%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 72%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 84%, rgba(255, 255, 255, 0.75) 0 1px, transparent 2px);
  background-size: 280px 280px, 300px 300px, 340px 340px, 360px 360px;
}

body::after {
  content: "";
  position: fixed;
  left: -8%;
  right: -8%;
  bottom: -150px;
  height: 280px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(120% 130% at 50% 0%, transparent 61%, rgba(185, 142, 67, 0.45) 62%, rgba(185, 142, 67, 0.7) 63%, transparent 64%),
    radial-gradient(120% 130% at 50% 12%, transparent 66%, rgba(239, 214, 162, 0.55) 67%, transparent 68%);
}

h1,
h2,
h3,
.logo {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.1;
}

.ad-topline,
.signature-ad h2 {
  font-family: "Cinzel", serif;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.35;
}

.bg-shape-1 {
  top: -120px;
  left: -80px;
  background: #e8d3a6;
}

.bg-shape-2 {
  right: -110px;
  bottom: -120px;
  background: #cfb27d;
}

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

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  background: rgba(250, 245, 237, 0.86);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.nav-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
}

.site-header-home {
  position: relative;
  top: auto;
  backdrop-filter: none;
  background: transparent;
  border-bottom: 0;
}

.header-banner {
  position: relative;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding-top: 0;
  overflow: hidden;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-image {
  display: block;
  height: 64px;
  width: auto;
  max-width: min(92vw, 620px);
  object-fit: contain;
}

.logo-banner {
  display: block;
  min-height: 0;
  text-align: center;
}

.logo-image-banner {
  display: block;
  width: min(92%, 1020px);
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  transform: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 30px rgba(113, 88, 44, 0.18);
}

.logo-fallback {
  display: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
}

.nav-embedded {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: min(94%, 820px);
  z-index: 2;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.nav-embedded a {
  background: rgba(255, 247, 232, 0.72);
  border: 1px solid rgba(182, 138, 58, 0.34);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

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

.signature-ad-wrap {
  padding-bottom: 26px;
}

.signature-ad {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  border-radius: 28px;
  border: 1px solid rgba(185, 146, 74, 0.42);
  padding: clamp(24px, 4.4vw, 42px);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(252, 247, 236, 0.9) 52%, rgba(241, 226, 193, 0.62)),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 82% 86%, rgba(249, 228, 181, 0.34), rgba(249, 228, 181, 0) 46%);
  box-shadow:
    0 16px 38px rgba(121, 92, 43, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.signature-ad::before,
.signature-ad::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  height: 180px;
  pointer-events: none;
  z-index: -1;
}

.signature-ad::before {
  top: -128px;
  background:
    radial-gradient(120% 100% at 50% 100%, transparent 63%, rgba(189, 143, 60, 0.64) 64%, rgba(255, 223, 156, 0.9) 65%, transparent 66%),
    radial-gradient(120% 100% at 50% 108%, transparent 69%, rgba(177, 132, 49, 0.42) 70%, transparent 71%);
}

.signature-ad::after {
  bottom: -132px;
  background:
    radial-gradient(120% 100% at 50% 0%, transparent 63%, rgba(189, 143, 60, 0.64) 64%, rgba(255, 223, 156, 0.9) 65%, transparent 66%),
    radial-gradient(120% 100% at 50% -8%, transparent 69%, rgba(177, 132, 49, 0.42) 70%, transparent 71%);
}

.ad-topline {
  display: inline-block;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.76rem;
  color: #8a6427;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(182, 138, 58, 0.32);
  background: rgba(255, 252, 245, 0.82);
}

.ad-logo {
  width: min(100%, 940px);
  height: auto;
  margin: 16px auto 6px;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(130, 100, 47, 0.14);
}

.ad-copy {
  max-width: 680px;
  margin: 12px auto 0;
  font-size: clamp(1rem, 1.9vw, 1.22rem);
  color: #4a3b2b;
}

.ad-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.kicker {
  font-weight: 700;
  color: var(--brand-2);
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0;
}

.hero-copy {
  max-width: 650px;
  font-size: 1.1rem;
}

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

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(98, 74, 34, 0.2);
}

.btn-sm {
  padding: 8px 14px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.section {
  padding: 46px 0;
}

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

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(20, 30, 40, 0.05);
}

.price .cost {
  font-size: 2rem;
  margin: 6px 0;
  font-weight: 800;
}

.price .plan {
  margin: 0;
  font-weight: 700;
}

.featured {
  border: 2px solid var(--brand-2);
  transform: translateY(-6px);
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.quote {
  background: linear-gradient(135deg, var(--soft), #ffffff);
}

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

.addon-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  padding: 14px;
  margin: 0;
}

.addon-group legend {
  font-weight: 800;
  padding: 0 8px;
}

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

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(182, 138, 58, 0.3);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.88);
  font-weight: 600;
}

.check-item input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-2);
}

.estimate-card {
  border: 1px solid rgba(182, 138, 58, 0.4);
  border-radius: 14px;
  padding: 14px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 233, 0.9)),
    rgba(255, 255, 255, 0.9);
}

.estimate-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

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

.estimate-grid p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(182, 138, 58, 0.28);
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 4px;
}

.estimate-grid span {
  font-size: 0.84rem;
  color: #6f5a35;
}

.estimate-grid strong {
  font-size: 1.16rem;
}

.estimate-total {
  border-color: rgba(143, 106, 47, 0.45);
  background: rgba(239, 224, 192, 0.44);
}

.estimate-items {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.estimate-items li {
  border: 1px solid rgba(182, 138, 58, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.estimate-items .estimate-item-empty {
  justify-content: flex-start;
  color: #725f40;
}

.estimate-summary {
  margin: 10px 2px 0;
  font-size: 0.92rem;
  color: #5f4a29;
}

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

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  background: #fff;
}

.status {
  min-height: 1.2rem;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding: 20px 0 30px;
}

.admin-access {
  margin-top: 16px;
}

.admin-filters {
  margin-bottom: 12px;
  display: grid;
  gap: 12px;
}

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

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 10px;
  vertical-align: top;
  font-size: 0.92rem;
}

.admin-table th {
  background: #f7f5f0;
  position: sticky;
  top: 0;
}

.status-select {
  min-width: 140px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 500ms ease-out forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 80ms;
}
.reveal:nth-of-type(3) {
  animation-delay: 120ms;
}
.reveal:nth-of-type(4) {
  animation-delay: 160ms;
}
.reveal:nth-of-type(5) {
  animation-delay: 200ms;
}
.reveal:nth-of-type(6) {
  animation-delay: 240ms;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .cards-3,
  .split,
  .form-grid,
  .filters-grid,
  .addon-grid {
    grid-template-columns: 1fr;
  }

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

  .featured {
    transform: none;
  }

  .logo {
    min-height: 54px;
  }

  .logo-image {
    height: 54px;
    max-width: min(94vw, 420px);
  }

  .logo-image-banner {
    width: 98%;
    height: auto;
    transform: none;
    border-radius: 0 0 10px 10px;
  }

  .nav-embedded {
    bottom: 4px;
    gap: 8px 10px;
    width: 96%;
  }

  .nav-embedded a {
    padding: 6px 10px;
    font-size: 0.88rem;
  }

  .nav {
    gap: 10px 14px;
  }

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

  .signature-ad {
    padding: 20px 16px 24px;
    border-radius: 20px;
  }

  .ad-topline {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .ad-copy {
    font-size: 0.98rem;
  }
}
