/* ==========================================================================
   MAIN.CSS - Core Base Styles Only
   Version: 2.0.0
   ========================================================================== */

/* CSS Variables */
:root {
  --accent: #39a63d;
  --accent-dark: #2d7f31;
  --text: #111827;
  --muted: #6b7280;
  --bg: #ffffff;
  --navy: #0b2b47;
  --navy-dark: #002856;
  --lime-green: #99cc00;
  --light-bg: #f8f9fc;
  --container-max: 1200px;
  --gap: 1.25rem;
  --radius: 12px;
  --fw-regular: 400;
  --fw-bold: 700;
  --card-shadow: 0 18px 40px rgba(11, 43, 71, 0.06);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (hover: hover) {
a:hover {
  color: var(--accent-dark);
}
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.site {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}

/* ==========================================================================
   RESPONSIVE CONTAINER
   ========================================================================== */

@media (max-width: 1400px) {
  .container-wide {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }

  .container-wide {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
}

/* ==========================================================================
   LEGAL PAGES (Privacy Policy / Terms of Service)
   ========================================================================== */
.legal-page {
  padding: 60px 0 80px;
}

.legal-page .container {
  max-width: 860px;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--navy);
  margin: 0 0 8px;
}

.legal-page .legal-updated {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0 0 40px;
}

.legal-page h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin: 40px 0 14px;
}

.legal-page p {
  color: #374151;
  line-height: 1.8;
  margin: 0 0 16px;
}

.legal-page ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-page li {
  color: #374151;
  line-height: 1.8;
  margin-bottom: 10px;
}

/* ==========================================================================
   POST CARD MEDIA PLACEHOLDER (text-only posts, e.g. case studies)
   ========================================================================== */
.post-media-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

/* Compound selectors so the brand gradient beats the base grey image bg */
.post-card-image.post-media-placeholder,
.post-featured-image.post-media-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.post-media-placeholder > a {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.post-media-placeholder .placeholder-label {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}

.post-media-placeholder .placeholder-icon {
  position: absolute;
  right: 20px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.16);
  font-size: 2.6rem;
}
