/* =============================================
   HEALICA MASSAGE THERAPY - Mobile-First CSS
   
   Base: 0-767px (phones)
   md: 768px+ (tablets)
   lg: 1024px+ (desktop)
============================================= */

/* ----- RESET ----- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-dark);
}

ul {
    list-style: none;
}

/* ----- BRAND VARIABLES ----- */
:root {
    /* Healica Brand */
    --accent: #4A9B9B;
    --accent-dark: #3A7A7A;
    --accent-soft: #E8F4F4;
    
    /* Neutrals */
    --white: #ffffff;
    --off-white: #FDFBF7;
    --cream: #F5F3EF;
    --light-gray: #E8E6E1;
    --mid-gray: #8A8578;
    --charcoal: #2D2D2D;
    --black: #1a1816;
    
    /* Semantic */
    --bg: var(--off-white);
    --text: var(--charcoal);
    --text-light: var(--mid-gray);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(74, 155, 155, 0.08);
    --shadow-md: 0 4px 20px rgba(74, 155, 155, 0.12);
    --shadow-lg: 0 12px 40px rgba(74, 155, 155, 0.15);
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    
    /* Mobile spacing */
    --section-padding: 60px;
    --container-padding: 20px;
}

@media (min-width: 768px) {
    :root {
        --section-padding: 80px;
        --container-padding: 40px;
    }
}

@media (min-width: 1024px) {
    :root {
        --section-padding: 100px;
    }
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.2;
    color: var(--charcoal);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
}

@media (min-width: 1024px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 3rem; }
}

p {
    margin-bottom: 1rem;
}

.text-light {
    color: var(--text-light);
}

.text-accent {
    color: var(--accent);
}

/* ----- CONTAINER ----- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ----- BUTTONS ----- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--charcoal);
}

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

/* ----- HEADER ----- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px var(--container-padding);
    background: transparent;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo-circle {
    width: 45px;
    height: 45px;
    background: var(--accent);
    border-radius: 50%;
    position: relative;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-circle::before,
.logo-circle::after {
    content: '';
    position: absolute;
    background: var(--white);
    width: 2px;
    border-radius: 2px;
}

.logo-circle::before {
    height: 22px;
    left: 16px;
    top: 10px;
    transform: rotate(-15deg);
}

.logo-circle::after {
    height: 18px;
    left: 26px;
    top: 14px;
    transform: rotate(20deg);
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--charcoal);
}

/* Desktop Nav - hidden on mobile */
.desktop-nav {
    display: none;
}

.desktop-nav ul {
    display: flex;
    gap: 35px;
    align-items: center;
}

.desktop-nav a {
    color: var(--charcoal);
    font-size: 0.9rem;
    font-weight: 400;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.desktop-nav a:hover {
    color: var(--charcoal);
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
    }
    
    .mobile-toggle {
        display: none;
    }
}

/* Mobile Toggle */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--off-white);
    padding: 40px var(--container-padding);
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav a {
    font-size: 1.25rem;
    color: var(--charcoal);
    font-family: 'Cormorant Garamond', serif;
}

.mobile-nav .btn {
    margin-top: 20px;
    text-align: center;
}

@media (min-width: 1024px) {
    .mobile-nav {
        display: none !important;
    }
}

/* ----- HERO ----- */
.hero {
    padding: 140px var(--container-padding) 60px;
    background: linear-gradient(180deg, var(--accent-soft) 0%, var(--off-white) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.hero h1 {
    margin-bottom: 20px;
}

.hero h1 em {
    color: var(--accent);
    font-style: italic;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 160px;
        padding-bottom: 80px;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding-left: 10%;
    }
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--light-gray);
    max-width: 450px;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--accent);
    font-weight: 500;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 5px;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

/* ----- LOCATIONS BAR ----- */
.locations-bar {
    background: var(--charcoal);
    padding: 30px var(--container-padding);
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--white);
}

.location-icon {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.location-details h4 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 5px;
}

.location-details p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.location-details a {
    color: var(--accent);
    font-weight: 500;
}

/* ----- SECTIONS ----- */
section {
    padding: var(--section-padding) var(--container-padding);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 15px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
}

/* ----- SERVICES SECTION ----- */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

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

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

.service-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 55px;
    height: 55px;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

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

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ----- ABOUT PREVIEW ----- */
.about-preview {
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.about-image {
    background: var(--accent-soft);
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-style: italic;
    overflow: hidden;
}

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

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.feature-check {
    width: 20px;
    height: 20px;
    background: var(--accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ----- COURSES SECTION ----- */
.courses {
    background: var(--cream);
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

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

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

.course-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 25px;
    transition: all 0.3s ease;
}

.course-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.course-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.course-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.course-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 500;
}

/* ----- INSURANCE SECTION ----- */
.insurance {
    background: var(--white);
    text-align: center;
}

.insurance-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    opacity: 0.6;
}

.insurance-count {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
}

/* ----- CTA SECTION ----- */
.cta {
    background: var(--accent);
    text-align: center;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta .btn:hover {
    background: var(--charcoal);
    color: var(--white);
}

/* ----- FOOTER ----- */
footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 60px var(--container-padding) 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 40px;
    }
}

.footer-brand .logo-text {
    color: var(--white);
    margin-bottom: 15px;
    display: block;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.7;
    max-width: 280px;
}

.footer-col h5 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

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

/* ----- PAGE HEADER (for inner pages) ----- */
.page-header {
    padding: 140px var(--container-padding) 60px;
    background: var(--accent-soft);
    text-align: center;
}

.page-header h1 {
    margin-bottom: 15px;
}

.page-header p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* ----- TEAM GRID ----- */
.team {
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

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

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

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

.team-photo {
    aspect-ratio: 4/5;
    background: var(--cream);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-card:hover .team-photo img {
    filter: grayscale(0%);
}

.team-card h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.team-card p {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0;
}

/* ----- CAREERS PAGE ----- */
.careers-content {
    background: var(--white);
}

.careers-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.job-posting {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.job-posting h3 {
    margin-bottom: 20px;
}

.job-posting h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin: 25px 0 15px;
    color: var(--accent);
}

.job-posting ul {
    list-style: disc;
    padding-left: 20px;
}

.job-posting li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.job-contact {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--light-gray);
}

.job-contact p {
    margin-bottom: 10px;
}

.job-contact a {
    font-weight: 500;
}

/* ----- ACCORDION (About page) ----- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: var(--accent-soft);
}

.accordion-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    display: none;
    padding: 0 25px 25px;
}

.accordion-item.active .accordion-content {
    display: block;
}

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

/* ----- UTILITIES ----- */
.text-center {
    text-align: center;
}

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
