:root {
  --bg: #c96a4a;
  --bg-soft: #b85d40;
  --panel: #7b3f2c;
  --panel-strong: #8d4a34;
  --panel-alt: #a45a40;
  --border: rgba(255, 236, 226, 0.22);
  --text: #ffdbd0;
  --muted: #f5d5c8;
  --primary: #ffb59d;
  --primary-deep: #d87655;
  --accent: #f4ba97;
  --shadow: 0 24px 80px rgba(92, 34, 18, 0.22);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 236, 226, 0.18), transparent 28%),
    radial-gradient(circle at right 20%, rgba(255, 181, 157, 0.22), transparent 24%),
    linear-gradient(180deg, #cf7454 0%, #c96a4a 45%, #b85d40 100%);
  min-height: 100vh;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.page-shell {
  overflow: hidden;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(201, 106, 74, 0.9);
  border-bottom: 1px solid rgba(255, 244, 238, 0.16);
}

.site-header__bar,
.site-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #390b00;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(216, 118, 85, 0.25);
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name,
.section-title,
.hero__title,
.auth-card__title,
.dashboard-card__title,
.metric__value {
  font-family: "Playfair Display", serif;
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand__tag {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

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

.nav a {
  color: rgba(255, 244, 238, 0.84);
  font-size: 0.87rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #390b00;
  box-shadow: 0 18px 40px rgba(216, 118, 85, 0.28);
}

.btn-secondary {
  background: rgba(255, 236, 226, 0.14);
  color: #fff3ee;
  border: 1px solid rgba(255, 236, 226, 0.28);
}

.btn-ghost {
  background: rgba(255, 236, 226, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero {
  padding: 72px 0 48px;
}

.hero--split,
.grid-2,
.contact-layout,
.dashboard-layout,
.auth-layout {
  display: grid;
  gap: 28px;
}

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

.hero__eyebrow,
.section-eyebrow,
.metric__label,
.chip {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
}

.hero__eyebrow,
.section-eyebrow,
.chip {
  color: var(--primary);
}

.hero__content {
  align-self: center;
  padding: 32px 0;
}

.hero__title {
  margin: 16px 0 18px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
}

.hero__text,
.section-copy,
.card-copy,
.muted {
  color: var(--muted);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero__panel,
.card,
.auth-card,
.dashboard-card,
.contact-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(157, 86, 61, 0.72), rgba(121, 63, 44, 0.88));
  box-shadow: var(--shadow);
}

.hero__panel {
  min-height: 600px;
  overflow: hidden;
}

.hero__panel img,
.media-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(201, 106, 74, 0.1), rgba(92, 34, 18, 0.52));
}

.hero__floating {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  border-radius: 18px;
  background: rgba(140, 70, 49, 0.68);
  border: 1px solid rgba(255, 244, 238, 0.16);
  padding: 18px;
}

.metric__value {
  font-size: 2rem;
  margin-bottom: 6px;
}

.metric__label {
  color: var(--muted);
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.cards-3,
.cards-4,
.gallery-grid,
.stats-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.gallery-item {
  overflow: hidden;
  min-height: 280px;
}

.gallery-item img {
  height: 100%;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.span-5 {
  grid-column: span 5;
}

.span-7 {
  grid-column: span 7;
}

.span-4 {
  grid-column: span 4;
}

.card {
  padding: 28px;
}

.card h3,
.dashboard-card__title,
.auth-card__title {
  margin: 18px 0 10px;
  font-size: 1.5rem;
}

.icon-pill {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 236, 226, 0.12);
  color: var(--primary);
  border: 1px solid rgba(255, 236, 226, 0.22);
}

.media-cover {
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

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

.contact-layout {
  grid-template-columns: 1.3fr 0.9fr;
}

.contact-card,
.dashboard-card,
.auth-card {
  padding: 30px;
}

.auth-layout {
  grid-template-columns: 1.1fr 0.9fr;
  min-height: calc(100vh - 96px);
  align-items: center;
}

.form-grid {
  display: grid;
  gap: 18px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 244, 238, 0.3);
  color: var(--text);
  outline: none;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--primary);
}

.field ::placeholder {
  color: rgba(219, 193, 185, 0.68);
}

.inline-note {
  color: var(--muted);
  font-size: 0.94rem;
}

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

.list li {
  display: flex;
  align-items: start;
  gap: 12px;
  color: var(--muted);
}

.list strong {
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}

.dashboard-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  padding: 34px 0 80px;
}

.dashboard-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.dashboard-nav {
  display: grid;
  gap: 10px;
}

.dashboard-nav a,
.dashboard-nav button {
  width: 100%;
  justify-content: flex-start;
}

.dashboard-main {
  display: grid;
  gap: 22px;
}

.stats-grid .dashboard-card {
  padding: 24px;
}

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

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

.table-like {
  display: grid;
  gap: 12px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 244, 238, 0.08);
}

.row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 236, 226, 0.22);
  background: rgba(255, 236, 226, 0.12);
  color: #fff4ef;
}

.site-footer {
  border-top: 1px solid rgba(255, 244, 238, 0.14);
  background: rgba(160, 86, 62, 0.78);
  margin-top: 20px;
}

.site-footer__bar {
  padding: 28px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.empty-state {
  color: var(--muted);
  padding: 8px 0 0;
}

.flash {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 236, 226, 0.24);
  background: rgba(255, 236, 226, 0.14);
}

.error-text {
  color: #ffb4ab;
  font-size: 0.92rem;
}

.error-box {
  border: 1px solid rgba(255, 180, 171, 0.3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero--split,
  .grid-2,
  .contact-layout,
  .auth-layout,
  .dashboard-layout,
  .dashboard-grid-2,
  .form-grid--2 {
    grid-template-columns: 1fr;
  }

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

  .dashboard-sidebar {
    position: static;
  }

  .hero__panel {
    min-height: 480px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 24px), var(--max));
  }

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

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    background: rgba(183, 94, 66, 0.96);
    border: 1px solid var(--border);
    border-radius: 20px;
  }

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

  .header-actions .btn {
    display: none;
  }

  .hero__floating,
  .gallery-grid,
  .cards-3,
  .cards-4,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .span-4,
  .span-5,
  .span-7 {
    grid-column: span 12;
  }

  .section-head,
  .site-header__bar,
  .site-footer__bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 40px;
  }

  .hero__title {
    font-size: 2.7rem;
  }
}
