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

:root {
    --primary-color: #046bd2;
    --secondary-color: #0d8aff;
    --accent-color: #034a8f;
    --dark-color: #1a2332;
    --light-color: #f0f5fa;
    --white: #FFFFFF;
    --text-dark: #1a2332;
    --text-light: #4a5568;
    --bg-lighter: #f8fbfd;
    --border-color: #e2e8f0;
    --heading-font: 'Playfair Display', Georgia, serif;
    --body-font: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--body-font);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 320px;
    width: 100%;
}

/* Ensure all images are responsive by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Specific container image rules */
.about-image img,
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
    white-space: nowrap;
}

.logo span {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

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

.btn-book {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    position: relative;
    z-index: 1001;
}

.nav-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(4, 107, 210, 0.75) 0%, rgba(3, 74, 143, 0.85) 100%),
        url('images/hero-spa-treatment.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(13, 138, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(4, 107, 210, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

.hero-title {
    font-family: var(--heading-font);
    font-size: 4rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    min-height: 48px;
    min-width: 48px;
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background: var(--white);
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 300;
}

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

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    height: 450px;
    background: var(--light-color);
}

/* Image styling handled by global rule at line 45-50 */

.about-text h3 {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.about-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--light-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Services Section */
.services {
    background: linear-gradient(to bottom, #f8fbfd 0%, #ffffff 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(4, 107, 210, 0.1);
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: var(--light-color);
}

.service-image img {
    transition: transform 0.3s ease;
    /* Other properties handled by global rule at line 45-50 */
}

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

.service-content {
    padding: 2rem 1.5rem;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;  /* Left section 1/3, Map 2/3 */
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-icon {
    font-size: 2rem;
    line-height: 1;
}

.info-card h3 {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.hours p {
    margin-bottom: 1rem;
}

.hours strong {
    color: var(--text-dark);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: color 0.3s ease;
    min-height: 44px;
    padding: 0.5rem 1rem;
}

.btn-link:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 450px;
}

.contact-map iframe {
    height: 100%;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--light-color);
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact p {
    color: var(--light-color);
    opacity: 0.8;
}

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

/* Responsive Design */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

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

    .section-title {
        font-size: 2.5rem;
    }

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

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

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

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 80vh;
        height: auto;
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }

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

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

    .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

    .service-image {
        height: 220px;
    }

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

    .about-image {
        height: 350px;
        order: -1;
    }

    .about-card {
        padding: 2rem 1.5rem;
    }

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

    .contact-map {
        min-height: 300px;
        order: 2;
    }

    .info-card {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-links ul {
        margin: 0 auto;
    }
}

/* Mobile Large (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo h1 {
        font-size: 1.4rem;
        line-height: 1.3;
        white-space: normal;  /* Allow wrapping on very small screens */
    }

    .logo span {
        font-size: 1.4rem;  /* Same as h1 on mobile */
        display: inline;  /* Keep on same line if possible */
    }

    .nav-container {
        padding: 0.75rem 16px;
    }

    .hero {
        min-height: 70vh;
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
    }

    .scroll-indicator {
        display: none;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

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

    .about-image {
        height: 300px;
    }

    .service-image {
        height: 200px;
    }

    .about-card h3 {
        font-size: 1.4rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-content {
        padding: 1.5rem 1.25rem;
    }

    .info-card h3 {
        font-size: 1.4rem;
    }

    .footer-brand h3 {
        font-size: 1.5rem;
    }

    .footer-links h4,
    .footer-contact h4 {
        font-size: 1.2rem;
    }
}

/* Mobile Small (375px and below) */
@media (max-width: 375px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 12px;
    }

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

    .section-title {
        font-size: 1.6rem;
    }

    .about-image {
        height: 250px;
    }

    .service-image {
        height: 180px;
    }

    .btn-primary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Very Small Screens (320px) */
@media (max-width: 320px) {
    .logo h1 {
        font-size: 1.2rem;
    }

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

    .section-title {
        font-size: 1.4rem;
    }

    .service-card h3,
    .about-card h3 {
        font-size: 1.2rem;
    }

    /* Ensure services grid fits on very small screens */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        max-width: 100%;
    }

    .service-image {
        height: 200px;
    }
}
