/* --- General Body & Font Styling --- */
body {
    margin: 0;
    /* CRITICAL FIX: Prevents horizontal scroll from minor layout issues */
    overflow-x: hidden; 
    font-family: 'Cormorant Garamond', serif;
    background-color: #ffffff; 
    color: #495057;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
    /* CRITICAL FIX: Ensure the HTML element itself is not causing overflow */
    overflow-x: hidden;
}

/* Apply border-box globally to prevent padding/border from increasing width */
*, *::before, *::after {
    box-sizing: border-box;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    /* Default padding reduced slightly for better layout */
    padding: 0 15px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.container.column {
    flex-direction: column;
    text-align: center;
}

/* --- Header Styling --- */
.site-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #21283d; 
}

/* --- Top Bar Styling --- */
#top-bar {
    background-color: #1a2033;
    color: #e0e0e0;
    padding: 8px 0;
    font-size: 0.85rem;
}

#top-bar .container {
    flex-wrap: wrap; 
    justify-content: center;
    gap: 10px 20px;
}

#top-bar a,
.location-info {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

#top-bar a:hover {
    color: #e9cbbf;
}

#top-bar i {
    margin-right: 8px;
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.location-info {
    cursor: default;
}

.social-media a {
    margin: 0 8px;
    font-size: 1rem;
}

/* --- Main Navigation Bar Styling --- */
#main-nav {
    background-color: #21283d;
    padding: 10px 0;
}

.logo-image-container {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 60px;
    width: auto;
    border-radius: 5px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e9cbbf;
    transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.active-link {
    color: #e9cbbf;
}

.nav-links a:hover::after, .nav-links a.active-link::after {
    width: 100%;
}

/* --- Call-to-Action (CTA) Button --- */
.cta-button {
    background-color: #e9cbbf;
    color: #ad897d;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: #d6b7a9;
    transform: translateY(-2px);
}

/* --- Hamburger Menu (for Mobile) --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger transition fixes */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    
    /* 1. Set the navy background color */
    background-color: #21283d; 
    
    /* 2. Use your new logo as the background image */
    background-image: url('images/PcBackground.png'); 
    background-repeat: no-repeat;
    
    /* 3. Position logo 30% from the top */
    background-position: center 30%;
    background-size: auto; /* Use the image's actual size */
    
    color: #ffffff;
    text-align: center;
    min-height: 80vh; 
    
    /* 4. Use Flexbox to stack and center content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center the whole block */
    
    width: 100%;
    overflow: hidden;
    padding: 40px 20px; /* Add padding for spacing */
}

.hero-section::before {
    /* 5. Remove the dark overlay */
    content: "";
    background: none; 
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* 6. Push this content block down */
    margin-top: 240px; 
    padding: 0;
    max-width: 600px;
}

/* 7. HIDE the H1 text ("Healthy Feet, Happy Life") */
.hero-content h1 {
    display: none;
}

/* 8. Style the paragraph to match the mobile design */
.hero-content p {
    color: #e0e0e0;
    font-size: 1.1rem;
    max-width: 450px;
    margin-bottom: 2rem;
}


.cta-button-large {
    background-color: #e9cbbf;
    color: #ad897d;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button-large:hover {
    background-color: #d6b7a9;
    transform: translateY(-3px);
}

/* --- Content Sections --- */
.content-section {
    padding: 80px 0;
    width: 100%;
}

.content-section.alt-bg {
    background-color: #ffffff;
}

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ad897d;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* --- Services Section --- */
.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    margin-top: 2rem;
    text-align: left;
    align-items: flex-start;
    justify-content: space-between; 
}

.main-services {
    flex: 1;
    min-width: 300px; 
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-item-main {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* Styling for the service icon container */
.service-item-main i {
    font-size: 2rem;
    color: #e9cbbf;
    margin-top: 5px;
    width: 35px;
    text-align: center;
    border: 2px solid #e9cbbf;
    border-radius: 50%;
    padding: 10px;
    line-height: 1;
    flex-shrink: 0;
}

.service-item-main h3 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    color: #ad897d;
}

.service-item-main p {
    margin: 0;
}

.treatments-list {
    flex: 1;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 500px; 
}

.treatments-list h3 {
    font-size: 1.5rem;
    color: #ad897d;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
}

.treatments-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.treatments-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.treatments-list i {
    color: #e9cbbf;
    flex-shrink: 0;
}

/* --- Price List Section (Table) --- */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.price-table thead {
    background-color: #21283d;
    color: white;
}

.price-table th, .price-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.price-table tbody tr:hover {
    background-color: #fcfcfc;
}

/* --- NEW: Blog Teaser Section --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 2rem;
    text-align: left;
}

.blog-card {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.blog-card h3 {
    font-size: 1.3rem;
    color: #ad897d;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.blog-card p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.blog-card a {
    display: inline-block;
    font-weight: 600;
    color: #e9cbbf;
    text-decoration: none;
    border-bottom: 2px solid #e9cbbf;
    transition: color 0.3s ease;
}

.blog-card a:hover {
    color: #ad897d;
}

/* --- About Section --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    min-width: 250px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.about-text li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.about-text i {
    color: #e9cbbf;
    margin-right: 10px;
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
    width: 100%;
}

.testimonial-card {
    background-color: #21283d;
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    text-align: left;
    width: 100%;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: rgba(233, 203, 191, 0.2);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.testimonial-card h4 {
    font-weight: 600;
    color: #e9cbbf;
}

/* --- CTA Section --- */
.cta-section {
    background-color: #e9cbbf;
    color: #ad897d;
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    color: #ad897d;
}

.cta-section p {
    max-width: 500px;
    margin: 0 auto 2rem auto;
}

.cta-section .cta-button-large {
    background-color: #21283d;
    color: #ffffff;
}

.cta-section .cta-button-large:hover {
    background-color: #31384d;
}

/* --- Footer --- */
.site-footer-bottom {
    background-color: #1a2033;
    color: #e0e0e0;
    padding: 20px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-socials a {
    color: #e0e0e0;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: #e9cbbf;
}


/* ------------------------------------------------------------------ */
/* --- RESPONSIVE DESIGN FOR MOBILE AND TABLETS (MAX-WIDTH 992PX) --- */
/* ------------------------------------------------------------------ */

@media (max-width: 992px) {
    /* Main Navigation: Hide desktop links and CTA, show hamburger */
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #21283d;
        padding-top: 100px;
        gap: 25px;
        z-index: 1000;
        font-size: 1.2rem;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        display: flex;
        right: 0;
    }

    .cta-button {
        display: none;
    }

    .hamburger {
        display: block;
    }
    
    .nav-links li:last-child a.cta-button {
        display: inline-block;
    }
    
    /* Top Bar: Adjust gap and center items */
    #top-bar .container {
        flex-direction: column;
        gap: 8px;
    }
    .contact-info, .social-media {
        justify-content: center;
    }

    /* Content Layouts: Stack elements */
    .about-container {
        flex-direction: column;
    }
    .about-text {
        text-align: center;
    }
    .about-image {
        max-width: 80%;
        margin: 0 auto;
    }

    /* Services Layout Fixes (Crucial for Centering) */
    .services-container {
        flex-direction: column;
        gap: 30px;
        align-items: center; 
        justify-content: center; 
    }
    
    /* Services Sub-blocks: Ensure internal content is centered when stacked */
    .main-services {
        min-width: unset; 
        max-width: 450px; 
        width: 100%;
        margin: 0 auto;
    }
    
    /* Center the icons and text in the main services blocks */
    .service-item-main {
        align-items: center;
        text-align: center;
        flex-direction: column;
    }
    .service-item-main i {
        margin-bottom: 10px;
    }
    .service-item-main > div {
        text-align: center;
    }

    /* Treatments List: Constrain width and ensure it stacks well */
    .treatments-list {
        max-width: 450px; 
        width: 100%;
    }
    .treatments-list ul {
        grid-template-columns: 1fr;
    }
}


/* ---------------------------------------------------------------- */
/* --- RESPONSIVE DESIGN FOR MOBILE PHONES (MAX-WIDTH 600PX) --- */
/* ---------------------------------------------------------------- */

@media (max-width: 600px) {
    
    /* CRITICAL FIX: Tighter container padding for maximum screen use */
    .container {
        padding: 0 10px;
    }
    
    /* <<< UPDATED MOBILE HERO FIX >>> */
    .hero-section {
        /* 1. Set the mobile background image */
        /* Assuming 'images/foot 1.png' is your "after" logo image */
        background-image: url('images/MobileBackground.png'); 
        
        /* 2. 'contain' shrinks the image to fit */
        background-size: contain; 
        
        /* --- 3. UPDATED: Moves logo UP (closer to nav) --- */
        background-position: center 5%; /* Was 10% */
        background-repeat: no-repeat;
        
        /* 4. Keep other settings */
        min-height: 80vh; 
        
        /* 5. Setup flexbox to stack and center */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-section::before {
        /* 6. Remove the dark overlay */
        background: none; 
    }

    .hero-content {
       /* 7. CRITICAL FIX: SHOW the HTML content */
       display: flex;
       flex-direction: column;
       align-items: center;
       
       /* 8. Text position remains the same */
       margin-top: 380px; 
       padding: 0 20px; /* Add horizontal padding */
    }

    .hero-content h1 {
        /* 9. HIDE the H1 ("Healthy Feet...") since logo has title */
        display: none;
    }

    .hero-content p {
        /* 10. Make text LIGHT GREY */
        color: #e0e0e0; 
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    /* <<< END MOBILE HERO FIX >>> */

    /* General Sizing */
    .content-section {
        padding: 40px 0;
    }
    .content-section h2 {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Navigation Adjustments */
    .logo-image {
        height: 40px;
    }
    
    /* Top Bar: Reduce font and space */
    #top-bar {
        font-size: 0.75rem;
        padding: 5px 0;
    }
    .contact-info {
        flex-direction: column;
        gap: 5px;
    }
    .social-media {
        margin-top: 5px;
    }

    /* Price Table: Force horizontal scroll or stack (stacked view) */
    .price-table, .price-table thead, .price-table tbody, .price-table th, .price-table td, .price-table tr {
        display: block;
    }

    .price-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .price-table tr {
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }

    .price-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
        font-size: 0.9em;
    }

    .price-table td::before {
        position: absolute;
        top: 0;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #ad897d;
        padding-top: 15px;
        padding-bottom: 10px;
    }
    
    .price-table td:nth-of-type(1):before { content: "Service"; }
    .price-table td:nth-of-type(2):before { content: "Duration"; }
    .price-table td:nth-of-type(3):before { content: "Price"; }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-socials {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ------------------------------------------------------------------ */
/* --- BLOG PAGE SPECIFIC LAYOUT ADJUSTMENTS (max-width 950px) --- */
/* ------------------------------------------------------------------ */

/* Base Blog Styling */
.posts-container {
    flex-grow: 1;
    min-width: 0;
}

.full-post-card {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 40px;
    margin-bottom: 40px !important;
}

.full-post-card:last-child {
    border-bottom: none;
}

.full-post-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #ad897d;
}

.full-post-card p {
    margin-bottom: 15px;
}

/* Sidebar Styling */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-box {
    border: 1px solid #e9cbbf;
    background-color: #fcfcfc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.sidebar h3 {
    font-size: 1.4rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9cbbf;
    margin-top: 0;
    color: #ad897d;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar ul a:hover {
    color: #e9cbbf !important;
}


@media (max-width: 950px) {
    /* Revert .container to default flex settings to allow full width stacking */
    #blog-posts .container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .posts-container {
        max-width: 700px;
        width: 100%;
        min-width: 0;
    }

    /* Sidebar: Make it full width and centered when stacked */
    .sidebar {
        width: 100%;
        max-width: 450px; /* Use the same constraint as service blocks */
        flex-shrink: 0;
    }
    
    .sidebar-box {
        text-align: center;
    }
    
    .sidebar ul {
        text-align: center;
        padding-top: 10px;
    }
}