/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #0A1F44; background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, li { list-style: none; }

/* ── Container ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 60px; }

/* ── NAV ─────────────────────────────────────────────────── */
.site-nav { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #e8ecf0; transition: box-shadow 0.2s; }
.site-nav.scrolled { box-shadow: 0 2px 12px rgba(10,31,68,0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-home-link { display: flex; align-items: center; gap: 10px; }
.nav-leaf { width: 28px; height: 28px; flex-shrink: 0; }
.nav-brand { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 20px; color: #0A1F44; white-space: nowrap; }
.nav-brand .cyan { color: #00A3E0; }
.nav-by { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 12px; color: #B8963E; }
.nav-estrella-link { display: flex; align-items: center; }
.nav-estrella { height: 20px; width: auto; flex-shrink: 0; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; transition: color 0.2s; }
.nav-links a:hover { color: #00A3E0; }
.nav-cta { background: #00A3E0; color: #fff !important; padding: 9px 20px; border-radius: 6px; font-weight: 600; font-size: 13px; transition: background 0.2s; white-space: nowrap; }
.nav-cta:hover { background: #0088c2; }

/* Mobile toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; position: relative; }
.menu-toggle span { display: block; width: 100%; height: 2px; background: #0A1F44; position: absolute; left: 0; transition: all 0.3s; }
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }
.menu-toggle.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ── WP Nav Menu ─────────────────────────────────────────── */
.nav-links .nav-menu-items { display: contents; }
.nav-links > ul, .nav-links .menu { display: contents; }
.nav-links li { position: relative; list-style: none; }
.nav-links li > a { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: #0A1F44; transition: color 0.2s; white-space: nowrap; }
.nav-links li > a:hover { color: #00A3E0; }

/* Dropdown */
.nav-links li ul { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #e8ecf0; border-radius: 8px; box-shadow: 0 8px 24px rgba(10,31,68,0.10); min-width: 220px; padding: 8px 0; z-index: 200; }
.nav-links li:hover > ul { display: block; }
.nav-links li ul li > a { display: block; padding: 9px 20px; font-size: 13px; color: #0A1F44; font-weight: 500; }
.nav-links li ul li > a:hover { background: #f7f9fb; color: #00A3E0; }

/* ── HERO ────────────────────────────────────────────────── */
.hero { position: relative; background: linear-gradient(135deg, #0A1F44 0%, #0d2a5c 50%, #0A1F44 100%); padding: 100px 0 120px; overflow: hidden; }
.hero-leaf { position: absolute; right: -80px; top: 50%; transform: translateY(-50%); opacity: 0.04; width: 700px; height: 700px; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero-badge { display: inline-block; background: rgba(0,163,224,0.15); border: 1px solid rgba(0,163,224,0.3); color: #00A3E0; padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 28px; }
.hero h1 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 52px; color: #fff; line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #00A3E0; }
.hero p { color: rgba(255,255,255,0.75); font-size: 18px; line-height: 1.7; margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; align-items: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { display: inline-block; padding: 14px 32px; border-radius: 6px; font-weight: 600; font-size: 15px; transition: all 0.2s; cursor: pointer; text-align: center; }
.btn-primary { background: #00A3E0; color: #fff; }
.btn-primary:hover { background: #0088c2; }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-outline:hover { border-color: #B8963E; color: #B8963E; }

/* ── Trust Bar ───────────────────────────────────────────── */
.trust-bar { background: #f7f9fb; border-bottom: 1px solid #e8ecf0; padding: 40px 0; }
.trust-grid { display: flex; justify-content: center; gap: 60px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon { width: 40px; height: 40px; background: #0A1F44; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.trust-text { font-size: 13px; color: #4a5568; line-height: 1.4; }
.trust-text strong { display: block; color: #0A1F44; font-weight: 600; font-size: 14px; }

/* ── Sections ────────────────────────────────────────────── */
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #B8963E; margin-bottom: 12px; }
.section-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 36px; color: #0A1F44; margin-bottom: 16px; }
.section-subtitle { color: #64748b; font-size: 16px; line-height: 1.6; max-width: 560px; margin-bottom: 48px; }

/* ── Features ────────────────────────────────────────────── */
.features { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card { padding: 36px 32px; border: 1px solid #e8ecf0; border-radius: 12px; transition: border-color 0.2s, box-shadow 0.2s; }
.feature-card:hover { border-color: #00A3E0; box-shadow: 0 4px 20px rgba(0,163,224,0.08); }
.feature-num { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 32px; color: rgba(0,163,224,0.15); margin-bottom: 16px; }
.feature-card h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 18px; color: #0A1F44; margin-bottom: 10px; }
.feature-card p { color: #64748b; font-size: 14px; line-height: 1.65; }

/* ── Packages ────────────────────────────────────────────── */
.packages { padding: 80px 0; background: #f7f9fb; }
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.package-card { background: #fff; border: 1px solid #e8ecf0; border-radius: 12px; padding: 40px 32px; text-align: center; transition: transform 0.2s, box-shadow 0.2s; }
.package-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(10,31,68,0.08); }
.package-card.featured { border-color: #00A3E0; position: relative; }
.package-card.featured::before { content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #00A3E0; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 16px; border-radius: 12px; white-space: nowrap; }
.package-type { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #B8963E; margin-bottom: 8px; }
.package-name { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 24px; color: #0A1F44; margin-bottom: 24px; }
.package-features { text-align: left; margin-bottom: 32px; }
.package-features li { padding: 8px 0; font-size: 14px; color: #4a5568; border-bottom: 1px solid #f0f2f5; display: flex; align-items: center; gap: 10px; }
.package-features li::before { content: '\2713'; color: #00A3E0; font-weight: 700; }
.package-btn { display: block; width: 100%; padding: 14px; border-radius: 6px; font-weight: 600; font-size: 14px; text-align: center; transition: all 0.2s; }
.package-btn.primary { background: #00A3E0; color: #fff; }
.package-btn.primary:hover { background: #0088c2; }
.package-btn.secondary { background: #f7f9fb; color: #0A1F44; border: 1px solid #e8ecf0; }
.package-btn.secondary:hover { border-color: #0A1F44; }

/* ── CTA Band ────────────────────────────────────────────── */
.cta-band { background: linear-gradient(135deg, #0A1F44, #0d2a5c); padding: 60px 0; }
.cta-center { text-align: center; }
.cta-band h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 32px; color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.65); font-size: 16px; margin-bottom: 28px; }

/* ── Contact Icons ───────────────────────────────────────── */
.contact-icons { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; }
.contact-icon-link { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: all 0.2s; }
.contact-icon-link:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); color: #fff; }
.contact-icon-link svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Content Pages ───────────────────────────────────────── */
.content-wrap { padding: 48px 0 80px; }
.content-wrap .container { max-width: 860px; }
.content-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 36px; color: #0A1F44; line-height: 1.2; margin-bottom: 16px; }
.post-meta { color: #94a3b8; font-size: 13px; margin-bottom: 32px; letter-spacing: 0.04em; text-transform: uppercase; }
.content-body { color: #374151; font-size: 16px; line-height: 1.8; }
.content-body h2 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 26px; color: #0A1F44; margin: 48px 0 16px; line-height: 1.3; }
.content-body h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 20px; color: #0A1F44; margin: 36px 0 12px; line-height: 1.3; }
.content-body h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 17px; color: #0A1F44; margin: 28px 0 10px; }
.content-body p { margin-bottom: 16px; }
.content-body a { color: #00A3E0; font-weight: 500; transition: color 0.2s; }
.content-body a:hover { color: #0088c2; text-decoration: underline; }
.content-body strong { color: #0A1F44; }
.content-body ul, .content-body ol { margin: 16px 0; padding-left: 28px; }
.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }
.content-body li { margin-bottom: 8px; list-style: inherit; padding-left: 4px; }
.content-body hr { border: none; border-top: 1px solid #e8ecf0; margin: 40px 0; }
.content-body blockquote { border-left: 3px solid #00A3E0; padding: 16px 24px; margin: 24px 0; background: #f7f9fb; border-radius: 0 8px 8px 0; color: #4a5568; font-style: italic; }
.content-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.content-body table th { background: #0A1F44; color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; font-size: 13px; }
.content-body table td { padding: 10px 16px; border-bottom: 1px solid #e8ecf0; }
.content-body table tr:nth-child(even) { background: #f7f9fb; }
.content-body table tr:hover { background: #f0f4f8; }
.content-body img { border-radius: 8px; margin: 24px 0; }

/* Content page contact bar */
.content-contact-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 40px 0; padding: 32px; background: #f7f9fb; border-radius: 12px; border: 1px solid #e8ecf0; }
.content-contact-bar a { display: flex; align-items: center; gap: 8px; background: #0A1F44; color: #fff; padding: 10px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; transition: background 0.2s; }
.content-contact-bar a:hover { background: #00A3E0; color: #fff; }
.content-contact-bar svg { width: 18px; height: 18px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: #0A1F44; padding: 48px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand-text { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 18px; color: #fff; }
.footer-brand-text span { color: #00A3E0; }
.footer-desc { color: rgba(255,255,255,0.45); font-size: 13px; max-width: 280px; line-height: 1.6; }
.footer-col h4 { color: #B8963E; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.55); font-size: 13px; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: #00A3E0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 12px; }
.footer-estrella { color: rgba(255,255,255,0.3); font-size: 12px; transition: color 0.2s; }
.footer-estrella:hover { color: #00A3E0; }

/* ── Hub Pages (Guide / Services / Permissions) ──────────── */
.content-body .hub-intro { font-size: 18px; line-height: 1.7; color: #4a5568; margin-bottom: 32px; }
.content-body .hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 32px 0; }
.content-body .hub-card { background: #f7f9fb; border: 1px solid #e8ecf0; border-radius: 12px; padding: 28px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; display: flex; flex-direction: column; }
.content-body .hub-card:hover { border-color: #00A3E0; box-shadow: 0 8px 24px rgba(10,31,68,0.08); transform: translateY(-2px); }
.content-body .hub-card h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.35; margin: 0 0 12px; }
.content-body .hub-card h3 a { color: #0A1F44; transition: color 0.2s; text-decoration: none; }
.content-body .hub-card h3 a:hover { color: #00A3E0; }
.content-body .hub-card p { color: #64748b; font-size: 14px; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.content-body .hub-card-link { color: #00A3E0; font-weight: 600; font-size: 13px; align-self: flex-start; text-decoration: none; transition: color 0.2s; }
.content-body .hub-card-link:hover { color: #0088c2; text-decoration: underline; }

/* ── Blog Index ───────────────────────────────────────────── */
.content-lead { color: #64748b; font-size: 17px; line-height: 1.7; margin-bottom: 40px; max-width: 720px; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 16px; }
.blog-card { background: #fff; border: 1px solid #e8ecf0; border-radius: 12px; padding: 28px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; display: flex; flex-direction: column; }
.blog-card:hover { border-color: #00A3E0; box-shadow: 0 8px 24px rgba(10,31,68,0.08); transform: translateY(-2px); }
.blog-card-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 19px; line-height: 1.35; margin-bottom: 8px; }
.blog-card-title a { color: #0A1F44; transition: color 0.2s; }
.blog-card-title a:hover { color: #00A3E0; }
.blog-card-meta { font-size: 12px; color: #94a3b8; margin-bottom: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.blog-card-excerpt { color: #64748b; font-size: 14px; line-height: 1.6; margin-bottom: 18px; flex: 1; }
.blog-card-link { color: #00A3E0; font-weight: 600; font-size: 14px; align-self: flex-start; transition: color 0.2s; }
.blog-card-link:hover { color: #0088c2; }
.blog-pagination { margin-top: 48px; display: flex; justify-content: center; }
.blog-pagination .page-numbers { display: inline-flex; align-items: center; padding: 10px 16px; margin: 0 4px; border: 1px solid #e8ecf0; border-radius: 6px; font-size: 14px; font-weight: 600; color: #0A1F44; transition: all 0.2s; }
.blog-pagination .page-numbers:hover { border-color: #00A3E0; color: #00A3E0; }
.blog-pagination .page-numbers.current { background: #00A3E0; color: #fff; border-color: #00A3E0; }

/* ── Contact Page ─────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; margin-top: 40px; }
.contact-form-wrap { min-width: 0; }
.contact-form-heading { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 22px; color: #0A1F44; margin-bottom: 28px; }

.cmsb-form .form-row { margin-bottom: 0; }
.cmsb-form .form-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmsb-form .form-group { margin-bottom: 20px; }
.cmsb-form label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; letter-spacing: 0.02em; }
.cmsb-form label .req { color: #00A3E0; }
.cmsb-form input,
.cmsb-form select,
.cmsb-form textarea { width: 100%; padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 14px; color: #0A1F44; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.cmsb-form input:focus,
.cmsb-form select:focus,
.cmsb-form textarea:focus { outline: none; border-color: #00A3E0; box-shadow: 0 0 0 3px rgba(0,163,224,0.1); }
.cmsb-form input::placeholder,
.cmsb-form textarea::placeholder { color: #9ca3af; }
.cmsb-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.cmsb-form textarea { resize: vertical; min-height: 120px; }
.form-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #00A3E0; color: #fff; border: none; padding: 14px 36px; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.1s; width: 100%; }
.form-submit:hover { background: #0088c2; }
.form-submit:active { transform: scale(0.98); }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.form-status { margin-top: 16px; padding: 0; font-size: 14px; line-height: 1.5; border-radius: 8px; }
.form-status:empty { display: none; }
.form-success { padding: 14px 20px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-error { padding: 14px 20px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Contact sidebar */
.contact-sidebar { display: flex; flex-direction: column; gap: 24px; }
.contact-card { background: #f7f9fb; border: 1px solid #e8ecf0; border-radius: 12px; padding: 28px; }
.contact-card h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 17px; color: #0A1F44; margin-bottom: 10px; }
.contact-card > p { color: #64748b; font-size: 14px; line-height: 1.6; margin-bottom: 20px; }

.contact-methods { display: flex; flex-direction: column; gap: 8px; }
.contact-method { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 8px; background: #fff; border: 1px solid #e8ecf0; transition: border-color 0.2s, box-shadow 0.2s; }
.contact-method:hover { border-color: #00A3E0; box-shadow: 0 2px 8px rgba(0,163,224,0.1); }
.contact-method svg { width: 24px; height: 24px; flex-shrink: 0; color: #0A1F44; }
.contact-method div { display: flex; flex-direction: column; }
.contact-method strong { font-size: 14px; color: #0A1F44; }
.contact-method span { font-size: 12px; color: #64748b; }

.next-steps { list-style: none; counter-reset: step; padding: 0; }
.next-steps li { counter-increment: step; position: relative; padding: 10px 0 10px 36px; font-size: 14px; color: #4a5568; line-height: 1.5; border-bottom: 1px solid #e8ecf0; }
.next-steps li:last-child { border-bottom: none; }
.next-steps li::before { content: counter(step); position: absolute; left: 0; top: 10px; width: 24px; height: 24px; background: #0A1F44; color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.next-steps li strong { color: #0A1F44; }

/* ── Back to Top Button ──────────────────────────────────── */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: #0A1F44;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(10, 31, 68, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s;
    z-index: 99;
    padding: 0;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #00A3E0;
    box-shadow: 0 6px 20px rgba(0, 163, 224, 0.35);
}
.back-to-top:active {
    transform: translateY(0) scale(0.95);
}
.back-to-top:focus-visible {
    outline: 2px solid #00A3E0;
    outline-offset: 3px;
}
.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Mobile — smaller + tighter to corner */
@media (max-width: 768px) {
    .back-to-top {
        width: 42px;
        height: 42px;
        right: 16px;
        bottom: 16px;
    }
    .back-to-top svg { width: 18px; height: 18px; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1200px) {
    .nav-by, .nav-estrella-link { display: none; }
}

@media (max-width: 1024px) {
    .container { padding: 0 32px; }
    .features-grid, .packages-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { gap: 32px; flex-wrap: wrap; }
    .footer-top { flex-wrap: wrap; gap: 32px; }

    /* Nav hamburger on tablet */
    .menu-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px 32px; gap: 0; border-bottom: 1px solid #e8ecf0; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
    .nav-links.open { display: flex; }
    .nav-links li { padding: 12px 0; border-bottom: 1px solid #f0f2f5; }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links li > a { font-size: 15px; }
    .nav-links li ul { display: none; position: static; box-shadow: none; border: none; border-radius: 0; padding: 4px 0 0 16px; min-width: auto; }
    .nav-links li.open-sub > ul { display: block; }
    .nav-cta { margin-top: 12px; text-align: center; display: block; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    /* Hero */
    .hero { padding: 60px 0 80px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-leaf { width: 400px; right: -120px; }

    /* Grids */
    .features-grid, .packages-grid { grid-template-columns: 1fr; }
    .trust-grid { flex-direction: column; gap: 20px; align-items: flex-start; }

    /* Content */
    .content-title { font-size: 28px; }
    .content-body h2 { font-size: 22px; }
    .content-body h3 { font-size: 18px; }
    .contact-icons { flex-direction: column; align-items: stretch; }
    .contact-icon-link { justify-content: center; }

    /* Contact page */
    .contact-grid { grid-template-columns: 1fr; }
    .cmsb-form .form-row-half { grid-template-columns: 1fr; }

    /* Blog grid */
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .content-lead { font-size: 16px; }

    /* Hub grid */
    .content-body .hub-grid { grid-template-columns: 1fr; gap: 16px; }
    .content-body .hub-intro { font-size: 16px; }

    /* Footer */
    .footer-top { flex-direction: column; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* Sections */
    .section-title { font-size: 28px; }
    .features, .packages { padding: 60px 0; }
    .cta-band { padding: 40px 0; }
    .cta-band h2 { font-size: 24px; }
}

/* ─── Buy-side CTA strip (above content on guides/blog posts) ─── */
.buy-cta-strip {
    margin: 0 0 32px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #00A3E0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(10,31,68,0.06);
}
.buy-cta-inner { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.buy-cta-text { flex: 1 1 60%; min-width: 280px; font-size: 15px; line-height: 1.55; color: #0A1F44; }
.buy-cta-text strong { color: #0A1F44; margin-right: 6px; }
.buy-cta-text a { color: #0A1F44; font-weight: 600; text-decoration: underline; text-decoration-color: #00A3E0; text-underline-offset: 3px; }
.buy-cta-text a:hover { color: #00A3E0; }
.buy-cta-stock { display: block; margin-top: 6px; font-size: 13px; color: #047857; font-weight: 600; }
.buy-cta-btn {
    display: inline-block; padding: 11px 22px;
    background: #00A3E0; color: #fff; font-weight: 600;
    border-radius: 6px; text-decoration: none; font-size: 14px;
    white-space: nowrap; transition: all 0.2s;
}
.buy-cta-btn:hover { background: #0086b8; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,163,224,0.25); }

/* ─── CTA footer block (below content) ─── */
.cta-footer {
    margin: 56px 0 24px; padding: 36px 32px;
    background: linear-gradient(135deg, #0A1F44 0%, #142a55 100%);
    color: #fff; border-radius: 12px; text-align: center;
}
.cta-footer h2 { color: #fff; font-size: 26px; margin: 0 0 12px; }
.cta-footer p { color: #cbd5e1; font-size: 16px; line-height: 1.55; max-width: 640px; margin: 0 auto 22px; }
.cta-footer p strong { color: #00A3E0; }
.cta-footer-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-footer .btn-primary {
    display: inline-block; padding: 13px 28px; background: #00A3E0; color: #fff;
    border-radius: 6px; font-weight: 700; text-decoration: none; font-size: 15px;
    transition: all 0.2s;
}
.cta-footer .btn-primary:hover { background: #0086b8; transform: translateY(-1px); }
.cta-footer .btn-secondary {
    display: inline-block; padding: 13px 28px; background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,0.25); border-radius: 6px; font-weight: 600;
    text-decoration: none; font-size: 15px; transition: all 0.2s;
}
.cta-footer .btn-secondary:hover { border-color: #00A3E0; color: #00A3E0; }

@media (max-width: 640px) {
    .buy-cta-inner { flex-direction: column; align-items: stretch; }
    .buy-cta-btn { text-align: center; }
    .cta-footer { padding: 28px 20px; }
    .cta-footer h2 { font-size: 22px; }
}

/* ─── Homepage Live Inventory Snapshot ─── */
.inventory-snapshot { padding: 80px 0; background: #f8fafc; }
.inventory-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.inventory-tier-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 28px 24px; transition: all 0.2s;
    display: flex; flex-direction: column;
}
.inventory-tier-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(10,31,68,0.08); border-color: #00A3E0; }
.inventory-tier-card.featured { border: 2px solid #00A3E0; box-shadow: 0 4px 16px rgba(0,163,224,0.12); }
.inventory-tier-card .tier-status {
    font-size: 12px; font-weight: 600; color: #047857; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.inventory-tier-card .status-dot {
    width: 8px; height: 8px; background: #10b981; border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
    display: inline-block; animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.18); }
    50% { box-shadow: 0 0 0 6px rgba(16,185,129,0.08); }
}
.inventory-tier-card h3 { font-size: 22px; color: #0A1F44; margin: 0 0 12px; font-weight: 700; }
.inventory-tier-card .tier-desc { font-size: 14px; color: #4a5568; line-height: 1.55; margin-bottom: 18px; }
.inventory-tier-card .tier-features { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.inventory-tier-card .tier-features li {
    font-size: 13px; color: #2d3748; padding: 6px 0 6px 22px; position: relative;
    border-bottom: 1px solid #f1f5f9;
}
.inventory-tier-card .tier-features li::before {
    content: "✓"; position: absolute; left: 0; color: #00A3E0; font-weight: 700;
}
.inventory-tier-card .tier-features li:last-child { border-bottom: none; }
.tier-btn {
    display: inline-block; padding: 11px 18px; background: #f1f5f9; color: #0A1F44;
    border-radius: 6px; font-weight: 600; font-size: 14px; text-decoration: none;
    text-align: center; transition: all 0.2s;
}
.tier-btn:hover { background: #e2e8f0; }
.tier-btn.primary { background: #00A3E0; color: #fff; }
.tier-btn.primary:hover { background: #0086b8; }
.inventory-cta-row {
    display: flex; gap: 16px; justify-content: center; margin-top: 40px; flex-wrap: wrap;
}

/* ─── Alt-bg section variant ─── */
.features.alt-bg { background: #f8fafc; }
.compare-table-wrap { margin: 40px auto 24px; max-width: 800px; overflow-x: auto; }
.compare-table-wrap .comparison-table { width: 100%; }
.compare-cta { text-align: center; margin-top: 24px; }

/* ─── Compact features grid (Who Buys section) ─── */
.features-grid-compact .feature-card { padding: 24px 22px; }
.features-grid-compact .feature-card h3 { font-size: 18px; }
.features-grid-compact .feature-card h3 a { color: #0A1F44; text-decoration: none; }
.features-grid-compact .feature-card h3 a:hover { color: #00A3E0; }
.features-grid-compact .feature-card p { font-size: 14px; }
.features-grid-compact .feature-card a { color: #00A3E0; }

/* ─── CTA Band buttons row ─── */
.cta-band-actions { justify-content: center; margin: 24px 0 32px; }

@media (max-width: 768px) {
    .inventory-tiers { grid-template-columns: 1fr; gap: 16px; }
    .inventory-snapshot { padding: 60px 0; }
    .compare-table-wrap { font-size: 13px; }
    .inventory-cta-row { flex-direction: column; }
    .inventory-cta-row .btn { width: 100%; }
}

/* ─── Glossary page styles ─── */
.glossary-toc {
    background: #f8fafc; border-radius: 8px; padding: 18px 24px;
    margin: 24px 0 36px; columns: 2; column-gap: 32px; list-style: none;
}
.glossary-toc li { padding: 4px 0; break-inside: avoid; }
.glossary-toc a { color: #0A1F44; text-decoration: none; font-weight: 500; font-size: 14px; }
.glossary-toc a:hover { color: #00A3E0; }
.glossary-list { margin: 0 0 32px; }
.glossary-list dt {
    font-size: 17px; font-weight: 700; color: #0A1F44;
    margin: 18px 0 6px; padding-top: 16px;
    border-top: 1px solid #e2e8f0; scroll-margin-top: 80px;
}
.glossary-list dt:first-of-type { border-top: none; padding-top: 0; }
.glossary-list dd {
    margin: 0 0 4px; font-size: 15px; color: #2d3748; line-height: 1.6;
}
.glossary-list dd a { color: #00A3E0; text-decoration: none; }
.glossary-list dd a:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .glossary-toc { columns: 1; }
}
