:root { --cl-ink: #153759; --cl-text: #45566a; --cl-gold: #f1c26d; --cl-line: #d8e2ed; }
html { scroll-padding-top: 6rem; }
body { background: #f7f9fc; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #bb8429; outline-offset: 4px; }
.cl-header { position: sticky; top: 0; z-index: 50; background: #fffffffa; border-bottom: 1px solid var(--cl-line); }
.cl-header-inner { max-width: 1200px; margin: auto; padding: .8rem 1.5rem; display: flex; align-items: center; gap: 1.25rem; }
.cl-brand { color: var(--cl-ink); font-size: 1.25rem; font-weight: 700; line-height: 1.3; white-space: nowrap; text-decoration: none; }
.cl-brand span { font-weight: 400; }
.cl-desktop-nav { display: flex; align-items: center; justify-content: center; gap: 1.3rem; margin-inline: auto; }
.cl-desktop-nav a { color: var(--cl-text); font-size: .9375rem; font-weight: 600; padding-block: .65rem; white-space: nowrap; }
.cl-desktop-nav a:hover, .cl-mobile-menu a:hover { color: #17467a; text-decoration: underline; text-underline-offset: 4px; }
.cl-button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 48px; padding: .85rem 1.2rem; background: #17467a; color: #fff; border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 1rem; line-height: 1.5; font-weight: 600; text-align: center; text-decoration: none; }
.cl-button:hover { background: #103252; }
.cl-button-gold { background: var(--cl-gold); color: #132f50; }
.cl-button-gold:hover { background: #ffdaa0; }
.cl-header-cta { min-height: 44px; font-size: .875rem; padding: .65rem .9rem; margin-left: auto; }
.cl-menu-button { display: none; flex: 0 0 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--cl-line); border-radius: 8px; color: var(--cl-ink); background: #fff; }
.cl-short-label { display: none; }
.cl-mobile-menu { display: none; }
.cl-mobile-menu.hidden { display: none; }
.cl-home { background: #fff; color: var(--cl-text); }
.cl-home h1, .cl-home h2, .cl-home h3 { color: var(--cl-ink); }
.cl-home h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 600; line-height: 1.25; }
.cl-home p { line-height: 1.7; }
.cl-eyebrow { color: #725211; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin: 0 0 .8rem; }
.cl-home-hero { padding: 4.5rem 0; background: linear-gradient(90deg, #102c49f2, #102c49b8), url('/images/law-firm-cuenca.png') center / cover; }
.cl-home-hero .cl-eyebrow { color: #f3cc82; }
.cl-home-hero h1 { color: #fff; font-size: clamp(2rem, 4.8vw, 3.5rem); line-height: 1.15; font-weight: 600; max-width: 850px; text-wrap: balance; }
.cl-home-hero .cl-hero-copy { color: #edf3fb; font-size: 1.125rem; max-width: 660px; margin: 1.25rem 0 1.75rem; }
.cl-home-hero .cl-hero-note { color: #e1eaf5; font-size: .875rem; margin: 1rem 0 0; }
.cl-home .legal-introduction { padding: 3.5rem 0; }
.cl-home .legal-section-heading { margin-bottom: 1.5rem; }
.cl-home .legal-section-heading > p:last-child { font-size: 1rem; margin-top: .65rem; }
.cl-home .legal-partner h3 { color: #fff; }
.legal-partner-body { padding: 1.4rem 1.4rem 1rem; }
.legal-partner-note { padding-top: .8rem; margin-top: 1rem; }
.legal-partner-details { grid-column: 1 / -1; margin: 0 1.4rem 1.25rem; border-top: 1px solid #54708c; padding-top: .8rem; font-size: .9375rem; line-height: 1.6; }
.legal-partner-details summary { cursor: pointer; font-weight: 600; color: #f3cc82; }
.legal-partner-details p { margin: .75rem 0 0; }
.legal-partner-details summary:focus-visible { outline-color: var(--cl-gold); }
.cl-home .legal-form { box-shadow: 0 8px 24px #15375908; }
.cl-home .legal-form h3 { font-size: 1.4rem; }
.cl-home .legal-form-intro { margin: .6rem 0 1.25rem; font-size: .9375rem; }
.legal-button { border-radius: 8px; }
.cl-section { padding: 4rem 0; }
.cl-section-copy { max-width: 650px; margin: 1rem 0 2rem; }
.cl-topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.cl-topic { display: flex; flex-direction: column; gap: .8rem; padding: 1.5rem; border: 1px solid var(--cl-line); border-radius: 12px; color: var(--cl-text); background: #fff; text-decoration: none; }
.cl-topic:hover { background: #f4f7fb; border-color: #7291b1; }
.cl-topic-number { color: #725211; font-size: .875rem; font-weight: 600; }
.cl-topic h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.cl-topic p { margin: 0 0 .4rem; font-size: 1rem; }
.cl-topic-link { color: #17467a; font-size: .875rem; font-weight: 600; margin-top: auto; }
.cl-how { background: #f4f7fb; }
.cl-how-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.cl-how figure { margin: 0; }
.cl-how .legal-how-photo { border-radius: 12px; }
.cl-how figcaption { color: var(--cl-text); font-size: .875rem; text-align: center; margin-top: 1rem; }
.cl-steps { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: 1.25rem; }
.cl-steps li { display: flex; align-items: start; gap: 1rem; }
.cl-steps li > span { display: flex; align-items: center; justify-content: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: #e0e9f3; color: var(--cl-ink); font-weight: 600; }
.cl-steps h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .4rem; }
.cl-steps p { margin: 0; font-size: 1rem; }
.cl-founder-grid { display: grid; grid-template-columns: 120px minmax(0, 650px); gap: 2rem; justify-content: center; align-items: start; }
.cl-founder img { border-radius: 50%; width: 120px; height: 120px; object-fit: cover; }
.cl-founder p:not(.cl-eyebrow) { margin: 1rem 0; }
.cl-text-link { color: #17467a; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.cl-home #testimonials, .cl-home #blog { padding: 3.5rem 0; border-top: 1px solid var(--cl-line); }
.cl-home #testimonials > .container, .cl-home #blog > .container { max-width: 1120px; }
.cl-home #testimonials .shadow-lg, .cl-home #blog .shadow-lg { box-shadow: none; border: 1px solid var(--cl-line); border-radius: 12px; background: #fff; }
.cl-home #blog h3 { font-size: 1.125rem; line-height: 1.5; }
.cl-home #blog a.bg-blue-600 { background: #17467a; color: #fff; border-radius: 8px; min-height: 48px; }
.cl-home .legal-closing { padding: 3rem 0; }
.cl-footer { width: 100%; color: #dce6f1; background: #102c49; padding: 3rem 0 1.5rem; }
.cl-footer-inner { width: min(1120px, calc(100% - 3rem)); margin: auto; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.cl-footer .cl-brand { color: #fff; }
.cl-footer p { font-size: .9375rem; line-height: 1.7; margin: 1rem 0 1.4rem; max-width: 440px; }
.cl-footer nav { display: flex; flex-direction: column; gap: .85rem; }
.cl-footer nav h2 { color: #fff; font-size: 1rem; font-weight: 600; margin: 0 0 .3rem; }
.cl-footer nav a { color: #dce6f1; font-size: .9375rem; }
.cl-footer nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.cl-footer .cl-footer-note { grid-column: 1 / -1; max-width: none; margin: 0; padding-top: 1.25rem; border-top: 1px solid #45617d; font-size: .875rem; }
body > main article > header h1 { color: var(--cl-ink); font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.2; }
.blog-content { overflow-wrap: anywhere; }
.blog-content h2, .blog-content h3, .blog-content h4 { color: var(--cl-ink); line-height: 1.35; scroll-margin-top: 6rem; }
.cl-article-cta-button { border-radius: 8px; }
@media (max-width: 1050px) {
  .cl-desktop-nav { display: none; }
  .cl-menu-button { display: flex; }
  .cl-mobile-menu { padding: .5rem 1.5rem 1.2rem; display: grid; gap: .25rem; border-top: 1px solid var(--cl-line); }
  .cl-mobile-menu a { padding: .7rem 0; font-size: 1rem; color: var(--cl-ink); }
  .cl-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-how-grid { gap: 2rem; }
}
@media (max-width: 850px) {
  .legal-intake-grid { grid-template-columns: 1fr; gap: 1rem; }
  .legal-partner { display: grid; grid-template-columns: 80px minmax(0, 1fr); padding: 1rem; gap: .75rem 1rem; align-items: start; }
  .legal-partner-photo { width: 80px; height: 100px; aspect-ratio: auto; object-position: center 20%; border-radius: 6px; }
  .legal-partner-body { padding: 0; }
  .cl-home .legal-partner h3 { font-size: 1.25rem; }
  .legal-partner-body p { font-size: .875rem; line-height: 1.5; }
  .legal-partner-role { margin: .35rem 0 .6rem; }
  .legal-partner-note { margin: 0; padding: 0; border: 0; }
  .legal-partner-details { margin: 0; padding-top: .65rem; }
}
@media (max-width: 680px) {
  .cl-header-inner { padding: .65rem 1rem; gap: .6rem; }
  .cl-brand { font-size: 1.05rem; }
  .cl-wide-label { display: none; }
  .cl-short-label { display: inline; }
  .cl-header-cta { padding: .6rem .8rem; }
  .cl-home-hero { padding: 2.5rem 0; }
  .cl-home-hero .cl-hero-copy { font-size: 1rem; margin: 1rem 0 1.5rem; }
  .cl-home .legal-introduction { padding: 2rem 0; }
  .cl-section, .cl-home #testimonials, .cl-home #blog { padding: 2.5rem 0; }
  .cl-topic-grid { gap: .8rem; }
  .cl-topic { padding: 1.1rem; }
  .cl-how-grid { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .cl-how .legal-how-photo { max-width: 300px; }
  .cl-founder-grid { grid-template-columns: 1fr; gap: 1rem; }
  .cl-founder img { width: 80px; height: 80px; }
  .cl-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .cl-footer-inner > div { grid-column: 1 / -1; }
  .cl-article-cta-bottom { padding: 1.25rem; }
}
@media (max-width: 420px) {
  .cl-topic-grid { grid-template-columns: 1fr; }
  .cl-home-hero .cl-button, .legal-closing .cl-button { width: 100%; }
  .cl-footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }

/* Paid consultations remain next to the existing inquiry form. */
.cl-consultations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 1.75rem 0 1.25rem; }
.cl-consultation-card { display: flex; flex-direction: column; gap: .85rem; background: #fff; border: 1px solid var(--cl-line); border-radius: 12px; padding: 1.75rem; }
.cl-consultation-card .cl-eyebrow { margin: 0; }
.cl-consultation-card h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.35; }
.cl-consultation-card p { margin: 0; }
.cl-consultation-card .cl-price { font-size: 2.5rem; color: var(--cl-ink); font-weight: 600; line-height: 1.3; }
.cl-price span { display: inline-block; color: var(--cl-text); font-size: .875rem; font-weight: 400; }
.cl-consultation-card .cl-button { margin-top: auto; }
.cl-consultation-hour { border-color: #b79a68; background: #fffdf8; }
.cl-consultation-note { max-width: 960px; font-size: .9375rem; margin: 0 0 .75rem; }
.cl-consultation-help { margin: 0 0 2rem; font-size: .9375rem; }
#legal-inquiry, #consultations { scroll-margin-top: 6rem; }
@media (max-width: 680px) {
  .cl-consultations { grid-template-columns: 1fr; gap: 1rem; margin-top: 1.25rem; }
  .cl-consultation-card { padding: 1.25rem; }
  .cl-consultation-card .cl-button { width: 100%; }
}
