/* Devops Hub Digital — warm, cozy, approachable */

:root {
  --bg: #f3ebe0;
  --bg-soft: #ebe2d4;
  --surface: #faf6ef;
  --ink: #2f352c;
  --ink-muted: #5a6356;
  --sage: #5c7a5a;
  --sage-deep: #3f5740;
  --clay: #c4845a;
  --clay-soft: #e8c4a8;
  --leaf: #8faf7a;
  --line: rgba(47, 53, 44, 0.12);
  --shadow: 0 12px 32px rgba(63, 87, 64, 0.1);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --radius-pill: 999px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", "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(ellipse 80% 50% at 10% -10%, rgba(143, 175, 122, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(196, 132, 90, 0.14), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #e8dfd0 100%);
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

.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(--sage-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(243, 235, 224, 0.88);
  border-bottom: 1px solid var(--line);
}

.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.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
}

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

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, var(--sage) 0%, var(--sage-deep) 100%);
  box-shadow: inset 0 0 0 2px rgba(247, 240, 228, 0.35);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid var(--clay-soft);
  border-radius: 0.35rem;
  border-bottom-color: transparent;
  border-left-color: transparent;
  transform: rotate(45deg);
}

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

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

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

.nav-cta {
  background: var(--sage);
  color: #fff !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(92, 122, 90, 0.28);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--sage-deep);
  transform: translateY(-1px);
}

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

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

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

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

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.65rem 0.25rem; }
  .nav-cta { text-align: center; margin-top: 0.35rem; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.45rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

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

.btn-primary {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 8px 22px rgba(92, 122, 90, 0.28);
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--sage-deep);
  border: 1.5px solid rgba(92, 122, 90, 0.35);
}

.btn-secondary:hover { color: var(--sage-deep); }

.btn-clay {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 8px 22px rgba(196, 132, 90, 0.28);
}

.btn-clay:hover { background: #b06f45; color: #fff; }

.hero-home {
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.hero-home-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
}

.hero-kicker {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.85rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 34rem;
}

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

.hero-visual {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
  border: 1px solid var(--line);
}

@keyframes drift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-2%); }
}

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

.reveal {
  animation: rise 0.7s var(--ease) both;
}

.reveal-delay { animation-delay: 0.15s; }
.reveal-delay-2 { animation-delay: 0.3s; }

@media (max-width: 860px) {
  .hero-home-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; }
  .hero-visual img { min-height: 260px; }
}

.section {
  padding: 3.5rem 0;
}

.section-soft {
  background: rgba(250, 246, 239, 0.55);
  border-block: 1px solid var(--line);
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.eyebrow {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 0;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  text-align: center;
}

.trust-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--sage-deep);
  margin: 0;
}

.trust-label {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

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

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(63, 87, 64, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.05);
}

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

.card-meta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clay);
  margin-bottom: 0.4rem;
}

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

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

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

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

.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.benefit-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, var(--leaf), var(--sage));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

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

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

.quote {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.quote p { margin-bottom: 1rem; }
.quote-attr { font-size: 0.92rem; color: var(--ink-muted); margin: 0; }
.quote-attr strong { color: var(--ink); }

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

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

.page-hero-narrow {
  max-width: 42rem;
}

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

.page-hero-split img {
  border-radius: 1.75rem;
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

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

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

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

.price-card.featured {
  border-color: rgba(92, 122, 90, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
  background: linear-gradient(180deg, #faf8f2 0%, #eef4ea 100%);
}

.price-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--sage-deep);
  margin: 0.5rem 0;
}

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

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

.price-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
}

.price-list li:last-child { border-bottom: none; }

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

.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(92, 122, 90, 0.28);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(92, 122, 90, 0.18);
}

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

.field-error {
  display: none;
  color: #9a3b2f;
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

.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: #c45a4a;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 650;
}

.form-status.is-success {
  display: block;
  background: #e5f0df;
  color: var(--sage-deep);
  border: 1px solid rgba(92, 122, 90, 0.3);
}

.form-status.is-error {
  display: block;
  background: #f8e6e2;
  color: #8a3228;
  border: 1px solid rgba(154, 59, 47, 0.25);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.contact-aside {
  background: var(--sage-deep);
  color: #f7f0e4;
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-aside h2 { color: #f7f0e4; }
.contact-aside a { color: var(--clay-soft); }
.contact-aside p { color: rgba(247, 240, 228, 0.88); }

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

.legal-content {
  max-width: 46rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content ul { padding-left: 1.25rem; }
.legal-content li { margin-bottom: 0.4rem; }

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.25rem 0;
  overflow-x: auto;
  display: block;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  background: #fff;
}

.cookie-table th {
  background: var(--bg-soft);
  font-weight: 750;
}

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

.module-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

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

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.25rem;
}

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

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

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 750;
}

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

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 1.75rem;
  margin: 1.5rem 0 2rem;
}

.article-body {
  max-width: 42rem;
}

.article-body h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

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

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

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  display: none;
}

.cookie-banner.is-visible { display: block; animation: rise 0.45s var(--ease); }

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

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

.inline-error {
  background: #f8e6e2;
  color: #8a3228;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0.75rem 0;
  border: 1px solid rgba(154, 59, 47, 0.25);
}

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

.case-study h3 { font-size: 1.45rem; }

.stars {
  color: var(--clay);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.site-footer {
  margin-top: 3rem;
  background: #2f352c;
  color: rgba(247, 240, 228, 0.82);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

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

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

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-soft);
  margin: 0 0 0.85rem;
}

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

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

.footer-links a,
.footer-contact a {
  color: rgba(247, 240, 228, 0.88);
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--clay-soft);
}

.footer-contact {
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 240, 228, 0.12);
  font-size: 0.88rem;
}

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

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

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

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

.pill-note {
  display: inline-block;
  background: rgba(196, 132, 90, 0.15);
  color: #8a5533;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.cta-band {
  background: linear-gradient(135deg, var(--sage-deep), var(--sage));
  color: #f7f0e4;
  border-radius: 2rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-band h2 { color: #f7f0e4; }
.cta-band p { color: rgba(247, 240, 228, 0.88); max-width: 32rem; margin-inline: auto; }

.prose-wide { max-width: 40rem; }
