/* Paper Eclipse — BrookHub Hospitality Pulse */

:root {
  --parchment: #e8dfd0;
  --parchment-deep: #d9cdb8;
  --beige: #cbbba3;
  --ink: #1a1714;
  --ink-soft: #3a342e;
  --terracotta: #c4785a;
  --terracotta-deep: #a35d42;
  --indigo: #4a5568;
  --indigo-mute: #6b7385;
  --paper-white: #f4efe6;
  --shadow: rgba(26, 23, 20, 0.12);
  --radius: 2px;
  --font-display: "Literata", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --measure: 38rem;
  --wide: 68rem;
  --header-h: 4.25rem;
  --ease-panel: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse 120% 80% at 10% -10%, rgba(196, 120, 90, 0.08), transparent 50%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(74, 85, 104, 0.07), transparent 45%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  min-height: 100vh;
}

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

a {
  color: var(--terracotta-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--parchment);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(232, 223, 208, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 23, 20, 0.08);
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 38%, var(--parchment) 0 38%, transparent 39%),
    radial-gradient(circle at 50% 50%, var(--ink) 0 55%, transparent 56%);
  box-shadow: inset 0 0 0 1px rgba(196, 120, 90, 0.45);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 14rem;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(26, 23, 20, 0.2);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle-bars {
  width: 1rem;
  height: 0.7rem;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  position: relative;
}

.nav-toggle-bars::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1.5px solid var(--ink);
  transform: translateY(-50%);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper-white);
    border-bottom: 1px solid rgba(26, 23, 20, 0.1);
    padding: 0.75rem var(--space) 1.25rem;
    display: none;
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0.85rem;
  }
}

/* Layout helpers */

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--space);
}

.wrap-narrow {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--space);
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo-mute);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.paper-panel {
  background: linear-gradient(145deg, var(--paper-white), var(--parchment-deep));
  border: 1px solid rgba(26, 23, 20, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 12px 32px var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  position: relative;
}

.paper-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(74, 85, 104, 0.04) 50%, transparent 60%);
  pointer-events: none;
}

/* Buttons — paper panel slide */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.35s var(--ease-panel), transform 0.35s var(--ease-panel);
}

.btn-panel {
  color: var(--paper-white);
  background: var(--ink);
  isolation: isolate;
}

.btn-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--terracotta-deep);
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease-panel);
  z-index: -1;
}

.btn-panel:hover {
  color: var(--paper-white);
  text-decoration: none;
}

.btn-panel:hover::before {
  transform: translateX(0);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(26, 23, 20, 0.28);
}

.btn-ghost:hover {
  background: rgba(26, 23, 20, 0.05);
  text-decoration: none;
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero home — full-bleed */

.hero-home {
  position: relative;
  min-height: min(92vh, 48rem);
  display: grid;
  align-items: end;
  color: var(--paper-white);
  overflow: hidden;
}

.hero-home-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: eclipse-drift 28s ease-in-out infinite alternate;
}

.hero-home-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(26, 23, 20, 0.82) 0%, rgba(26, 23, 20, 0.35) 45%, rgba(26, 23, 20, 0.25) 100%),
    radial-gradient(ellipse 50% 40% at 70% 20%, rgba(196, 120, 90, 0.25), transparent 60%);
  z-index: 1;
}

.hero-home-content {
  position: relative;
  z-index: 2;
  max-width: var(--wide);
  margin: 0 auto;
  width: 100%;
  padding: clamp(3rem, 10vw, 6rem) var(--space) clamp(2.5rem, 6vw, 4rem);
}

.hero-home .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  max-width: 14ch;
  animation: fold-in 0.9s var(--ease-panel) both;
}

.hero-home .hero-line {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  max-width: 28rem;
  margin: 0 0 0.5rem;
  color: var(--parchment);
  font-family: var(--font-display);
  font-weight: 400;
  animation: fold-in 0.9s 0.12s var(--ease-panel) both;
}

.hero-home .hero-support {
  max-width: 28rem;
  color: rgba(244, 239, 230, 0.85);
  margin-bottom: 0;
  animation: fold-in 0.9s 0.22s var(--ease-panel) both;
}

.hero-home .btn-row {
  animation: fold-in 0.9s 0.32s var(--ease-panel) both;
}

.hero-home .btn-panel {
  background: var(--terracotta-deep);
}

.hero-home .btn-panel::before {
  background: var(--ink);
}

.hero-home .btn-ghost {
  border-color: rgba(244, 239, 230, 0.45);
  color: var(--paper-white);
}

.hero-home .btn-ghost:hover {
  background: rgba(244, 239, 230, 0.1);
  color: var(--paper-white);
}

@keyframes fold-in {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes eclipse-drift {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, 1%); }
}

/* Page heroes (inner) */

.page-hero {
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--space) 2rem;
  max-width: var(--wide);
  margin: 0 auto;
}

.page-hero.with-media {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 800px) {
  .page-hero.with-media {
    grid-template-columns: 1fr 1fr;
  }
}

.page-hero-media {
  overflow: hidden;
  min-height: 14rem;
  box-shadow: 0 16px 40px var(--shadow);
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  filter: saturate(0.9);
}

/* Offer list */

.offer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.offer-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.4s var(--ease-panel);
}

.offer-item:hover {
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.offer-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: contrast(0.98) saturate(0.88);
}

.offer-item h3 {
  margin-top: 0.25rem;
}

.offer-meta {
  font-size: 0.9rem;
  color: var(--indigo-mute);
  margin: 0;
}

/* Split band */

.band {
  border-top: 1px solid rgba(26, 23, 20, 0.08);
  border-bottom: 1px solid rgba(26, 23, 20, 0.08);
  background: rgba(244, 239, 230, 0.45);
}

.band-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .band-split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.quote-list {
  display: grid;
  gap: 1.75rem;
}

.quote-block {
  border-left: 2px solid var(--terracotta);
  padding-left: 1.25rem;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
}

.quote-meta {
  font-size: 0.9rem;
  color: var(--indigo-mute);
  font-style: normal;
  font-family: var(--font-body);
}

/* Story / case */

.story {
  margin-bottom: 2.5rem;
}

.story h3 {
  margin-bottom: 0.35rem;
}

/* Pricing */

.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.98rem;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(26, 23, 20, 0.12);
  vertical-align: top;
}

.rate-table th {
  font-weight: 600;
  color: var(--indigo);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.factor-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.factor-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(26, 23, 20, 0.08);
  padding-left: 1.25rem;
  position: relative;
}

.factor-list li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  background: var(--terracotta);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 1.1rem;
}

/* Forms */

.form-stack {
  display: grid;
  gap: 1.15rem;
  max-width: 32rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(26, 23, 20, 0.22);
  background: var(--paper-white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  border-radius: var(--radius);
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
}

.field-error {
  color: var(--terracotta-deep);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
  display: none;
}

.form-field.is-invalid .field-error {
  display: block;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: var(--terracotta-deep);
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: rgba(74, 85, 104, 0.12);
  border-left: 3px solid var(--indigo);
}

.form-status.is-error {
  background: rgba(196, 120, 90, 0.15);
  border-left: 3px solid var(--terracotta-deep);
}

.contact-aside {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 23, 20, 0.1);
}

.contact-aside p {
  margin-bottom: 0.4rem;
}

/* Blog */

.post-list {
  display: grid;
  gap: 2rem;
}

.post-teaser {
  display: grid;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 700px) {
  .post-teaser {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.post-teaser:hover {
  color: inherit;
  text-decoration: none;
}

.post-teaser img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.post-date {
  font-size: 0.85rem;
  color: var(--indigo-mute);
  margin: 0 0 0.35rem;
}

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

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.detail-meta {
  display: grid;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(26, 23, 20, 0.1);
  border-bottom: 1px solid rgba(26, 23, 20, 0.1);
  font-size: 0.95rem;
}

.detail-meta dt {
  font-weight: 600;
  color: var(--indigo);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-meta dd {
  margin: 0 0 0.75rem;
}

/* Process steps */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.steps li {
  position: relative;
  padding: 0 0 1.5rem 3rem;
  border-left: 1px solid rgba(26, 23, 20, 0.15);
  margin-left: 0.75rem;
}

.steps li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -0.85rem;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--ink);
  color: var(--parchment);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Legal */

.legal h2 {
  margin-top: 2rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
  display: block;
  overflow-x: auto;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid rgba(26, 23, 20, 0.12);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  background: rgba(26, 23, 20, 0.05);
}

/* Footer */

.site-footer {
  margin-top: 3rem;
  background: var(--ink);
  color: var(--parchment);
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--space);
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .footer-legal {
    grid-column: 1 / -1;
  }
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.footer-tag {
  color: var(--beige);
  margin: 0;
}

.footer-contact a,
.footer-nav a {
  color: var(--parchment);
  text-decoration: none;
}

.footer-contact a:hover,
.footer-nav a:hover {
  color: var(--terracotta);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  columns: 2;
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--beige);
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(232, 223, 208, 0.15);
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-inner {
  pointer-events: auto;
  max-width: 36rem;
  margin: 0 auto;
  background: var(--paper-white);
  border: 1px solid rgba(26, 23, 20, 0.15);
  box-shadow: 0 -8px 40px var(--shadow);
  padding: 1.25rem 1.35rem;
}

.cookie-inner h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.cookie-inner p {
  font-size: 0.92rem;
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* 404 */

.error-page {
  text-align: center;
  padding: 6rem var(--space);
}

.error-page h1 {
  font-size: 4rem;
  color: var(--indigo-mute);
}

/* Motion preference */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-home-media img {
    animation: none;
  }
}
