/* 
   Lawyer Website Design System 
   Theme: Trustworthy, Professional, Modern
   Colors: Navy (#0f172a), Gold (#d97706), White (#ffffff)
*/

:root {
    --primary-color: #0f172a;   /* Deep Navy */
    --secondary-color: #1e293b; /* Slightly lighter navy */
    --accent-color: #d97706;    /* Amber/Gold */
    --accent-hover: #b45309;
    --text-color: #334155;      /* Slate 700 */
    --light-text: #64748b;      /* Slate 500 */
    --bg-light: #f8fafc;        /* Slate 50 */
    --white: #ffffff;
    --kakao-yellow: #FEE500;
    --naver-green: #03C75A;
    --youtube-red: #FF0000;
    
    --font-heading: 'Noto Sans KR', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
    --font-serif: 'Song Myung', serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Helpers */
.highlight {
    color: var(--accent-color);
    font-weight: 700;
}

.text-center { text-align: center; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.3;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-kakao {
    background-color: var(--kakao-yellow);
    color: #3C1E1E;
}

.btn-kakao:hover {
    background-color: #fae100;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    margin-top: 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    border-radius: 50px;
    padding: 10px 24px;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: var(--transition);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-light);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Header height */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero_bg.png'); /* Placeholder, will update later */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    background-color: #f1f5f9; /* Fallback color */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    margin-bottom: 30px;
    color: var(--primary-color);
    line-height: 1.2;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--primary-color);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* Sections General */
.section {
    padding: 100px 0;
}

.section-badge {
    display: block;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-desc {
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto 50px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto 60px;
    border-radius: 2px;
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-placeholder {
    width: 100%;
    height: 500px; /* Fixed height for consistency */
    background-color: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.lawyer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-placeholder::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 15px;
    pointer-events: none;
}

.about-text {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-color);
}

.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-features li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(217, 119, 6, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-info p {
    font-size: 0.9rem;
    color: var(--light-text);
}

.lawyer-profile-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.lawyer-profile-footer strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.lawyer-profile-footer span {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Expertise Section */
.expertise-section {
    background-color: var(--bg-light);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.expertise-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.expertise-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.expertise-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.expertise-card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* Process Section */
.process-section {
    background-color: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 20px;
    background-color: var(--white);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.process-step:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.process-step h3 {
    margin-bottom: 15px;
}

.process-step p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    background-color: #f1f5f9;
    padding-bottom: 150px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 40px;
}

.contact-box-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.contact-box:hover {
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.location-box {
    display: flex;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid #cbd5e1;
    margin-top: 30px;
}

.contact-form-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--accent-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 15px;
    border-bottom-left-radius: 15px;
    font-weight: 700;
    font-size: 0.85rem;
}

.contact-form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.form-icon-placeholder {
    font-size: 3rem;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.form-text {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.security-note {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 990;
}

.fab-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 2px solid var(--white);
    font-size: 1.5rem;
    color: var(--white);
}

.fab-item:hover {
    transform: scale(1.1);
}

.fab-naver {
    background-color: var(--naver-green);
    font-weight: 900;
    font-size: 1.2rem;
}
.fab-youtube { background-color: var(--youtube-red); }
.fab-kakao { 
    background-color: var(--kakao-yellow); 
    color: #3C1E1E;
}


/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 60px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-logo {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-info p {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
}

@media (max-width: 576px) {
    .container { padding: 0 15px; }
    .hero-title { font-size: 2.2rem; }
    .expertise-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .section-title { font-size: 2rem; }
    .fab-item { width: 50px; height: 50px; font-size: 1.2rem; }
}
