/* ============================================
   Checkbox Compliance — Global Styles
   Color palette inspired by TrustLayer
   ============================================ */

:root {
  /* Core palette */
  --bg: #F4F2EF;
  --bg-white: #FFFFFF;
  --fg: #1E1E22;
  --fg-muted: #6B6B70;

  /* Primary — deep maroon */
  --primary: #7A1F2B;
  --primary-light: #A63D4A;
  --primary-fg: #FFFFFF;

  /* Accent — soft gold */
  --gold: #C6A75E;
  --gold-light: #D4B96A;
  --gold-fg: #FFFFFF;

  /* Borders & surfaces */
  --border: #E5E2DD;
  --card-bg: #FFFFFF;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.1);

  /* Status */
  --success: #16A34A;
  --destructive: #DC2626;

  /* Spacing */
  --section-pad: 80px 0;
  --container-width: 1140px;
  --radius: 0.5rem;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

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

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
p { margin-bottom: 16px; }

.section-subtitle {
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 600px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-gold {
  background: var(--gold);
  color: var(--gold-fg);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--gold-fg);
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .logo-check {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--fg);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover { color: var(--primary); }

.nav-cta .btn { padding: 10px 24px; font-size: 0.9rem; color: #ffffff; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--fg);
  cursor: pointer;
}

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

.hero h1 {
  margin-bottom: 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero p {
  font-size: 1.2rem;
  color: var(--fg-muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.hero-badge .badge-icon {
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
}

/* ---- Sections ---- */
.section {
  padding: var(--section-pad);
}

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

.section-header .section-subtitle {
  margin: 0 auto;
}

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

/* ---- Services Grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.service-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.card-icon.maroon { background: rgba(122, 31, 43, 0.1); color: var(--primary); }
.card-icon.gold   { background: rgba(198, 167, 94, 0.1); color: var(--gold); }
.card-icon.green  { background: rgba(22, 163, 74, 0.1);  color: var(--success); }

.service-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* ---- Why Fractional ---- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-content h2 {
  margin-bottom: 16px;
}

.why-content p {
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.why-list .check {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  margin-top: 2px;
}

.why-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 4px;
  margin-bottom: 0;
}

.stat-card.accent {
  background: var(--primary);
  border-color: var(--primary);
}

.stat-card.accent .stat-number { color: var(--gold); }
.stat-card.accent .stat-label { color: rgba(255,255,255,0.8); }

/* ---- Frameworks ---- */
.frameworks-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.framework-tag {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  transition: border-color 0.2s, background 0.2s;
}

.framework-tag:hover {
  border-color: var(--primary);
  background: rgba(122, 31, 43, 0.04);
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

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

.testimonial-card .quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--fg);
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-info .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.author-info .role {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--primary);
  padding: 64px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--primary-fg);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.cta-banner .btn-gold { margin-right: 12px; }

/* ---- About Page ---- */
.page-hero {
  padding: 64px 0;
  text-align: center;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { margin-bottom: 12px; }
.page-hero p {
  color: var(--fg-muted);
  font-size: 1.15rem;
  max-width: 900px;
  margin: 0 auto;
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-story p { color: var(--fg-muted); }

.about-photo-placeholder {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 32px 24px;
}

.value-card .value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(122,31,43,0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.value-card p { color: var(--fg-muted); font-size: 0.95rem; }

/* ---- Accordion ---- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: background 0.15s;
}

.accordion-trigger:hover {
  background: rgba(122, 31, 43, 0.03);
}

.accordion-trigger .service-card-header {
  margin-bottom: 0;
  pointer-events: none;
}

.accordion-trigger h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.accordion-arrow {
  font-size: 1.4rem;
  color: var(--fg-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
  line-height: 1;
}

.accordion-trigger[aria-expanded="true"] .accordion-arrow {
  transform: rotate(90deg);
}

.accordion-body {
  display: none;
  padding: 0 28px 24px;
  border-top: 1px solid var(--border);
}

.accordion-body.open {
  display: block;
}

.accordion-body p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-top: 20px;
}

/* ---- Services Page ---- */
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.service-detail {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 0;
  height: 100%;
  box-sizing: border-box;
}

.service-detail:last-child { margin-bottom: 0; }

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.service-detail-header .detail-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.service-detail h3 { font-size: 1.5rem; margin-bottom: 0; }
.service-detail p { color: var(--fg-muted); }

.service-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.service-includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.service-includes .check-sm {
  color: var(--primary);
  font-size: 14px;
}

.service-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  position: relative;
  transition: box-shadow 0.2s;
}

.pricing-card:hover { box-shadow: var(--card-shadow-hover); }

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.pricing-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.pricing-card .price-note {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.pricing-features .check-sm { color: var(--primary); }

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

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--fg);
  background: var(--bg);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(122, 31, 43, 0.08);
}

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

.contact-info h3 { margin-bottom: 16px; }
.contact-info p { color: var(--fg-muted); margin-bottom: 32px; }

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-details li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-details .detail-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: rgba(122,31,43,0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-details .detail-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-details .detail-value {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--fg);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo { color: var(--gold); margin-bottom: 12px; }
.footer-brand .nav-logo .logo-check { background: var(--gold); color: var(--fg); }

.footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }

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

  .nav-links { display: none; }
  .mobile-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 16px;
    z-index: 99;
  }

  .hero { padding: 60px 0 48px; }
  .hero p { font-size: 1.05rem; }

  /* Stack two-column layouts */
  .service-split,
  .why-grid,
  .about-story,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
  }

  .service-detail:nth-child(even) { direction: ltr; }

  .why-visual { grid-template-columns: 1fr 1fr; }

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

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

  .cta-banner { padding: 48px 0; }
  .page-hero { padding: 48px 0; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.65rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .why-visual { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-photo { text-align: center; }
}
