/* Agileappautomation — dark luxury theme */
:root {
  --bg: #0c0b09;
  --bg-elevated: #161411;
  --bg-soft: #1e1a15;
  --ink: #f3ead8;
  --ink-muted: #b8a88a;
  --gold: #c9a227;
  --gold-soft: #e2c56a;
  --gold-dim: #8a6f1a;
  --line: rgba(201, 162, 39, 0.22);
  --danger: #d97868;
  --success: #7faf7a;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.5rem;
  --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.05rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 10% -10%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(90, 70, 30, 0.18), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

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

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

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

.wide {
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 11, 9, 0.86);
  backdrop-filter: blur(14px);
  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;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  align-items: center;
}

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

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

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

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--gold);
  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: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.4rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .site-nav.is-open { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

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

.btn-gold {
  background: var(--gold);
  color: #14110c;
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-soft);
  color: #14110c;
}

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

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

@keyframes goldLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

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

.hero-animate {
  animation: fadeRise 1s var(--ease) both;
}

.hero-animate-delay {
  animation: fadeRise 1s var(--ease) 0.18s both;
}

.gold-rule {
  width: 4.5rem;
  height: 1px;
  background: var(--gold);
  margin: 1.1rem 0 1.4rem;
  transform-origin: left;
  animation: goldLine 0.9s var(--ease) 0.25s both;
}

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

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

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.15rem;
  max-width: 38rem;
}

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

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

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) saturate(0.85);
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out alternate infinite;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.08) translate(-1.2%, -0.8%); }
}

.hero-home-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 11, 9, 0.35) 0%, rgba(12, 11, 9, 0.78) 55%, rgba(12, 11, 9, 0.96) 100%),
    linear-gradient(90deg, rgba(12, 11, 9, 0.7) 0%, transparent 55%);
  z-index: 1;
}

.hero-home-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.hero-kicker {
  margin-top: 1.4rem;
  max-width: 28rem;
  font-size: 1.15rem;
  color: var(--ink-muted);
}

.hero-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* Split / editorial blocks */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

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

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.media-frame:hover img {
  transform: scale(1.04);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(12, 11, 9, 0.55));
  pointer-events: none;
}

/* Proof strip */
.proof-strip {
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
}

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

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 500;
}

.proof-item span {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

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

/* Course / blog cards — interaction containers */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.course-card,
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
  height: 100%;
}

.course-card:hover,
.blog-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
  color: inherit;
}

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

.course-card-body,
.blog-card-body {
  padding: 1.35rem 1.35rem 1.55rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card h3,
.blog-card h3 {
  color: var(--ink);
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.meta-line {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.card-link {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--gold-soft);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Testimonials */
.quote-list {
  display: grid;
  gap: 1.75rem;
}

.quote {
  border-left: 1px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1.4rem;
}

.quote p {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.45;
}

.quote footer {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

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

/* 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: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.price-tier.featured {
  border-color: var(--gold);
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.08), transparent 40%),
    var(--bg-soft);
}

.price-tier h3 {
  color: var(--ink);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--gold);
  margin: 0.4rem 0 1rem;
}

.price-amount span {
  font-size: 1rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

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

.price-tier li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink-muted);
  font-size: 0.96rem;
}

/* Forms */
.form-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

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

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

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

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  margin-top: 0.35rem;
  display: none;
}

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

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  display: none;
  border: 1px solid var(--line);
}

.form-status.is-success {
  display: block;
  border-color: var(--success);
  color: var(--success);
}

.form-status.is-error {
  display: block;
  border-color: var(--danger);
  color: var(--danger);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-aside p {
  margin-bottom: 0.65rem;
}

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

.page-hero .gold-rule { margin-bottom: 0; }

.page-hero-media {
  margin-top: 2.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-hero-media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.9);
}

/* Article */
.article-body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
}

.article-body h2 {
  margin-top: 2.2rem;
}

.article-meta {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 1.15rem 1.3rem;
}

.faq-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

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

.module-list li {
  counter-increment: module;
  padding: 1.2rem 0 1.2rem 3.2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

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

.module-list h3 {
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
}

/* Instructor */
.instructor {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.instructor img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 1px solid var(--line);
}

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

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--gold);
  font-weight: 600;
  background: var(--bg-elevated);
}

td { color: var(--ink-muted); }

/* Legal */
.legal-body {
  max-width: 46rem;
  padding: 3rem 0 5rem;
}

.legal-body h2 {
  margin-top: 2rem;
  font-size: 1.7rem;
}

/* 404 */
.error-page {
  min-height: calc(100vh - var(--header-h) - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-page h1 {
  font-size: clamp(4rem, 14vw, 8rem);
  color: var(--gold);
  margin: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--bg-elevated);
  border-top: 1px solid var(--gold-dim);
  padding: 1.15rem 1.25rem;
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}

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

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

.cookie-inner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.95rem;
}

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

.inline-error {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--danger);
  color: var(--danger);
  background: rgba(217, 120, 104, 0.08);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: #090807;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.8fr) 1.3fr;
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.footer-tag { font-size: 0.95rem; }

.footer-label {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.footer-col a:hover { color: var(--gold); }

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}

.footer-bottom {
  width: min(100% - 2.5rem, var(--max));
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
}

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

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

/* Misc */
.list-check {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.list-check li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.4rem;
  color: var(--ink-muted);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.55rem;
  height: 1px;
  background: var(--gold);
}

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

.case-study h3 { color: var(--ink); }

.rating {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

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

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
}

.note {
  font-size: 0.92rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1.5rem;
}
