/* Pulse FieldBase — Layer C: structured creativity */

:root {
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-ink: #1a1f2e;
  --color-ink-muted: #4a5568;
  --color-accent: #c45c3e;
  --color-accent-hover: #a84a30;
  --color-secondary: #2d6a6a;
  --color-border: #e2ddd6;
  --color-highlight: #f4ede4;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(26, 31, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 31, 46, 0.1);
  --max-width: 1140px;
  --header-height: 72px;
}

*, *::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(--color-ink);
  background: var(--color-bg);
}

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

a { color: var(--color-secondary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0;
}

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

p { margin: 0 0 1rem; }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-desktop { display: flex; gap: 1.75rem; align-items: center; }
.nav-desktop a {
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-desktop a:hover { color: var(--color-accent); }

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

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  gap: 0.75rem;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  color: var(--color-ink);
  text-decoration: none;
  padding: 0.5rem 0;
  font-weight: 500;
}

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

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: #c8cdd8;
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand { font-family: var(--font-display); font-size: 1.25rem; color: #fff; margin-bottom: 0.75rem; }
.footer-grid h4 { color: #fff; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: #c8cdd8; text-decoration: none; font-size: 0.9375rem; }
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); color: #fff; transform: translateY(-1px); }

.btn-secondary { background: transparent; color: var(--color-ink); border: 1.5px solid var(--color-border); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn-ghost { background: rgba(255,255,255,0.15); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* Hero variants */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

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

.hero-badge {
  display: inline-block;
  background: var(--color-highlight);
  color: var(--color-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.hero-lead { font-size: 1.2rem; color: var(--color-ink-muted); max-width: 34ch; margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.hero-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(196, 92, 62, 0.25);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.hero-compact {
  background: linear-gradient(135deg, var(--color-ink) 0%, #2a3548 100%);
  color: #fff;
  padding: 3.5rem 0;
}

.hero-compact h1 { color: #fff; }
.hero-compact .hero-lead { color: rgba(255,255,255,0.78); }

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

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--color-highlight); }
.section-header { margin-bottom: 2.5rem; max-width: 620px; }
.section-header p { color: var(--color-ink-muted); margin-bottom: 0; }

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

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

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

.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; }
.card-body p { color: var(--color-ink-muted); font-size: 0.9375rem; margin-bottom: 1rem; }
.card-link { font-weight: 600; font-size: 0.9375rem; text-decoration: none; color: var(--color-accent); }

/* Feature strip */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-item {
  padding: 1.75rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
}

.feature-item h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.feature-item p { font-size: 0.9375rem; color: var(--color-ink-muted); margin: 0; }

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

/* Testimonials */
.testimonial {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.5;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--color-ink-muted);
}

.testimonial-reservation {
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-border);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}

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

.form-error {
  color: #b91c1c;
  font-size: 0.8125rem;
  margin-top: 0.35rem;
  display: none;
}
.form-error.visible { display: block; }

.form-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  display: none;
}
.form-success.visible { display: block; }

.form-failure {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  display: none;
}
.form-failure.visible { display: block; }

.script-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin: 1rem 0;
  display: none;
}
.script-error.visible { display: block; }

/* Page layouts */
.page-content { padding: 2.5rem 0 3rem; }
.page-content.narrow { max-width: 720px; margin-inline: auto; }

.prose h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.35rem; }

/* Pricing table */
.pricing-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.pricing-block h3 { margin-bottom: 0.25rem; }
.pricing-amount {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-accent);
  margin: 0.5rem 0 1rem;
}

.pricing-note { font-size: 0.875rem; color: var(--color-ink-muted); }

/* Glossary */
.glossary-term {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.glossary-term dt {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.glossary-term dd {
  margin: 0;
  color: var(--color-ink-muted);
}

.glossary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.glossary-nav a {
  padding: 0.35rem 0.75rem;
  background: var(--color-highlight);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink);
}

/* Blog */
.article-meta {
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  margin-bottom: 1.5rem;
}

.article-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
}

.article-cover img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }

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

.error-code {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-ink);
  color: #c8cdd8;
  padding: 1.25rem;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  display: none;
}

.cookie-banner.visible { display: block; }

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

.cookie-inner p { margin: 0; font-size: 0.9375rem; flex: 1; min-width: 240px; }
.cookie-inner a { color: #fff; }

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

.cookie-actions .btn { padding: 0.55rem 1.15rem; font-size: 0.875rem; }

/* Legal pages */
.legal-content h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9375rem;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--color-border);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.legal-content th { background: var(--color-highlight); }

/* Service detail */
.service-hero-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
}

.service-hero-img img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}

.detail-sidebar {
  background: var(--color-highlight);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.detail-sidebar h3 { margin-bottom: 1rem; font-size: 1rem; }
.detail-sidebar ul { padding-left: 1.25rem; margin: 0 0 1.5rem; font-size: 0.9375rem; }
.detail-sidebar li { margin-bottom: 0.4rem; }

@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
}

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

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

.team-member h3 { margin-bottom: 0.25rem; font-size: 1.0625rem; }
.team-member p { font-size: 0.875rem; color: var(--color-ink-muted); margin: 0; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeUp 0.6s ease forwards; }
