/* ================================
   혜담 행정사 사무소 - 김보라 행정사
   Color Scheme: Navy (#1a2a4a) & Gold (#c9a962)
   ================================ */

/* CSS Variables */
:root {
    --primary-color: #2d3748;
    --primary-light: #4a5568;
    --primary-dark: #1a202c;
    --accent-color: #c9a962;
    --accent-light: #dfc88a;
    --accent-dark: #a88a42;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --text-primary: #1a2a4a;
    --text-secondary: #6c757d;
    --kakao-color: #FEE500;
    --kakao-text: #3C1E1E;
    --shadow-sm: 0 2px 4px rgba(26, 42, 74, 0.08);
    --shadow-md: 0 4px 12px rgba(26, 42, 74, 0.12);
    --shadow-lg: 0 8px 24px rgba(26, 42, 74, 0.16);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    word-break: keep-all;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-kakao {
    background-color: var(--kakao-color);
    color: var(--kakao-text);
}

.btn-kakao:hover {
    background-color: #e6cf00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    word-break: keep-all;
}

/* ================================
   Navigation
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-color);
}

.navbar.scrolled .logo {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

.navbar.scrolled .nav-links a {
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--accent-color) !important;
    color: var(--primary-dark) !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
}

.btn-contact::after {
    display: none !important;
}

.btn-contact:hover {
    background-color: var(--accent-dark) !important;
}

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

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .hamburger span {
    background-color: var(--primary-color);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(201, 169, 98, 0.1);
}

.circle-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -150px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    margin-bottom: 20px;
    word-break: keep-all;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 3rem;
    line-height: 1.3;
}

.hero .highlight {
    color: var(--accent-color);
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.35rem;
    margin-bottom: 24px;
}

.hero-description strong {
    color: var(--accent-color);
    font-weight: 700;
}

.hero-credentials {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.credential-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(201, 169, 98, 0.1);
}

.circle-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -150px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
}

/* ================================
   About Section - Profile
   ================================ */
.about {
    background-color: var(--gray-100);
}

.profile-section {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
}

/* Visual Banner */
.visual-banner {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.visual-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.profile-image {
    background: #1a202c;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.profile-photo {
    width: 100%;
    height: auto;
    display: block;
}

.profile-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 8px;
}

.profile-title {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.profile-details {
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.detail-icon {
    font-size: 1.25rem;
}

.specialty-areas h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialty-tag {
    background: var(--gray-100);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
}

/* ================================
   Services Section
   ================================ */
.services {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.service-card > p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--accent-dark);
    font-weight: 500;
    word-break: keep-all;
}

.service-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card ul li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-left: 20px;
    position: relative;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* ================================
   Process Section
   ================================ */
.process {
    background-color: var(--white);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    margin-bottom: 60px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-200);
    z-index: 1;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.step-content h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    line-height: 1.8;
}

.cta-box strong {
    color: var(--accent-color);
}

/* ================================
   Cases Section
   ================================ */
.cases {
    background-color: var(--gray-100);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.case-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.case-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.case-category {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.case-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.case-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: keep-all;
}

/* ================================
   Contact Section
   ================================ */
.contact {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-100) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 32px;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.info-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-item a {
    color: var(--primary-color);
    font-weight: 600;
}

.info-item a:hover {
    color: var(--accent-color);
}

.kakao-link {
    background: var(--kakao-color);
    color: var(--kakao-text) !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
}

.kakao-link:hover {
    background: #e6cf00;
}

.map-link {
    color: var(--accent-color) !important;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 8px;
}

.map-link:hover {
    text-decoration: underline;
}

.weekend-note {
    color: var(--accent-color);
    font-weight: 500;
}

.contact-cta {
    display: flex;
    align-items: center;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    width: 100%;
}

.cta-card h3 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.7;
    word-break: keep-all;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-address {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* ================================
   Animations
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Mobile line break - hidden on desktop */
.mobile-br {
    display: none;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        grid-template-columns: 1fr;
    }

    .profile-image {
        padding: 40px 20px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        flex-direction: column;
        gap: 30px;
    }

    .process-timeline::before {
        display: none;
    }

    .process-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
    }

    .step-number {
        margin: 0;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    section {
        padding: 60px 0;
    }

    .mobile-br {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--primary-color) !important;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .hero {
        padding: 100px 16px 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle,
    .hero-description {
        font-size: 1rem;
    }

    .hero-credentials {
        flex-direction: column;
        align-items: center;
    }

    .credential-tag {
        font-size: 0.85rem;
    }

    .profile-image {
        padding: 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .profile-info {
        padding: 24px;
    }

    .profile-info h3 {
        font-size: 1.5rem;
    }

    .profile-placeholder {
        width: 140px;
        height: 140px;
    }

    .service-card {
        padding: 24px;
    }

    .cta-card {
        padding: 24px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* ================================
   Toast Notification
   ================================ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 9999;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--accent-color);
}

.toast.error {
    border-left: 4px solid #e74c3c;
}
