/* DataStream Pattern Academy — contemporary structured theme */

:root {
  --color-navy: #1a2744;
  --color-navy-light: #2a3a5c;
  --color-gold: #c9a227;
  --color-gold-light: #dbb94a;
  --color-teal: #2a7f7f;
  --color-teal-light: #3a9999;
  --color-cream: #f8f6f1;
  --color-cream-dark: #ebe7df;
  --color-text: #2c2c2c;
  --color-text-muted: #5a5a5a;
  --color-white: #ffffff;
  --color-error: #b33a3a;
  --color-success: #2a6b4a;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(26, 39, 68, 0.08);
  --shadow-md: 0 8px 24px rgba(26, 39, 68, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

*, *::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(--color-text);
  background: var(--color-cream);
}

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

a { color: var(--color-teal); transition: color var(--transition); }
a:hover { color: var(--color-teal-light); }

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

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

p { margin: 0 0 1rem; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1140px, 92%);
  margin: 0 auto;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-navy);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

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

.main-nav a {
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.nav-cta {
  background: var(--color-navy);
  color: var(--color-white) !important;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--color-navy-light);
  color: var(--color-white) !important;
}

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

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

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-cream-dark);
    padding: 1rem 0;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0 1.5rem; }
  .main-nav a { display: block; padding: 0.5rem 0; }
  .nav-cta { text-align: center; }
}

.site-footer {
  background: var(--color-navy);
  color: var(--color-cream);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  width: min(1140px, 92%);
  margin: 0 auto 2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-tagline { font-size: 0.92rem; opacity: 0.85; line-height: 1.6; }

.footer-links h3, .footer-contact h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  margin: 0 0 1rem;
}

.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a, .footer-contact a { color: var(--color-cream); text-decoration: none; opacity: 0.9; }
.footer-links a:hover, .footer-contact a:hover { color: var(--color-gold-light); opacity: 1; }

.footer-contact address { font-style: normal; font-size: 0.92rem; line-height: 1.6; margin-bottom: 0.75rem; opacity: 0.9; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: min(1140px, 92%);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  opacity: 0.75;
}

.footer-legal ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-legal a { color: var(--color-cream); text-decoration: none; }
.footer-legal a:hover { color: var(--color-gold-light); }

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-navy);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-teal {
  background: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}
.btn-teal:hover {
  background: var(--color-teal-light);
  border-color: var(--color-teal-light);
  color: var(--color-white);
}

.hero { position: relative; overflow: hidden; }

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  align-items: stretch;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4vw;
  background: var(--color-white);
}

.hero-content .eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-teal);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-content h1 { margin-bottom: 1.25rem; max-width: 28ch; }
.hero-content .lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 42ch;
  margin-bottom: 2rem;
}

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

.hero-visual { position: relative; min-height: 320px; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,39,68,0.15) 0%, transparent 60%);
}

.hero-compact {
  padding: 4rem 0;
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-cream);
}

.hero-compact h1 { color: var(--color-white); }
.hero-compact .lead { color: rgba(248,246,241,0.85); max-width: 55ch; }
.hero-compact .eyebrow { color: var(--color-gold); }

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

.section { padding: 4rem 0; }
.section-alt { background: var(--color-white); }
.section-header { margin-bottom: 2.5rem; max-width: 640px; }
.section-header p { color: var(--color-text-muted); }

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

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

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

.card-image { aspect-ratio: 16/10; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body h3 { margin: 0 0 0.5rem; }
.card-body p { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 1rem; }
.card-link { font-weight: 600; text-decoration: none; color: var(--color-teal); }

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

.feature-item { text-align: center; padding: 1.5rem; }

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--color-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-teal);
}

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

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

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

.testimonial {
  background: var(--color-white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-gold);
  box-shadow: var(--shadow-sm);
}

.testimonial blockquote { margin: 0 0 1rem; font-style: italic; }
.testimonial cite { font-style: normal; font-size: 0.88rem; color: var(--color-text-muted); }

.page-header {
  padding: 3rem 0 2rem;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-cream-dark);
}

.page-header h1 { margin-bottom: 0.75rem; }
.page-header .lead { color: var(--color-text-muted); max-width: 60ch; margin: 0; }

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

.sidebar-box {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

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

@media (max-width: 768px) {
  .content-two-col { grid-template-columns: 1fr; }
  .sidebar-box { position: static; }
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius);
  background: var(--color-white);
  transition: border-color var(--transition);
}

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

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

.form-error { color: var(--color-error); font-size: 0.85rem; margin-top: 0.35rem; display: none; }
.form-error.visible { display: block; }
.form-success { background: #e8f5ee; color: var(--color-success); padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; display: none; }
.form-success.visible { display: block; }
.form-fail { background: #fce8e8; color: var(--color-error); padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; display: none; }
.form-fail.visible { display: block; }

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

.pricing-item {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.pricing-item h3 { margin: 0 0 0.5rem; }
.pricing-item .price { font-family: var(--font-display); font-size: 1.75rem; color: var(--color-gold); white-space: nowrap; }
.pricing-item .price-note { font-size: 0.85rem; color: var(--color-text-muted); }
.pricing-details { grid-column: 1 / -1; }
.pricing-details ul { margin: 0.5rem 0 0; padding-left: 1.2rem; font-size: 0.95rem; color: var(--color-text-muted); }

@media (max-width: 600px) {
  .pricing-item { grid-template-columns: 1fr; }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0 3rem;
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.blog-card-image { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card-meta { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.blog-card-body h2 { font-size: 1.25rem; margin: 0 0 0.75rem; }
.blog-card-body h2 a { color: var(--color-navy); text-decoration: none; }
.blog-card-body h2 a:hover { color: var(--color-teal); }

.article-content { max-width: 720px; padding: 2rem 0 4rem; }
.article-content h2 { margin-top: 2rem; }
.article-content ul, .article-content ol { margin-bottom: 1rem; }
.article-meta { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.article-hero { aspect-ratio: 21/9; overflow: hidden; border-radius: var(--radius-lg); margin-bottom: 2rem; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

.legal-content { max-width: 780px; padding: 2rem 0 4rem; }
.legal-content h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal-content h3 { font-size: 1.1rem; margin-top: 1.5rem; }

.cookies-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; }
.cookies-table th, .cookies-table td { border: 1px solid var(--color-cream-dark); padding: 0.75rem 1rem; text-align: left; }
.cookies-table th { background: var(--color-white); font-weight: 600; }

.error-page { text-align: center; padding: 6rem 1rem; min-height: 50vh; }
.error-page h1 { font-size: 5rem; color: var(--color-gold); margin-bottom: 0.5rem; }

.process-steps { counter-reset: step; list-style: none; padding: 0; margin: 2rem 0; }

.process-steps li {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.process-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.5rem;
  width: 32px;
  height: 32px;
  background: var(--color-teal);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.process-steps h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.process-steps p { margin: 0; font-size: 0.95rem; color: var(--color-text-muted); }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-navy);
  color: var(--color-cream);
  padding: 1.25rem;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  display: none;
}

.cookie-banner.visible { display: block; }

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

.cookie-inner p { margin: 0; font-size: 0.92rem; flex: 1; min-width: 240px; }
.cookie-inner a { color: var(--color-gold-light); }
.cookie-actions { display: flex; gap: 0.75rem; }

.cookie-btn {
  padding: 0.55rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.cookie-btn-accept { background: var(--color-gold); color: var(--color-navy); border-color: var(--color-gold); }
.cookie-btn-reject { background: transparent; color: var(--color-cream); border-color: rgba(255,255,255,0.4); }
.cookie-btn-accept:hover { background: var(--color-gold-light); }
.cookie-btn-reject:hover { border-color: var(--color-cream); }

.script-error {
  background: #fce8e8;
  color: var(--color-error);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin: 0.5rem 0;
  display: none;
}

.script-error.visible { display: block; }

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

.contact-info address { font-style: normal; line-height: 1.7; margin-bottom: 1.5rem; }
.contact-info h3 { margin-top: 0; }

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

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

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

.team-member img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--color-gold);
}

.team-member h3 { margin-bottom: 0.25rem; }
.team-member .role { color: var(--color-teal); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.75rem; }
.team-member p { font-size: 0.92rem; color: var(--color-text-muted); }

.case-study {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

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