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

:root {
  --color-primary: #1a56db;
  --color-primary-dark: #1344b0;
  --color-text: #f1f5f9;
  --color-muted: #94a3b8;
  --color-border: #2a3142;
  --color-bg: #0f1117;
  --color-bg-alt: #161b27;
  --color-card: #1a2035;
  --max-width: 1100px;
  --font: 'Inter', system-ui, sans-serif;
}

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

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

/* ---- HEADER ---- */
.site-header { background: var(--color-primary); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 700; font-size: 1.1rem; color: #fff; text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 1rem; }
.main-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.875rem; font-weight: 500; padding: 0.3rem 0.5rem; border-radius: 4px; transition: background 0.15s, color 0.15s; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.18); }
.btn-nav { background: rgba(255,255,255,0.15) !important; color: #fff !important; padding: 0.45rem 1rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.3); }
.btn-nav:hover { background: rgba(255,255,255,0.25) !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #fff; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--color-primary-dark); flex-direction: column; align-items: flex-start; padding: 1rem 1.5rem; gap: 1rem; }
  .main-nav.open { display: flex; }
}

/* ---- HERO ---- */
.hero { background: linear-gradient(135deg, #1a56db 0%, #1344b0 100%); color: #fff; padding: 1.5rem 0; text-align: center; }
.hero h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; margin-bottom: 0.5rem; }
.hero p { font-size: 1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 1.25rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 0.75rem 1.75rem; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 1rem; transition: all 0.2s; }
.btn-primary { background: #fff; color: var(--color-primary); }
.btn-primary:hover { background: #e8effe; }
.btn-secondary { border: 2px solid rgba(255,255,255,0.7); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.15); }

/* ---- SECTIONS ---- */
.section { padding: 4rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-subtitle { color: var(--color-muted); margin-bottom: 2.5rem; }

/* ---- CARDS GRID ---- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: 10px; padding: 1.5rem; transition: box-shadow 0.2s, border-color 0.2s; }
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.4); border-color: #3d5a99; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card h3 a { color: var(--color-text); text-decoration: none; }
.card h3 a:hover { color: var(--color-primary); }
.card p { color: var(--color-muted); font-size: 0.9rem; }
.card-date { font-size: 0.8rem; color: var(--color-muted); margin-bottom: 0.5rem; }

/* ---- FEATURED QUOTES (homepage) ---- */
.featured-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .featured-quotes { grid-template-columns: 1fr; gap: 2rem; } }

.featured-quote { position: relative; }
.featured-quote::before {
  content: '\201C';
  font-size: 4rem;
  line-height: 1;
  color: var(--color-primary);
  font-family: Georgia, serif;
  display: block;
  margin-bottom: 0.5rem;
}
.featured-quote p { font-size: 1.05rem; font-style: italic; line-height: 1.7; color: var(--color-text); margin-bottom: 1rem; }
.featured-quote cite { font-size: 0.85rem; color: var(--color-muted); font-style: normal; font-weight: 600; }
.reviews-link { display: block; text-align: center; color: var(--color-muted); font-size: 0.9rem; text-decoration: none; margin-top: 1rem; }
.reviews-link:hover { color: var(--color-text); }

/* Expandable featured quotes — teaser replaces with full review */
.featured-quote .full-review { display: none; }
.featured-quote.expanded > p { display: none; }
.featured-quote.expanded .full-review { display: block; }
.featured-quote .full-review p { font-size: 0.9rem; font-style: normal; color: var(--color-muted); line-height: 1.7; margin-bottom: 0; }
.featured-quote .full-review strong { color: var(--color-text); font-style: italic; }

/* Cite toggle (clickable name) */
cite.cite-toggle { cursor: pointer; }
cite.cite-toggle::after { content: ' ↓'; font-size: 0.75em; opacity: 0.5; }
.featured-quote.expanded cite.cite-toggle::after,
.review-card.expanded cite.cite-toggle::after { content: ' ↑'; }

/* Read more toggle */
.reviews-toggle { display: block; margin: 1.5rem auto 0; font-size: 0.95rem; font-weight: 500; color: var(--color-text); background: none; border: 1px solid var(--color-border); border-radius: 6px; cursor: pointer; padding: 0.5rem 1.5rem; transition: border-color 0.2s, color 0.2s; }
.reviews-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Review cards grid */
.reviews-more { display: none; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.reviews-more.visible { display: grid; }
.review-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: 10px; padding: 1.25rem; }
.review-snippet { font-style: italic; font-size: 0.9rem; line-height: 1.6; color: var(--color-text); margin-bottom: 0.5rem; }
.review-card cite { font-size: 0.8rem; color: var(--color-muted); font-weight: 600; font-style: normal; display: block; margin-top: 0.5rem; }
.review-full { display: none; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--color-border); font-size: 0.85rem; color: var(--color-muted); line-height: 1.7; white-space: pre-line; }
.review-full strong { color: var(--color-text); }
.review-card.expanded .review-snippet { display: none; }
.review-card.expanded .review-full { display: block; }

/* ---- TESTIMONIALS CAROUSEL ---- */
.testimonials-carousel { position: relative; }
.testimonials-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1.5rem;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.testimonials-track::-webkit-scrollbar { display: none; }

.testimonial {
  flex: 0 0 calc(33.333% - 1rem);
  scroll-snap-align: start;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 900px) { .testimonial { flex: 0 0 calc(50% - 0.75rem); } }
@media (max-width: 600px) { .testimonial { flex: 0 0 85%; } }

.testimonial blockquote { color: var(--color-text); font-style: italic; font-size: 0.95rem; line-height: 1.7; }
.testimonial cite { display: block; margin-top: 1rem; font-size: 0.85rem; color: var(--color-muted); font-style: normal; font-weight: 600; }

.carousel-controls { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }
.carousel-btn {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.carousel-btn:hover { background: var(--color-primary); border-color: var(--color-primary); }
.carousel-dots { display: flex; gap: 0.5rem; justify-content: center; align-items: center; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active { background: var(--color-primary); transform: scale(1.3); }

/* ---- BLOG ---- */
.post-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--color-border); margin-bottom: 2rem; }
.post-header h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; }
.post-meta { color: var(--color-muted); font-size: 0.9rem; margin-top: 0.75rem; }
.post-content { max-width: 720px; margin: 0 auto; padding: 2rem 0 4rem; }
.post-content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.post-content h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content a:not(.btn),
.page-content a:not(.btn) {
  color: #7dd3fc;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.25s ease, color 0.15s;
}
.post-content a:not(.btn):hover,
.page-content a:not(.btn):hover {
  color: #bae6fd;
  background-size: 100% 1px;
}
.post-content strong { font-weight: 600; }

/* ---- PAGE CONTENT ---- */
.page-header { background: var(--color-bg-alt); padding: 1.25rem 0; border-bottom: 1px solid var(--color-border); }
.page-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; }
.page-content { max-width: 800px; padding: 2.5rem 0 4rem; }
.page-content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; font-weight: 700; }
.page-content h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; font-weight: 600; }
.page-content p { margin-bottom: 1.25rem; }
.page-content ul, .page-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.page-content li { margin-bottom: 0.4rem; }
/* ---- CTA BANNER ---- */
.cta-banner { background: var(--color-primary); color: #fff; padding: 3.5rem 0; text-align: center; }
.cta-banner h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 1.5rem; }
.btn-white { background: #fff; color: var(--color-primary); padding: 0.75rem 1.75rem; border-radius: 8px; font-weight: 600; text-decoration: none; }
.btn-white:hover { background: #e8effe; }

/* ---- VIDEO ---- */
.video-wrapper { max-width: 800px; margin: 0 auto; }
.video-wrapper video { width: 100%; border-radius: 10px; box-shadow: 0 4px 24px rgba(0,0,0,0.4); }

/* ---- FOOTER ---- */
.site-footer { border-top: 1px solid var(--color-border); padding: 1.5rem 0; text-align: center; color: var(--color-muted); font-size: 0.875rem; }
.site-footer a { color: var(--color-muted); text-decoration: none; }
.site-footer a:hover { color: var(--color-text); }
