/*
Theme Name: Graceful Care
Theme URI: https://gracefulcare.jp
Author: Graceful Care Team
Author URI: https://gracefulcare.jp
Description: A sophisticated, mobile-optimized WordPress theme for home care services with elegant design and smooth animations.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: graceful-care
Tags: health, care, medical, responsive, modern, elegant

This theme is designed for home care and elderly care service providers.
*/

:root {
    --cream: #f9f6f1;
    --sage: #8b9d83;
    --sage-dark: #6b7d63;
    --terracotta: #d4816e;
    --warm-white: #fffef9;
    --charcoal: #2d2d2d;
    --soft-shadow: rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Navigation */
nav.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(249, 246, 241, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 157, 131, 0.15);
    transition: all 0.4s ease;
}

nav.main-nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.8rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Crimson Pro', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--sage-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
    position: relative;
}

.logo::after {
    content: '♡';
    position: absolute;
    top: -8px;
    right: -20px;
    font-size: 0.8rem;
    color: var(--terracotta);
}

.nav-links {
    display: flex;
    gap: 3.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--charcoal);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: width 0.3s ease;
}

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

.cta-button {
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(139, 157, 131, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 157, 131, 0.4);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 28px;
    height: 2px;
    background: var(--sage-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10rem 4rem 4rem;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 157, 131, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 129, 110, 0.06) 0%, transparent 50%),
        var(--cream);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 157, 131, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.5rem;
    background: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sage-dark);
    box-shadow: 0 4px 20px var(--soft-shadow);
    margin-bottom: 2.5rem;
    animation: fadeIn 1s ease-out 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-badge::before {
    content: '●';
    color: var(--terracotta);
    font-size: 0.6rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--sage-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero h1 .highlight {
    color: var(--terracotta);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.9;
    margin-bottom: 3rem;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary {
    padding: 1.3rem 3rem;
    background: linear-gradient(135deg, var(--terracotta) 0%, #c86d5d 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 6px 25px rgba(212, 129, 110, 0.35);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(212, 129, 110, 0.45);
    color: white;
}

.btn-secondary {
    padding: 1.3rem 3rem;
    background: white;
    color: var(--sage-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px var(--soft-shadow);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    color: var(--sage-dark);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease-out 0.5s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

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

.hero-image::before {
    content: '♡';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
    font-family: 'Crimson Pro', serif;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.card-1 {
    top: 30px;
    right: -30px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 50px;
    left: -30px;
    animation-delay: 2s;
}

.card-stat {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--terracotta);
    margin-bottom: 0.3rem;
}

.card-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 10rem 4rem;
    background: var(--warm-white);
}

.features-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    color: var(--sage-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-card {
    background: white;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 8px 30px var(--soft-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--sage) 0%, var(--terracotta) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 100%;
    height: 200px;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon img {
    transform: scale(1.05);
}

.icon-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 157, 131, 0.3) 0%, rgba(212, 129, 110, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover .icon-overlay {
    opacity: 1;
}

.feature-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--sage-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Services Section */
.services {
    padding: 10rem 4rem;
    background: var(--sage-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.services-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services .section-label {
    color: var(--terracotta);
}

.services .section-title {
    color: white;
}

.services .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
}

.service-number {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--terracotta);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.service-item h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.service-item p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* CTA Section */
.final-cta {
    padding: 10rem 4rem;
    background: 
        radial-gradient(circle at 50% 50%, rgba(212, 129, 110, 0.08) 0%, transparent 60%),
        var(--warm-white);
    text-align: center;
}

.final-cta-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.final-cta h2 {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--sage-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.final-cta p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Footer */
footer {
    background: var(--sage-dark);
    color: white;
    padding: 6rem 4rem 3rem;
}

.footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about h4 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-section h5 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--terracotta);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(249, 246, 241, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2rem;
        transition: left 0.4s ease;
        align-items: flex-start;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        padding: 1rem 0;
    }

    .nav-links .cta-button {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin-top: 1rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero, .features, .services, .final-cta {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .hero {
        min-height: auto;
        padding-top: 8rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

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

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-icon {
        height: 180px;
    }

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

    .card-1, .card-2 {
        display: none;
    }

    .section-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .nav-wrapper {
        padding: 1.2rem 1.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero, .features, .services, .final-cta, footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .feature-card, .service-item {
        padding: 2rem;
    }

    .feature-icon {
        height: 160px;
    }

    .service-number {
        font-size: 2.5rem;
    }

    .service-item h3 {
        font-size: 1.5rem;
    }

    .final-cta h2 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .final-cta p {
        font-size: 1.1rem;
    }
}
