/* PlatformOpsStudio — shared stylesheet */

:root {
  --accent: #065be3;
  --accent-light: #3a7dff;
  --bg-dark: #06070b;
  --bg-dark-2: #0d0f16;
  --bg-light: #f4f5f8;
  --text-light: #f5f6fa;
  --text-muted: #b7bcc9;
  --text-dark: #14151a;
  --text-dark-muted: #545862;
  --border-dark: #1c1f29;
  --border-light: #e2e4ea;
  --radius: 10px;
  --max-width: 1120px;
  --font-heading: "Inconsolata", "SFMono-Regular", Menlo, Consolas, monospace;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

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

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Location strip */
.location-strip {
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 24px;
  text-align: center;
}
.location-strip a { color: #fff; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }
.brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-light { border-color: #fff; color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--text-dark); }

/* Hero */
.hero {
  position: relative;
  background: var(--bg-dark) url("../img/hero.jpg") center/cover no-repeat;
  color: var(--text-light);
  padding: 90px 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,7,11,0.88) 0%, rgba(6,7,11,0.78) 60%, rgba(6,7,11,0.92) 100%);
}
.hero .container { position: relative; z-index: 1; max-width: 820px; text-align: left; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 640px; }
.hero-small { padding: 64px 0; }

/* Sections */
.section { padding: 72px 0; }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-dark h2 { color: #fff; }
.section-dark p { color: var(--text-muted); }
.section-alt { background: #fff; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-dark-muted); margin-bottom: 18px; }

.card-dark {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  color: var(--text-light);
}
.card-dark p { color: var(--text-muted); }

/* Blog cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover { box-shadow: 0 12px 30px rgba(6,7,11,0.1); transform: translateY(-3px); }
.post-card-media {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0b0d14 0%, #10131d 40%, var(--accent) 150%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.post-card-media span.tag {
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
}
.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-body .date { font-size: 0.8rem; color: var(--text-dark-muted); margin-bottom: 8px; }
.post-card-body h3 { font-size: 1.15rem; }
.post-card-body p { color: var(--text-dark-muted); flex: 1; font-size: 0.95rem; }
.post-card-body .read-more { font-weight: 700; color: var(--accent); margin-top: 10px; }

/* Article */
.article-header { max-width: 780px; }
.article-header .date { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.article-body { max-width: 780px; }
.article-body h2 { margin-top: 1.6em; color: var(--text-dark); }
.article-body h3 { margin-top: 1.4em; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.6em 0;
  padding: 0.4em 0 0.4em 1.4em;
  font-style: italic;
  color: var(--text-dark-muted);
}
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin-bottom: 0.5em; }
.article-body .attribution { display: block; margin-top: -1.2em; margin-bottom: 1.6em; color: var(--text-dark-muted); font-size: 0.9rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.8em 0; }
.tag-list span {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  color: var(--text-dark-muted);
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Related */
.related-heading { margin-top: 3rem; }

/* Contact / form */
.form-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 560px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-light);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-consent { font-size: 0.8rem; color: var(--text-dark-muted); margin-bottom: 20px; }
.form-consent a { color: var(--accent); text-decoration: underline; }
.form-status { margin-top: 14px; font-size: 0.9rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { color: #fff; }
.contact-info a.email {
  color: var(--accent-light);
  font-weight: 700;
  word-break: break-word;
}

/* CTA band */
.cta-band {
  background: var(--accent);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 24px; }

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-muted);
  padding: 40px 0 24px;
  font-size: 0.88rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  padding: 20px 22px;
  z-index: 200;
}
.cookie-banner h4 { margin-bottom: 8px; font-family: var(--font-body); font-size: 1rem; }
.cookie-banner p { font-size: 0.88rem; color: var(--text-dark-muted); margin-bottom: 14px; }
.cookie-banner.hidden { display: none; }

/* Simple content pages */
.simple-page h2 { margin-top: 1.6em; }
.info-list dt { font-weight: 700; margin-top: 1em; }
.info-list dd { margin: 4px 0 0; color: var(--text-dark-muted); }

@media (max-width: 860px) {
  .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-actions .btn-primary { display: none; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    gap: 16px;
    z-index: 60;
  }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}
