/* style.css - Custom Design System for Johnson Health & Wellness */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary: #123c2a;      /* Deep Forest Emerald */
    --primary-light: #23543d;/* Lighter Emerald */
    --accent: #c2a67a;       /* Champagne Gold */
    --bg-light: #faf8f5;     /* Soft Warm Alabaster */
    --bg-card: #ffffff;      /* Pure White */
    --text-main: #1b2620;    /* Dark Sage Black */
    --text-muted: #627267;   /* Muted Sage Grey */
    --success: #10b981;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

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

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

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
}

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

/* --- Header / Navigation --- */
.site-header {
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(18, 60, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary);
    padding: 6px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--accent);
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 40px;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.8s ease;
}

.slide.active .slide-content {
    transform: translateY(0);
}

.slide-content h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.slide-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.slider-btn {
    background: var(--accent);
    color: var(--primary);
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 30px;
    display: inline-block;
    transition: background 0.3s ease, transform 0.2s ease;
}

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

.slider-nav {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 8px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

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

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

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

/* --- Section Formatting --- */
.section {
    padding: 80px 0;
}

.section-bg-white {
    background-color: #ffffff;
}

.section-title-wrap {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px auto;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media(min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(18, 60, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.service-img-wrap {
    height: 180px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.service-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* --- Call To Action Panel --- */
.cta-panel {
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 20px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.cta-panel-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

@media(min-width: 768px) {
    .cta-panel-wrap {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cta-text h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.cta-text p {
    font-size: 1.05rem;
    opacity: 0.9;
}

/* --- Trending Section --- */
.trending-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media(min-width: 768px) {
    .trending-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trending-card {
    background: var(--bg-card);
    border: 1px solid rgba(18, 60, 42, 0.08);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.trending-card:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.trending-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.trending-card:hover .trending-tag {
    color: #ffffff;
}

.trending-card h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.trending-card:hover h4 {
    color: #ffffff;
}

.trending-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.trending-card:hover p {
    color: rgba(255, 255, 255, 0.85);
}

/* --- Profile Section --- */
.profile-row {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

@media(min-width: 768px) {
    .profile-row {
        flex-direction: row;
    }
}

.profile-img-wrap {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

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

.profile-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    display: block;
}

.profile-details p {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 20px;
    max-width: 750px;
}

/* --- Footer Widgets --- */
.footer-widgets {
    background-color: var(--primary);
    color: #ffffff;
    padding: 80px 0 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

@media(min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-widget h4 {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-widget p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 15px;
    list-style: none;
    margin-top: 15px;
}

.social-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.social-link a:hover {
    background: var(--accent);
    color: var(--primary);
}

/* --- Footer Bottom --- */
.site-footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.6);
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Mobile Responsive Enhancements --- */
@media(max-width: 768px) {
    .header-wrap {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-slider {
        height: 400px;
    }
    .slide-content {
        padding: 0 20px;
    }
    .slide-content h2 {
        font-size: 1.8rem;
    }
    .slide-content p {
        font-size: 0.95rem;
    }
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .cta-panel {
        padding: 40px 20px;
    }
}

@media(min-width: 480px) and (max-width: 767px) {
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
