/* Agent Routecore — elegant premium theme */
:root {
  --ink: #1c1915;
  --ink-soft: #3f3a33;
  --muted: #7a7268;
  --paper: #f4efe7;
  --paper-deep: #e8e0d4;
  --card: #fffdf9;
  --navy: #1b2636;
  --navy-soft: #2a384c;
  --gold: #9c7a4a;
  --gold-deep: #7d5f35;
  --gold-pale: #e8d9c0;
  --line: #d9cfc0;
  --error: #8f3a36;
  --error-bg: #f6e8e6;
  --success: #2f5d45;
  --success-bg: #e6f0ea;
  --shadow: 0 18px 40px rgba(28, 25, 21, 0.07);
  --radius: 2px;
  --header-h: 84px;
  --max: 1120px;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

address {
  font-style: normal;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.9rem;
  z-index: 100;
}

.skip-link:focus {
  top: 0.75rem;
}

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

.wrap-narrow {
  width: min(100% - 2.5rem, 760px);
  margin-inline: auto;
}

.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.runtime-error {
  background: var(--error-bg);
  color: var(--error);
  padding: 0.85rem 1.2rem;
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
}

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

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

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

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

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

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

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--gold);
}

.nav-cta {
  display: inline-block;
  border: 1px solid var(--navy);
  color: var(--navy) !important;
  padding: 0.45rem 0.95rem;
  text-decoration: none !important;
  box-shadow: none !important;
}

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

/* Footer */
.site-footer {
  background: var(--navy);
  color: #d9d2c7;
  margin-top: 5rem;
  padding: 3.5rem 0 0;
}

.footer-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr;
  gap: 2.5rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #f4efe7;
  margin: 0 0 0.6rem;
}

.footer-tag {
  color: #b7b0a5;
  max-width: 18rem;
}

.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 1rem;
}

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

.site-footer a:hover {
  color: #fff;
}

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

.site-footer li {
  margin-bottom: 0.45rem;
}

.footer-base {
  width: min(100% - 2.5rem, var(--max));
  margin: 2.8rem auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0 1.6rem;
  font-size: 0.88rem;
  color: #9a9388;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #f4efe7;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--navy-soft);
  color: #fff;
}

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

.btn-ghost:hover {
  background: var(--navy);
  color: #fff;
}

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

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

.text-link {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--gold);
}

.text-link:hover {
  color: var(--gold-deep);
}

/* Hero — editorial */
.hero-editorial {
  padding: 4.2rem 0 3.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 3.5rem;
  align-items: end;
}

.hero-copy h1 {
  margin-bottom: 1.2rem;
}

.hero-aside {
  border-left: 1px solid var(--line);
  padding-left: 2rem;
}

.hero-aside p {
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.8rem;
}

.hero-meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
}

.hero-figure {
  margin: 0 0 3.5rem;
}

.hero-figure img {
  width: 100%;
  height: min(52vh, 460px);
  object-fit: cover;
  filter: saturate(0.85);
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

/* Stats strip */
.stats {
  background: var(--navy);
  color: #f4efe7;
  padding: 2.4rem 0;
}

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

.stats dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
}

.stats dt {
  font-size: 0.88rem;
  color: #b7b0a5;
  margin-top: 0.25rem;
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-head p {
  max-width: 28rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

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

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

.card-body {
  padding: 1.25rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.card-body h3 a {
  color: inherit;
  text-decoration: none;
}

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

.card-meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.card-body p {
  color: var(--ink-soft);
  flex: 1;
}

/* Quote band */
.quote-band {
  margin-top: 4.5rem;
  padding: 3.2rem 0;
  background: var(--paper-deep);
}

.quote-band blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 46rem;
}

.quote-band cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--muted);
}

/* Benefits editorial */
.benefits {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.benefit-list {
  display: grid;
  gap: 1.4rem;
}

.benefit-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.benefit-item p {
  color: var(--ink-soft);
  margin: 0;
}

/* Invitation */
.invite {
  margin-top: 4.5rem;
  padding: 3rem 0 4.5rem;
  border-top: 1px solid var(--line);
}

.invite-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.invite h2 {
  margin: 0 0 0.4rem;
}

.invite p {
  margin: 0;
  color: var(--ink-soft);
}

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

.page-hero h1 {
  max-width: 18ch;
}

.page-hero .lede {
  margin-top: 0.4rem;
}

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

.page-hero-split img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* Course detail */
.course-hero-img {
  width: 100%;
  height: min(48vh, 420px);
  object-fit: cover;
  margin: 0 0 2.5rem;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.2rem;
}

.module-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.module-list li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.module-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.mod-num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
}

.instructor {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 1.5rem 0 2rem;
  padding: 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
}

.instructor img {
  width: 140px;
  height: 170px;
  object-fit: cover;
}

.price-note {
  background: var(--paper-deep);
  padding: 1.3rem 1.4rem;
  margin: 1.5rem 0;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  color: var(--ink-soft);
  margin: 0.7rem 0 0;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 2.4rem;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.8rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--navy);
  background: #fff;
  transform: translateY(-8px);
}

.price-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  margin: 0.8rem 0 0.3rem;
}

.price-period {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.price-card ul {
  padding-left: 1.1rem;
  color: var(--ink-soft);
  flex: 1;
}

.price-card .btn {
  margin-top: 1.2rem;
  width: 100%;
}

.fine-print {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Reviews */
.review-mix {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}

.review {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem;
}

.review.wide {
  grid-column: 1 / -1;
}

.review-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
}

.stars {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.review footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.case-study {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
  margin-top: 3.2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.case-study img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.case-study.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.case-study.reverse img {
  order: 2;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 2rem;
  margin-top: 2.2rem;
}

.blog-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.6rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.blog-row img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.blog-row h2 {
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
}

.blog-row p {
  color: var(--ink-soft);
  margin: 0;
}

.article-cover {
  width: 100%;
  height: min(46vh, 400px);
  object-fit: cover;
  margin: 1.5rem 0 2rem;
}

.article {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 0 3rem;
}

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

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.4rem;
}

.contact-panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem;
}

.contact-panel h2 {
  font-size: 1.3rem;
}

.form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 500;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
}

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

.field-error {
  color: var(--error);
  font-size: 0.85rem;
  font-weight: 400;
}

.form-status {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.form-status.ok {
  background: var(--success-bg);
  color: var(--success);
}

.form-status.bad {
  background: var(--error-bg);
  color: var(--error);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

/* Legal */
.legal {
  max-width: 46rem;
  margin: 2.2rem auto 3rem;
  padding: 0 1.25rem;
}

.legal h2 {
  margin-top: 2rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.2rem 0 1.8rem;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  background: var(--paper-deep);
  font-weight: 500;
}

/* Atlas */
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
  margin-top: 2rem;
}

.atlas-cell {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.4rem 1.35rem;
}

.atlas-cell h3 {
  margin-bottom: 0.4rem;
}

.atlas-figure {
  margin: 2.5rem 0 0;
}

.atlas-figure img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* 404 */
.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.notfound h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 0.2rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  background: var(--navy);
  color: #f4efe7;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  max-width: 920px;
  margin-inline: auto;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: #d9d2c7;
}

.cookie-banner a {
  color: var(--gold-pale);
}

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

.cookie-actions button {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.6rem 0.95rem;
  cursor: pointer;
  border: 1px solid #f4efe7;
  background: #f4efe7;
  color: var(--navy);
}

.cookie-actions .cookie-reject {
  background: transparent;
  color: #f4efe7;
}

/* Misc */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.muted {
  color: var(--muted);
}

.studio-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-top: 0.6rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .benefits,
  .footer-inner,
  .page-hero-split,
  .contact-grid,
  .price-grid,
  .stats-grid,
  .card-grid,
  .review-grid,
  .case-study,
  .case-study.reverse,
  .atlas-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .case-study.reverse img {
    order: 0;
  }

  .footer-inner {
    gap: 1.8rem;
  }

  .price-card.featured {
    transform: none;
  }

  .invite-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1.5rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.25rem 1.2rem;
  }

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

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

  .blog-row,
  .instructor {
    grid-template-columns: 1fr;
  }

  .blog-row img,
  .instructor img {
    height: 200px;
    width: 100%;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    left: 0.8rem;
    right: 0.8rem;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions button {
    flex: 1;
  }

  .header-inner,
  .wrap {
    width: min(100% - 1.6rem, var(--max));
  }
}
