/* Hub Streamhub — contemporary structured theme */
:root {
  --ink: #1a2e38;
  --ink-soft: #3d5560;
  --surface: #f7f4ef;
  --surface-alt: #ede8df;
  --card: #ffffff;
  --accent: #1a3a4a;
  --gold: #c9a962;
  --gold-light: #e8dcc8;
  --bull: #2d6a4f;
  --bear: #9b2335;
  --border: #d4cdc2;
  --shadow: 0 4px 24px rgba(26, 46, 56, 0.08);
  --radius: 8px;
  --radius-lg: 16px;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max-width: 1160px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }

p + p { margin-top: 1rem; }

main { flex: 1; }

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  height: var(--header-h);
}

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

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

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

.main-nav a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: var(--gold-light) !important;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: #234555;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s;
}

/* Footer */
.site-footer {
  background: var(--accent);
  color: var(--gold-light);
  margin-top: 4rem;
  padding: 3rem 1rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(232, 220, 200, 0.2);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-tagline { opacity: 0.85; font-size: 0.95rem; }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 0.5rem; }

.footer-col a {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover { color: var(--gold); }

.footer-contact address { font-style: normal; font-size: 0.95rem; }
.footer-contact p + p { margin-top: 0.4rem; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-legal ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

.footer-legal a { color: var(--gold-light); text-decoration: none; }
.footer-legal a:hover { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent);
  color: var(--gold-light);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #234555;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--gold-light);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: #b8944f;
  border-color: #b8944f;
}

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

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

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 1.25rem 0 2rem;
  max-width: 34ch;
}

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

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

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

.hero-accent-block {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: var(--gold);
  border-radius: var(--radius);
  opacity: 0.3;
  z-index: -1;
}

.hero-compact {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--surface-alt) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-compact h1 { max-width: 18ch; margin-inline: auto; }
.hero-compact .hero-lead { margin-inline: auto; max-width: 50ch; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--surface-alt); }

.section-header {
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.section-header p {
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

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

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

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(26, 46, 56, 0.12);
}

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

.card-body { padding: 1.5rem; }

.card-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card-body h3 a:hover { color: var(--accent); }

.card-meta {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
  margin-top: 1rem;
}

/* Feature strip */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2.5rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.strip-item h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.strip-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

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

.testimonial {
  background: var(--card);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.testimonial-role { font-size: 0.85rem; opacity: 0.8; }

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

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

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

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

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

.form-error {
  color: var(--bear);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

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

.form-success {
  background: #e8f5ee;
  border: 1px solid var(--bull);
  color: var(--bull);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: none;
}

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

.form-fail {
  background: #fce8eb;
  border: 1px solid var(--bear);
  color: var(--bear);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: none;
}

.form-fail.visible { display: block; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  color: var(--gold-light);
  padding: 1.25rem;
  z-index: 1000;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

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

.cookie-inner p { font-size: 0.95rem; max-width: 680px; }
.cookie-inner a { color: var(--gold); }

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

.cookie-actions button {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: var(--font-body);
}

.cookie-accept {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.cookie-reject {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* Page layouts */
.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { margin-bottom: 0.75rem; }

.breadcrumb {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.content-narrow { max-width: 720px; }
.content-wide { max-width: 880px; }

.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.5rem; }
.prose li + li { margin-top: 0.4rem; }

/* Pricing table */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.rate-table th {
  background: var(--accent);
  color: var(--gold-light);
  font-weight: 600;
}

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

/* Pattern guide */
.pattern-list {
  display: grid;
  gap: 1.5rem;
}

.pattern-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  align-items: start;
}

.pattern-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0.75rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
}

.candle {
  width: 12px;
  border-radius: 2px;
  position: relative;
}

.candle-bull { background: var(--bull); }
.candle-bear { background: var(--bear); }

.candle-wick {
  width: 2px;
  background: currentColor;
  margin-inline: auto;
}

.pattern-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.tag-reversal { background: #fde8ea; color: var(--bear); }
.tag-continuation { background: #e8f0fd; color: #1a4a7a; }
.tag-indecision { background: #fef3dc; color: #7a5a1a; }

/* Service detail */
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.detail-sidebar {
  background: var(--card);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.detail-sidebar dl { margin-top: 1rem; }
.detail-sidebar dt {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-top: 1rem;
}

.detail-sidebar dd { margin-top: 0.25rem; }

.detail-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

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

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

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

/* Blog */
.blog-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

/* Script error */
.script-error {
  background: #fce8eb;
  color: var(--bear);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin: 0.5rem 0;
  display: none;
}

.script-error.visible { display: block; }

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info {
  background: var(--surface-alt);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.contact-info address {
  font-style: normal;
  margin-top: 1.5rem;
  line-height: 1.8;
}

/* Legal pages */
.legal-content {
  max-width: 780px;
  padding: 3rem 0 4rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
}

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

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

.cookies-table th { background: var(--surface-alt); }

/* Case study */
.case-study {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.case-study h3 { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .hero-split,
  .detail-grid,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .strip { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: 0.85rem 0.5rem; }

  .pattern-item { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 2.5rem 0 2rem; }
  .section { padding: 2.5rem 0; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
}
