/* 
   ChamSomang Care Center - Premium Stylesheet
   Theme: Warm, Trustworthy, Professional
*/

:root {
    --primary-color: #E67E22;
    /* Warm Orange - Energy, Warmth */
    --primary-dark: #D35400;
    --secondary-color: #27AE60;
    /* Natural Green - Health, Growth */
    --accent-color: #F1C40F;
    /* Golden - Quality */

    --text-main: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;

    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.text-center {
    text-align: center;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.mt-5 {
    margin-top: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

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

.btn-outline {
    background-color: transparent;
    border-color: white;
    color: white;
}

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

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

.btn-white:hover {
    background-color: #f0f0f0;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: var(--transition);
}

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


.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.sub-logo {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
}

#nav ul {
    display: flex;
    gap: 30px;
}

#nav a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

#nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

#nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero_bg_care.png');
    /* Will need to ensure this path is correct */
    background-size: cover;
    background-position: center;
    z-index: -2;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding-top: 60px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.highlight {
    color: #ffcc00;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

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

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.line {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h4 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.values-list {
    margin: 30px 0;
}

.values-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.values-list i {
    color: var(--secondary-color);
}

.location-brief {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.about-image .img-box {
    /* Placeholder styles removed for real image */
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Ideally replace img-box with real image */
.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}


/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: #FFF5E6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: white;
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Guide Section */
.guide-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
}

.guide-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
    display: block;
    /* Hidden on mobile via media query */
}

.step-item {
    background: white;
    width: 22%;
    text-align: center;
    padding: 20px;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.step-item h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.cost-info {
    background: white;
    border-radius: 20px;
    padding: 40px;
    border-top: 5px solid var(--primary-color);
}

.cost-info h4 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.cost-item {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #eee;
}

.highlight-box {
    background: #FFF5E6;
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.highlight-box .big-text {
    color: var(--primary-dark);
}

.big-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 10px 0;
}

.sub-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info,
.contact-form-box {
    flex: 1;
    min-width: 300px;
}

.contact-info h4 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.info-row i {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-row strong a {
    font-size: 1.2rem;
    color: var(--text-main);
}

.faq-section {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 15px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: #f1f1f1;
}

.contact-form-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.notice-board {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.notice-board h4 {
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.notice-board ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
}

.notice-board .date {
    color: var(--text-light);
    margin-right: 15px;
    min-width: 90px;
}

/* Footer */
footer {
    background: #2C3E50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo h2 {
    color: white;
}

.footer-logo span {
    font-size: 1rem;
    color: #bdc3c7;
}

.footer-info {
    flex: 2;
}

.footer-info p {
    color: #bdc3c7;
    margin-bottom: 10px;
}

.footer-services {
    flex: 1;
}

.footer-services ul li {
    margin-bottom: 10px;
    color: #bdc3c7;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-overlay ul li {
    margin: 20px 0;
    text-align: center;
}

.mobile-menu-overlay ul li a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
}

/* FAQ Accordion Styles */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 15px;
    background: white;
    border-radius: 0 0 8px 8px;
    border: 1px solid #eee;
    border-top: none;
}

/* Scroll Animation Styles */
.aos-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos-delay="100"] {
    transition-delay: 0.1s;
}

[data-aos-delay="200"] {
    transition-delay: 0.2s;
}

[data-aos-delay="300"] {
    transition-delay: 0.3s;
}

[data-aos-delay="400"] {
    transition-delay: 0.4s;
}

[data-aos-delay="600"] {
    transition-delay: 0.6s;
}

/* Subpage Styles */
.sub-hero {
    position: relative;
    height: 300px;
    background-image: url('../images/hero_bg_care.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 60px;
}

.sub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.sub-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.sub-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.sub-hero-breadcrumb {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .sub-hero {
        height: 200px;
    }

    .sub-hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    #nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-content {
        padding-top: 40px;
    }

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

    .contact-wrapper {
        flex-direction: column;
    }

    .guide-steps::before {
        display: none;
    }

    .step-item {
        width: 100%;
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 8px;
    }

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