/* Aligned with jbenavides.com (React + Tailwind: Navbar, Hero, Footer, buttons) */

:root {
  --slate-50: #f8fafc;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --white: #ffffff;
  --max: 80rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --header-h: 5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-700);
  transition: color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--teal-600);
}

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

@media (min-width: 640px) {
  .wrap {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .wrap {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* —— Header (matches Navbar.tsx) —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  background: linear-gradient(to right, var(--slate-800), var(--teal-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand:hover {
  opacity: 0.9;
}

.site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
}

.site-header nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  color: var(--slate-600);
}

.site-header nav a:hover {
  color: var(--teal-700);
  text-decoration: none;
}

/* —— Buttons (matches Hero / pricing CTAs) —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: var(--radius);
  background: linear-gradient(to right, var(--slate-800), var(--teal-700));
  color: var(--white);
  box-shadow: 0 10px 15px -3px rgb(19 78 74 / 0.15), 0 4px 6px -4px rgb(19 78 74 / 0.15);
}

.btn-primary:hover {
  opacity: 0.95;
  text-decoration: none;
  color: var(--white);
}

.btn-header {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
  background: linear-gradient(to right, var(--slate-800), var(--teal-700));
  color: var(--white);
  box-shadow: 0 4px 6px -1px rgb(19 78 74 / 0.12);
}

.btn-header:hover {
  opacity: 0.95;
  text-decoration: none;
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-800);
  border: 2px solid var(--slate-300);
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: var(--radius);
}

.btn-ghost:hover {
  border-color: var(--teal-600);
  color: #115e59;
  text-decoration: none;
}

.btn-hero-ghost {
  background: var(--white);
}

.btn-block {
  width: 100%;
  margin-top: 1rem;
}

/* —— Main offset for fixed header —— */
main {
  padding-top: var(--header-h);
}

/* —— Hero (light, matches Hero.tsx) —— */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--slate-50) 0%, var(--white) 45%, var(--white) 100%);
  color: var(--slate-900);
  padding: 2.5rem 0 3.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgb(45 212 191 / 0.12), transparent 55%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 4vw, 3.75rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--slate-900);
}

.hero p.lead {
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 42rem;
  color: var(--slate-600);
  line-height: 1.625;
}

.badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 1rem;
}

.urgent {
  font-size: 0.9rem;
  color: var(--slate-700);
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.lang-note {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin: 0 0 1rem;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

section {
  padding: 2.75rem 0;
}

.section-panel {
  background: var(--white);
  border-top: 1px solid var(--slate-200);
}

.section-lead {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
}

.mb-0 {
  margin-bottom: 0;
}

.price-featured {
  border: 2px solid var(--teal-600);
  box-shadow: 0 20px 25px -5px rgb(15 23 42 / 0.08);
}

.price-period {
  font-size: 1rem;
  font-weight: 600;
}

.quote blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.mt-std {
  margin-top: 1rem;
}

.mt-lg {
  margin-top: 1.5rem;
}

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

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.2;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-900);
}

.sub {
  color: var(--slate-600);
  margin: 0 0 1.5rem;
  max-width: 40rem;
  line-height: 1.625;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.problem,
.alt-bg {
  background: var(--slate-50);
}

.stat-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  text-align: center;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--teal-700);
}

.quote {
  background: var(--slate-900);
  color: var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.quote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--white);
}

.quote .role {
  font-size: 0.9rem;
  color: var(--slate-400);
}

.pricing {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
}

.price-card h3 {
  font-size: 1.25rem;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal-700);
}

.price-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--slate-600);
}

details {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: var(--white);
}

summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--slate-900);
}

.form-wrap {
  max-width: 32rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.75rem 0 0.35rem;
  color: var(--slate-900);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  font: inherit;
  color: var(--slate-900);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--teal-600);
  outline-offset: 1px;
}

.hint {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin: 0.35rem 0 0;
}

.hint a {
  font-weight: 500;
}

/* —— Footer (matches Footer.tsx) —— */
.site-footer {
  background: var(--slate-900);
  color: var(--white);
  border-top: 1px solid #1e293b;
}

.site-footer a {
  text-decoration: none;
}

.site-footer-inner {
  padding: 3.5rem 0 2rem;
}

.site-footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.site-footer h3.title-gradient {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  background: linear-gradient(to right, var(--teal-300), var(--white));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer h4 {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.site-footer .about-body {
  color: var(--slate-400);
  font-size: 0.875rem;
  line-height: 1.625;
  margin: 0 0 1.5rem;
}

.site-footer .tagline {
  color: var(--slate-500);
  font-size: 0.75rem;
  margin: 0;
}

.site-footer ul.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer ul.footer-links li {
  margin-bottom: 0.5rem;
}

.site-footer ul.footer-links a {
  color: var(--slate-400);
  font-size: 0.875rem;
}

.site-footer ul.footer-links a:hover {
  color: var(--teal-400);
}

.site-footer .email-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal-400);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.site-footer .email-row:hover {
  color: #5eead4;
}

.site-footer .email-row svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.site-footer .response {
  color: var(--slate-500);
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
}

.site-footer .social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.site-footer .social-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-300);
}

.site-footer .social-btn:hover {
  background: var(--teal-700);
  color: var(--white);
}

.site-footer .social-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-states {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.2);
}

.footer-states h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.625rem;
}

.footer-states ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-states li {
  margin-bottom: 0.35rem;
}

.footer-states a {
  color: #d4d4d8;
  font-size: 0.8125rem;
  text-decoration: none;
}

.footer-states a:hover {
  color: var(--white);
}

.site-footer .footer-cta {
  margin-top: 1rem;
}

.site-footer .footer-cta .btn-header {
  width: 100%;
  justify-content: center;
}

@media (min-width: 480px) {
  .site-footer .footer-cta .btn-header {
    width: auto;
  }
}

.site-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer-bottom {
    text-align: left;
  }
}

.site-footer-bottom p {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.875rem;
}

#thanks {
  display: none;
  background: var(--teal-700);
  color: #ecfdf5;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

#thanks:target {
  display: block;
}

#thanks a {
  color: var(--white);
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* About page — certification badge & modal */
.certification-badge {
  text-align: center;
  margin: 40px 0;
}

.cert-card {
  display: inline-block;
  padding: 30px;
  border: 2px solid var(--teal-600);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--white);
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgb(13 148 136 / 0.2);
  border-color: var(--teal-700);
}

.cert-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.cert-card h3 {
  margin: 10px 0;
  color: var(--slate-900);
}

.cert-card p {
  margin: 5px 0;
  color: var(--slate-600);
}

.click-text {
  font-size: 12px;
  color: var(--teal-700) !important;
  margin-top: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(15 23 42 / 0.8);
  padding: 20px;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--radius-lg);
  max-width: 90%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
}

.certificate-image {
  width: 100%;
  height: auto;
  max-width: 600px;
}

.modal .close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  color: var(--slate-400);
  cursor: pointer;
  line-height: 1;
  border: none;
  background: none;
  padding: 0.25rem 0.5rem;
}

.modal .close:hover {
  color: var(--slate-900);
}

/* —— Blog —— */
body.blog-page {
  padding-top: var(--header-h);
}

.blog-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--slate-200);
}

.blog-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.blog-hero .lead {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 42rem;
  margin: 0;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 2rem 0 1.5rem;
  align-items: center;
}

.blog-filters label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
}

.blog-filters select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--slate-800);
  background: var(--white);
}

.blog-grid {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  border-color: var(--teal-600);
  box-shadow: 0 10px 25px -5px rgb(15 23 42 / 0.1);
  text-decoration: none;
  color: inherit;
}

.blog-card.hidden {
  display: none;
}

.blog-card-img {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--slate-100);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.blog-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: #ecfdf5;
  color: var(--teal-700);
}

.blog-tag.state {
  background: var(--slate-100);
  color: var(--slate-700);
}

.blog-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.35;
  color: var(--slate-900);
}

.blog-card p.excerpt {
  font-size: 0.9375rem;
  color: var(--slate-600);
  margin: 0 0 1rem;
  flex: 1;
  line-height: 1.55;
}

.blog-card .read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-700);
}

.blog-article-wrap {
  padding: 2rem 0 4rem;
}

.blog-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}

.blog-article {
  max-width: 48rem;
}

.blog-article .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.blog-article h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: var(--slate-900);
}

.blog-featured-img {
  margin: 0 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--slate-100);
}

.blog-featured-img img,
.blog-inline-img img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-inline-img {
  margin: 1.75rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--slate-100);
}

.featured-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
}

.post-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 25px 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: block;
}

@media (max-width: 768px) {
  .featured-image,
  .post-image {
    margin: 20px 0;
    border-radius: 4px;
  }
}

.blog-article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--slate-900);
}

.blog-article h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--slate-800);
}

.blog-article p,
.blog-article li {
  color: var(--slate-700);
  line-height: 1.7;
}

.blog-article ul,
.blog-article ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.blog-article .intro {
  font-size: 1.125rem;
  color: var(--slate-600);
}

.blog-cta-box {
  margin: 2.5rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, var(--slate-50), #ecfdf5);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  text-align: center;
}

.blog-cta-box h2 {
  margin-top: 0;
  font-size: 1.375rem;
}

.blog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.blog-sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--slate-900);
}

.blog-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-related-list li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--slate-200);
}

.blog-related-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.blog-related-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--slate-800);
  line-height: 1.4;
}

.blog-related-list a:hover {
  color: var(--teal-700);
}

.blog-breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: var(--slate-500);
}

.blog-breadcrumb a {
  color: var(--slate-600);
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  color: var(--teal-700);
}

.site-header nav a[aria-current="page"] {
  color: var(--teal-700);
  font-weight: 600;
}
