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

:root {
    /* Modern Pastel Color Palette */
    --primary: #6B8E9F;
    --secondary: #9BADB7;
    --accent: #C4A57B;
    --bg-main: #F8F9FA;
    --bg-light: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #5A6C7D;
    --soft-pink: #F5E6E8;
    --soft-mint: #E8F4F8;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px;
    --section-padding-mobile: 60px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif KR', serif;
    font-weight: 600;
    line-height: 1.3;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* ===================================
   Header & Navigation
   =================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(107, 142, 159, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.lang-toggle {
    padding: 8px 16px;
    background-color: transparent;
    border: 2px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.lang-toggle:hover {
    background-color: var(--primary);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('hero-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 80px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(232, 244, 248, 0.4) 0%, rgba(248, 249, 250, 0.5) 50%, rgba(245, 230, 232, 0.4) 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: #2C3E50;
    margin-bottom: 50px;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(107, 142, 159, 0.2);
}

.cta-button:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(196, 165, 123, 0.3);
}

/* ===================================
   Section Common Styles
   =================================== */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 42px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.title-line {
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 0 auto;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    background-color: var(--bg-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 18px;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ===================================
   Attorney Profile Section
   =================================== */
.attorney-section {
    background-color: var(--bg-main);
}

.attorney-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.attorney-photo {
    position: relative;
}

.attorney-photo img {
    width: 100%;
    height: auto;
    background-color: transparent;
}

.attorney-info {
    padding-top: 20px;
}

.attorney-name {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.attorney-title {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 500;
}

.attorney-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-section h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 2;
    padding-left: 20px;
    position: relative;
}

.detail-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.two-column-list {
    column-count: 2;
    column-gap: 40px;
}

.two-column-list li {
    break-inside: avoid;
    page-break-inside: avoid;
}

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

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.practice-card {
    background-color: var(--bg-light);
    padding: 50px 40px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(107, 142, 159, 0.1);
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(107, 142, 159, 0.12);
    border-color: var(--accent);
}

.practice-title {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.practice-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    background: linear-gradient(to bottom, var(--bg-light), var(--soft-mint));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-item h3 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-item p {
    font-size: 18px;
    color: var(--text-secondary);
}

.contact-form-container {
    background-color: var(--bg-light);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(107, 142, 159, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 1px solid rgba(107, 142, 159, 0.2);
    border-radius: 8px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: var(--bg-main);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(107, 142, 159, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Submit Row - Button and Turnstile side by side */
.form-submit-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.submit-button {
    padding: 16px 40px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Cloudflare Turnstile */
.cf-turnstile {
    flex-shrink: 0;
}

.submit-button:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 165, 123, 0.3);
}

.submit-button:disabled {
    background-color: var(--secondary);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 60px 0 40px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo-img {
    height: 100px;
    width: auto;
    opacity: 0.99;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: white;
}

.footer-logo p {
    font-size: 12px;
    color: var(--secondary);
    letter-spacing: 1.5px;
}

.footer-info p {
    font-size: 14px;
    color: var(--secondary);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        gap: 0;
        padding: 40px 0;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(107, 142, 159, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 20px 40px;
        border-bottom: 1px solid rgba(107, 142, 159, 0.1);
    }

    .nav-menu a {
        font-size: 18px;
    }

    .lang-toggle {
        padding: 6px 12px;
        font-size: 12px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    .hero-section {
        background-position: center center;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .about-text br {
        display: none;
    }

    .attorney-profile {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .attorney-photo {
        max-width: 250px;
        margin: 0 auto;
    }

    .attorney-info {
        text-align: center;
        padding-top: 0;
    }

    .attorney-name {
        font-size: 28px;
    }

    .detail-section {
        text-align: left;
    }

    .two-column-list {
        column-count: 1;
    }

    .practice-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .practice-card {
        padding: 35px 30px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-form-container {
        padding: 35px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-submit-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

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

    .footer-logo {
        justify-content: center;
        gap: 15px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 15px 20px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .cta-button {
        padding: 15px 40px;
        font-size: 15px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-text {
        font-size: 16px;
    }

    .contact-form-container {
        padding: 25px;
    }

    .attorney-photo {
        max-width: 200px;
    }

    .attorney-name {
        font-size: 24px;
    }

    .attorney-title {
        font-size: 14px;
    }

    .detail-section h4 {
        font-size: 15px;
    }

    .detail-section li {
        font-size: 14px;
    }

    .practice-card {
        padding: 30px 25px;
    }

    .practice-title {
        font-size: 20px;
    }

    .practice-desc {
        font-size: 15px;
    }

    .contact-info {
        gap: 30px;
    }

    .contact-item h3 {
        font-size: 14px;
    }

    .contact-item p {
        font-size: 16px;
    }

    .footer-logo {
        gap: 12px;
    }

    .footer-logo-img {
        height: 40px;
    }

    .footer-logo h3 {
        font-size: 20px;
    }

    .footer-logo p {
        font-size: 11px;
    }

    .footer-info p {
        font-size: 13px;
    }
}

/* ===================================
   Security - Honeypot Field
   =================================== */
/* Hide honeypot field from human users but keep it accessible to bots */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
