/* Future PathCore — contemporary structured-creative theme */
:root {
  --navy: #1a365d;
  --navy-light: #2c5282;
  --gold: #c4922a;
  --gold-light: #e2a84b;
  --cream: #faf8f5;
  --warm-gray: #6b6560;
  --text: #2d3748;
  --text-muted: #5a6578;
  --border: #e8e4df;
  --white: #ffffff;
  --accent-soft: #f0ebe3;
  --error: #c53030;
  --success: #276749;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(26, 54, 93, 0.08);
  --shadow-hover: 0 8px 32px rgba(26, 54, 93, 0.12);
  --max-width: 1200px;
  --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(--text);
  background: var(--cream);
}

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

a { color: var(--navy-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

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

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
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: var(--white);
  border-bottom: 1px solid var(--border);
}

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

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

.logo:hover { color: var(--navy); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

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

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--navy-light);
  color: var(--white) !important;
}

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

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
}

.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.95rem; opacity: 0.85; }

.footer-links h3, .footer-contact h3 {
  color: var(--gold-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, 0.85); }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
}

.footer-legal ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal a { color: rgba(255, 255, 255, 0.7); }

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

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

.btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
}

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

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

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

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
}

/* Hero variants */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  align-items: center;
}

.hero-content {
  padding: 3rem 2rem 3rem max(1rem, calc((100vw - var(--max-width)) / 2 + 1rem));
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 400px;
}

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

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.15) 0%, transparent 60%);
}

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

.hero h1 { margin-bottom: 1rem; }

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}

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

.hero-compact {
  padding: 4rem 0;
  background: var(--accent-soft);
  text-align: center;
}

.hero-compact .hero-lead { margin-inline: auto; }

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

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

.section-header.center { text-align: center; margin-inline: auto; }

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

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

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

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

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

.card-body { padding: 1.5rem; }

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

.card h3 { margin: 0 0 0.75rem; }
.card h3 a { color: var(--navy); }
.card h3 a:hover { color: var(--gold); }

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

.feature-item {
  padding: 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.feature-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-item p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

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

.testimonial {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-light);
  opacity: 0.4;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
}

.testimonial blockquote {
  margin: 0 0 1rem;
  padding-top: 1.5rem;
  font-style: italic;
  color: var(--text);
}

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

/* 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.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.15);
}

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

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

.form-group.invalid .form-error { display: block; }
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea { border-color: var(--error); }

.form-success {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: var(--success);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: none;
}

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

.form-error-banner {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  color: var(--error);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: none;
}

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

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

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

.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;
  flex: 1;
  min-width: 280px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.cookie-inner a { color: var(--gold-light); }

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

.cookie-actions button {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
}

.cookie-accept { background: var(--gold); color: var(--navy); }
.cookie-reject { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.4) !important; }

/* Page layouts */
.page-hero {
  padding: 3rem 0;
  background: linear-gradient(160deg, var(--accent-soft) 0%, var(--cream) 100%);
}

.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero .lead { color: var(--text-muted); max-width: 640px; }

.content-narrow { max-width: 720px; margin: 0 auto; }
.content-wide { max-width: 900px; margin: 0 auto; }

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

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

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

.pricing-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

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

.pricing-note {
  background: var(--accent-soft);
  padding: 1.25rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

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

.glossary-nav a {
  padding: 0.35rem 0.75rem;
  background: var(--white);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.glossary-nav a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.glossary-term {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.glossary-term h3 { margin: 0 0 0.5rem; color: var(--gold); }

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-page h1 { font-size: 6rem; color: var(--gold); margin-bottom: 0; }

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

.service-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-details {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.detail-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.detail-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.detail-list li:last-child { border-bottom: none; }
.detail-list strong { color: var(--navy); }

/* Blog article */
.article-header { margin-bottom: 2rem; }
.article-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 21/9;
}

.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.inline-error {
  background: #fff5f5;
  color: var(--error);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  display: none;
}

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

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

.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-info h3 { margin-top: 0; }

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

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

/* Responsive */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { min-height: 280px; order: -1; }
  .hero-content { padding: 2rem 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-strip { grid-template-columns: 1fr; }
  .service-hero { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

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

  .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.75rem 0; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; text-align: center; }
}
