/* =========================================
   Newton IP Law Firm - styles.css
   Benchmarking ejelaw.com style
   ========================================= */

:root {
    --primary-color: #001A3D;
    /* Deep Navy */
    --accent-color: #C5A059;
    /* Gold/Brass */
    --text-color: #222222;
    --text-muted: #666666;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #EEEEEE;
    --font-main: 'Pretendard', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

.bold {
    font-weight: 700;
}

/* Physics Canvas */
#physics-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo .logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo .logo-en {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: -2px;
}

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

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

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

.header-right .lang-toggle {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #fdfdfd 0%, #f0f0f0 100%);
    padding-top: 80px;
}

.hero-inner {
    width: 100%;
}

.hero-content {
    max-width: 800px;
}

.hero-slogan {
    font-family: var(--font-heading);
    font-size: 80px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    opacity: 0;
    /* Animated via JS or CSS */
    transform: translateY(30px);
}

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

.hero-desc {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
}

/* Search Box ejelaw style */
.search-box-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.search-box {
    display: flex;
    border-bottom: 2px solid var(--primary-color);
    padding: 10px 0;
    width: 500px;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 18px;
    outline: none;
    font-family: var(--font-main);
}

.search-btn {
    border: none;
    background: none;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 16px;
}

.search-cta.no-search {
    margin-top: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.search-cta .cta-link {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 15px;
    border: 1px solid #ccc;
    padding: 15px 40px;
    border-radius: 50px;
    display: inline-block;
}

.search-cta .cta-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.hero-bottom-info {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
}

.scroll-guidance {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--text-muted);
    transform: rotate(-90deg);
    transform-origin: left bottom;
    position: absolute;
    left: 20px;
}

/* Sections */
.section {
    padding: 120px 0;
}

.section-title-wrap {
    margin-bottom: 60px;
}

.section-title-wrap.align-center {
    text-align: center;
}

.sub-title {
    display: block;
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-text .desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 25px;
    word-break: keep-all;
}

.vision-cards {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.vision-item {
    flex: 1;
    border-top: 1px solid var(--accent-color);
    padding-top: 20px;
}

.vision-item .num {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.vision-item h5 {
    font-size: 16px;
    font-weight: 700;
}

.about-visual {
    height: 450px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.about-office-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: 0.5s;
}

.about-office-img:hover {
    filter: brightness(1);
    transform: scale(1.05);
}

/* Profile / Member Card */
.member-card {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.member-image {
    flex: 0 0 400px;
}

.img-box {
    width: 100%;
    height: 500px;
    background-color: var(--bg-light);
    overflow: hidden;
    filter: grayscale(100%);
    transition: 0.5s;
}

.img-box:hover {
    filter: grayscale(0%);
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    flex: 1;
    padding-top: 20px;
}

.member-header .position {
    display: block;
    font-size: 16px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

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

.member-header .name .en {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 10px;
}

.member-body .quote {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 40px;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
}

.career-list li {
    font-size: 17px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.career-list li strong {
    color: var(--primary-color);
    margin-right: 5px;
}

.member-footer {
    margin-top: 50px;
}

.btn-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 5px;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 50px 30px;
    transition: 0.4s;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

.service-item .icon-wrap {
    font-size: 30px;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.service-item .item-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-item .item-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 25px;
    height: 70px;
}

.service-item .item-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
    border-bottom: 1px solid var(--primary-color);
}

/* Location Section */
.location-section {
    background-color: var(--bg-white);
}

.location-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.map-placeholder {
    height: 450px;
    background-color: #e5e3df;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.address-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
}

.addr-item {
    display: flex;
    gap: 20px;
}

.addr-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.addr-item h6 {
    font-size: 14px;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.addr-item p {
    font-size: 16px;
    color: var(--text-color);
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.contact-details {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

.contact-details span {
    font-size: 15px;
    opacity: 0.7;
}

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

.copyright {
    font-size: 13px;
    opacity: 0.5;
}

.sns-links {
    display: flex;
    gap: 20px;
}

.sns-links i {
    font-size: 20px;
    opacity: 0.6;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    display: none;
    background-color: #fff;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 15px;
    position: relative;
    transform: translateY(30px);
    transition: 0.4s;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-header {
    margin-bottom: 25px;
    text-align: center;
}

.modal-header i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.modal-header h3 {
    font-size: 24px;
    color: var(--primary-color);
}

.modal-body p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.5;
}

.modal-list {
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.modal-list li {
    font-size: 15px;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.modal-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* Animations */
.animate-ready .hero-slogan,
.animate-ready .hero-desc,
.animate-ready .search-cta.no-search {
    animation: fadeInUp 0.8s forwards;
}

.animate-ready .hero-desc {
    animation-delay: 0.3s;
}

.animate-ready .search-cta.no-search {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-slogan {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .member-card {
        flex-direction: column;
        gap: 30px;
    }

    .member-image {
        flex: 0 0 auto;
        width: 100%;
    }

    .header-inner {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .main-nav ul {
        gap: 15px;
        font-size: 14px;
    }

    .hero-slogan {
        font-size: 34px;
        line-height: 1.3;
        word-break: keep-all;
    }

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

    .vision-cards {
        flex-direction: column;
        gap: 20px;
    }

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

    .item-desc {
        height: auto;
        margin-bottom: 20px;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }

    .info-box {
        padding: 30px;
    }

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

    .contact-details {
        justify-content: center;
    }
}

/* iPhone SE & Standard Mobile (375px or less) */
@media (max-width: 375px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-slogan {
        font-size: 30px;
    }

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

    .header-inner {
        padding: 10px;
    }

    .main-nav ul {
        gap: 10px;
        font-size: 13px;
    }
}

/* Ultra-Small Mobile (320px or less - Galaxy Fold, iPhone 5) */
@media (max-width: 320px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-slogan {
        font-size: 26px;
    }

    .hero-desc {
        font-size: 14px;
    }

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

    .main-nav ul {
        gap: 8px;
        font-size: 12px;
    }

    .lang-switch {
        font-size: 12px;
    }

    .vision-card h4 {
        font-size: 18px;
    }
}