/* RoastVector — Site A Design System */
:root {
  --bg-dark: #0E1A2B;
  --text-on-dark: #E8E4DC;
  --bg-light: #E8E4DC;
  --text-on-light: #0E1A2B;
  --bg-accent: #D4843A;
  --text-on-accent: #0E1A2B;
  --bg-steel: #4A5568;
  --text-on-steel: #E8E4DC;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --copper-rule: 2px solid #D4843A;
  --card-border: 1px solid #D4843A;
  --section-pad: clamp(48px, 8vw, 96px);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Surface system */
.surface-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.surface-light { background: var(--bg-light); color: var(--text-on-light); }
.surface-accent { background: var(--bg-accent); color: var(--text-on-accent); }
.surface-steel { background: var(--bg-steel); color: var(--text-on-steel); }
.surface-dark *, .surface-light *, .surface-accent *, .surface-steel * { color: inherit; }
.surface-dark a, .surface-light a, .surface-accent a, .surface-steel a {
  color: currentColor;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.btn,
button.btn {
  text-decoration: none;
}

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

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-accent);
  margin-bottom: 0.75rem;
}

.surface-accent .eyebrow,
.surface-dark .eyebrow { color: var(--bg-accent); }

.section-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-accent);
  margin-bottom: 0.5rem;
}

.copper-rule {
  border: none;
  border-top: var(--copper-rule);
  margin: 0 0 2rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header:not(.is-scrolled) {
  background: linear-gradient(180deg, rgba(14,26,43,0.94) 0%, rgba(14,26,43,0.6) 65%, transparent 100%);
}

.site-header.is-scrolled {
  background: var(--bg-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

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

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--bg-accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--bg-accent);
  background: rgba(14,26,43,0.5);
}

.site-header:not(.is-scrolled) .logo-mark {
  color: #fff;
  border-color: #fff;
  background: rgba(212,132,58,0.35);
}

.site-header:not(.is-scrolled) .logo-text {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

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

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  color: var(--text-on-dark);
  opacity: 0.9;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-toggle {
  display: none;
  background: rgba(14,26,43,0.55);
  border: 1px solid var(--bg-accent);
  color: var(--text-on-dark);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 44px;
  min-width: 44px;
}

.site-header:not(.is-scrolled) .nav-toggle {
  color: #fff;
  border-color: rgba(255,255,255,0.85);
  background: rgba(14,26,43,0.4);
}

/* Hero Pattern B */
.hero-cinematic {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  background-image:
    linear-gradient(to top, rgba(14,26,43,0.96) 0%, rgba(14,26,43,0.72) 45%, rgba(14,26,43,0.35) 100%),
    url('/images/roastvector-01-hero-industrial-roaster-floor.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-cinematic .hero-content {
  padding: clamp(48px, 8vw, 96px) clamp(1rem, 4vw, 48px);
  max-width: 640px;
  padding-top: 120px;
  width: 100%;
}

.hero-cinematic .eyebrow {
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.hero-cinematic h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-serial {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.75rem;
  max-width: 52ch;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-trust {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.88);
  margin-top: 1.5rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.hero-badge {
  position: absolute;
  top: 100px;
  right: clamp(1rem, 4vw, 32px);
  background: rgba(14,26,43,0.88);
  color: #fff;
  border: 1px solid var(--bg-accent);
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  max-width: calc(100% - 2rem);
  backdrop-filter: blur(4px);
}

.hero-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover { opacity: 0.9; }

.btn-copper {
  background: var(--bg-accent);
  color: #fff;
  border-color: var(--bg-accent);
}

.surface-accent .btn-copper {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #fff;
}

.surface-accent .btn-copper:hover {
  background: #152238;
}

.btn-outline-light {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--text-on-dark);
}

.surface-light .btn-outline-light {
  color: var(--text-on-light);
  border-color: var(--text-on-light);
}

/* Sections */
section {
  padding: var(--section-pad) 0;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

/* Charter band */
.charter-quote {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--bg-accent);
  padding-left: 1.5rem;
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-block .stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-block .stat-label {
  font-size: 0.95rem;
  font-weight: 500;
}

.surface-accent .stat-block .stat-num,
.surface-accent .stat-block .stat-label {
  color: #fff;
}

.surface-accent.cta-band,
.surface-accent .cta-band {
  color: #fff;
}

.surface-accent .cta-band h2,
.surface-accent .cta-band p {
  color: #fff;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.spec-card {
  border: var(--card-border);
  border-radius: 0;
  padding: 32px;
  background: inherit;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.spec-card:hover {
  box-shadow: 0 8px 32px rgba(14,26,43,0.12);
  border-color: var(--bg-accent);
}

.spec-card svg {
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
  stroke: var(--bg-accent);
}

.spec-card h3 { margin-top: 0.5rem; }

.card-link {
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.card-link:hover { text-decoration: underline; }

/* Comparison panel */
.comparison-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(232,228,220,0.2);
}

.comparison-table th {
  font-weight: 700;
  color: var(--bg-accent);
}

.comparison-img {
  border: var(--card-border);
  max-width: min(100%, 400px);
  width: 100%;
  margin-inline: auto;
}

.comparison-panel > * {
  min-width: 0;
}

.programme-card-img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border: var(--card-border);
}

.service-item-img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border: var(--card-border);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Programme grid */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.programme-grid .spec-card:nth-child(2) {
  transform: translateY(24px);
}

.programme-price {
  font-weight: 700;
  color: var(--bg-accent);
  font-size: 0.9rem;
  margin: 0.75rem 0;
}

/* FAQ two-column */
.faq-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
}

.faq-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* CTA band */
.cta-band {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.cta-band h2 { margin-bottom: 0.75rem; }

/* Page hero (inner pages) */
.page-hero {
  padding-top: calc(80px + var(--section-pad));
  padding-bottom: var(--section-pad);
}

.page-hero-compact {
  padding-top: calc(80px + 48px);
  padding-bottom: 48px;
}

/* About layout */
.about-hero-section {
  padding: 72px 0 0;
}

.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  min-height: 480px;
}

.about-hero-img {
  min-height: 400px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.about-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--bg-accent);
}

.about-spec-cell {
  padding: 2rem;
  background: var(--bg-dark);
}

.about-spec-cell h3 {
  font-size: 1.1rem;
  color: var(--bg-accent);
}

.team-portrait {
  border: var(--card-border);
  max-width: 320px;
}

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

.contact-img {
  border: var(--card-border);
  margin-bottom: 1.5rem;
}

.contact-details p { margin-bottom: 0.5rem; }

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

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

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

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

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

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  cursor: pointer;
}

.consent-label input { width: auto; margin-top: 0.25rem; }

.form-success {
  padding: 1rem 1.25rem;
  border: 1px solid var(--bg-accent);
  background: rgba(212,132,58,0.15);
  margin-bottom: 1.5rem;
}

/* Program / service lists */
.programme-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: var(--copper-rule);
}

.programme-detail:last-child { border-bottom: none; }

.programme-detail:nth-child(even) { direction: rtl; }
.programme-detail:nth-child(even) > * { direction: ltr; }

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-item {
  border: var(--card-border);
  padding: 32px;
}

.service-price {
  font-weight: 700;
  color: var(--bg-accent);
  margin-top: 0.75rem;
}

/* Legal prose */
.legal-prose {
  max-width: 800px;
}

.legal-prose h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.legal-prose ul, .legal-prose ol {
  margin: 0 0 1em;
  padding-left: 1.5rem;
}

.legal-meta {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

/* Disclaimer */
.disclaimer {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.6;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(232,228,220,0.15);
  margin-top: 2rem;
}

.surface-light .disclaimer {
  border-top-color: rgba(14,26,43,0.15);
}

/* Footer */
.site-footer {
  padding: var(--section-pad) 0 2rem;
}

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

.footer-brand .logo { margin-bottom: 1rem; }

.footer-slogan {
  font-style: italic;
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.75;
}

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

.footer-nav li { margin-bottom: 0.4rem; }

.footer-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-nav a:hover { opacity: 1; text-decoration: underline; }

.footer-contact {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-contact p { margin-bottom: 0.35rem; }

.hosting-note {
  font-size: 0.8rem;
  opacity: 0.65;
  margin-top: 1rem;
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 1.25rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
}

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

.cookie-text {
  flex: 1 1 300px;
  font-size: 0.9rem;
  margin: 0;
}

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

.cookie-actions .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(14,26,43,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal:not([hidden]) {
  display: flex;
}

.cookie-modal-panel {
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  border: var(--card-border);
}

.cookie-modal-panel h3 { margin-bottom: 1rem; }

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(14,26,43,0.1);
}

.cookie-option label { font-weight: 500; }

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1023px) {
  .comparison-panel,
  .about-split,
  .contact-layout,
  .programme-detail {
    grid-template-columns: 1fr;
  }

  .programme-detail:nth-child(even) { direction: ltr; }

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

  .programme-grid .spec-card:nth-child(2) {
    transform: none;
  }

  .stats-strip {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

@media (max-width: 767px) {
  .hero-cinematic {
    min-height: auto;
    min-height: 100svh;
  }

  .hero-badge {
    position: static;
    order: -1;
    align-self: flex-start;
    margin: 5.5rem 1rem 0;
  }

  .hero-cinematic .hero-content {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    border-top: 1px solid rgba(212,132,58,0.35);
  }

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

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

  .main-nav li {
    border-bottom: 1px solid rgba(232,228,220,0.1);
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 0.25rem;
    min-height: 44px;
    opacity: 1;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem 0.65rem;
  }

  .spec-card {
    padding: 1.5rem;
  }

  .faq-two-col,
  .footer-grid,
  .about-spec-grid {
    grid-template-columns: 1fr;
  }

  .header-inner { position: relative; }

  .about-hero-section {
    padding-top: 64px;
  }

  .about-spec-cell {
    padding: 1.5rem;
  }
}
