/* Vision Pathhub — contemporary structure + creativity theme */
:root {
  --color-bg: #f7f5f2;
  --color-surface: #ffffff;
  --color-surface-alt: #eef0f4;
  --color-text: #1a2332;
  --color-text-muted: #5a6474;
  --color-primary: #1a2332;
  --color-accent: #c9a227;
  --color-accent-hover: #a8861f;
  --color-accent-soft: #f5ecd8;
  --color-border: #d8dce3;
  --color-error: #b33a3a;
  --color-success: #2d6a4f;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 35, 50, 0.1);
  --transition: 0.2s ease;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

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

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

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

p { margin: 0 0 1rem; }

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  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: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.logo svg { flex-shrink: 0; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.nav-desktop a:hover,
.nav-desktop a.active { color: var(--color-primary); }

.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-size: 0.9rem;
  color: var(--color-text);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  z-index: 99;
  box-shadow: var(--shadow-md);
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 0.6rem 0;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile a:last-child { border-bottom: none; }

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

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: #e8eaed;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.site-footer a {
  color: #e8eaed;
  text-decoration: none;
}

.site-footer a:hover { color: var(--color-accent); }

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

.footer-grid h4 {
  color: var(--color-accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-grid p,
.footer-grid address {
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.6;
  margin: 0;
  color: #b8bcc4;
}

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

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 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.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

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

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

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

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Cards */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

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

.card-body { padding: 1.25rem 1.5rem; }

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

/* Hero variants */
.hero {
  padding: 4rem 0;
}

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

.hero-split .hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

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

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

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-surface-alt);
}

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

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

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

/* Page header */
.page-header {
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2d3a4f 100%);
  color: #fff;
}

.page-header h1 { color: #fff; margin-bottom: 0.5rem; }

.page-header p {
  color: #b8bcc4;
  font-size: 1.1rem;
  max-width: 600px;
}

.page-header a { color: var(--color-accent); }

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

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

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

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

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

.form-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: var(--color-success);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.form-fail {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: var(--color-error);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.inline-error {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: var(--color-error);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
  font-size: 0.9rem;
}

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

.testimonial-quote {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-detail {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Pricing table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

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

.price-table th {
  background: var(--color-surface-alt);
  font-weight: 600;
  font-size: 0.9rem;
}

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

/* Blog */
.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content h2 { margin-top: 2rem; }
.article-content h3 { margin-top: 1.5rem; }

.article-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

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

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

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

.cookie-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-text a { color: var(--color-accent); }

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

.cookie-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

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

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

/* Legal pages */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
}

/* Cookies table */
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 0.9rem;
}

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

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

/* Indicator guide custom page */
.indicator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.indicator-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.indicator-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.indicator-tag {
  display: inline-block;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

/* Process steps */
.process-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.process-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}

.process-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

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

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

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

.case-study h3 { margin-top: 0; }

/* Schedule table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.schedule-table th {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9rem;
}

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

/* Utility */
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
