/* ============================================
   TEZ Law Firm - 自定义样式
   完美复刻原网站
   ============================================ */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5f8d;
    --secondary-color: #c8a961;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

html, body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    color: #091e2e;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header - 导航栏（透明背景，融入Hero区块）
   ============================================ */

.header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: transparent !important;
}

/* 隐藏header-top */
.header-top {
    display: none !important;
}

.header-main {
    padding: 25px 0 !important;
    background: transparent !important;
}

.header-main .container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* 🖼️ Logo - 文字Logo */
.logo {
    font-size: 26px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    letter-spacing: 2px !important;
    font-family: Georgia, serif !important;
    display: block !important;
}

.logo img {
    display: none !important; /* 隐藏图片Logo，使用文字 */
}

/* 导航菜单 */
nav {
    flex: 1 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 40px !important;
    margin-left: 60px !important;
}

.nav-menu {
    display: flex !important;
    list-style: none !important;
    gap: 35px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Header CTA按钮 */
.header-cta-btn {
    background-color: #c8a961 !important;
    color: #ffffff !important;
    padding: 12px 30px !important;
    border-radius: 3px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
}

.header-cta-btn:hover {
    background-color: #b39852 !important;
    opacity: 1 !important;
}

.nav-menu > li {
    position: relative !important;
}

.nav-menu > li > a {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 10px 0 !important;
    display: block !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.nav-menu > li > a:hover {
    opacity: 0.7;
}

.nav-menu > li > a i {
    font-size: 10px;
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 280px;
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-top: 3px solid #2ea3f2;
    list-style: none;
    margin: 0;
}

.nav-menu > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    color: rgba(0,0,0,0.6);
    font-size: 14px;
    padding: 6px 20px;
    display: block;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    opacity: 0.7;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff; /* 白色以适应深色背景 */
}

/* ============================================
   Hero Section - 首页大图区块
   完全按照原网站样式
   ============================================ */

.hero-section {
    position: relative !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    /* 🖼️ 背景图片 - 原网站背景图 */
    background-image: url('https://tezlawfirm.com/wp-content/uploads/2023/04/image-6-9.png') !important;
    background-color: #091e2e !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* 轻微透明遮罩层 - 让文字更清晰可读 */
.hero-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(9, 30, 46, 0.2) !important;
    z-index: 1 !important;
}

.hero-content {
    position: relative !important;
    z-index: 2 !important;
    max-width: 1280px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 180px 40px 100px 40px !important;
    text-align: left !important;
}

.hero-content h1 {
    font-size: 68px !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    font-weight: 400 !important;
    margin-bottom: 25px !important;
    margin-top: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-family: Georgia, serif !important;
    text-align: left !important;
}

.hero-content p {
    font-size: 18px !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
    margin-bottom: 40px !important;
    font-weight: 400 !important;
    text-align: left !important;
    max-width: none !important;
}

.hero-buttons {
    display: flex !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
}

/* 按钮样式 */
.btn {
    display: inline-block !important;
    padding: 18px 42px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    text-decoration: none !important;
}

.btn-primary {
    background-color: #c8a961 !important;
    color: #ffffff !important;
    border-color: #c8a961 !important;
}

.btn-primary:hover {
    background-color: #b39852 !important;
    border-color: #b39852 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(200, 169, 97, 0.4) !important;
}

.btn-secondary {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

.btn-secondary:hover {
    background-color: #ffffff !important;
    color: #17293a !important;
}

/* ============================================
   About Section
   ============================================ */

.about-section {
    padding: 100px 0;
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 42px;
    color: #2c5f8d;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 15px;
}

.feature-item i {
    font-size: 24px;
    color: #c8a961;
    margin-top: 5px;
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ============================================
   Services Section
   ============================================ */

.services-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 42px;
    color: #2c5f8d;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 60px;
    height: 60px;
}

.service-card h3 {
    font-size: 22px;
    color: #2c5f8d;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    color: #2c5f8d;
    font-weight: 600;
    font-size: 14px;
}

.service-link:hover {
    color: #c8a961;
}

/* ============================================
   Why Choose Section
   ============================================ */

.why-choose-section {
    padding: 100px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.feature-box {
    text-align: center;
}

.feature-box i {
    font-size: 50px;
    color: #c8a961;
    margin-bottom: 20px;
}

.feature-box h4 {
    font-size: 20px;
    color: #2c5f8d;
    margin-bottom: 12px;
}

.feature-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ============================================
   Statistics Section
   ============================================ */

.stats-section {
    padding: 80px 0;
    background: #2c5f8d;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #c8a961;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* ============================================
   Blog Section
   ============================================ */

.blog-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.blog-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 30px;
}

.blog-category {
    display: inline-block;
    padding: 5px 15px;
    background: #c8a961;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 15px;
}

.blog-content h3 {
    font-size: 22px;
    color: #2c5f8d;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #2c5f8d;
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    color: #c8a961;
}

/* ============================================
   Attorneys Section
   ============================================ */

.attorneys-section {
    padding: 100px 0;
    background: #fff;
    text-align: center;
}

.attorney-image {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: #ccc;
    font-size: 14px;
}

.footer ul li a:hover {
    color: #c8a961;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #888;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.social-links a:hover {
    background: #c8a961;
}

/* ============================================
   响应式设计
   ============================================ */

@media (max-width: 1024px) {
    .services-grid,
    .features-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: calc(100vh - 70px);
        background: #ffffff !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        margin-left: 0 !important;
        flex: none !important;
        gap: 0 !important;
        padding: 10px 0 !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
        overflow-y: auto;
        box-shadow: 0 5px 20px rgba(0,0,0,0.12);
        z-index: 9998;
    }
    
    nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-menu {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
    }
    
    .nav-menu > li {
        width: 100% !important;
        position: static !important;
    }
    
    .nav-menu > li > a {
        padding: 15px 30px !important;
        border-bottom: 1px solid #eeeeee !important;
        color: #333333 !important;
        display: block !important;
        width: 100% !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        text-transform: none !important;
    }
    
    .header-cta-btn {
        margin: 20px 0 0 0;
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 10px 0 10px 20px;
        background: transparent;
        border-top: none;
    }
    
    .dropdown-menu li a {
        color: rgba(0,0,0,0.6);
        padding: 8px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .hero-content {
        padding: 140px 20px 80px 20px;
    }
    
    .hero-content h1 {
        font-size: 36px !important;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: 16px !important;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .features-grid,
    .stats-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section-header h2,
    .about-text h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 120px 20px 60px 20px;
    }
    
    .hero-content h1 {
        font-size: 28px !important;
        line-height: 1.2;
    }
    
    .btn {
        padding: 14px 30px;
        font-size: 12px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

