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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Color Variables */
:root {
    --primary-color: #8e8982;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f8f8;
}

/* Fixed Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Visual Header */
.visual-header {
    margin-top: 70px;
    height: 400px;
    background: linear-gradient(135deg, #8e8982, #a8a49d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.visual-header h1 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-top: 70px;
}

.section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section:nth-child(even) {
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-dark);
    text-align: center;
}

.section-content {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Attorney Profile */
.attorney-profile {
    text-align: center;
}

.attorney-name {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.attorney-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.attorney-bio {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.attorney-bio p {
    margin-top: 20px;
}

.attorney-bio p:first-child {
    margin-top: 0;
}

.contact-box {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 8px;
}

.contact-box h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-box p {
    margin-bottom: 10px;
}

.contact-box p:last-child {
    margin-bottom: 0;
}

/* Contact Information */
.contact-info {
    text-align: center;
}

.contact-info p {
    margin-top: 10px;
}

.contact-info p:first-child {
    margin-top: 0;
}

.contact-info .spacing-top {
    margin-top: 15px;
}

/* Footer */
.footer {
    background: #2a2a2a;
    color: #fff;
    padding: 40px;
    text-align: center;
}

.footer p {
    margin: 10px 0;
    color: #ccc;
}

/* Tablet: 641px ~ 960px */
@media (max-width: 960px) {
    .navbar-container {
        padding: 0 30px;
    }

    .nav-menu {
        gap: 30px;
    }

    .section {
        padding: 60px 30px;
    }

    .visual-header h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Phone: 640px and below */
@media (max-width: 640px) {
    .navbar-container {
        padding: 0 16px;
        height: 60px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        transition: transform 0.3s;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu a {
        padding: 15px 16px;
        border-bottom: 1px solid #eee;
    }

    .visual-header {
        margin-top: 60px;
        height: 300px;
    }

    .visual-header h1 {
        font-size: 2rem;
    }

    .main-content {
        margin-top: 60px;
    }

    .section {
        padding: 50px 16px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-content {
        font-size: 1rem;
    }

    .footer {
        padding: 30px 16px;
    }
}
