/* Spark PathCore — contemporary structure + creative elegance */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #1a5f5a;
  --color-primary-dark: #134842;
  --color-accent: #e07a5f;
  --color-accent-hover: #c9684f;
  --color-sage: #81b29a;
  --color-bg: #f8f6f3;
  --color-bg-alt: #efeae4;
  --color-surface: #ffffff;
  --color-text: #2d3436;
  --color-text-muted: #636e72;
  --color-border: #ddd5cc;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(26, 95, 90, 0.08);
  --shadow-hover: 0 8px 32px rgba(26, 95, 90, 0.14);
  --transition: 0.25s ease;
  --container: 1120px;
}

*, *::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(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }

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

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

main { flex: 1; }

/* 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: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

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

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

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.logo:hover { color: var(--color-primary); }

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

.site-nav a:not(.btn) {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
}
.site-nav a:not(.btn):hover { color: var(--color-accent); }

.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(--color-primary);
  transition: var(--transition);
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  margin-top: 4rem;
  padding-top: 3rem;
}

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

.footer-brand .logo { color: #fff; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9375rem; opacity: 0.85; }

.footer-links h3,
.footer-contact h3,
.footer-legal h3 {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-links ul,
.footer-legal ul { list-style: none; }

.footer-links li,
.footer-legal li { margin-bottom: 0.5rem; }

.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--color-sage); }

.footer-contact address { font-style: normal; font-size: 0.9375rem; }
.footer-contact p { margin-bottom: 0.375rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

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

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

.hero-content { position: relative; z-index: 1; }

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

.hero-title { margin-bottom: 1.25rem; }

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

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

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

.hero-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,95,90,0.15) 0%, transparent 60%);
  pointer-events: none;
}

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

/* Page header */
.page-header {
  background: var(--color-primary);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.page-header h1 { color: #fff; margin-bottom: 0.75rem; }
.page-header p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 52ch;
  margin-inline: auto;
}

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header p { color: var(--color-text-muted); }

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

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body { padding: 1.5rem; }

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.card-body h3 { font-size: 1.375rem; }
.card-body p { color: var(--color-text-muted); font-size: 0.9375rem; margin-bottom: 1rem; }

.card-link {
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

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

.feature-item {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-item h3 { font-size: 1.25rem; }
.feature-item p { font-size: 0.9375rem; color: var(--color-text-muted); }

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

.testimonial {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-sage);
  box-shadow: var(--shadow);
}

.testimonial blockquote {
  font-style: italic;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

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

.testimonial cite strong {
  display: block;
  color: var(--color-primary-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  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(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: border-color var(--transition);
}

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

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

.form-error {
  color: #c0392b;
  font-size: 0.875rem;
  margin-top: 0.375rem;
  display: none;
}
.form-error.visible { display: block; }

.form-success {
  background: #d4edda;
  color: #155724;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: none;
}
.form-success.visible { display: block; }

.form-failure {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: none;
}
.form-failure.visible { display: block; }

.script-error {
  background: #fff3cd;
  color: #856404;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  font-size: 0.875rem;
}

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

.contact-info {
  background: var(--color-primary);
  color: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.contact-info h2 { color: #fff; margin-bottom: 1.5rem; }
.contact-info address { font-style: normal; }
.contact-info p { margin-bottom: 1rem; opacity: 0.9; }
.contact-info a { color: var(--color-sage); }

.contact-form-wrap {
  background: var(--color-surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

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

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

.pricing-table th {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}

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

.pricing-note {
  background: var(--color-bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-top: 2rem;
  font-size: 0.9375rem;
}

/* Blog */
.blog-list { display: flex; flex-direction: column; gap: 2rem; }

.blog-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.blog-item:hover { box-shadow: var(--shadow-hover); }

.blog-item-image img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.blog-item-content { padding: 1.75rem 1.75rem 1.75rem 0; }

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

.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.article-content h2 { margin-top: 2rem; margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1rem 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }

.article-hero {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

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

.service-sidebar {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.service-sidebar dl { margin-bottom: 1.5rem; }
.service-sidebar dt {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}
.service-sidebar dd {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Governance guide */
.guide-toc {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.guide-toc ol {
  columns: 2;
  column-gap: 2rem;
  margin-left: 1.25rem;
}

.guide-toc li { margin-bottom: 0.5rem; break-inside: avoid; }

.guide-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.guide-section:last-child { border-bottom: none; }

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

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content ul { margin: 1rem 0 1rem 1.5rem; }

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

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

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

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

.error-page h1 {
  font-size: 6rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 1rem;
}

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

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

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

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

.cookie-banner a { color: var(--color-sage); text-decoration: underline; }

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

.cookie-banner .btn-accept {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

.cookie-banner .btn-reject {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

.cookie-banner .btn-reject:hover {
  border-color: #fff;
}

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

.team-member {
  text-align: center;
}

.team-member img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--color-bg-alt);
}

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

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

.case-study h3 { margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual img { height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-strip { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .blog-item { grid-template-columns: 1fr; }
  .blog-item-content { padding: 1.75rem; }
  .guide-toc ol { columns: 1; }
}

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

  .site-nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

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

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .site-nav a:not(.btn) {
    display: block;
    padding: 0.75rem;
  }

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