/* Autowebtools — minimalist premium theme */
:root {
  --bg: #f7f8fa;
  --bg-elevated: #ffffff;
  --ink: #16191f;
  --ink-soft: #3d4450;
  --muted: #6b7380;
  --line: #e2e5ea;
  --accent: #1f5c4d;
  --accent-hover: #174839;
  --accent-soft: #e6f1ed;
  --sand: #eef1f4;
  --warn: #8a3b2b;
  --ok: #1f5c4d;
  --shadow: 0 1px 2px rgba(22, 25, 31, 0.04), 0 12px 32px rgba(22, 25, 31, 0.06);
  --radius: 4px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::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(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #e8efec 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #e9edf3 0%, transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.6rem, 5.5vw, 4.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.65rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }

p { margin: 0 0 1rem; color: var(--ink-soft); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 250, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.brand-mark {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--accent);
  border-radius: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 450;
  transition: color 0.2s ease;
}

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

.site-nav .nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.site-nav .nav-cta:hover {
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

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

.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }

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

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.4rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s ease;
  }

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

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border: none;
  }
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.lede {
  font-size: 1.15rem;
  max-width: 38rem;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

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

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

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

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Hero — brand-forward, full-bleed visual plane */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 18s var(--ease) infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 25, 31, 0.25) 0%, rgba(22, 25, 31, 0.72) 70%, rgba(22, 25, 31, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 4.5rem;
  color: #fff;
  animation: rise 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 400;
  max-width: 22ch;
  margin-bottom: 0.85rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
  font-size: 1.05rem;
}

.hero .btn-primary {
  background: #fff;
  color: var(--ink);
}

.hero .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Trust / proof */
.proof-band {
  background: var(--ink);
  color: #fff;
  padding: 2rem 0;
}

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

.proof-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.proof-grid span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .proof-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* Course / content grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

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

.grid-2-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 860px) {
  .grid-2,
  .grid-3,
  .grid-2-equal {
    grid-template-columns: 1fr;
  }
}

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

.feature-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
}

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

.feature-list strong {
  font-weight: 500;
  color: var(--ink);
}

.feature-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Course tiles — interaction containers */
.course-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.course-tile:hover {
  border-color: #c8cdd6;
  box-shadow: var(--shadow);
  color: inherit;
}

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

.course-tile-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.course-tile h3 {
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
}

.course-tile p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

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

/* Testimonials */
.quote-block {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

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

.quote-block blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 400;
}

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

.rating {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

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

.price-tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.75rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.price-tier.is-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-elevated) 42%);
}

.price-tier h3 {
  margin-bottom: 0.35rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--ink);
  margin: 0.75rem 0 0.25rem;
}

.price-amount span {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--muted);
}

.price-tier ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  flex: 1;
}

.price-tier li {
  padding: 0.45rem 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.price-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1.1rem;
  max-width: 36rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--ink);
  width: 100%;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

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

.field-error {
  color: var(--warn);
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: var(--accent-soft);
  color: var(--ok);
}

.form-status.is-error {
  display: block;
  background: #f7ebe8;
  color: var(--warn);
}

.inline-error {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: #f7ebe8;
  color: var(--warn);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

/* Page heroes (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
}

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

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

.page-hero-media {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 380px;
}

.page-hero-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  animation: fade-in 1s var(--ease) both;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 0;
}

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: opacity 0.2s ease;
}

.blog-item:hover { opacity: 0.88; color: inherit; }

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

.blog-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.blog-item h2 {
  font-size: 1.65rem;
  margin-bottom: 0.4rem;
}

@media (max-width: 700px) {
  .blog-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

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

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

.article img.cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

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

/* FAQ */
.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;
  color: var(--ink);
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0.75rem 0 0.25rem;
  color: var(--muted);
}

/* Legal */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4.5rem;
}

.legal h1 { margin-bottom: 0.5rem; }
.legal h2 { margin-top: 2.25rem; font-size: 1.65rem; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.25rem 0;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--sand);
  font-weight: 500;
}

/* Contact address */
.address-block {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.address-block p {
  margin-bottom: 0.5rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #243043 100%);
  color: #fff;
  padding: 4rem 0;
  margin-top: 2rem;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 34rem; }

/* Modules */
.module-list {
  counter-reset: mod;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.module-list li {
  counter-increment: mod;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-top: 1px solid var(--line);
  position: relative;
}

.module-list li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}

.module-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

/* Instructor */
.instructor {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

.instructor img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
}

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

/* 404 */
.not-found {
  min-height: calc(100vh - var(--header-h) - 220px);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.not-found h1 {
  font-size: clamp(4rem, 12vw, 7rem);
  margin-bottom: 0.25rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(22, 25, 31, 0.08);
  padding: 1.15rem 1.5rem;
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}

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

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

.cookie-inner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.cookie-actions .btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 3.5rem 0 1.75rem;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-tag {
  max-width: 28rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.8fr) 1.4fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.footer-brand { grid-column: 1 / -1; }

@media (min-width: 901px) {
  .footer-cols {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-cols {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr 1.5fr;
  }
}

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

@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
}

.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.9rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.25rem 0;
}

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

.footer-contact p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}

.footer-contact a { display: inline; padding: 0; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom p { margin: 0; color: inherit; }

/* Misc */
.split-text {
  max-width: 36rem;
}

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

.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.case-study {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.75rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

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

.outcome {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}
