/* ============================================
   Meridian Group — Stylesheet
   Replace colors in :root to match your brand.
   ============================================ */

:root {
  --navy: #10233f;
  --navy-light: #16304f;
  --accent: #b8912f;
  --accent-light: #d9b45f;
  --bg: #f7f7f5;
  --bg-alt: #eef0ef;
  --text: #232830;
  --text-muted: #5b6270;
  --white: #ffffff;
  --border: #e0e2e0;
  --radius: 6px;
  --shadow: 0 4px 18px rgba(16, 35, 63, 0.08);
  --max-width: 1160px;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

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

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

ul {
  list-style: none;
}

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

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

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

p { color: var(--text-muted); }

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

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

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

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

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
}
.logo span {
  color: var(--accent);
}
.logo-img {
  height: 42px;
  width: auto;
  border-radius: 8px;
  display: block;
}
.footer-logo-img {
  height: 46px;
  width: auto;
  border-radius: 8px;
  display: block;
  margin-bottom: 14px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  border-bottom-color: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 100px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 32px;
}

.hero-panel dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.hero-panel dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.hero-panel dd {
  font-size: 1.05rem;
  color: var(--white);
}

/* ===== Page header (non-home pages) ===== */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-header h1 {
  color: var(--white);
}
.page-header p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 12px auto 0;
}

/* ===== Sections ===== */
section {
  padding: 88px 0;
}

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

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

/* ===== Card grid ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

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

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats .stat-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--accent);
  font-weight: 700;
}
.stats .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* ===== Team ===== */
.team-member {
  text-align: center;
}
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--navy);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 16px;
}
.team-member h3 {
  margin-bottom: 4px;
}
.team-role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Process steps ===== */
.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-step {
  position: relative;
  padding-top: 44px;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

/* ===== Testimonial ===== */
.testimonial {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto 24px;
}
.testimonial cite {
  color: var(--accent-light);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 {
  color: var(--white);
  margin-bottom: 12px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

/* ===== Tags & lists ===== */
.tag {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
}

.check-list {
  margin-top: 16px;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ===== Work samples ===== */
.work-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}
.work-card-body {
  padding: 20px 22px;
}
.blog-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover {
  box-shadow: 0 12px 28px rgba(16, 35, 63, 0.1);
  transform: translateY(-2px);
}
.blog-card h3 {
  margin-bottom: 10px;
}
.blog-card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: var(--accent);
}
.work-card-body h3 {
  font-size: 1.05rem;
}

/* ===== Video embed ===== */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== YouTube card ===== */
.youtube-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 60%, #1a3a5c 100%);
  border-radius: 16px;
  padding: 72px 32px;
  box-shadow: 0 20px 50px rgba(16, 35, 63, 0.25);
}

.youtube-card-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(184, 145, 47, 0.35) 0%, rgba(184, 145, 47, 0) 70%);
  pointer-events: none;
}

.youtube-card-icon {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(184, 145, 47, 0.45);
}

.youtube-card h2 {
  position: relative;
  margin-bottom: 4px;
}

.youtube-card > p.eyebrow,
.youtube-card > p {
  position: relative;
}

.youtube-card-actions {
  position: relative;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.youtube-card-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
}
.youtube-card-actions .btn-outline:hover {
  border-color: var(--white);
}

@media (max-width: 600px) {
  .youtube-card {
    padding: 56px 20px;
  }
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-info-item {
  margin-bottom: 28px;
}
.contact-info-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.map-placeholder {
  margin-top: 28px;
  height: 220px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 10px, #e4e6e4 10px, #e4e6e4 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.form-status {
  font-size: 0.9rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  display: none;
}
.form-status.success {
  display: block;
  background: #e6f4ea;
  color: #1e7b34;
}
.form-status.error {
  display: block;
  background: #fbe7e7;
  color: #b3261e;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-grid a, .footer-grid p {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.footer-grid a:hover {
  color: var(--accent-light);
}

.footer-logo {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .nav-links, .nav-cta .btn-outline-dark {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-wrap.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .hero .container,
  .grid-3, .grid-2, .grid-4, .grid-5, .process, .stats, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  section {
    padding: 56px 0;
  }

  .testimonial {
    padding: 36px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}
