/* ============================================================
   Centric Digital - Static Site Rebuild
   Fonts: Montserrat (headings/body), Source Sans Pro (secondary)
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Montserrat", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.8;
  color: #222;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* --- Typography --- */
h1 { font-size: 3.2rem; font-weight: 700; line-height: 1.1; }
h2 { font-size: 2.5rem; font-weight: 700; line-height: 1.15; }
h3 { font-size: 2.1rem; font-weight: 600; line-height: 1.2; }
h4 { font-size: 1.4rem; font-weight: 600; line-height: 1.3; }
h5 { font-size: 1.1rem; font-weight: 600; line-height: 1.3; }

p { color: #555; margin-bottom: 1rem; }

.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4vw;
}

.section {
  padding: 80px 0;
}

.section--gray {
  background: #f7f7f5;
}

.section--dark {
  background: #1C1C1C;
  color: #fff;
}

.section--dark p,
.section--dark .label {
  color: #bbb;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section--newsroom {
  background: #e8e8e6;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.col-2 {
  flex: 1 1 calc(50% - 20px);
  min-width: 300px;
}

.col-3 {
  flex: 1 1 calc(33.333% - 27px);
  min-width: 260px;
}

.text-center { text-align: center; }

/* --- Archive Banner --- */
.archive-banner {
  background: #1C1C1C;
  color: #ccc;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.5;
  z-index: 1001;
  position: relative;
}

/* --- Sticky Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4vw;
  max-width: 1500px;
  margin: 0 auto;
}

.header-logo img {
  height: 28px;
  width: auto;
}

.header-logo .logo-icon {
  display: none;
  height: 32px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-contact {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid #222;
  color: #222;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s;
  background: transparent;
}

.btn-contact:hover {
  background: #222;
  color: #fff;
}

/* Mobile burger */
.header-burger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.header-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #222;
  transition: all 0.3s;
}

/* --- Hero Section --- */
.hero {
  padding: 80px 0 60px;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: center;
}

.hero-text {
  flex: 1 1 420px;
}

.hero-text h1 {
  margin-bottom: 20px;
  font-size: 3rem;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

.hero-image {
  flex: 1 1 420px;
}

.hero-image img {
  width: 100%;
  border-radius: 4px;
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.hero-pillar {
  flex: 1 1 260px;
}

.hero-pillar h4 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.hero-pillar p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

/* --- Stats Section --- */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.stat-card {
  flex: 1 1 300px;
  text-align: center;
}

.stat-card img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px;
}

.stat-card h4 {
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

/* --- IQ Score Section --- */
.iq-section .iq-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.iq-section .iq-intro h2 {
  margin-bottom: 16px;
}

.iq-visual {
  margin-bottom: 50px;
}

.iq-visual img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.iq-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.iq-level {
  flex: 1 1 160px;
  max-width: 200px;
  text-align: center;
}

.iq-level img {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.iq-level h5 {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.iq-level p {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0;
  line-height: 1.5;
}

/* --- Accordion --- */
.accordion {
  border-top: 1px solid #ddd;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.accordion-trigger:hover {
  color: #555;
}

.accordion-icon {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion-content-inner {
  padding: 0 0 18px;
}

.accordion-content-inner p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 0;
}

.accordion-item.active .accordion-content {
  max-height: 300px;
}

/* --- Two-Column Feature Sections --- */
.feature-section {
  padding: 80px 0;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: flex-start;
}

.feature-image {
  flex: 1 1 450px;
}

.feature-image img {
  width: 100%;
  border-radius: 4px;
}

.feature-text {
  flex: 1 1 400px;
}

.feature-text h2 {
  margin-bottom: 24px;
}

/* --- Carousel (shared) --- */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
  padding: 10px;
  background-clip: content-box;
}

.carousel-dot.active {
  background: #222;
  background-clip: content-box;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.3s;
  color: #222;
}

.carousel-btn:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

.carousel-btn--prev { left: 0; }
.carousel-btn--next { right: 0; }

/* --- Insights Carousel --- */
.insights-card {
  flex: 0 0 calc(33.333% - 20px);
  margin-right: 30px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.insights-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.insights-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.insights-card-body {
  padding: 20px;
}

.insights-card h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.insights-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 14px;
}

.read-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
}

.read-more:hover {
  color: #555;
}

.see-more-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 32px;
  border: 2px solid #222;
  color: #222;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.see-more-btn:hover {
  background: #222;
  color: #fff;
}

/* --- Select Work Carousel --- */
.work-card {
  flex: 0 0 calc(33.333% - 20px);
  margin-right: 30px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
}

.work-card img {
  width: 100%;
  height: auto;
  display: block;
}

.work-card-overlay {
  display: none;
}

/* Work descriptions below carousel */
.work-descriptions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.work-desc-item {
  padding: 0;
}

.work-desc-item h5 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.work-desc-item p {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Client Logos Carousel --- */
.client-logo {
  flex: 0 0 calc(14.285% - 26px);
  margin-right: 30px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

.client-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- Newsroom Cards --- */
.newsroom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.newsroom-card {
  padding: 30px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  transition: all 0.3s;
}

.newsroom-card:hover {
  border-color: rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.3);
}

.newsroom-card h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #222;
}

.newsroom-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Contact Section --- */
.contact-section {
  padding: 80px 0;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.contact-info {
  flex: 1 1 350px;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info > p {
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: #555;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.social-links a:hover {
  border-color: #222;
  color: #222;
}

.contact-footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-footer-links a {
  font-size: 0.85rem;
  color: #555;
  transition: color 0.3s;
}

.contact-footer-links a:hover {
  color: #222;
}

.underline-link {
  text-decoration: underline;
}

.contact-form {
  flex: 1 1 400px;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  flex: 1;
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 2px solid #ddd;
  font-family: inherit;
  font-size: 0.9rem;
  color: #222;
  background: transparent;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #222;
}

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

.form-group select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.phone-group {
  display: flex;
  gap: 12px;
}

.phone-group select {
  flex: 0 0 100px;
}

.phone-group input {
  flex: 1;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: #222;
  color: #fff;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 8px;
}

.btn-submit:hover {
  background: #000;
}

/* --- Footer --- */
.site-footer {
  padding: 20px 0;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #999;
}

.site-footer a {
  color: #999;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: #222;
}

/* --- Blog / Newsroom Listing Pages --- */
.page-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid #eee;
}

.page-header h1 {
  font-size: 2.8rem;
}

.post-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 0;
  max-width: 760px;
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 16px;
}

.post-card-date {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.post-card h3 a:hover {
  color: #555;
}

.post-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
  flex-grow: 1;
}

/* --- Individual Blog/Newsroom Post --- */
.article-header {
  padding: 60px 0 30px;
  max-width: 760px;
  margin: 0 auto;
}

.article-header h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
  line-height: 1.2;
}

.article-date {
  font-size: 0.8rem;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 0 60px;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #444;
}

.article-body h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
}

.article-body h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.8rem;
}

.article-body img {
  margin: 1.5rem 0;
  border-radius: 4px;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  color: #444;
  list-style: disc;
  line-height: 1.7;
}

.article-body ol li {
  list-style: decimal;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid #222;
  color: #555;
  font-style: italic;
}

.article-body a {
  color: #222;
  text-decoration: underline;
}

.article-body a:hover {
  color: #555;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #222;
}

.back-link:hover {
  color: #555;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 0 60px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #222;
  transition: all 0.3s;
}

.pagination a:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

.pagination .active {
  background: #222;
  color: #fff;
  border-color: #222;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #222;
  cursor: pointer;
}

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

  .insights-card {
    flex: 0 0 calc(50% - 15px);
  }

  .work-card {
    flex: 0 0 calc(50% - 15px);
  }

  .work-descriptions {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-logo {
    flex: 0 0 calc(20% - 24px);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .section { padding: 50px 0; }

  .header-logo img { height: 22px; }
  .header-logo .logo-icon { display: block; }
  .header-logo .logo-full { display: none; }

  .header-burger { display: flex; }
  .header-nav { display: none; }

  .hero-text h1 { font-size: 2rem; }

  .hero-content {
    flex-direction: column;
    gap: 30px;
  }

  .feature-row {
    flex-direction: column;
    gap: 30px;
  }

  .feature-row.reverse {
    flex-direction: column;
  }

  .insights-card {
    flex: 0 0 85%;
  }

  .work-card {
    flex: 0 0 85%;
  }

  .work-descriptions {
    grid-template-columns: 1fr;
  }

  .client-logo {
    flex: 0 0 calc(33.333% - 20px);
  }

  .contact-row {
    flex-direction: column;
    gap: 40px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

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

  .site-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .article-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 5vw; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .hero-pillars { gap: 24px; }
  .iq-levels { gap: 16px; }

  .insights-card { flex: 0 0 90%; }
  .work-card { flex: 0 0 90%; }

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

