/* Cloud RouteBase — contemporary structured-creative theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

:root {
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-primary: #1a365d;
  --color-secondary: #2d6a6a;
  --color-accent: #e07a5f;
  --color-accent-hover: #c96a52;
  --color-text: #2c3e50;
  --color-muted: #5a6b7d;
  --color-border: #e2ddd6;
  --color-success: #2d6a4f;
  --color-error: #b83232;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(26, 54, 93, 0.08);
  --shadow-hover: 0 8px 32px rgba(26, 54, 93, 0.12);
  --max-width: 1120px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a { color: var(--color-secondary); text-decoration: none; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.logo:hover { color: var(--color-primary); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text);
  font-size: 0.925rem;
  font-weight: 500;
}

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

.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    display: none;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--color-border); }
  .main-nav a { display: block; padding: 0.75rem 0; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
}

.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4rem;
  padding: 3rem 1rem 1.5rem;
}

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

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

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

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

.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: var(--color-accent); }

.site-footer address { font-style: normal; font-size: 0.9rem; line-height: 1.7; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

.footer-legal { display: flex; gap: 1.5rem; }

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}

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

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

.hero { padding: 4rem 0; }

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-split .hero-visual { position: relative; }

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

.hero-split .hero-accent-block {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: var(--color-secondary);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  max-width: 200px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}

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

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

.hero-compact {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.9);
  padding: 3rem 0;
  text-align: center;
}

.hero-compact h1 { color: #fff; margin-bottom: 0.75rem; }
.hero-compact p { max-width: 600px; margin: 0 auto 1.5rem; color: rgba(255, 255, 255, 0.8); }

.section { padding: 4rem 0; }
.section-alt { background: var(--color-surface); }

.section-header { margin-bottom: 2.5rem; }
.section-header p { color: var(--color-muted); max-width: 560px; }
.section-header--center { text-align: center; }
.section-header--center p { margin-inline: auto; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}

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

.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 1.5rem; }

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.card h3 { margin: 0 0 0.5rem; }
.card p { font-size: 0.925rem; color: var(--color-muted); margin-bottom: 1rem; }
.card-link { font-weight: 500; font-size: 0.9rem; }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

.feature-item {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
}

.feature-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-item p { font-size: 0.925rem; color: var(--color-muted); margin: 0; }

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

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.testimonial blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.testimonial cite strong {
  display: block;
  color: var(--color-primary);
  font-weight: 600;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.pricing-table th { background: var(--color-primary); color: #fff; font-weight: 500; }
.pricing-table tr:last-child td { border-bottom: none; }

.pricing-note {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.925rem;
  color: var(--color-muted);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--color-surface);
}

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

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

.field-error {
  display: block;
  color: var(--color-error);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.form-status--success { background: #e8f5ef; color: var(--color-success); }
.form-status--error { background: #fdeaea; color: var(--color-error); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

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

.contact-info address { font-style: normal; line-height: 1.8; margin-top: 1rem; }

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

.legal-content h1 { margin-bottom: 0.5rem; }
.legal-content .updated { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.legal-content ul { padding-left: 1.25rem; }
.legal-content li { margin-bottom: 0.5rem; }

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

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

.cookie-table th { background: var(--color-bg); }

.article-list .card { display: flex; flex-direction: column; }

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

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

.article-content h1 { margin-bottom: 0.5rem; }
.article-content .article-meta { margin-bottom: 2rem; }
.article-content h2 { margin: 2rem 0 0.75rem; font-size: 1.4rem; }
.article-content img { border-radius: var(--radius-lg); margin: 2rem 0; }

.article-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.service-sidebar {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.service-sidebar h3 { margin-top: 0; font-size: 1.1rem; }
.service-sidebar ul { padding-left: 1.1rem; font-size: 0.925rem; }
.service-sidebar li { margin-bottom: 0.4rem; }

@media (max-width: 768px) {
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}

.playbook-toc {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
}

.playbook-toc ol { margin: 0; padding-left: 1.25rem; }
.playbook-toc li { margin-bottom: 0.35rem; }

.playbook-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.playbook-section:last-child { border-bottom: none; }

.page-404 { text-align: center; padding: 6rem 1rem; }
.page-404 h1 { font-size: 5rem; color: var(--color-accent); margin-bottom: 0.5rem; }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 1.25rem;
}

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

.cookie-banner p { margin: 0; font-size: 0.9rem; flex: 1; min-width: 240px; }
.cookie-banner-actions { display: flex; gap: 0.75rem; }
.cookie-banner .btn { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

.inline-error {
  color: var(--color-error);
  background: #fdeaea;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.case-study {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
  border: 1px solid var(--color-border);
}

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

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

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