/*
Theme Name: Bridgeport Law Group
Description: Custom WordPress theme for Bridgeport Law Group — Portland/Lake Oswego law firm
Version: 2.0
Author: Custom Theme
*/

/* ========== Reset & Base ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy: #1A365D;
    --gold: #C9A86E;
    --body-text: #020817;
    --light-gray: #f8f9fa;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--body-text);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { transition: all 0.3s ease; }

/* ========== Header ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: transparent;
    color: white;
    transition: all 0.3s ease;
    padding: 8px 0;
}

/* When scrolled, header turns white */
.site-header.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header.scrolled .header-top {
    display: none;
}

.site-header.scrolled .site-branding h1.site-title a,
.site-header.scrolled .main-navigation a {
    color: var(--navy);
}

.site-header.scrolled .logo-accent {
    color: var(--gold);
}

.site-header.scrolled .cta-button {
    background-color: var(--navy) !important;
    color: white !important;
    border-color: var(--navy) !important;
}

.header-top {
    background-color: transparent;
    padding: 0;
    font-size: 16px;
}

.header-top .container {
    padding: 0 32px;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.2);
}

.contact-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contact-info svg {
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 6px;
}

.contact-info .address {
    color: rgba(255,255,255,0.9);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


.contact-info a:hover { color: var(--gold); }

.header-main {
    padding: 8px 0;
    background: transparent;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
}

.site-branding h1.site-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.site-branding h1.site-title a {
    color: white;
    text-decoration: none;
}

.logo-accent {
    color: var(--gold);
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li { margin: 0 14px; }

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    line-height: 24px;
}

.main-navigation a:hover { color: var(--gold); }

.main-navigation .current-menu-item > a {
    border-bottom: 2px solid white;
    padding-bottom: 4px;
}
.site-header.scrolled .main-navigation .current-menu-item > a {
    border-bottom-color: var(--navy);
}
body:not(.home) .main-navigation .current-menu-item > a {
    border-bottom: none;
    padding-bottom: 0;
}

.cta-button {
    background-color: var(--navy) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 14px !important;
    margin-left: 20px;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.cta-button:hover {
    background-color: #2a4a7a !important;
    color: white !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== Hero ========== */
.hero-section {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    color: white;
    padding: 0 20px;
    text-align: left;
    overflow: hidden;
    background: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 37, 68, 0.9), rgba(26, 54, 93, 0.8), rgba(15, 37, 68, 0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1;
    max-width: 700px;
}

.hero-subtitle { color: var(--gold); }

.hero-description {
    font-family: 'Libre Baskerville', serif;
    font-size: 24px;
    font-style: italic;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.33;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* ========== Buttons ========== */
.btn {
    padding: 0 32px;
    height: 44px;
    line-height: 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background-color: #b8974f;
}

.btn-secondary {
    background-color: white;
    color: var(--navy);
    border: 1px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.9);
}

.btn-outline {
    background-color: white;
    color: var(--navy);
    border: 1px solid var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    line-height: normal;
}

.btn-outline:hover {
    background-color: var(--navy);
    color: white;
}

/* Small navy buttons (e.g. about section) */
.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    line-height: normal;
}

.btn.btn-primary.btn-small {
    background-color: var(--navy);
    color: white;
}
.btn.btn-primary.btn-small:hover {
    background-color: #2a4a7a;
}

/* ========== Sections ========== */
section { padding: 80px 0; }

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    color: var(--navy);
    line-height: 40px;
}

.gold-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 16px;
}

.section-description {
    text-align: center;
    font-size: 18px;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgb(55, 65, 81);
    line-height: 28px;
}

/* ========== Practice Areas ========== */
.practice-areas-section { background-color: var(--light-gray); }

.practice-areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.practice-area-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practice-area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.pa-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--gold);
}

.practice-area-card h3 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.practice-area-card p {
    color: #666;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
}

.learn-more {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.learn-more:hover { text-decoration: underline; }

/* ========== About Section ========== */
.about-section { background-color: white; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 18px;
    margin-bottom: 24px;
    color: rgb(55, 65, 81);
    line-height: 28px;
}
.about-text p:last-of-type {
    margin-bottom: 32px;
}

.about-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.about-photo {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 54, 93, 0.9);
    color: white;
    padding: 24px;
}

.overlay-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    margin-bottom: 4px;
}

/* WordPress wpautop adds <br> between overlay spans — hide it */
.photo-overlay br {
    display: none;
}

.overlay-title {
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--gold);
}

/* ========== Team Section ========== */
.team-section { background-color: white; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.team-member {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.team-photo {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 0;
    border: none;
    margin: 0;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.team-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 54, 93, 0.8);
    padding: 12px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .team-photo-overlay { opacity: 1; }

.team-photo-overlay a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-align: left;
}

.team-member h3 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 20px;
    font-weight: 600;
    margin: 0 20px 0;
    padding: 16px 0 0;
    line-height: 28px;
}

.team-member .title {
    color: var(--gold);
    font-weight: 400;
    font-size: 16px;
    margin: 0 20px 12px;
    padding: 0;
    line-height: 24px;
}

/* Team member description text (after .title) */
.team-member .title ~ p {
    color: rgb(75, 85, 99);
    font-size: 16px;
    line-height: 24px;
    padding: 0 0 20px;
    margin: 0 20px 0;
}

.team-member p {
    padding: 0;
    margin-left: 20px;
    margin-right: 20px;
}

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

/* ========== Testimonials ========== */
.testimonials-section {
    background-color: var(--navy);
    color: white;
}

.testimonials-section .section-title { color: white; }
.testimonials-section .section-description { color: rgba(255,255,255,0.8); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial {
    background: rgba(255, 255, 255, 0.08);
    padding: 32px;
    border-radius: 8px;
    border-left: none;
}

.quote-icon {
    color: var(--gold);
    font-size: 24px;
    font-family: Georgia, serif;
    margin-bottom: 4px;
    line-height: 1;
    opacity: 0.8;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.7;
}

.testimonial-author strong {
    color: var(--gold);
    display: block;
}

.testimonial-author span {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* ========== Location ========== */
.location-section { background-color: white; }

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.location-map iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 8px;
}

.location-info-card {
    background: white;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.location-info-card h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 20px;
}

.address-block p {
    color: #666;
    margin-bottom: 4px;
}

.location-info-card > p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin: 16px 0;
}

.location-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 16px;
}

.location-phone {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}

.location-directions {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

/* ========== Final CTA ========== */
.final-cta-section {
    background: linear-gradient(rgba(26, 54, 93, 0.9), rgba(26, 54, 93, 0.9)),
        url('https://images.unsplash.com/photo-1482938289607-e9573fc25ebb?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.final-cta-section .section-title {
    color: white;
    font-size: 48px;
    line-height: 1;
    margin-bottom: 24px;
}

.final-cta-section .section-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    margin-bottom: 32px;
    line-height: 28px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== Footer ========== */
.site-footer {
    background-color: var(--navy);
    color: white;
    padding: 60px 0 0;
    font-family: var(--font-body);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: white;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 24px;
    line-height: 28px;
}

.footer-column h3::after {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    background-color: var(--gold);
    margin-top: 8px;
}

.footer-column p,
.footer-column li {
    color: rgb(255, 255, 255);
    margin-bottom: 0;
    font-size: 16px;
    line-height: 24px;
}

.footer-column a {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

.footer-column p.about { margin-bottom: 24px; }

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

.contact-details .contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-details .contact-detail-item svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--gold);
}

.contact-details .contact-detail-item p {
    margin-bottom: 0;
}

.practice-areas-list {
    list-style: none;
}

.practice-areas-list li { margin: 12px 0 0; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright { color: rgb(255, 255, 255); font-size: 14px; line-height: 20px; }

.footer-nav { display: flex; gap: 20px; }

.footer-nav a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 14px;
    line-height: 20px;
}

.footer-nav a:hover { color: white; }

/* ========== Page template (subpages) ========== */
.site-main { padding: 0; }

article.page { padding: 0; margin: 0; }

/* Hide page entry header (theme uses custom page headers in content) */
.page .entry-header { display: none; }
/* Ensure blog post headers ARE visible */
.blog .entry-header,
.blog-card .entry-header { display: block !important; }

.entry-content {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.entry-content > * { max-width: 100%; }

/* ========== Blog styles ========== */
.blog-main { padding: 80px 0; background-color: var(--light-gray); }

.page-header { text-align: center; margin-bottom: 60px; }

.page-title {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--navy);
    margin-bottom: 20px;
}

.page-description { font-size: 17px; color: #666; max-width: 600px; margin: 0 auto; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.blog-card-content { padding: 30px; }

.entry-title { margin-bottom: 15px; }
.entry-title a { color: var(--navy); text-decoration: none; font-size: 1.3rem; font-weight: 600; }
.entry-title a:hover { color: var(--gold); }
.entry-meta { margin-bottom: 15px; font-size: 0.9rem; color: #666; }
.entry-meta span { margin-right: 15px; }
.entry-summary { color: #666; line-height: 1.6; margin-bottom: 20px; }
.read-more { color: var(--gold); text-decoration: none; font-weight: 600; }
.read-more:hover { text-decoration: underline; }

/* Single post */
.single-post .entry-header { display: block; text-align: center; margin-bottom: 40px; }
.single-post .entry-title { font-family: var(--font-heading); font-size: 36px; color: var(--navy); margin-bottom: 20px; }
.single-post .entry-meta { font-size: 1rem; color: #666; margin-bottom: 30px; }
.single-post .entry-content { max-width: 800px; margin: 0 auto; padding: 40px 20px; line-height: 1.8; font-size: 1.1rem; }
.single-post .entry-content h2, .single-post .entry-content h3 { font-family: var(--font-heading); color: var(--navy); margin-top: 40px; margin-bottom: 20px; }
.single-post .entry-content p { margin-bottom: 20px; }
.single-post .entry-footer { max-width: 800px; margin: 0 auto; padding: 20px 20px 40px; font-size: 15px; color: #666; }
.single-post .entry-footer a { color: var(--gold); text-decoration: none; }
.single-post .site-main { padding-bottom: 40px; }
/* Hide modified date — only show published date */
time.updated:not(.published) { display: none; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .practice-areas-grid,
    .team-grid,
    .testimonials-grid { grid-template-columns: 1fr; }

    .about-grid { grid-template-columns: 1fr; }

    .location-grid { grid-template-columns: 1fr; }

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

@media (max-width: 768px) {
    .contact-info { flex-direction: column; text-align: center; gap: 8px; }
    .contact-left { flex-direction: column; gap: 8px; }

    .header-main .container { flex-direction: column; text-align: center; }

    .main-navigation { margin-top: 0; position: relative; }
    .main-navigation ul { display: none; flex-direction: column; position: absolute; top: 100%; right: 0; background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-radius: 8px; padding: 16px; min-width: 200px; z-index: 100; }
    .main-navigation ul li { margin: 8px 0; }
    .main-navigation.toggled ul { display: flex; }
    .main-navigation .cta-button { display: none; }
    .main-navigation.toggled .cta-button { display: block; margin: 8px 0 0; text-align: center; }

    .mobile-menu-toggle { display: block; }
    .site-header.scrolled .mobile-menu-toggle { color: var(--navy); }

    .hero-section { padding: 80px 20px; text-align: center; }
    .hero-content h1 { font-size: 36px; }
    .hero-buttons { justify-content: center; }

    .hero-buttons, .cta-buttons, .about-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom-content { flex-direction: column; text-align: center; gap: 10px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    section { padding: 50px 0; }
    .hero-section { padding: 60px 15px; }
    .hero-content h1 { font-size: 30px; }
    .section-title { font-size: 28px; }
}

/* ========== Subpage header — always white, no info bar ========== */
body:not(.home) .site-header {
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px;
}
body:not(.home) .header-top {
    display: none;
}
body:not(.home) .site-branding h1.site-title a {
    color: var(--navy);
}
body:not(.home) .main-navigation a {
    color: rgb(31, 41, 55);
}
body:not(.home) .mobile-menu-toggle {
    color: var(--navy);
}
/* Logo accent stays gold on subpages */
body:not(.home) .logo-accent {
    color: var(--gold);
}

/* ========== Animation ========== */
.animate-in { animation: fadeInUp 0.6s ease-out forwards; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

