:root {
  --bg: #efe6d8;
  --bg-strong: #f7f1e8;
  --surface: rgba(255, 252, 246, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --ink: #1f2b24;
  --muted: #5a675f;
  --accent: #245c45;
  --accent-strong: #163e30;
  --accent-soft: rgba(36, 92, 69, 0.12);
  --gold: #b6874c;
  --line: rgba(31, 43, 36, 0.1);
  --line-strong: rgba(31, 43, 36, 0.18);
  --success: #226f54;
  --error: #943d2b;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 24px 80px rgba(32, 42, 36, 0.12);
  --shadow-sm: 0 16px 30px rgba(32, 42, 36, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(182, 135, 76, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(36, 92, 69, 0.18), transparent 28%),
    linear-gradient(180deg, #f6efe6 0%, #efe6d8 48%, #e7dccb 100%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent 40%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4), transparent 24%);
  opacity: 0.9;
}

.site-shell,
.admin-shell {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header,
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(246, 239, 230, 0.72);
  border-bottom: 1px solid rgba(31, 43, 36, 0.08);
}

.header-inner,
.admin-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark__token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  box-shadow: var(--shadow-sm);
}

.brand-mark__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.brand-mark__text strong,
h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  letter-spacing: -0.03em;
}

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

.brand-mark__text small {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(31, 43, 36, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.site-nav a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(36, 92, 69, 0.1);
}

.site-nav a:hover {
  transform: translateY(-1px);
}

.header-actions,
.admin-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 18px 30px rgba(36, 92, 69, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(36, 92, 69, 0.2);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-color: rgba(31, 43, 36, 0.12);
  box-shadow: none;
}

.button--secondary {
  background: rgba(36, 92, 69, 0.08);
  color: var(--accent-strong);
  border-color: rgba(36, 92, 69, 0.18);
  box-shadow: none;
}

.site-main,
.admin-main {
  padding: 2.25rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-card,
.panel,
.info-card,
.reference-card,
.admin-section,
.auth-card,
.contact-card,
.map-card,
.footer-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: 2.3rem;
}

.hero-card--accent {
  position: relative;
  overflow: hidden;
  color: #eef7f1;
  background:
    radial-gradient(circle at top right, rgba(197, 146, 87, 0.28), transparent 22%),
    linear-gradient(150deg, #173d2f 0%, #245c45 58%, #365f49 100%);
}

.hero-card--accent .eyebrow,
.hero-card--accent p,
.hero-card--accent .hero-list li {
  color: rgba(238, 247, 241, 0.82);
}

.eyebrow,
.footer-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before,
.footer-kicker::before,
.section-kicker::before {
  content: "";
  width: 1.65rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.7rem);
  line-height: 0.96;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.stat-grid {
  display: grid;
  gap: 1rem;
}

.stat-card {
  padding: 1.4rem 1.3rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.8rem;
}

.stat-card span {
  color: var(--muted);
}

.hero-list,
.detail-list,
.service-list,
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.hero-list li,
.check-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

.hero-list li::before,
.check-list li::before,
.service-list li::before {
  content: "";
  flex: 0 0 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--accent));
}

.section {
  margin-top: 1.7rem;
}

.section + .section {
  margin-top: 2.2rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.info-card,
.reference-card,
.contact-card,
.map-card,
.panel {
  padding: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.service-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
}

.service-list li::before {
  position: absolute;
  left: 0;
}

.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(36, 92, 69, 0.09);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.reference-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reference-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.reference-card__summary {
  color: var(--ink);
  font-weight: 600;
}

.reference-card__actions {
  margin-top: auto;
}

.visual-card {
  display: grid;
  place-items: center;
  min-height: 100%;
  overflow: hidden;
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
}

.contact-stack {
  display: grid;
  gap: 1rem;
}

.contact-detail {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
}

.contact-detail strong {
  color: var(--ink);
}

.map-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-embed {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.6);
}

.map-embed iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

.prose p:last-child {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.3rem;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-item__body {
  padding: 1.1rem 1.3rem 1.3rem;
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1rem;
}

.footer-card {
  padding: 1.5rem;
}

.footer-card p {
  margin-bottom: 0.5rem;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.8rem 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.flash {
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

.flash--success {
  background: rgba(34, 111, 84, 0.12);
  color: var(--success);
  border-color: rgba(34, 111, 84, 0.18);
}

.flash--error {
  background: rgba(148, 61, 43, 0.12);
  color: var(--error);
  border-color: rgba(148, 61, 43, 0.18);
}

.flash--info {
  background: rgba(36, 92, 69, 0.09);
  color: var(--accent-strong);
  border-color: rgba(36, 92, 69, 0.14);
}

.admin-layout {
  display: grid;
  gap: 1rem;
}

.admin-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-section {
  padding: 1.6rem;
}

.admin-section h2 {
  margin-bottom: 0.4rem;
}

.admin-section__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field__label {
  font-size: 0.92rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(36, 92, 69, 0.45);
  box-shadow: 0 0 0 4px rgba(36, 92, 69, 0.08);
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.repeater-stack {
  display: grid;
  gap: 1rem;
}

.repeater-item {
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.repeater-item__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.danger-link {
  border: 0;
  padding: 0;
  color: var(--error);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
}

.checkbox-row input {
  width: auto;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.auth-wrap {
  min-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(560px, 100%);
  padding: 2rem;
}

.auth-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.empty-state {
  padding: 1.3rem;
  border-radius: var(--radius-md);
  background: rgba(36, 92, 69, 0.06);
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero,
  .contact-layout,
  .grid--three,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid--two,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "nav nav"
      "actions actions";
  }

  .brand-mark {
    grid-area: brand;
  }

  .nav-toggle {
    display: inline-flex;
    grid-area: toggle;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.74);
  }

  .site-nav {
    grid-area: nav;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-md);
    padding: 0.6rem;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .header-actions {
    grid-area: actions;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer-meta {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero-card,
  .panel,
  .info-card,
  .reference-card,
  .admin-section,
  .auth-card,
  .contact-card,
  .map-card,
  .footer-card {
    padding: 1.25rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero-actions,
  .actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button--ghost,
  .button--secondary {
    width: 100%;
  }
}
