/* Cloudappconnect — minimalist premium theme */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f6;
  --bg-mist: #eef2f0;
  --ink: #171a1c;
  --ink-soft: #3d4549;
  --muted: #6a7378;
  --line: #dce3df;
  --accent: #1f5c4a;
  --accent-deep: #154237;
  --accent-soft: #d8ebe4;
  --warn: #8a3b2b;
  --ok: #1f5c4a;
  --shadow: 0 18px 40px rgba(23, 26, 28, 0.06);
  --radius: 4px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --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.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(31, 92, 74, 0.07), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(23, 26, 28, 0.04), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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

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

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

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

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.visually-hidden {
  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: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}

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

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

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(23, 26, 28, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

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

.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.4rem;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

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

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

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

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  border-radius: var(--radius);
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  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: 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;
}

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

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

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

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

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

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

.btn-text {
  background: transparent;
  color: var(--accent);
  padding-inline: 0.2rem;
}

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

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 24, 22, 0.35) 0%, rgba(17, 24, 22, 0.72) 62%, rgba(17, 24, 22, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  max-width: 42rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  margin: 0 0 1.1rem;
  letter-spacing: -0.02em;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.85rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  max-width: 34rem;
  margin-bottom: 1.6rem;
}

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

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

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

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

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

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 560;
  margin-bottom: 0.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-copy h2 {
  margin-top: 0.2rem;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Trust */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem 0;
  border-block: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 560;
  color: var(--ink);
  line-height: 1.1;
}

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

/* Feature list / benefits — not card-heavy */
.benefit-list {
  display: grid;
  gap: 1.75rem;
}

.benefit-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

.benefit-index {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
}

.benefit-row h3 {
  margin-bottom: 0.35rem;
}

.benefit-row p {
  margin: 0;
}

/* Course previews */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.course-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease);
}

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

.course-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.course-tile h3 {
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.course-tile p {
  margin: 0;
  font-size: 0.98rem;
}

.course-meta {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Quotes */
.quote-stack {
  display: grid;
  gap: 2rem;
}

.quote {
  max-width: 46rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
}

.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

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

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

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

.price-tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #f7fbf9 0%, #fff 40%);
}

.price-tier h3 {
  margin: 0;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--ink);
  line-height: 1;
}

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

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

.price-tier li + li {
  margin-top: 0.45rem;
}

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

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

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

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-row textarea {
  min-height: 9rem;
  resize: vertical;
}

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

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

.form-status[hidden] {
  display: none;
}

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

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

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

/* Page heroes (interior) */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2.5rem;
}

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

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

.page-hero-bleed {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.page-hero-bleed .hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-bleed .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: none;
  transform: none;
}

.page-hero-bleed .hero-content {
  padding-block: 3.5rem 3rem;
}

.page-hero-bleed h1 {
  color: #fff;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
}

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

.faq summary {
  cursor: pointer;
  font-weight: 540;
  color: var(--ink);
  list-style: none;
}

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

.faq details p {
  margin: 0.7rem 0 0;
}

/* Modules */
.module-list {
  display: grid;
  gap: 1rem;
  counter-reset: mod;
}

.module {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  counter-increment: mod;
}

.module::before {
  content: counter(mod, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
}

.module h3 {
  margin-bottom: 0.25rem;
}

.module p {
  margin: 0;
}

/* Reviews page */
.review-grid {
  display: grid;
  gap: 2rem;
}

.review-block {
  padding: 0 0 2rem;
  border-bottom: 1px solid var(--line);
}

.review-block .stars {
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.case-study {
  background: var(--bg-soft);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 1rem;
}

.case-study h3 {
  margin-top: 0;
}

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

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  padding-bottom: 2rem;
  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.7rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.blog-item time {
  color: var(--muted);
  font-size: 0.88rem;
}

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

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

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

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.contact-aside {
  background: var(--bg-soft);
  padding: 1.75rem;
  align-self: start;
}

.contact-aside h2 {
  font-size: 1.55rem;
}

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

/* Legal */
.legal {
  max-width: 46rem;
}

.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.65rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

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

.legal th {
  background: var(--bg-soft);
  font-weight: 560;
}

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

.error-page h1 {
  font-size: clamp(4rem, 12vw, 7rem);
  margin-bottom: 0.2rem;
}

/* Footer */
.site-footer {
  background: #121516;
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 0;
  margin-top: 2rem;
}

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

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #fff;
  margin: 0 0 0.6rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  max-width: 22rem;
}

.footer-label {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
  font-weight: 560;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

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

.footer-contact p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.1rem 0 1.4rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(18, 21, 22, 0.96);
  color: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.1rem 0;
  animation: riseIn 0.45s var(--ease);
}

.cookie-banner[hidden] {
  display: none;
}

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

.cookie-inner p {
  margin: 0;
  color: inherit;
  font-size: 0.95rem;
  max-width: 48rem;
}

.cookie-inner a {
  color: #cfe8df;
}

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

.cookie-banner .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

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

/* Instructor */
.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.instructor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
  background:
    linear-gradient(180deg, var(--bg-mist), var(--bg-soft));
}

.cta-band h2 {
  margin-bottom: 0.6rem;
}

.cta-band p {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

/* Outcomes */
.outcome-list {
  columns: 2;
  gap: 2rem;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.outcome-list li + li {
  margin-top: 0.55rem;
}

/* Animations */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .trust-bar,
  .course-grid,
  .price-grid,
  .footer-grid,
  .split,
  .split-reverse,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .blog-item {
    grid-template-columns: 1fr;
  }

  .outcome-list {
    columns: 1;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.35rem;
    display: none;
  }

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

  .site-nav a {
    padding: 0.7rem 0.35rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.35rem;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

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

  .cookie-actions .btn {
    flex: 1;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(1120px, calc(100% - 1.5rem));
  }

  .benefit-row {
    grid-template-columns: 3rem 1fr;
  }

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