:root {
  /* Charcoal-gray, taken from the BeTa CONT logo wordmark */
  --navy: #4b4b4d;
  --navy-dark: #2b2b2d;
  --navy-light: #6f6f72;
  /* Gold / orange, taken from the BeTa CONT logo bar-chart mark */
  --gold: #f4a125;
  --gold-light: #ffcd3c;
  --orange: #f26522;
  --grad-brand: linear-gradient(135deg, #ffe07a 0%, #fdb827 45%, #f26522 100%);
  --paper: #f7f5f0;
  --ink: #1c2733;
  --ink-soft: #4a5568;
  --border: #e3ddd0;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(43, 43, 45, 0.1);
  --shadow-lg: 0 20px 45px rgba(43, 43, 45, 0.16);
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

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

p { margin: 0 0 1em; }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--white); }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-lead {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: var(--navy-dark);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(14,42,71,0.25);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--navy); background: rgba(14,42,71,0.05); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  color: var(--navy);
  flex-shrink: 0;
}
.brand-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.logo-text strong { color: var(--orange); }

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a { color: var(--navy); opacity: 0.85; }
.main-nav a:hover { opacity: 1; color: var(--gold); }

.header-cta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.phone-link { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); }
.phone-link:hover { color: var(--gold); }

.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); border-radius: 2px; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(244,161,37,0.22), transparent),
              linear-gradient(180deg, var(--navy-dark), var(--navy) 70%);
  color: var(--white);
  padding: 110px 0 90px;
}
.hero-inner { display: flex; justify-content: center; align-items: center; gap: 60px; }
.hero-copy { max-width: 640px; text-align: left; }
.hero h1 { color: var(--white); }
.hero-logo {
  flex-shrink: 0;
  width: 230px;
}
.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.hero-lead { color: rgba(255,255,255,0.82); font-size: 1.15rem; max-width: 640px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 40px; }
.hero .btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--white); }
.hero .btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding: 24px 0 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
}
.trust-strip strong { color: var(--gold-light); }

/* Companies */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.company-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.company-tag {
  display: inline-block;
  background: rgba(199,154,75,0.15);
  color: #8a6a2c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.company-cui {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.company-card p a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: rgba(242,101,34,0.4);
  text-underline-offset: 2px;
}
.company-card p a:hover { text-decoration-color: var(--orange); }

.growth-banner {
  margin: 32px 0 40px;
  padding: 26px 32px;
  border-radius: var(--radius);
  background: var(--grad-brand);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
  box-shadow: var(--shadow);
}
.growth-figure {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.growth-arrow { font-size: 1.4rem; }
.growth-caption {
  margin: 0;
  max-width: 480px;
  font-size: 0.92rem;
  color: rgba(43,43,45,0.85);
}
.growth-caption strong { color: var(--navy-dark); }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-card p { color: var(--ink-soft); margin-bottom: 0; }

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: start;
}
.why-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.why-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-soft);
}
.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.why-list strong { color: var(--navy); }

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}
.stat-number { display: block; font-family: Georgia, serif; font-size: 2.2rem; color: var(--gold-light); }
.stat-label { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-top: 6px; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.team-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.team-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--gold-light);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-role { color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.team-desc { color: var(--ink-soft); font-size: 0.95rem; }
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 700;
  color: var(--navy);
  border: 1.5px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
}
.linkedin-link:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Team photo — intentionally small, static, not a clickable/zoomable lightbox */
.team-photo-wrap {
  max-width: 460px;
  margin: 36px auto 0;
  text-align: center;
}
.team-photo-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.team-photo-caption {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.review-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.review-card p { color: var(--ink); font-size: 1.02rem; font-style: italic; }
.review-card footer { color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; }
.review-card footer span { color: var(--gold); font-weight: 700; }

/* Blog CTA */
.blog-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
.blog-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.blog-topics li {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.blog-topics li:hover { border-color: var(--gold); background: var(--white); }
.blog-topics li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--navy);
}
.blog-topics li a::after {
  content: "→";
  color: var(--orange);
  flex-shrink: 0;
}
.blog-topics li a:hover { color: var(--orange); }

/* Contact */
.contact-section { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}
.contact-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-soft); }
.contact-list li svg { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.contact-list a { font-weight: 700; color: var(--navy); }
.contact-list a:hover { color: var(--gold); }
.contact-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.contact-map {
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 340px; }

/* Office photo gallery */
.office-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 28px;
}
.office-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.office-gallery-caption { font-size: 0.8rem; color: var(--ink-soft); margin: -18px 0 20px; font-style: italic; }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 44px 0; }
.footer-inner { text-align: center; display: grid; gap: 14px; justify-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: Georgia, serif; font-size: 1.2rem; color: var(--white); }
.footer-companies { font-size: 0.85rem; max-width: 700px; }
.footer-copy { font-size: 0.8rem; margin: 0; }
.ceccar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 16px;
  border-radius: 999px;
}
.ceccar-badge:hover { border-color: var(--gold-light); color: var(--gold-light); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta .phone-link { display: none; }
  .nav-toggle { display: flex; }
  .why-grid, .blog-inner, .contact-grid { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-logo { width: 180px; }
  .office-gallery { grid-template-columns: 1fr; }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 520px) {
  .section { padding: 60px 0; }
  .hero { padding: 90px 0 60px; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .contact-buttons .btn { width: 100%; justify-content: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .header-cta .btn-primary { display: none; }
  .header-inner { gap: 12px; }
}
