/* Utility Poplar Hub — Editorial market workshop theme */

:root {
  --bg: #f5f3ef;
  --text: #2a2a2a;
  --text-muted: #5c5c5c;
  --pine: #2d4a3e;
  --pine-dark: #1e3329;
  --copper: #c17f59;
  --copper-light: #d4a088;
  --border: #d8d4cc;
  --grid-line: rgba(42, 42, 42, 0.08);
  --white: #ffffff;
  --error: #8b3a3a;
  --success: #2d4a3e;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --max-width: 72rem;
  --section-gap: 5rem;
  --radius: 2px;
  --shadow: 0 2px 8px rgba(42, 42, 42, 0.06);
  --transition: 0.25s ease;
}

*,
*::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(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

a {
  color: var(--pine);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

/* Layout utilities */
.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-gap);
}

.section--tight {
  padding-block: 3rem;
}

.section-title {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--copper);
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo:hover {
  color: var(--pine);
}

.logo span {
  color: var(--pine);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
}

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

.site-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--text-muted);
  position: relative;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--pine);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--copper);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border-radius: var(--radius);
}

.btn--primary {
  background: var(--pine);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--pine-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.btn--secondary:hover {
  background: var(--text);
  color: var(--white);
}

.btn--copper {
  background: var(--copper);
  color: var(--white);
}

.btn--copper:hover {
  background: var(--copper-light);
  color: var(--white);
  transform: translateY(-1px);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card__image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.card__body {
  padding: 1.25rem;
}

.card__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.card__title a {
  text-decoration: none;
  color: var(--text);
}

.card__title a:hover {
  color: var(--pine);
}

/* Hero variants */
.hero {
  padding-block: 4rem 3rem;
}

.hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--copper);
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: 1.1875rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__image {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero--banner {
  text-align: center;
  padding-block: 5rem 4rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.hero--banner .hero__lead {
  margin-inline: auto;
}

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

/* Page header */
.page-header {
  padding-block: 3rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  margin-bottom: 2rem;
}

.page-header h1 {
  margin: 0 0 0.75rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0;
}

/* Content prose */
.prose {
  max-width: 42rem;
}

.prose--wide {
  max-width: none;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

/* Two column layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

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

.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.sidebar-box h3 {
  margin-top: 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

/* Pricing table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
}

.price-table th,
.price-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  background: rgba(45, 74, 62, 0.05);
}

.price-table tr:last-child td {
  border-bottom: none;
}

/* Reviews */
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.review-card__service {
  font-size: 0.8125rem;
  color: var(--copper);
  margin-bottom: 0.5rem;
}

.review-card__author {
  font-weight: 500;
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.story-block {
  background: var(--white);
  border-left: 3px solid var(--pine);
  padding: 2rem;
  margin-block: 2rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}

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

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: var(--error);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  display: none;
}

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

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: var(--error);
}

.form-success {
  background: rgba(45, 74, 62, 0.08);
  border: 1px solid var(--pine);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: none;
}

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

.form-error-banner {
  background: rgba(139, 58, 58, 0.08);
  border: 1px solid var(--error);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: none;
  margin-bottom: 1rem;
}

.form-error-banner.is-visible {
  display: block;
}

/* Contact info */
.contact-block {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.contact-block h3 {
  margin-top: 0;
}

.contact-block address {
  font-style: normal;
  line-height: 1.8;
}

/* Schedule table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.9375rem;
}

.schedule-table th,
.schedule-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.schedule-table th {
  font-family: var(--font-heading);
  background: rgba(45, 74, 62, 0.05);
}

.schedule-table .status-open {
  color: var(--pine);
  font-weight: 500;
}

.schedule-table .status-limited {
  color: var(--copper);
  font-weight: 500;
}

.schedule-table .status-full {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
  margin-top: var(--section-gap);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-grid a:hover {
  color: var(--pine);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: 0 -4px 16px rgba(42, 42, 42, 0.08);
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-width);
  margin-inline: auto;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9375rem;
  flex: 1;
  min-width: 200px;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-banner .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* 404 */
.error-page {
  text-align: center;
  padding-block: 6rem;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--pine);
  margin-bottom: 0.5rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal pages */
.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

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

.cookies-table th,
.cookies-table td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
}

.cookies-table th {
  background: rgba(45, 74, 62, 0.05);
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.team-member img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.team-member h3 {
  margin: 0 0 0.25rem;
}

.team-member p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* Featured badge */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(193, 127, 89, 0.15);
  color: var(--copper);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
}
