/*
Theme Name: Law Seoyul Single Page
Theme URI: https://replyalba.com/intros/law_seoyul5/
Description: A premium single-page WordPress theme for Law Firm Seoyul.
Version: 1.0.0
Author: Antigravity
Author URI: https://google.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, custom-menu, law, professional, landing-page
Text Domain: law-seoyul
*/

:root {
    --primary-color: #00234a;
    --accent-color: #c5a059;
    --text-color: #333;
    --light-bg: #f4f6f9;
    --white: #ffffff;
    --gold-light: #f1ebd5;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--primary-color);
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

/* Header & Nav */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-header {
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-header:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 35, 74, 0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    height: 700px;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-content {
    text-align: left;
    max-width: 800px;
}

.hero-top-info {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 40px;
}

.lawyer-title {
    border-bottom: 2px solid var(--white);
    padding-bottom: 10px;
}

.lawyer-title p {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.lawyer-title .specialty {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffd700;
    /* Gold/Yellow from image */
}

.installment-badge {
    width: 130px;
    height: 130px;
    border: 4px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.badge-inner i {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
    color: #ffd700;
}

.badge-inner span {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-main-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-main-text h2 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
    text-align: left;
}

.hero-main-text h2::after {
    display: none;
    /* Remove default underline */
}

.highlight-gold {
    color: #ffd700;
}

.hero-subtext {
    font-size: 1.4rem;
    color: #ddd;
    margin-bottom: 40px;
}

.btn-cta {
    background: var(--accent-color);
    color: var(--white);
    padding: 15px 45px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.2rem;
    display: inline-block;
    transition: var(--transition);
}

.btn-cta:hover {
    background: #b08e4a;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 100px 0;
    }

    .hero-top-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .hero-main-text h1 {
        font-size: 2.2rem;
    }

    .hero-main-text h2 {
        font-size: 1.8rem;
    }

    .hero-subtext {
        font-size: 1.1rem;
    }
}

/* Features Section */
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
}

.section-title::after {
    display: none;
}

.highlight-blue {
    color: #4178f1;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-top: -30px;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.features-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.feature-item-card {
    background: var(--white);
    padding: 30px 15px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    flex: 1;
    min-width: 140px;
    max-width: 180px;
    border-top: 3px solid var(--accent-color);
    transition: var(--transition);
}

.feature-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-item-card.color-card {
    background: #f8fbff;
    /* Very light blue background */
    border-top: 3px solid #4178f1;
    /* Blue top border */
}

.feature-item-card.color-card .feature-icon-img {
    color: #4178f1;
    /* Match icon color to border */
}

.feature-icon-img {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.feature-item-card h3 {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.4;
    font-weight: 600;
}

.features-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-blue-cta {
    background: #4178f1;
    color: var(--white);
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.btn-blue-cta:hover {
    background: #2b5bc7;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(65, 120, 241, 0.3);
}

@media (max-width: 768px) {
    .feature-item-card {
        min-width: 45%;
        max-width: 48%;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-top: -20px;
    }
}

/* Success Cases New */
.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.success-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.success-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.success-img-box {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.success-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.success-card:hover .success-img-box img {
    transform: scale(1.1);
}

.success-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: var(--white);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.success-content {
    padding: 30px;
}

.case-label {
    display: inline-block;
    color: #4178f1;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.success-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.case-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 25px;
}

.stats-box {
    background: #f8f9fb;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-row .label {
    color: #666;
    font-size: 0.95rem;
}

.stat-row .val {
    font-weight: 700;
    font-size: 1.1rem;
}

.stat-row .val.old {
    color: #bbb;
    text-decoration: line-through;
}

.stat-row .val.main {
    color: #e74c3c;
}

.monthly-box {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.m-label {
    font-weight: 700;
    color: #333;
}

.m-val {
    font-weight: 800;
    font-size: 1.1rem;
    color: #4178f1;
}

.btn-case-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-weight: 600;
    transition: var(--transition);
}

.btn-case-detail:hover {
    background: #f0f4ff;
    border-color: #4178f1;
    color: #4178f1;
}

.cases-more {
    text-align: center;
    margin-top: 50px;
}

.btn-more-cases {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-more-cases:hover {
    background: #0d1a35;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .success-grid {
        grid-template-columns: 1fr;
    }
}

/* Trust Section */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.trust-item {
    text-align: center;
    max-width: 150px;
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.trust-item span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Floating Menu */
.floating-menu {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    background: var(--primary-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    font-size: 0.7rem;
}

.float-btn i {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.float-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* Mobile Floating Menu Adjustments */
@media (max-width: 768px) {
    .floating-menu {
        right: 10px;
        gap: 8px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 0.65rem;
    }

    .float-btn i {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }
}

.float-btn.kakao {
    background: #fae100;
    border-color: #fae100;
    color: #3c1e1e;
}

/* Review Section */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.review-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.reviewer {
    font-weight: 700;
    color: var(--primary-color);
}

/* Form Section */
.form-section {
    background: var(--primary-color);
    color: var(--white);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.diagnosis-form,
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.form-group select option {
    background: var(--primary-color);
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    border: none;
    color: var(--white);
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background: #b08e4a;
}

/* Benefits Section Updated */
.benefits-section {
    background: #fdfdfd;
    padding: 100px 0;
    border-top: 1px solid #f0f0f0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.benefit-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    /* Rounded rectangle */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.benefit-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #f8f9fb;
    border-radius: 15px;
    /* Softer rounded corners for icon box */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon-wrapper {
    background: var(--accent-color);
}

.benefit-icon-wrapper i {
    font-size: 1.8rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon-wrapper i {
    color: var(--white);
}

.benefit-card h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.benefit-card p {
    font-size: 1rem;
    color: #777;
    line-height: 1.6;
}

/* Map Section Updated */
.map-section {
    padding: 100px 0;
    background: #fff;
}

.map-content-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-top: 50px;
}

.map-info {
    flex: 1;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 30px;
    text-align: center;
}

.info-item .text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.info-item .text p {
    color: #666;
    font-size: 1rem;
}

.map-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-naver-map,
.btn-kakao-map {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-naver-map {
    background: #03c75a;
    color: var(--white);
}

.btn-kakao-map {
    background: #fae100;
    color: #3c1e1e;
}

.btn-naver-map:hover,
.btn-kakao-map:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-visual {
    flex: 1.2;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.map-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    background: #f0f4f8 url('images/map-bg.png') center/cover;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 35, 74, 0.4);
    transition: var(--transition);
}

.map-placeholder:hover::before {
    background: rgba(0, 35, 74, 0.6);
}

.placeholder-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.placeholder-content i {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.placeholder-content p {
    font-weight: 600;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .map-content-wrapper {
        flex-direction: column;
    }

    .map-visual {
        width: 100%;
        height: 300px;
    }
}

/* Footer */
footer {
    padding: 60px 0;
    background: #081229;
    color: #aaa;
    font-size: 0.9rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: block;
}

.footer-info p {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-right {
        gap: 0 !important;
    }

    .btn-header {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .case-card {
        flex-direction: column;
        text-align: center;
    }

    .case-stats {
        margin-top: 20px;
    }
}