/* ══════════════════════════════════════
   Discern Group — Precision Slate Theme
   ══════════════════════════════════════ */

:root {
  --primary-dark: #1C2B3A;
  --brand-blue: #156082;
  --highlight-blue: #2A9DC5;
  --cool-mid: #B6C5D9;
  --warm-white: #F4F3EF;
  --accent: #E87722;
  --text: #333333;
  --text-light: #888888;
  --white: #FFFFFF;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--warm-white);
}

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

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

a:hover {
  color: var(--brand-blue);
}

/* ── TYPOGRAPHY ── */
h1, h2 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--primary-dark);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

h1 { font-size: clamp(36px, 5vw, 48px); }
h2 { font-size: clamp(28px, 4vw, 36px); }

h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--brand-blue);
  letter-spacing: 0.02em;
}

h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

p + p {
  margin-top: 1em;
}

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 680px;
}

/* ── NAVIGATION ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary-dark);
  border-bottom: 2px solid var(--brand-blue);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 32px;
  height: 32px;
}

.nav-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--white);
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cool-mid);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--highlight-blue);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cool-mid);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.contact-form-disabled {
  border: 1px solid var(--cool-mid);
  border-radius: 12px;
  padding: 24px;
  background: var(--white);
}

/* ── HEADER LOGO (inline with h1) ── */
.header-logo {
  display: inline-block;
  height: 1.15em;
  width: auto;
  vertical-align: middle;
  margin-right: 0.2em;
  position: relative;
  top: -0.08em;
}

.hero-logo {
  height: 1.1em;
  top: -0.06em;
}

/* ── HERO ── */
.hero {
  background: var(--primary-dark);
  padding: 100px 24px 80px;
  text-align: center;
}

.hero .container {
  max-width: 800px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 16px;
}

.hero .subtitle {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--cool-mid);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

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

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: #d06a1d;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--cool-mid);
}

.btn-outline:hover {
  border-color: var(--highlight-blue);
  color: var(--highlight-blue);
}

/* ── SECTIONS ── */
.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--white);
}

.section-dark {
  background: var(--primary-dark);
  color: var(--white);
}

.section-dark h2 {
  color: var(--white);
}

.section-dark p {
  color: var(--cool-mid);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 600px;
  margin: 12px auto 0;
}

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border-radius: 4px;
  padding: 32px;
  border-left: 4px solid var(--brand-blue);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

.card .card-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.card ul {
  margin-top: 12px;
  padding-left: 18px;
  font-size: 14px;
  color: #666;
}

.card ul li {
  margin-bottom: 4px;
}

/* ── PAGE HEADER ── */
.page-header {
  background: var(--primary-dark);
  padding: 60px 24px 48px;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
}

.page-header .subtitle {
  color: var(--cool-mid);
  font-size: 17px;
  margin-top: 8px;
}

/* ── PAGE CONTENT ── */
.page-content {
  padding: 60px 24px;
}

.page-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.page-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-content p {
  margin-bottom: 16px;
}

.page-content ul, .page-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 6px;
}

.content-image {
  margin: 32px 0;
}

.content-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.content-image figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-light);
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--brand-blue);
  padding: 60px 24px;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-band p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  font-size: 17px;
}

/* ── CONTACT FORM ── */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info h3 {
  margin-bottom: 16px;
}

.contact-info p {
  margin-bottom: 12px;
  color: #555;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--cool-mid);
  border-radius: 3px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}

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

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

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-note,
.contact-form-status {
  font-size: 14px;
  color: var(--text-light);
}

.contact-form-status {
  min-height: 1.5em;
}

/* ── BLOG ── */
.post-card {
  padding: 32px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.post-card:first-child {
  padding-top: 0;
}

.post-card h2 {
  font-size: 28px;
  margin-bottom: 4px;
}

.post-card h2 a {
  color: var(--primary-dark);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--brand-blue);
}

.post-card time {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-light);
  text-transform: uppercase;
}

.post-card p {
  margin-top: 8px;
  color: #555;
}

.read-more {
  display: inline-block;
  margin-top: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.read-more:hover {
  color: var(--accent);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--primary-dark);
  border-top: 3px solid var(--brand-blue);
  color: var(--cool-mid);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 13px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--highlight-blue);
}

.footer-contact a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.footer-contact a:hover {
  color: var(--highlight-blue);
}

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 24px;
  text-align: center;
}

.footer-bar p {
  font-size: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}

/* ── WHY SECTION ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.why-item {
  text-align: center;
  padding: 24px;
}

.why-item h3 {
  margin-bottom: 8px;
}

.why-item p {
  font-size: 15px;
  color: #666;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 0;
    border-bottom: 2px solid var(--brand-blue);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .hero {
    padding: 64px 24px 56px;
  }

  .section {
    padding: 48px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}
