/* ============================================
   Mark UP Legal - Fleeson Exact Replica
   Colors: Dark #1a1a1a, Orange #bd4d00, White
   Fonts: Open Sans, PT Serif
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.7em;
    font-weight: 500;
    background: #fff;
}

a { color: #bd4d00; text-decoration: none; transition: color 0.3s; }
a:hover { color: #d45a00; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'PT Serif', Georgia, serif;
    color: #333;
    line-height: 1.3em;
    font-weight: 700;
    padding-bottom: 10px;
}

h1 { font-size: 42px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { padding-bottom: 1em; }

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

/* ---------- Top Bar ---------- */
.top-bar {
    background: #bd4d00;
    padding: 10px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.top-bar .search-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar .search-wrap input[type="text"] {
    padding: 8px 12px;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 13px;
    border-radius: 0;
    width: 200px;
    outline: none;
}

.top-bar .search-wrap input::placeholder { color: rgba(255,255,255,0.7); }

.top-bar .search-wrap button {
    padding: 8px 16px;
    background: rgba(0,0,0,0.2);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 13px;
}

.top-bar .phone-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    padding: 8px 20px;
    background: rgba(0,0,0,0.15);
    border: 2px solid rgba(255,255,255,0.3);
}

.top-bar .phone-btn i { font-size: 16px; }

/* ---------- Header / Navbar ---------- */
.header {
    background: #1a1a1a;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #bd4d00;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    padding: 12px 0;
}

.logo-text {
    color: #fff;
    font-family: 'PT Serif', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text span {
    display: block;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: #999;
}

.nav-menu { display: flex; align-items: center; }

.nav-menu > li { position: relative; }

.nav-menu > li > a {
    display: block;
    padding: 22px 18px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'PT Serif', serif;
    transition: all 0.3s;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    color: #bd4d00;
}

/* Dropdown */
.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.3s;
    z-index: 100;
    border-top: 3px solid #bd4d00;
}

.nav-menu > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #ccc;
    font-size: 14px;
    border-bottom: 1px solid #333;
    transition: all 0.3s;
}

.dropdown-menu li a:hover {
    background: #bd4d00;
    color: #fff;
    padding-left: 25px;
}

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

.dropdown-arrow { font-size: 10px; margin-left: 5px; }

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600&h=900&fit=crop') center/cover no-repeat;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 80px 20px;
}

.hero h1 {
    color: #fff;
    font-size: 48px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    max-width: 650px;
    margin: 0 auto;
    padding-bottom: 0;
}

/* Page Hero */
.page-hero {
    background: #1a1a1a;
    padding: 60px 0;
    text-align: center;
    border-bottom: 3px solid #bd4d00;
}

.page-hero h1 {
    color: #fff;
    font-size: 38px;
    margin-bottom: 5px;
}

.page-hero p { color: #999; font-size: 16px; }

/* ---------- Section Styles ---------- */
.section { padding: 70px 0; }
.section-dark { background: #1a1a1a; color: #fff; }
.section-gray { background: #f5f5f5; }
.section-orange { background: #bd4d00; color: #fff; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 { margin-bottom: 10px; }

.section-title .divider {
    width: 60px;
    height: 3px;
    background: #bd4d00;
    margin: 15px auto;
}

.section-dark .section-title h2 { color: #fff; }
.section-dark .section-title .divider { background: #bd4d00; }

/* ---------- Welcome / Intro ---------- */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.welcome-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.welcome-image { border-radius: 5px; overflow: hidden; }
.welcome-image img { width: 100%; height: 400px; object-fit: cover; }

/* ---------- Three Column Cards ---------- */
.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.col-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.col-card .icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(189,77,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #bd4d00;
}

.col-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.col-card p { font-size: 14px; line-height: 1.7; }

.btn-orange {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #bd4d00;
    border: 2px solid #bd4d00;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-top: 15px;
    font-family: 'Open Sans', sans-serif;
}

.btn-orange:hover {
    background: #bd4d00;
    color: #fff;
}

.btn-white {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-white:hover { background: #fff; color: #1a1a1a; }

.btn-filled {
    display: inline-block;
    padding: 14px 35px;
    background: #bd4d00;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-filled:hover { background: #d45a00; color: #fff; }

/* ---------- Services Grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
}

.service-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #bd4d00;
    transform: translateY(-3px);
}

.service-card i {
    font-size: 40px;
    color: #bd4d00;
    margin-bottom: 18px;
}

.service-card h4 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 13px; color: #777; }

/* ---------- CTA Bar ---------- */
.cta-bar {
    background: #1a1a1a;
    padding: 50px 0;
}

.cta-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-bar h2 { color: #fff; font-size: 28px; padding-bottom: 0; }
.cta-bar .right { text-align: right; }
.cta-bar .right p { color: #999; font-size: 14px; margin-bottom: 5px; }

.cta-bar .toll-free {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-bar .toll-free span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    display: block;
}

/* ---------- Attorneys ---------- */
.attorneys-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.attorney-card { text-align: center; transition: all 0.3s; }
.attorney-card:hover { transform: translateY(-5px); }

.attorney-card .photo {
    width: 100%;
    height: 280px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #eee;
}

.attorney-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.attorney-card:hover .photo img { transform: scale(1.05); }

.attorney-card h4 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
}

.attorney-card .title { color: #bd4d00; font-size: 13px; font-weight: 600; }

.attorney-card .btn-orange {
    padding: 8px 20px;
    font-size: 12px;
    margin-top: 10px;
}

/* ---------- About Section ---------- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p { font-size: 15px; line-height: 1.8; }

/* ---------- Contact Page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form .form-group { margin-bottom: 18px; }

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s;
    background: #f9f9f9;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #bd4d00;
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-info-box h3 { margin-bottom: 25px; }

.contact-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-detail i {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: #bd4d00;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.contact-detail h4 { padding-bottom: 3px; font-size: 16px; }
.contact-detail p { color: #666; font-size: 14px; padding-bottom: 0; }

.map-container { margin-top: 30px; }
.map-container iframe { width: 100%; height: 300px; border: none; }

/* ---------- Service Page ---------- */
.service-page-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.service-main h2 { font-size: 26px; margin-bottom: 15px; color: #333; }
.service-main h3 { font-size: 20px; margin: 25px 0 10px; color: #333; }
.service-main p { font-size: 15px; line-height: 1.8; color: #555; }

.service-main ul {
    margin: 15px 0 25px 0;
    list-style: none;
}

.service-main ul li {
    padding: 8px 0 8px 25px;
    color: #555;
    position: relative;
    font-size: 14px;
}

.service-main ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #bd4d00;
    font-size: 12px;
}

.service-sidebar { position: sticky; top: 100px; }

.sidebar-card {
    background: #f5f5f5;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 3px solid #bd4d00;
}

.sidebar-card h4 {
    margin-bottom: 15px;
    font-size: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
}

.sidebar-links li a {
    display: block;
    padding: 10px 0;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.sidebar-links li a:hover,
.sidebar-links li a.active {
    color: #bd4d00;
    padding-left: 8px;
    font-weight: 600;
}

.sidebar-cta {
    background: #1a1a1a;
    color: #fff;
    padding: 30px;
    text-align: center;
}

.sidebar-cta h4 { color: #fff; border-bottom: none; }
.sidebar-cta p { color: #999; font-size: 14px; }

.sidebar-cta .phone {
    font-size: 22px;
    font-weight: 700;
    color: #bd4d00;
    display: block;
    margin: 10px 0 15px;
}

/* ---------- Footer ---------- */
.footer {
    background: #111 url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1600&h=400&fit=crop&q=20') center/cover no-repeat;
    background-blend-mode: overlay;
    padding-top: 50px;
    color: #ccc;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-logo img { height: 50px; margin-bottom: 15px; }

.footer-about p { font-size: 13px; color: #999; line-height: 1.8; }

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    border: 1px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-social a:hover { border-color: #bd4d00; color: #bd4d00; }

.footer-links h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

.footer-links li { margin-bottom: 8px; }
.footer-links li a { color: #999; font-size: 13px; }
.footer-links li a:hover { color: #bd4d00; }

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #999;
    align-items: flex-start;
}

.footer-contact li i { color: #bd4d00; min-width: 16px; margin-top: 3px; }
.footer-contact li a { color: #999; }
.footer-contact li a:hover { color: #bd4d00; }

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #777;
}

.footer-bottom a { color: #bd4d00; }

/* ---------- UI Polish / Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Smooth transitions on all interactive elements */
a, button, .btn-orange, .btn-filled, .btn-white, .service-card, .attorney-card, .col-card {
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card { color: inherit; text-decoration: none; }
.service-card:hover { color: inherit; }

/* Attorney card hover effects */
.attorney-card .photo { position: relative; overflow: hidden; }
.attorney-card .photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #bd4d00;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.attorney-card:hover .photo::after { transform: scaleX(1); }

.attorney-card .photo img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.attorney-card:hover .photo img {
    transform: scale(1.08);
}

/* Service card hover glow */
.service-card:hover {
    box-shadow: 0 15px 40px rgba(189, 77, 0, 0.15);
}

/* Button hover lift effect */
.btn-filled:hover, .btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(189, 77, 0, 0.3);
}

/* Image hover zoom */
.welcome-image img, .img-block img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.welcome-image:hover img, .img-block:hover img {
    transform: scale(1.03);
}

/* Section dividers with animation */
.divider, .section-title .divider {
    transition: width 0.5s ease;
}
.section-title:hover .divider {
    width: 100px;
}

/* Nav link underline animation */
.nav-menu > li > a {
    position: relative;
}
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #bd4d00;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav-menu > li > a:hover::after,
.nav-menu > li.active > a::after {
    transform: scaleX(1);
}

/* Header logo smooth */
.logo img {
    transition: opacity 0.3s ease;
}
.logo:hover img {
    opacity: 0.85;
}

/* Smooth scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #bd4d00;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(189,77,0,0.4);
    transition: all 0.3s;
    z-index: 999;
}
.scroll-top:hover { background: #d45a00; transform: translateY(-3px); }
.scroll-top.visible { display: flex; }

/* Footer Quick Links add */
.footer-links li { position: relative; }
.footer-links li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #bd4d00;
    margin-right: 8px;
    font-size: 11px;
}

/* Header active state */
.header .nav-menu > li.active > a { color: #bd4d00; }

/* Page hero breadcrumb-like subtitle */
.page-hero { position: relative; overflow: hidden; }
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #bd4d00;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .three-col, .services-grid { grid-template-columns: repeat(2, 1fr); }
    .attorneys-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .service-page-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #1a1a1a;
        flex-direction: column;
        border-top: 1px solid #333;
    }

    .nav-menu.active { display: flex; }

    .nav-menu > li > a { padding: 15px 20px; border-bottom: 1px solid #333; }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border-top: none;
    }

    .dropdown-menu.active { display: block; }

    .hero h1 { font-size: 30px; }
    .hero { min-height: 400px; }

    .three-col, .services-grid, .attorneys-grid { grid-template-columns: 1fr; }
    .welcome-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .cta-bar .container { flex-direction: column; text-align: center; gap: 20px; }
    .cta-bar .right { text-align: center; }
    .top-bar .container { flex-wrap: wrap; justify-content: center; }

    .page-hero h1 { font-size: 28px; }
    .section { padding: 50px 0; }
}
