:root {
    --primary-green: #8FBAA6;
    --secondary-green: #A4C3B2;
    --accent-green: #7A9E7E;
    --dark-green: #5A7961;
    --light-green: #E8F5E9;
    --accent-orange: #E27D60;
    --accent-orange-light: #E8A87C;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --text-dark: #2C3E2C;
    --text-light: #5F6F5F;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--off-white);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 1rem;
    /* Prevent font weight shift */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

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

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

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 2px 20px var(--shadow);
}

.navbar {
    padding: 1.5rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 100px;
    width: auto;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-green);
    margin: 2px 0;
    transition: var(--transition);
}

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

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

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

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    list-style: none;
    padding: 1rem 0;
    box-shadow: 0 4px 10px var(--shadow);
}

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

.nav-menu li {
    text-align: center;
    padding: 0.5rem 0;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-green);
    background-color: var(--light-green);
}

/* Hero Section */
.hero-section {
    padding-top: 150px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--light-green) 0%, var(--secondary-green) 100%);
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    text-align: center;
    padding: 2rem 0;
}

.hero-portrait-container {
    width: 260px;
    height: 280px;
    margin: 0 auto 2rem;
    position: relative;
}

.clip-path-svg {
    position: absolute;
}

.hero-portrait-circle {
    position: absolute;
    width: 260px;
    height: 260px;
    bottom: 0;
    left: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 5px solid var(--primary-green);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 -5px 15px rgba(0, 0, 0, 0.1),
        inset 0 5px 15px rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.hero-portrait-image {
    position: absolute;
    width: 260px;
    height: 280px;
    top: 0;
    left: 0;
    background-image: url('../assets/images/lucy-rolles-400.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 2;
    /* Two circles boolean union */
    clip-path: url(#twoCircles);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-orange);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(226, 125, 96, 0.3);
}

.cta-button:hover {
    background-color: var(--accent-orange-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 125, 96, 0.4);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-green), var(--accent-orange));
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-image {
    width: 100%;
    height: 300px;
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    background-image: url('../assets/images/therapy-room.jpg');
    background-size: cover;
    background-position: center;
}

.qualifications {
    background-color: var(--light-green);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.qualifications h3 {
    margin-bottom: 1rem;
}

.qualifications ul {
    list-style: none;
}

.qualifications li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.qualifications li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* Treatments Section */
.treatments-section {
    background-color: var(--off-white);
}

.treatments-hero-image {
    width: 100%;
    height: 250px;
    margin: 0 0 3rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    background-image: url('../assets/images/massage-therapy-background.jpg');
    background-size: cover;
    background-position: center;
}

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

.treatment-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.treatment-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background-color: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.treatment-icon img {
    width: 50px;
    height: 50px;
}

.learn-more-btn {
    background: none;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 1rem;
}

.learn-more-btn:hover {
    background-color: var(--accent-orange);
    color: var(--white);
}

/* Pricing Section */
.pricing-section {
    background-color: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--light-green);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.price-intro {
	font-size: 0.9rem;
	color: var(--text-light);
	margin-bottom: 1rem;
	font-weight: 900;
}

.price-details {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-green);
}

.price-row:last-child {
    border-bottom: none;
}

.price {
    font-weight: 700;
    color: var(--accent-orange);
    font-size: 1.2rem;
}

/* Reviews Section */
.reviews-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.reviews-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.reviews-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem;
    -webkit-overflow-scrolling: touch;
}

.reviews-container::-webkit-scrollbar {
    height: 8px;
}

.reviews-container::-webkit-scrollbar-track {
    background: var(--light-green);
    border-radius: 4px;
}

.reviews-container::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

.review-card {
    flex: 0 0 100%;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-green) 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.reviewer-name {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--dark-green);
}

.reviewer-details {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.review-meta {
    text-align: right;
}

.star-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 0.5rem;
}

.star {
    color: #ddd;
    font-size: 1.2rem;
}

.star.filled {
    color: #FFC107;
    text-shadow: 0 0 2px rgba(255, 193, 7, 0.5);
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.review-content {
    margin-bottom: 1.5rem;
}

.review-content p {
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
}

.review-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 1rem;
    border-top: 1px solid rgba(143, 186, 166, 0.2);
}

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--light-green);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-green);
}

.reviews-cta {
    text-align: center;
    margin-top: 3rem;
}

.reviews-cta p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.google-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--white);
    border: 2px solid var(--primary-green);
    border-radius: 30px;
    color: var(--primary-green);
    font-weight: 600;
    transition: all 0.3s ease;
}

.google-reviews-link:hover {
    background-color: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(143, 186, 166, 0.3);
}

/* Contact Section */
.contact-section {
    background-color: var(--off-white);
}

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

.contact-info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-green);
    margin-right: 1rem;
    flex-shrink: 0;
}

address {
    font-style: normal;
}

.contact-note {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--light-green);
    border-radius: 10px;
    font-style: italic;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    line-height: 0;
    height: 400px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Social Share Buttons */
.social-share {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-green);
}

.social-share h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--dark-green);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-btn.facebook {
    background-color: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
}

.share-btn.twitter {
    background-color: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background-color: #1a91da;
    transform: translateY(-2px);
}

.share-btn.whatsapp {
    background-color: #25d366;
    color: white;
}

.share-btn.whatsapp:hover {
    background-color: #22c55e;
    transform: translateY(-2px);
}

/* Footer */
.main-footer {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content p {
    color: var(--white);
    opacity: 0.9;
}

.main-footer a {
    color: var(--accent-orange-light);
    font-weight: 500;
}

.main-footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.social-links svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
    transition: var(--transition);
}

.social-links svg:hover {
    fill: var(--secondary-green);
}

/* Modal */
.treatment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    padding: 1rem;
    overflow-y: auto;
}

.treatment-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-green) 100%);
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background-color: var(--light-green);
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-green);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--primary-green);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem 2rem 2rem;
}

.modal-body h2 {
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-green);
}

.modal-body h3 {
    color: var(--accent-orange);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.modal-body ul {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
}

.modal-body ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.modal-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.modal-body ol li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Tablet Styles */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        box-shadow: none;
        padding: 0;
    }

    .nav-menu li {
        margin-left: 2rem;
    }

    .hero-section {
        background-image: url('../assets/images/massage-therapy-background.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }

    .hero-background {
        background: linear-gradient(135deg, rgba(232, 245, 233, 0.9) 0%, rgba(164, 195, 178, 0.9) 100%);
    }

    .treatments-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .review-card {
        flex: 0 0 calc(50% - 1rem);
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .map-container {
        height: 600px;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero-content h1,
    .hero-content .hero-subtitle {
        color: var(--white);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    .treatments-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .review-card {
        flex: 0 0 calc(33.333% - 1.33rem);
    }

    .hero-portrait-container {
        width: 280px;
        height: 300px;
    }

    .hero-portrait-circle {
        width: 280px;
        height: 280px;
    }

    .hero-portrait-image {
        width: 280px;
        height: 300px;
        /* Use same two circles approach for consistency */
        clip-path: url(#twoCircles);
    }

    .treatments-hero-image {
        display: none;
    }

    section {
        padding: 6rem 0;
    }
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply staggered animations to sections */
.hero-content {
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.section-title {
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.treatment-card {
    animation: fadeInUp 0.8s ease-out backwards;
}

.treatment-card:nth-child(1) {
    animation-delay: 0.1s;
}

.treatment-card:nth-child(2) {
    animation-delay: 0.2s;
}

.treatment-card:nth-child(3) {
    animation-delay: 0.3s;
}

.treatment-card:nth-child(4) {
    animation-delay: 0.4s;
}

.treatment-card:nth-child(5) {
    animation-delay: 0.5s;
}

.pricing-card {
    animation: fadeInUp 0.8s ease-out backwards;
}

.pricing-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.3s;
}

.pricing-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Accessibility */
:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .main-header,
    .main-footer,
    .cta-button,
    .learn-more-btn,
    .map-container {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
}