/* Cloudappsdeveloper — minimalist premium theme */
:root {
  --bg: #f7f8f6;
  --bg-soft: #eef1ee;
  --surface: #ffffff;
  --ink: #1c2422;
  --ink-muted: #5a6662;
  --line: #d6ddd9;
  --accent: #0b5c57;
  --accent-deep: #084440;
  --accent-soft: #d8ebe8;
  --warn: #8a3b2b;
  --ok: #1f6b4a;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(28, 36, 34, 0.06);
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::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: 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-deep);
}

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

h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 0.55em;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.4em;
}

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

ul,
ol {
  color: var(--ink-muted);
}

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

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

.inline-error {
  background: #f8e8e4;
  color: var(--warn);
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid #e5c4bb;
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

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

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

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

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

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

.site-nav .nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

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

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

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

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

.section {
  padding: 4.5rem 0;
}

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

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

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

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

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

.btn:hover {
  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(--ink);
  color: var(--ink);
}

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

/* Hero — brand-led, asymmetric, not default CTA pair */
.hero-home {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(247, 248, 246, 0.92) 0%, rgba(247, 248, 246, 0.55) 42%, rgba(11, 92, 87, 0.18) 100%),
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}

.hero-home-copy {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 36rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.4rem;
  color: var(--ink);
}

.hero-home h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin-bottom: 0.85rem;
}

.hero-home .hero-support {
  max-width: 34ch;
  margin-bottom: 0;
}

.hero-home .btn-row {
  margin-top: 2rem;
}

.hero-panel {
  display: none;
}

@media (min-width: 900px) {
  .hero-panel {
    display: block;
    position: relative;
  }

  .hero-panel::after {
    content: "";
    position: absolute;
    inset: 12% 14% 12% 8%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    animation: frameIn 1.1s ease both;
  }
}

@keyframes frameIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.rise {
  animation: rise 0.8s ease both;
}

.rise-delay {
  animation: rise 0.9s ease 0.15s both;
}

.rise-delay-2 {
  animation: rise 0.9s ease 0.3s both;
}

@media (max-width: 899px) {
  .hero-home {
    grid-template-columns: 1fr;
    min-height: 78vh;
  }
}

/* Page heroes (inner) */
.page-hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 10% 0%, var(--accent-soft) 0%, transparent 55%),
    var(--bg);
}

.page-hero.compact {
  padding: 3rem 0 2rem;
}

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

/* Trust strip — human values, not after hero features */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

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

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

@media (max-width: 700px) {
  .trust-strip {
    grid-template-columns: 1fr;
  }
}

/* Feature / content grids */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

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

.feature-list li {
  padding-left: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.feature-list h3 {
  margin-bottom: 0.35rem;
}

.course-grid,
.blog-grid,
.price-grid,
.review-grid {
  display: grid;
  gap: 1.75rem;
}

.course-grid,
.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.price-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.media-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}

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

.media-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
  background: var(--bg-soft);
}

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

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

.meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

/* Pricing — no cards look: bordered panels only for interaction containers */
.price-tier {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}

.price-tier.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

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

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

.price-tier ul {
  padding-left: 1.1rem;
  margin: 0.5rem 0 1rem;
  flex: 1;
}

.price-note {
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* Testimonials */
.quote-block {
  border-left: 2px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin-bottom: 2rem;
}

.quote-block p {
  font-size: 1.1rem;
  color: var(--ink);
}

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

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

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

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

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

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
}

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

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

.field-error {
  color: var(--warn);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

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

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

.address-block {
  background: var(--bg-soft);
  padding: 1.5rem;
  border: 1px solid var(--line);
}

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

/* Legal / prose */
.prose {
  max-width: 42rem;
}

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

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

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

.prose th {
  background: var(--bg-soft);
  color: var(--ink);
}

.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: 600;
  color: var(--ink);
}

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

.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: mod;
}

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

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

.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%;
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #13201e;
  color: #c9d4d0;
  padding: 3.5rem 0 1.5rem;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 0.75rem;
}

.footer-tag,
.site-footer p {
  color: #aebbb6;
  font-size: 0.92rem;
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.9rem;
}

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

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

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

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

.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

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

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

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

/* Utilities */
.muted {
  color: var(--ink-muted);
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.text-center {
  text-align: center;
}

.narrow {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
