/* Magma Inc. V4 Landing Page - Design System
   Extracted from live magmainc.ca + V4 spec
   Font: Montserrat | Primary: #01004C | Accent: #1E73BE */

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

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

body {
  font-family: 'Montserrat', sans-serif;
  color: #01004C;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #1E73BE; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ========== TYPOGRAPHY ========== */
h1 { font-size: 48px; font-weight: 700; line-height: 1.3; }
h2 { font-size: 40px; font-weight: 700; line-height: 1.3; }
h3 { font-size: 24px; font-weight: 700; line-height: 1.4; }
p { margin-bottom: 1em; }

/* ========== HEADER / NAV ========== */
.site-header {
  background: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.site-logo span {
  font-size: 20px;
  font-weight: 700;
  color: #01004C;
  margin-left: 10px;
  vertical-align: middle;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-block;
  background: #EA2525;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #c91e1e;
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  display: inline-block;
  color: #1E73BE;
  font-weight: 600;
  font-size: 15px;
}

/* ========== SECTIONS ========== */
section { padding: 80px 0; }

.bg-white { background: #fff; }
.bg-grey { background: #F1F6F7; }

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

/* ========== HERO ========== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 { margin-bottom: 16px; }

.hero .subtitle {
  font-size: 18px;
  font-style: italic;
  color: #333;
  margin-bottom: 32px;
}

.hero .cta-group { margin-top: 32px; }

.hero .cta-subtext {
  font-size: 14px;
  color: #555;
  margin-top: 12px;
  font-style: italic;
}

.hero .secondary-cta {
  display: block;
  margin-top: 20px;
  font-size: 15px;
}

/* ========== TESTIMONIAL CAROUSEL ========== */
.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-slide {
  display: none;
  animation: fadeIn 0.6s ease;
}

.carousel-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #01004C;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dots .dot.active {
  background: #01004C;
}

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

.testimonial-featured blockquote {
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: #01004C;
  margin-bottom: 24px;
}

.testimonial-featured .author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonial-featured .author img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-featured .author-info {
  text-align: left;
}

.testimonial-featured .author-name {
  font-weight: 700;
  font-size: 16px;
}

.testimonial-featured .author-title {
  font-size: 14px;
  color: #555;
}

/* ========== TRUST BAR ========== */
.trust-bar {
  padding: 48px 0;
  text-align: center;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.trust-logos img,
.trust-logos .logo-text {
  height: 36px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity 0.2s, filter 0.2s;
}

.trust-logos .logo-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #01004C;
  line-height: 36px;
}

.trust-logos img:hover,
.trust-logos .logo-text:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.trust-bar .delivery-note {
  font-size: 14px;
  color: #555;
  margin-top: 12px;
}

.trust-bar .tagline {
  font-size: 16px;
  font-weight: 600;
  color: #01004C;
  margin-top: 16px;
}

/* ========== MAGMA PROCESS ========== */
.process-intro {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
  font-size: 17px;
}

.process-steps {
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  margin-bottom: 24px;
  padding-left: 48px;
  position: relative;
}

.process-step .step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background: #01004C;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.process-step h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 15px;
  color: #333;
}

/* CodeGnosis teaser */
.codegnosis-teaser {
  max-width: 800px;
  margin: 48px auto 0;
  padding: 32px;
  background: #F1F6F7;
  border-left: 4px solid #1E73BE;
  border-radius: 4px;
}

.codegnosis-teaser h3 { margin-bottom: 12px; }
.codegnosis-teaser p { font-size: 15px; color: #333; }

/* ========== OFFER CARDS ========== */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.offer-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 32px 24px;
  position: relative;
}

.offer-card.featured {
  border-color: #1E73BE;
  box-shadow: 0 4px 16px rgba(30,115,190,0.15);
}

.offer-card .offer-label {
  display: inline-block;
  background: #1E73BE;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.offer-card h3 { margin-bottom: 8px; }

.offer-card .offer-price {
  font-size: 16px;
  font-weight: 600;
  color: #555;
  margin-bottom: 16px;
}

.offer-card ul {
  list-style: none;
  margin: 16px 0;
}

.offer-card ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 14px;
  color: #333;
}

.offer-card ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #A9BF5A;
  font-weight: 700;
}

.offer-card .credit-note {
  font-size: 13px;
  color: #1E73BE;
  font-style: italic;
  margin-top: 12px;
}

.after-engagement {
  max-width: 700px;
  margin: 48px auto 0;
  text-align: center;
  font-size: 15px;
  color: #555;
}

/* ========== STATS BAR ========== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  margin-bottom: 64px;
}

.stat-item .stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #01004C;
  margin-bottom: 4px;
}

.stat-item .stat-label {
  font-size: 13px;
  color: #555;
}

/* Additional testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.testimonial-card blockquote {
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  color: #333;
  margin-bottom: 16px;
}

.testimonial-card .author-name { font-weight: 700; font-size: 14px; }
.testimonial-card .author-title { font-size: 13px; color: #555; }

/* ========== WHO WE WORK WITH ========== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 48px;
}

.audience-card h3 { margin-bottom: 12px; }
.audience-card p { font-size: 15px; color: #333; }

/* ========== CREDENTIALS ========== */
.credentials {
  margin-top: 64px;
  text-align: center;
}

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

.credentials p {
  font-size: 14px;
  color: #555;
  max-width: 700px;
  margin: 0 auto 8px;
}

.credentials a { color: #1E73BE; }

/* ========== FAQ ACCORDION ========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.faq-item:first-child {
  border-top: 1px solid #e0e0e0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 40px 20px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #01004C;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: #1E73BE;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: "\2212";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

/* ========== TIDYCAL EMBED ========== */
.tidycal-embed {
  max-width: 700px;
  margin: 24px auto 0;
  min-height: 400px;
}

/* ========== BOTTOM CTA ========== */
.cta-section { text-align: center; }

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

.cta-section .cta-description {
  font-size: 17px;
  color: #333;
  max-width: 700px;
  margin: 0 auto 24px;
}

.cta-section .cta-subtext {
  font-size: 14px;
  color: #555;
  margin-top: 12px;
  font-style: italic;
}

.cta-section .secondary-options {
  margin-top: 32px;
  font-size: 15px;
}

.cta-section .direct-contact {
  margin-top: 24px;
  font-size: 14px;
  color: #555;
}

.cta-section .direct-contact a {
  margin: 0 8px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #01004C;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  font-size: 14px;
}

.site-footer a {
  color: rgba(255,255,255,0.9);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-badge .gcp-badge {
  height: 72px;
  width: auto;
  opacity: 0.9;
}

.footer-description {
  text-align: left;
  max-width: 600px;
}

.footer-description p {
  margin-bottom: 4px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.5;
}

.footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
}

.footer-copyright p {
  margin: 0;
  font-size: 13px;
}

.footer-copyright a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.footer-copyright a:hover {
  color: rgba(255,255,255,0.9);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  section { padding: 48px 0; }
  .hero { padding: 60px 0 48px; }

  html { scroll-padding-top: 180px; }

  /* Mobile nav: hide section links, keep CTA button */
  .site-header nav .btn-secondary { display: none; }
  .site-header nav .btn-primary { margin-left: 0; font-size: 14px; padding: 10px 20px; }

  .offers-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .trust-logos { gap: 24px; }
  .trust-logos img { height: 28px; }

  .footer-content { flex-direction: column; text-align: center; }
  .footer-description { text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }

  .container { padding: 0 16px; }
  .stats-bar { grid-template-columns: 1fr; }
  .trust-logos img { height: 24px; }
}

/* ========== CODE INTELLIGENCE PAGE ========== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.problem-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.problem-card p {
  font-size: 15px;
  color: #333;
}

.before-after {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 32px;
}

.before-after .before { color: #555; }
.before-after .after { color: #01004C; }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.approach-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.approach-card p {
  font-size: 15px;
  color: #333;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
}

.comparison-table th {
  font-weight: 700;
  color: #01004C;
}

.comparison-table td:last-child {
  font-weight: 700;
  color: #1E73BE;
}

.elephant-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.elephant-section p {
  font-size: 17px;
  color: #333;
  text-align: left;
}

.trust-testimonial {
  max-width: 700px;
  margin: 32px auto;
  text-align: center;
}

.trust-testimonial blockquote {
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: #01004C;
  margin-bottom: 16px;
}

.trust-testimonial .author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #555;
}

.trust-testimonial .author img {
  border-radius: 50%;
  object-fit: cover;
}

.trust-testimonial .author-info {
  text-align: left;
}

.trust-testimonial .author-name {
  font-weight: 700;
  color: #01004C;
}

.trust-testimonial .author-title {
  font-size: 13px;
  color: #555;
}

.trust-borrowed {
  max-width: 700px;
  margin: 0 auto 32px;
  font-size: 15px;
  color: #333;
  text-align: center;
}

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.trust-pillar strong {
  display: block;
  margin-bottom: 4px;
  color: #01004C;
}

.trust-pillar {
  font-size: 14px;
  color: #333;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.deliverable-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
}

.deliverable-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.deliverable-card ul {
  list-style: none;
  margin: 0;
}

.deliverable-card ul li {
  padding: 4px 0 4px 20px;
  position: relative;
  font-size: 14px;
  color: #333;
}

.deliverable-card ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #A9BF5A;
  font-weight: 700;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 48px;
}

.fit-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.fit-card p,
.fit-card li {
  font-size: 15px;
  color: #333;
}

.fit-card ul {
  list-style: disc;
  margin-left: 20px;
}

.fit-card ul li {
  padding: 4px 0;
}

.about-section {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-section blockquote {
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: #01004C;
  margin-bottom: 24px;
}

.about-section p {
  font-size: 15px;
  color: #333;
  text-align: left;
}

/* Code Intelligence responsive overrides */
@media (max-width: 768px) {
  .problem-grid { grid-template-columns: 1fr; }
  .before-after { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .trust-pillars { grid-template-columns: 1fr; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .fit-grid { grid-template-columns: 1fr; }

  .comparison-table { font-size: 13px; }
  .comparison-table th,
  .comparison-table td { padding: 8px; }
}
