/*
Theme Name: Legal Corporativo
Theme URI: https://lcorporativo.com/
Author: Legal Corporativo
Description: Custom WordPress theme for Legal Corporativo law firm in Honduras.
Version: 1.9.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: legal-corporativo
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
    --blue:         #0d2435;
    --blue-dark:    #071524;
    --gold:         #e3af64;
    --gold-dark:    #c9963e;
    --white:        #ffffff;
    --light:        #f5f5f5;
    --text:         #3a3a3a;
    --border:       #e8e8e8;
    /* Typography */
    --font-display: 'Montserrat', system-ui, sans-serif;
    --font-ui:      'Plus Jakarta Sans', system-ui, sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--blue);
    line-height: 1.3;
}

/* =============================================
   LAYOUT HELPERS
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

/* =============================================
   TOP INFO BAR
   ============================================= */
.top-bar {
    background-color: var(--blue);
    color: #fff;
    font-size: 13px;
    padding: 9px 0;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 18px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.top-bar-item:last-child {
    border-right: none;
}

.top-bar-item svg,
.top-bar-item .tb-icon {
    color: var(--gold);
    flex-shrink: 0;
}

.top-bar-item a {
    color: #fff;
}

.top-bar-item a:hover {
    color: var(--gold);
}

/* =============================================
   SITE HEADER
   ============================================= */
.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.site-logo a {
    display: inline-block;
}

.site-logo img {
    max-height: 45px;
    width: auto;
}

/* =============================================
   PRIMARY NAVIGATION
   ============================================= */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Desktop nav — wp_nav_menu output */
.primary-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu > li > a {
    display: block;
    padding: 10px 16px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-parent > a,
.primary-menu > li.current-menu-ancestor > a {
    color: var(--gold);
}

/* Dropdown */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 270px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    border-top: 3px solid var(--gold);
    z-index: 200;
    padding: 8px 0;
}

.primary-menu li:hover > .sub-menu {
    display: block;
}

.primary-menu .sub-menu li a {
    display: block;
    padding: 9px 22px;
    font-family: var(--font-ui);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.primary-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.primary-menu .sub-menu li a:hover {
    background: #f8f8f8;
    color: var(--gold);
    padding-left: 30px;
}

/* Contact CTA button */
.btn-cta {
    display: inline-block;
    background: var(--gold);
    color: #fff !important;
    padding: 11px 24px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-left: 12px;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-cta:hover {
    background: var(--blue);
    color: #fff !important;
}

/* Hamburger — softened: no border, muted lines */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(42, 66, 93, 0.42);   /* muted blue-gray, not full brand blue */
    transition: all 0.3s;
}

.menu-toggle:hover span {
    background: rgba(42, 66, 93, 0.72);   /* darken slightly on hover for feedback */
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   MOBILE NAVIGATION
   ============================================= */
.mobile-nav-wrap {
    display: none;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 6px 12px rgba(0,0,0,0.07);
}

.mobile-nav-wrap.is-open {
    display: block;
}

.mobile-menu {
    padding: 10px 0;
}

.mobile-menu li a {
    display: block;
    padding: 11px 22px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu li a:hover {
    color: var(--gold);
    background: #fafafa;
}

.mobile-menu .sub-menu {
    background: #f8f8f8;
    padding-left: 12px;
}

.mobile-menu .sub-menu li a {
    font-size: 12px;
    padding: 9px 22px;
}

.mobile-btn-cta {
    display: block;
    margin: 12px 20px 16px;
    background: var(--gold);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.mobile-btn-cta:hover {
    background: var(--blue);
    color: #fff;
}

/* =============================================
   HERO SLIDER
   ============================================= */

/* ── Keyframe animations ── */
@keyframes lc-fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes lc-roll-in {
    from { opacity: 0; transform: translateY(50px) scaleY(0.92); }
    to   { opacity: 1; transform: translateY(0)    scaleY(1);    }
}

@keyframes lc-slide-right {
    from { opacity: 0; transform: translateX(90px); }
    to   { opacity: 1; transform: translateX(0);    }
}

/* ── Container — fixed height so absolute slides don't collapse it ── */
.hero-slider {
    position: relative;
    width: 100%;
    height: 540px;
    background: #111;
    overflow: hidden;
}

/* ── Every slide sits on top of each other ── */
.lc-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
    z-index: 1;
}

.lc-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* ── Dark overlay ── */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.52);
    z-index: 1;
}

/* ── Content wrapper: full-bleed absolute, used as flex row aligner ── */
.slide-inner {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    color: #fff;
}

/* ── Centered 1200px container — positioning context for the figure ── */
.slide-container {
    position: relative;   /* figure anchors to THIS, not the viewport */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* ── Left-side text column ── */
.slide-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 580px;
}

/* ── Slider logo — 40px max-height, auto width preserves aspect ratio ── */
.slide-logo-img {
    display: block;
    width: auto;
    max-height: 45px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 20px;
}

/* ── Main heading — Montserrat 700 ── */
.slide-heading {
    font-family: 'Montserrat', var(--font-ui), sans-serif !important;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff !important;
    margin: 0;
}

/* ── Sub-heading (slide 3) — same family, lighter, mixed case, feels like a natural follow-on ── */
.slide-subheading {
    font-family: 'Montserrat', var(--font-ui), sans-serif !important;
    font-size: 17px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.3px;
    margin-top: 14px;
    color: rgba(255,255,255,0.80) !important;
    line-height: 1.55;
}

/* ─────────────────────────────────────────────
   ENTRANCE ANIMATIONS  (triggered on .is-active)
   Force reflow in JS so they replay each time
   ───────────────────────────────────────────── */

.lc-slide.is-active .slide-logo-img {
    animation: lc-fade-up 0.55s ease 0.30s both;
}

.lc-slide.is-active .slide-heading {
    animation: lc-roll-in 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) 0.45s both;
}

.lc-slide.is-active .slide-subheading {
    animation: lc-fade-up 0.55s ease 0.65s both;
}

/* ── Decorative figure (slide 1 only) — right edge of the container ── */
.slide-figure {
    position: absolute;
    right: 0;         /* right edge of .slide-container (1200px box) */
    bottom: 0;
    z-index: 3;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
}

.slide-figure img {
    max-height: 510px;
    width: auto;
    display: block;
}

/* Figure slides in from the right */
.lc-slide.is-active .slide-figure {
    animation: lc-slide-right 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s both;
}

/* ── Slider arrow buttons — hidden, fade in on slider hover ── */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.40);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    user-select: none;
    /* hidden by default — fade in when slider is hovered */
    opacity: 0;
    transition: opacity 0.35s ease, background 0.25s ease, border-color 0.25s ease;
}

.hero-slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.70);
}

.slider-prev { left: 22px; }
.slider-next { right: 22px; }

/* =============================================
   PAGE BANNER (inner pages)
   ============================================= */
.page-banner {
    position: relative;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(7, 21, 36, 0.6);   /* new --blue-dark overlay */
}

.page-banner-inner {
    position: relative;
    z-index: 2;
}

.page-banner-icon {
    font-size: 28px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.page-banner-inner h1 {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
}

.page-banner-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 12px auto 0;
}

/* =============================================
   CONTENT AREA
   ============================================= */
.site-main {
    padding: 60px 0;
}

/* Gutenberg-friendly content styles */
.entry-content > * {
    margin-bottom: 1.25em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--font-display);
    color: var(--blue);
    margin-bottom: 0.6em;
    margin-top: 1.2em;
}

.entry-content h2 { font-size: 28px; font-weight: 700; }
.entry-content h3 { font-size: 22px; font-weight: 700; }
.entry-content h4 { font-size: 18px; font-weight: 700; }

.entry-content p { margin-bottom: 1em; }

.entry-content a {
    color: var(--gold);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--gold-dark);
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.4em;
    margin-bottom: 1em;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.4em;
}

.entry-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 10px 20px;
    background: var(--light);
    font-style: italic;
    margin: 1.5em 0;
}

.entry-content img {
    border-radius: 2px;
}

.entry-content .wp-block-image {
    margin-bottom: 1.5em;
}

/* Gutenberg wide/full width support */
.wp-block-group.alignfull,
.wp-block-cover.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

/* =============================================
   BLOG / ARCHIVE
   ============================================= */
.posts-loop {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: #fff;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.post-card-thumb {
    overflow: hidden;
    height: 210px;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.04);
}

.post-card-body {
    padding: 22px 22px 26px;
}

.post-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card-body h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-card-body h2 a:hover {
    color: var(--gold);
}

.post-card-body p {
    font-size: 14px;
    color: #666;
    margin-bottom: 14px;
}

.read-more-link {
    display: inline-block;
    color: var(--gold);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 1px;
}

.read-more-link:hover {
    color: var(--blue);
    border-color: var(--blue);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    transition: all 0.2s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

/* =============================================
   SINGLE POST
   ============================================= */
.single-post-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.single-post-header {
    margin-bottom: 30px;
}

.single-post-header h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
}

.single-post-thumb {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    margin-bottom: 28px;
}

/* Sidebar */
.sidebar .widget {
    margin-bottom: 35px;
}

.widget-title {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    margin-bottom: 16px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--blue);
    color: #fff;
}

.footer-main {
    padding: 60px 0 45px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 220px 1fr 200px;
    gap: 50px;
    align-items: start;
}

.footer-logo-wrap img {
    max-height: 45px;
    width: auto;
}

/* Footer Links */
.footer-section-title {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.footer-links-grid ul {
    padding: 0;
    margin: 0;
}

.footer-links-grid ul li {
    margin-bottom: 10px;
}

.footer-links-grid ul li a {
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color 0.25s, padding-left 0.25s;
}

.footer-links-grid ul li a::before {
    content: '›';
    color: var(--gold);
    font-size: 20px;
    line-height: 0.8;
    flex-shrink: 0;
}

.footer-links-grid ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Footer Social Widget Area */
.footer-social-wrap .footer-section-title {
    /* Title styled above */
}

/* Widget styles inside footer */
.footer-social-wrap .widget {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
}

.footer-social-wrap .widget a {
    color: rgba(255,255,255,0.85);
}

.footer-social-wrap .widget a:hover {
    color: var(--gold);
}

/* Footer Bottom Bar */
.footer-bottom {
    background: rgba(0,0,0,0.22);
    padding: 14px 0;
    text-align: center;
    font-size: 11.5px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-bottom a {
    color: var(--gold);
}

.footer-bottom a:hover {
    color: #fff;
}

/* =============================================
   404 PAGE
   ============================================= */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 {
    font-size: 100px;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 10px;
}

.error-404 h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.error-404 p {
    color: #666;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 12px 28px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--gold);
    color: #fff;
}

/* =============================================
   GUTENBERG EDITOR STYLES
   ============================================= */
.wp-block-button__link {
    background: var(--blue);
    color: #fff;
    border-radius: 0;
    padding: 12px 26px;
    font-family: var(--font-ui);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-block-button__link:hover {
    background: var(--gold);
}

.wp-block-separator {
    border-color: var(--gold);
    border-width: 2px;
}

/* =============================================
   UTILITY
   ============================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-logo-wrap {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    /* Hide desktop nav, show hamburger */
    .nav-wrapper {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .single-post-wrap {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        height: 430px;
    }

    .slide-container {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .slide-heading {
        font-size: 30px;
    }

    .slide-subheading {
        font-size: 20px;
    }

    .slide-figure img {
        max-height: 380px;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        gap: 0;
    }

    .top-bar-item {
        padding: 4px 12px;
        font-size: 12px;
    }

    .hero-slider {
        height: 360px;
    }

    .slide-container {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .slide-heading {
        font-size: 24px;
    }

    .slide-subheading {
        font-size: 17px;
    }

    .slide-figure {
        opacity: 0.25;
    }

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

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

    .posts-loop {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top-bar .container {
        flex-direction: column;
        gap: 6px;
    }

    .top-bar-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        width: 100%;
        justify-content: center;
        text-align: center;     /* centers wrapped address text */
        padding: 5px 10px;
    }

    .top-bar-item:last-child {
        border-bottom: none;
    }

    .hero-slider {
        height: 300px;
    }

    .slide-container {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .slide-heading {
        font-size: 20px;
    }

    .slide-subheading {
        font-size: 15px;
    }

    /* Hide prev/next on phones — swipe handles navigation */
    .slider-btn {
        display: none;
    }

    .slide-figure {
        display: none;
    }

    .site-main {
        padding: 40px 0;
    }
}
