/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors extracted from your logo */
    --primary-red: #a52b3c;
    --primary-silver: #a8a8a8;
    --accent-red: #8a1b29; /* Darker red for hovers */
    
    /* Neutral Colors */
    --dark-text: #2c3e50;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    
    /* UI Effects */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.top-bar {
    background-color: var(--light-gray);
    padding: 8px 10%;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
    color: var(--primary-red);
}

.top-info i {
    margin-right: 5px;
    color: var(--primary-red);
}

header {
    background-color: var(--white);
    padding: 10px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo img {
    height: 65px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-red); 
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-silver);
}

/* Specific button styling for "Book Now" in Nav */
.btn-book {
    background: var(--primary-red);
    color: white !important;
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(165, 43, 60, 0.2); /* Converted to burgundy shadow */
}

.btn-book:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-red);
}

/* =========================================
   3. HERO SECTION & SLIDER
   ========================================= */
.hero {
    position: relative;
    height: 85vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 10%;
    overflow: hidden;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); 
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content .highlight {
    color: var(--primary-silver);
    background: rgba(255,255,255,0.1);
    padding: 0 10px;
    border-radius: 5px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.cta-btn {
    display: inline-block;
    background: var(--primary-silver);
    color: white;
    padding: 16px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    box-shadow: 0 5px 15px rgba(168, 168, 168, 0.4); /* Silver shadow */
}

.cta-btn:hover {
    transform: scale(1.05);
    background: var(--accent-red);
}

/* =========================================
   4. SERVICES SECTION
   ========================================= */

   #services {
    background-color: var(--light-gray);
    position: relative; /* Essential for the watermark to work */
    z-index: 1;         /* Keeps content above the watermark */
    padding: 100px 10%;
    /* Keep your existing border-radius and margin-top here */
}

/* The Watermark for the Services Section */
#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('final.png');
    background-repeat: no-repeat;
    background-position: center 200px; /* Moves the logo down 200px from the title */
    background-size: 600px;            /* Slightly larger to fit the wide grid */
    opacity: 0.04;                     /* Keep it very faint so it doesn't clutter the icons */
    z-index: -1;                       /* Places it behind the service cards */
}

section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.underline {
    height: 4px;
    width: 70px;
    background: var(--primary-silver);
    margin: 15px auto;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-gray);
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-red); 
}

.service-card:hover i {
    color: var(--primary-red); 
    transform: scale(1.1);
    transition: var(--transition);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--dark-text);
    margin-top: 15px;
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary-silver);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-red);
}

/* =========================================
   5. BOOKING FORM
   ========================================= */
#contact {
    background-color: #fdf0f2; /* Updated to Light Red */
    padding: 100px 10%;
    position: relative;
    z-index: 1;
}
#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('final.png'); /* Using your updated PNG file! */
    background-repeat: no-repeat;
    background-position: center; /* Try 'right center' if you want it moved to the right side! */
    background-size: 500px; /* Adjust size as needed */
    opacity: 0.05; /* Keeps it faint and readable */
    z-index: -1;
}


.booking-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-gray);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-red);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 8px rgba(165, 43, 60, 0.2); /* Burgundy shadow */
}

.submit-btn {
    width: 100%;
    background: var(--primary-red);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--accent-red);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =========================================
   6. FOOTER & LOCATION
   ========================================= */
footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 80px 10% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-about h3, 
.footer-location h3 {
    margin-bottom: 25px;
    color: var(--primary-red);
    font-size: 1.5rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #888;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icons a {
    color: var(--white); 
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-red); 
    transform: translateY(-3px);
}

/* =========================================
   7. SECTIONS & COMPONENTS
   ========================================= */
#services {
    background-color: var(--light-gray);
    position: relative;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    margin-top: -50px; 
    z-index: 10;
}

#about {
    background-color: #fdf0f2; /* Updated to Light Red */
    padding: 100px 10%;
    position: relative;
    z-index: 1;
}
#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('final.png'); /* Ensure this filename matches your logo file */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 500px; /* Adjust this to make the logo bigger or smaller */
    opacity: 0.05; /* This makes it a very faint watermark (5% visible) */
    z-index: -1; /* Puts the logo behind the text */
}

.feature-item {
    background: rgba(255, 255, 255, 0.6); 
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--white);
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-item {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    border-left: 5px solid var(--primary-red);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-right: 20px;
}

/* Contact Watermark Area */
.watermark-bg {
    position: relative;
    background-color: #ffffff; 
    background-image: url('Twin physio logo.jpg');
    background-repeat: repeat;
    background-size: 250px; 
    background-attachment: fixed;
    z-index: 1;
}

.watermark-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.94); 
    z-index: -1;
}

.contact-main-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.contact-text-area {
    flex: 1;
}

.contact-map-area {
    flex: 1.2; 
    height: 350px;
}

.map-frame {
    
    width: 100%;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 5px solid var(--white);
    transition: var(--transition);
    display: flex;
}
.map-frame iframe {
    display: block;    /* This is the key: It removes the bottom gap */
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;        /* Ensures no extra spacing */
    padding: 0;
}

.map-frame:hover {
    transform: scale(1.02);
    border-color: var(--primary-red);
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 50px;              
    margin-top: 40px;
    flex-wrap: wrap;        
}

.stat-item {
    text-align: center;      
    display: flex;
    flex-direction: column; 
    align-items: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin: 0;               
}

.stat-item p {
    font-weight: 600;
    color: var(--dark-text);
    margin: 5px 0 0 0;
}

.counter {
    min-width: 80px; 
    display: inline-block;
}

/* =========================================
   8. KEYFRAMES & RESPONSIVENESS
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    header { padding: 10px 5%; }
    
    .contact-main-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .contact-map-area {
        width: 100%;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    
    .menu-toggle { display: block; }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background: #fdf0f2; /* Updated to Light Red */
        padding: 30px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    nav ul.active { display: flex; }
    
    nav ul li { margin: 15px 0; width: 100%; text-align: center; }
    
    .hero-content h1 { font-size: 2.2rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .booking-container { padding: 30px 20px; }
}