/* The Communication Academy - Main Stylesheet */
:root {
  --navy: #1a3a5c;
  --gold: #c9a84c;
  --light-gold: #f5e6c0;
  --white: #ffffff;
  --light-bg: #f8f9fb;
  --text: #2d3748;
  --text-muted: #6b7280;
  --border: #e2e8f0;
  --max-width: 1200px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', Georgia, serif;
  color: var(--navy);
  line-height: 1.3;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .8rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: .6rem; }
p { margin-bottom: 1rem; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

/* ── Header / Nav ── */
.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.5rem;
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.logo-main {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.2;
}
.logo-tagline {
  color: var(--gold);
  font-size: .75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.main-nav { display: flex; gap: 0; }
.main-nav a {
  color: rgba(255,255,255,.85);
  padding: .75rem 1.1rem;
  font-size: .9rem;
  font-weight: 500;
  transition: background .2s, color .2s;
  border-radius: 4px;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--gold);
  background: rgba(255,255,255,.07);
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 5px 0; transition: .3s;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a5080 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/images/header_image.jpg') center/cover;
  opacity: .15;
}
.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.hero .subtitle { font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 2rem; }
.hero .stat-strip {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: center; margin-top: 2.5rem;
}
.stat-item { text-align: center; }
.stat-item .stat-num {
  font-size: 2.2rem; font-weight: 700; color: var(--gold); display: block;
}
.stat-item .stat-label { font-size: .8rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: 1px; }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: .75rem 1.75rem;
  border-radius: 4px; font-weight: 600; font-size: .95rem;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #b8972f; color: var(--navy); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--navy); }

/* ── Containers ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--light-bg); }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { margin-bottom: .5rem; }
.section-title p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.gold-line {
  width: 50px; height: 3px; background: var(--gold);
  margin: .75rem auto 0;
}

/* ── Article Cards ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.card-img {
  width: 100%; height: 180px;
  object-fit: cover; display: block;
}
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-category {
  font-size: .75rem; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: .4rem;
}
.card-body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.card-body p { font-size: .9rem; color: var(--text-muted); flex: 1; }
.card-link {
  display: inline-block; margin-top: 1rem;
  color: var(--navy); font-weight: 600; font-size: .9rem;
  border-bottom: 2px solid var(--gold); padding-bottom: 1px;
}
.card-link:hover { color: var(--gold); }

/* ── Article Page ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.article-content { min-width: 0; }
.article-content h1 { margin-bottom: .5rem; }
.article-meta {
  color: var(--text-muted); font-size: .85rem;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.article-featured-img {
  width: 100%; border-radius: 8px;
  margin-bottom: 1.5rem; display: block;
}
.article-content h2 { margin-top: 2rem; }
.article-content h3 { margin-top: 1.5rem; }
.article-content ul, .article-content ol {
  margin: 1rem 0 1rem 1.5rem;
}
.article-content li { margin-bottom: .4rem; }
.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  background: var(--light-bg);
  margin: 1.5rem 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
.article-content .tip-box {
  background: var(--light-gold);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.article-content .tip-box h4 { color: var(--navy); margin-bottom: .5rem; }

/* ── Sidebar ── */
.sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-size: .95rem; margin-bottom: 1rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--gold);
}
.sidebar-links { list-style: none; }
.sidebar-links li { padding: .4rem 0; border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { font-size: .9rem; }

/* ── About / Profile ── */
.profile-block {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}
.profile-img {
  width: 100%; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.credential-list { list-style: none; }
.credential-list li {
  padding: .5rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.credential-list li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--gold);
}
.client-grid {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem;
}
.client-tag {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .35rem .9rem;
  font-size: .85rem; color: var(--text-muted);
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-size: 4rem; color: var(--gold); opacity: .3;
  position: absolute; top: -.5rem; left: 1rem;
  font-family: Georgia, serif; line-height: 1;
}
.testimonial-text { font-style: italic; margin-bottom: 1rem; }
.testimonial-source { font-weight: 700; font-size: .85rem; color: var(--navy); }

/* ── Legacy Banner ── */
.legacy-banner {
  background: var(--navy);
  color: var(--white);
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
}
.legacy-banner h2 { color: var(--white); margin-bottom: .75rem; }
.legacy-banner p { color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto; }

/* ── FAQ ── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-question {
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  background: var(--light-bg);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.2rem; color: var(--gold); }
.faq-answer { padding: 1.1rem 1.5rem; display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question::after { content: '−'; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-brand h3 { color: var(--white); margin-bottom: .75rem; font-size: 1.1rem; }
.footer-brand p { font-size: .9rem; line-height: 1.6; }
.footer-col h4 { color: var(--gold); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  font-size: .8rem;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--light-bg);
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--navy); }
.breadcrumb span { margin: 0 .4rem; }

/* ── Contact ── */
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: .75rem 1rem;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: .95rem; font-family: inherit;
  background: var(--white); color: var(--text);
  margin-bottom: 1rem;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--navy);
}
.contact-form label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .9rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 1rem; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .profile-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1.5rem; }
  .articles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}
