/* 1. Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* 2. Body */
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f5f5f5;
}

/* 3. Links */
a {
    text-decoration: none;
    color: #1a2b4c;
    /* Dark Navy - Trustworthy */
    transition: color 0.3s ease;
}

a:hover {
    color: #0f1a30;
    /* Darker Navy */
}

/* 4. Container */
.container {
    max-width: 1140px;
    /* 1100~1200px range */
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 5. Section */
section {
    padding: 60px 0;
    margin-bottom: 20px;
}

/* Scroll Margin for Sticky Header */
#services,
#used-safe,
#repair,
#moving,
#about,
#cases,
#process,
#contact {
    scroll-margin-top: 90px;
}

.card-section {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* Card-like appearance */
    border-radius: 8px;
    /* Optional: rounded corners for card look */
}

/* Header */
.site-header {
    position: sticky;
    position: -webkit-sticky;
    /* Safari */
    top: 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo */
.logo {
    font-size: 22px;
    font-weight: 700;
    color: #1a2b4c;
}

.logo a {
    color: #1a2b4c;
}

/* Nav */
.nav {
    display: flex;
    gap: 5px;
}

.nav a {
    padding: 8px 16px;
    color: #333;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background-color: #f0f4f8;
    color: #1a2b4c;
    font-weight: 700;
}

/* Footer */
footer {
    background-color: #222;
    /* Darker background */
    color: #eee;
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}

footer p {
    margin-bottom: 0;
    opacity: 0.8;
}

footer a {
    color: #ccc;
}

footer a:hover {
    color: #fff;
}

/* Mobile Sticky Bar */
.stickybar {
    display: none;
    /* Hidden on desktop by default */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 10px;
    justify-content: space-around;
    z-index: 1000;
}

.stickybar .btn {
    flex: 1;
}

.stickybar .btn:first-child {
    margin-right: 5px;
}

.stickybar .btn:last-child {
    margin-left: 5px;
}

/* Hero Section */
/* Hero Section */
#hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 80px 20px;
    overflow: hidden;
    /* Ensure slides don't overflow */
}

/* Slider Container */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Individual Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnimation 12s infinite;
}

/* Slide Images */
.slide-1 {
    background-image: url('images/sunil_1.png');
    animation-delay: 0s;
}

.slide-2 {
    background-image: url('images/sunil_2.png');
    animation-delay: 6s;
    /* Half of 12s duration for simple cross-fade */
}

/* Overlay for Readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Dark Overlay */
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    /* Content above overlay */
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

#hero h1 {
    font-size: 40px;
    line-height: 1.4;
    margin-bottom: 24px;
    color: #fff;
    /* White Text */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Shadow for legibility */
    word-break: keep-all;
}

.hero-sub {
    white-space: nowrap;
    display: inline-block;
}

#hero p {
    font-size: 18px;
    color: #fff;
    /* White Text */
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    word-break: keep-all;
}

/* Keyframes for Cross-fade */
@keyframes slideAnimation {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    60% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

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

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn.primary {
    background-color: #1a2b4c;
    color: #fff;
}

.btn.primary:hover {
    background-color: #0f1a30;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 43, 76, 0.2);
}

.btn.secondary {
    background-color: transparent;
    border-color: #1a2b4c;
    color: #1a2b4c;
}

.btn.secondary:hover {
    background-color: rgba(26, 43, 76, 0.05);
    transform: translateY(-2px);
}

/* Common Section Styles */
section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #1a2b4c;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #1a2b4c;
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px;
    /* Generous bottom margin */
    font-size: 18px;
    line-height: 1.6;
    word-break: keep-all;
}

/* Lists */
ul.info-list,
ul.case-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

ul.info-list li,
ul.case-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 17px;
    color: #444;
    line-height: 1.6;
}

ul.info-list li::before,
ul.case-list li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: #1a2b4c;
    border-radius: 50%;
}

/* Process List */
ol.process-list {
    counter-reset: process-counter;
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

ol.process-list li {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}

ol.process-list li::before {
    counter-increment: process-counter;
    content: counter(process-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: #1a2b4c;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

ol.process-list li strong {
    display: block;
    font-size: 20px;
    color: #1a2b4c;
    margin-bottom: 8px;
}

/* Services Section */
.service-cards {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.service-card {
    flex: 1;
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a2b4c;
    margin-bottom: 16px;
}

.service-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    word-break: keep-all;
}

/* Contact Section */
#contact {
    background-color: #f0f4f8;
    /* Light Navy/Gray */
    border-top: 1px solid #e1e8ed;
}

.contact-highlight {
    background-color: #fff;
    padding: 24px;
    border-left: 5px solid #1a2b4c;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    text-align: center;
}

.contact-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact-list li {
    font-size: 18px;
    margin-bottom: 20px;
    padding-left: 10px;
    color: #333;
    display: flex;
    align-items: center;
    /* Align icon and text */
    gap: 10px;
}

.contact-list li a[href^="tel"] {
    font-weight: 700;
    color: #1a2b4c;
    transition: color 0.3s ease;
}

.contact-list li a[href^="tel"]:hover {
    color: #0f1a30;
    text-decoration: underline;
}

.contact-note {
    text-align: left;
    font-size: 16px;
    color: #666;
    background-color: #fff;
    padding: 16px;
    border-radius: 8px;
    display: inline-block;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border: 1px dashed #ccc;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #1a2b4c;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {

    /* Header & Nav */
    /* Header & Nav */
    .nav-container {
        padding: 0 20px;
        /* Restore padding */
        height: 70px;
    }

    .mobile-menu-btn {
        display: flex;
        /* Show hamburger on mobile */
    }

    .nav {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
        z-index: 999;
    }

    .nav.active {
        display: flex;
        /* Show when active */
    }

    .nav a {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        font-size: 16px;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .stickybar {
        display: flex;
    }

    .stickybar .btn {
        width: auto;
        /* stickybar에서는 가로로 나란히 */
    }

    /* Section Padding */
    section {
        padding: 40px 0;
        /* Reduced padding */
    }

    .section-subtitle {
        margin-bottom: 30px;
    }

    .section-subtitle {
        margin-bottom: 30px;
    }

    /* Hero Mobile */
    #hero {
        min-height: auto;
        padding: 50px 20px;
    }

    #hero h1 {
        font-size: 26px;
        /* Smaller font for natural line break */
        line-height: 1.3;
    }

    /* Adjust subtitle size to fit in one line on mobile */
    .hero-sub {
        font-size: 4.5vw;
    }

    #hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        /* Generous gap */
    }

    .btn {
        width: 100%;
    }

    /* Services Mobile */
    .service-cards {
        flex-direction: column;
        gap: 20px;
    }

    .service-card {
        width: 100%;
        margin-bottom: 0;
    }

    /* Contact Mobile */
    .contact-list li {
        font-size: 16px;
    }
}