/* ==========================================================================
   LawRead Home Page Specific Stylesheet
   Imports tokens and component modules, cleanly separates page structure
   ========================================================================== */

/* ── SVG Icon Helpers ────────────────────────────────────────── */
.lw-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.lw-icon svg {
    display: block;
}

/* ── Footer Isolation Fix ────────────────────────────────────── */
#wrapper {
    background: transparent !important;
}

#footer-outer,
#footer-outer *:not(a):not(img):not(input):not(button),
#footer,
footer,
.footer-section,
.footer-wrapper,
.footer-container,
.footer-inner,
.footer-reveal,
.absolute-footer,
.absolute-footer-inner {
    background-color: unset;
    background-image: none;
}

#footer-outer:not([style]):not(.dark):not(.light) {
    background-color: var(--navy) !important;
}

.testi-section {
    background: #fff;
    isolation: isolate;
}

#main { margin-bottom: 0 !important; padding-bottom: 0 !important; }
#content { margin-bottom: 0 !important; padding-bottom: 0 !important; }

/* ── Containers & Sections ───────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.lw-section { padding: 28px 0; }
.lw-section + .lw-section { border-top: 1px solid var(--border); }

/* ── Tags & Meta ─────────────────────────────────────────────── */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: var(--red);
    color: #fff;
    padding: 2px 7px;
    border-radius: var(--radius-xs);
    margin-bottom: 5px;
    line-height: 1.6;
}
.tag.blue { background: var(--navy); }
.tag.gold { background: var(--gold); }
.post-date {
    font-size: .7rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Breaking Bar Animations ─────────────────────────────────── */
.breaking-bar {
    background: var(--red);
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 34px;
}
.breaking-label {
    background: var(--navy-dark);
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .7rem;
    gap: 6px;
    flex-shrink: 0;
}
.breaking-ticker {
    overflow: hidden;
    flex: 1;
    position: relative;
}
.breaking-ticker-inner {
    display: flex;
    animation: ticker 45s linear infinite;
    white-space: nowrap;
    gap: 60px;
    padding-left: 20px;
}
.breaking-ticker-inner a {
    color: #fff;
    transition: opacity .15s;
}
.breaking-ticker-inner a:hover { opacity: .8; }

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Nav Band ────────────────────────────────────────────────── */
.nav-band {
    background: var(--navy);
    border-bottom: 3px solid var(--red);
}
.nav-band-links {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-band-links::-webkit-scrollbar { display: none; }
.nav-band-link {
    padding: 10px 16px;
    color: rgba(255,255,255,.78);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,.1);
    transition: color .12s, background .12s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-band-link:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
}
.nav-band-link svg { opacity: .85; }

/* ── Hero Layout ─────────────────────────────────────────────── */
.hero-section { background: var(--bg-white); }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0;
    border-bottom: 1px solid var(--border);
}
.hero-grid.single-column {
    grid-template-columns: 1fr;
}
.hero-grid.single-column .hero-main {
    border-right: none;
    padding-right: 0;
}
.hero-main {
    display: block;
    padding: 22px 22px 22px 0;
    border-right: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
}
.hero-main-img {
    width: 100%;
    aspect-ratio: 16/8;
    object-fit: cover;
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
}
.hero-main-placeholder {
    width: 100%;
    max-height: 240px;
    aspect-ratio: 16/7;
    background: linear-gradient(135deg, var(--navy), #2a4070);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 8px;
    transition: color .15s;
}
.hero-title:hover { color: var(--red); }
.hero-excerpt {
    font-size: .88rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.hero-side {
    padding: 18px 0 18px 18px;
    display: flex;
    flex-direction: column;
}
.hero-side-item {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
}
.hero-side-item:first-child { padding-top: 0; }
.hero-side-item:last-child { border-bottom: none; }
.hero-side-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
}
.hero-side-title {
    font-family: var(--font-serif);
    font-size: .84rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    transition: color .15s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-side-item:hover .hero-side-title { color: var(--red); }

/* ── Page Body & Columns ─────────────────────────────────────── */
.page-body {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 30px;
    padding: 24px 0 32px;
}
.main-col { min-width: 0; }
.side-col  { min-width: 0; }

/* ── Landmark Layout ─────────────────────────────────────────── */
.landmark-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.landmark-featured {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .18s;
}
.landmark-featured:hover { box-shadow: var(--shadow-md); }
.landmark-featured-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.landmark-featured-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--navy), #1e3a6e);
    display: flex;
    align-items: center;
    justify-content: center;
}
.landmark-featured-body { padding: 16px; }
.landmark-featured-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 7px;
    transition: color .15s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.landmark-featured:hover .landmark-featured-title { color: var(--red); }
.landmark-excerpt {
    font-size: .8rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.landmark-list-col { display: flex; flex-direction: column; }
.landmark-list-item {
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 11px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    transition: opacity .15s;
}
.landmark-list-item:first-child { padding-top: 0; }
.landmark-list-item:last-child { border-bottom: none; }
.landmark-list-item:hover { opacity: .82; }
.landmark-list-thumb {
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    width: 85px;
}
.landmark-list-thumb-placeholder {
    width: 85px;
    height: 60px;
    background: var(--navy);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.landmark-list-title {
    font-family: var(--font-serif);
    font-size: .8rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}
.landmark-list-item:hover .landmark-list-title { color: var(--red); }

/* ── News Rows ───────────────────────────────────────────────── */
.news-rows { display: flex; flex-direction: column; }
.news-row {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
    transition: opacity .15s;
}
.news-row:last-child { border-bottom: none; }
.news-row:hover { opacity: .85; }
.news-row-img {
    width: 105px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.news-row-placeholder {
    width: 105px;
    height: 70px;
    background: var(--navy);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.news-row-title {
    font-family: var(--font-serif);
    font-size: .85rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    transition: color .15s;
}
.news-row:hover .news-row-title { color: var(--red); }

/* ── Sidebar Widgets ─────────────────────────────────────────── */
.sidebar .widget,
aside .widget,
.main-sidebar .widget {
    background: var(--bg-white);
    border: 0px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 22px;
}
.widget-header {
    background: var(--navy);
    color: #fff;
    padding: 9px 15px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    display: flex;
    align-items: center;
    gap: 7px;
}
.widget-body { padding: 0; }

.trending-items { padding: 2px 0; }
.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    transition: background .12s;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: #f8f6f2; }
.trending-num {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
    min-width: 22px;
    flex-shrink: 0;
}
.trending-title {
    font-size: .8rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    transition: color .12s;
}
.trending-item:hover .trending-title { color: var(--red); }

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    font-size: .8rem;
    font-weight: 600;
    color: var(--navy);
    transition: background .12s;
}
.quick-link-item:last-child { border-bottom: none; }
.quick-link-item:hover { background: #f8f6f2; color: var(--red); }
.quick-link-item svg { flex-shrink: 0; opacity: .7; }
.quick-link-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
}

/* ── Quotes Band ─────────────────────────────────────────────── */
.quotes-band {
    background: var(--navy);
    padding: 36px 0;
}
.quote-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}
.quote-slides { min-height: 90px; }
.quote-slide { display: none; animation: fadeIn .4s ease; }
.quote-slide.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.quote-text {
    font-family: var(--font-serif);
    font-size: clamp(.95rem, 2vw, 1.25rem);
    font-style: italic;
    color: #e8e4da;
    line-height: 1.7;
    margin-bottom: 12px;
}
.quote-author {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #b8a96a;
}
.quote-eyebrow {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #b8a96a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.quote-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
}
.qdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.2);
    cursor: pointer;
    transition: background .2s;
}
.qdot.active { background: #b8a96a; }

/* ── Testimonials ────────────────────────────────────────────── */
.testi-section {
    background: #fff;
    padding: 32px 0;
    border-top: 1px solid var(--border);
}
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.testi-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    background: var(--bg-white);
}
.testi-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 2px solid var(--border);
}
.testi-stars {
    color: #f0a500;
    font-size: .78rem;
    margin-bottom: 9px;
}
.testi-text {
    font-size: .81rem;
    color: var(--text-mid);
    font-style: italic;
    line-height: 1.65;
    margin-bottom: 10px;
}
.testi-name {
    font-weight: 700;
    font-size: .8rem;
    color: var(--navy);
}

/* ── Newsletter ──────────────────────────────────────────────── */
.newsletter-band {
    background: var(--navy-dark);
    padding: 32px 0;
    margin-bottom: 0 !important;
}
.newsletter-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: space-between;
}
.newsletter-text h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.newsletter-text p {
    color: rgba(255,255,255,.6);
    font-size: .82rem;
}
.newsletter-form {
    display: flex;
    flex: 1;
    max-width: 420px;
    height: 46px;
}
.newsletter-form input {
    flex: 1;
    height: 46px;
    padding: 0 18px;
    border: none;
    font-family: var(--font-sans);
    font-size: .85rem;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    outline: none;
    box-sizing: border-box;
    margin: 0 !important;
    line-height: 46px;
}
.newsletter-form button {
    background: var(--red);
    color: #fff;
    border: none;
    height: 46px;
    padding: 0 22px;
    white-space: nowrap;
    font-weight: 700;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background .15s;
    box-sizing: border-box;
    flex-shrink: 0;
}
.newsletter-form button:hover { background: var(--red-hover); }

/* ── Responsive Rules ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .page-body { grid-template-columns: 1fr; }
    .side-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main { padding: 16px 0; border-right: none; border-bottom: 1px solid var(--border); }
    .hero-side { padding: 14px 0 0; }
    .landmark-top { grid-template-columns: 1fr; }
    .testi-grid { grid-template-columns: 1fr 1fr; }
    .newsletter-inner { flex-direction: column; }
    .newsletter-form { max-width: 100%; width: 100%; }
}
@media (max-width: 540px) {
    .testi-grid { grid-template-columns: 1fr; }
    .side-col { grid-template-columns: 1fr; }
}
