/* --- 1. GLOBAL STYLES & VARIABLES --- */
:root {
    --color-primary: #222E47; /* Dark Navy/Blue */
    --color-secondary: #FAFAFA;
    --color-accent: #8EA2C2; /* Muted Blue/Slate */
    --color-text-dark: #1F1A1A;
    --color-text-light: #F2F1F0;
    --font-heading: 'Georgia', serif; /* Use a classic serif font for main headers */
    --font-body: 'Helvetica Neue', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.btn {
    text-decoration: none; /* Removes the underline */
    display: inline-block; /* Ensures padding and margins apply correctly */
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

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

/* Add/Update this in your styles.css */
.step-icon i {
    font-size: 30px; 
    color: white; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure the hero button doesn't look like a dead link */
.hero .btn-primary:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transition: 0.3s ease;
}

.btn-text {
    background: none;
    color: var(--color-primary);
    padding-left: 0;
}

/* --- 2. HEADER/NAV --- */
.header {
    background-color: var(--Dark-Navy, #222E47);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    width: 241px;
    height: 50px;
    opacity: 1;
    margin-right: 10px;
}

.logo, .logo span {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 0.8em;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav li {
    margin-left: 30px;
}

.nav a {
    text-decoration: none;
    color: #FAFAFA;
    font-size: 0.9em;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

.social-icons i {
    margin-left: 15px;
    color: var(--color-primary);
    cursor: pointer;
}

/* --- 3. HERO SECTION --- */
/* --- HERO BUTTON & TEXT FIXES --- *

/* 2. Adjust the Hero Content box to fit text better */
.hero-content {
    background-color: rgba(242, 241, 240, 0.75); /* #F2F1F0BF with standard syntax */
    padding: 60px; /* Increased padding for more breathing room */
    max-width: 90%; /* Allows it to be responsive on smaller screens */
    width: 850px; /* Adjusted from 980 to fit the new layout better */
    height: auto; /* Changed from fixed 312 to auto so it expands with text */
    opacity: 1;
    margin: 0 auto;
}

/* 3. Ensure the Hero Paragraph fits within the box without breaking */
.hero p {
    font-size: 1.1em;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif; /* Fallback added */
    font-weight: 500;
    text-align: center;
    color: var(--color-primary);
    width: 100%; /* Changed from fixed 738px to 100% of the parent container */
    height: auto; /* Allows height to adjust naturally */
}
.hero {
    background: url('assets/StockPhoto.png') no-repeat center center/cover; /* Replace with actual image path */
    min-height: 80vh;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    color: var(--color-text-light);
}

/* --- 4. FEATURE CARDS SECTION --- */
.features-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 60px 50px;
    background-color: var(--color-secondary);
}

.feature-card {
    flex: 1;
    max-width: 350px;
    background-color: var(--color-accent);
    padding: 30px;
    text-align: center;
    font-family: Poppins;
    font-weight: 400;
    text-align: center;
}
.feature-icon-wrapper {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.feature-icon-wrapper i {
    font-size: 50px;
    color: var(--color-text-light)
}

.feature-card-alt {
    flex: 1;
    max-width: 350px;
    background-color: var(--color-primary); /* Dark Navy/Blue */
    padding: 30px;
    text-align: center;
    font-family: Poppins;
    font-weight: 400;
    text-align: center;
    color: var(--Cream, #EFEAE4);
}

.feature-card-alt h3 {
    color: var(--color-text-light); 
    font-size: 1.5em;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--color-text-light); /* Changed to light to match dark background from feature-card-alt */
    font-size: 1.5em;
    margin-bottom: 15px;
    font-family: Poppins;
    font-weight: 700;
    text-align: center;
}

.feature-card img {
    width: 68.45194244384766;
    height: 60;
    max-width: 68.45px;
    max-height: 60px;
    opacity: 1;
}

.feature-card-alt img {
    width: 68.45194244384766;
    height: 60;
    max-width: 68.45px;
    max-height: 60px;
    opacity: 1;
    color: var(--color-accent);
}

/* --- 5. DESIGN-LED ABOUT SECTION --- */
.about-section {
    display: flex;
    background-color: var(--Sage, #AEB4A2);
    color: var(--color-text-light);
    min-height: 500px;
}

.about-content {
    flex: 1;
    padding: 80px 50px;
    max-width: 50%;
}

.about-content h2 {
    color: var(--color-secondary);
    font-size: 2.5em;
    margin-bottom: 20px;
    font-family: Georgia;
    font-weight: 400;
    color: var(--Dark-Navy, #222E47);
}

.about-content p {
    margin-bottom: 15px;
    max-width: 500px;
    font-family: Poppins;
    font-weight: 400;
    color: var(--Deep-Leather, #1F1A1A);
}

.about-image {
    flex: 1;
    background: url('assets/FrontPorchStock.jpg') no-repeat center center/cover;
    width: 720px;
    height: 664px;
    opacity: 1;
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.cta-buttons .btn-text {
    color: var(--color-secondary);
}

.cta-buttons .btn-text i {
    margin-left: 5px;
}

/* --- 6. OUR APPROACH SECTION - NEW TWO-COLUMN DESIGN --- */

.approach-section.two-column {
    display: flex;
    justify-content: center; /* Center the content block horizontally */
    align-items: flex-start; /* Align columns to the top */
    padding: 80px 50px;
    gap: 50px; /* Space between the two columns */
    background-color: var(--color-secondary); /* Off-white background */
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Left Column: Diagram --- */
.approach-diagram-column {
    flex: 1; /* Allows it to take up available space */
    max-width: 50%;
    padding-top: 50px; /* Aligns the image lower, next to the steps */
}

.approach-diagram-column img {
    max-width: 100%;
    height: auto;
    /* Apply a filter if the image isn't natively the line-art style */
    /* filter: grayscale(100%) brightness(50%) sepia(50%); */ 
}

/* --- Right Column: Header and Steps --- */
.approach-steps-column {
    flex: 1;
    max-width: 50%;
}

.approach-header {
    text-align: left; /* Header should be left-aligned */
    margin-bottom: 30px;
}

.approach-header h2 {
    font-family: var(--font-heading);
    font-size: 3.5em; 
    margin-bottom: 5px;
    color: var(--color-primary);
}

.approach-subtitle {
    font-size: 1.2em;
    color: #666;
}

/* Wrapper for the cards */
.approach-steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between the cards */
}

/* Individual Step Card Styling (Re-using/Refining the previous card styles) */
.approach-step-card {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.step-icon {
    /* The square container for the icon */
    background-color: var(--color-accent); /* Muted Blue/Slate background for the icon */
    color: white;
    width: 70px; /* Slightly smaller box */
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-icon i {
    font-size: 30px; 
    color: white; 
}

.step-text h3 {
    color: var(--color-primary);
    font-size: 1.2em;
    margin-bottom: 5px;
}

.step-text p {
    color: #444;
    font-size: 0.9em;
}

/* --- 7. FEATURED PROJECTS SECTION --- */
.projects-section {
    background-color: var(--color-secondary);
    padding: 80px 50px;
    text-align: center;
    position: relative;
    /* This styling handles the large background text/graphic */
    overflow: hidden; 
}

.projects-section::before {
    content: 'NJ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30vw;
    color: rgba(108, 125, 153, 0.1); /* Very light, transparent accent color */
    font-family: var(--font-heading);
    pointer-events: none;
    z-index: 1;
}

.projects-header {
    margin-bottom: 50px;
    z-index: 2; /* Keep content above the background graphic */
    position: relative;
}

.project-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    z-index: 2;
    position: relative;
}

.project-card {
    flex: 1;
    max-width: 350px;
    background-color: var(--color-text-light);
    text-align: left;
    padding: 20px;
}

.project-card img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.project-card h4 {
    color: var(--color-primary);
    margin-bottom: 5px;
}

.project-card p {
    font-size: 0.9em;
    color: #666;
}

/* --- 8. START YOUR JOURNEY CTA --- */
.journey-cta.new-design {
    /* Use the color from the image: a light grayish-sage/taupe */
    background-color: #AEB4A2; /* Existing Sage color is close */
    
    /* Make it a Flex container for the two main columns */
    display: flex;
    justify-content: center; /* Center the content block horizontally */
    align-items: center;
    padding: 80px 50px;
    gap: 100px; /* Space between the left and right sides */
    color: var(--color-text-dark); /* Ensure text is dark/readable */
}

/* Left Side: Icon and Title */
.cta-left-content {
    display: flex;
    align-items: center; /* Vertically align the icon and title */
    gap: 30px;
}

.cta-icon {
    font-size: 80px; /* Make the icon much larger */
    color: var(--color-primary); /* Dark Navy color */
    width: 150px; /* Reserve space for the icon */
    height: 150px;
    display: flex; /* Centers the actual icon element */
    justify-content: center;
    align-items: center;
}

.cta-title-group h3 {
    font-size: 3.5em; /* Large heading size */
    line-height: 1.1; /* Tighter line height for the two lines */
    color: var(--color-primary);
    text-align: left;
    font-family: Georgia;
}

.cta-title-group h3:first-child {
    display: inline-block; /* Essential for the underline to fit content */
}

/* Right Side: Description and Button */
.cta-right-content {
    display: flex;
    flex-direction: column; /* Stack text above button */
    justify-content: center;
    align-items: flex-start; /* Align text and button to the left */
    max-width: 450px;
}

.cta-right-content p {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: var(--color-primary);
}

.cta-right-content .btn-primary {
    /* Style the button background and text to match the image */
    background-color: var(--color-primary); /* Dark Navy background */
    color: var(--color-text-light);
    padding: 15px 30px;
}
/* --- 8. START YOUR JOURNEY CTA (Button Fix) --- */

.journey-cta.new-design .cta-right-content .cta-button-fix {
    /* Override standard button size to match the large CTA button in the mockup */
    padding: 20px 45px; /* Large padding for height and width */
    font-size: 1.1em;
    text-decoration: none; /* Ensure the link doesn't have an underline */
    
    /* Ensure the color and background are correct after removing .btn-text */
    background-color: var(--color-primary); /* Dark Navy background */
    color: var(--color-text-light); /* White/Light text */
}

/* Ensure the link text remains white inside the button */
.journey-cta.new-design .cta-right-content .cta-button-fix a {
    color: var(--color-text-light);
}

/* Also clean up the conflicting styles in the general .btn-text rule */
.btn-text {
    background: none;
    color: var(--color-primary);
    padding-left: 0;
    /* REMOVE: text-decoration: none; as it's not present in the clean code, but good to check */
}

/* --- 9. FOOTER --- */
.footer {
    background: var(--Dark-Navy, #222E47);
    padding: 50px 50px 20px;
    color: var(--color-text-light);
    text-align: center; /* Center-align all block content */
    line-height: 1.5;
}

/* 1. Logo Line (Separate Line 1) */
.footer-logo-line {
    margin-bottom: 40px; /* Space below the logo */
}

/* Adjust the logo image size to be more manageable/centered */
.footer-logo-line img {
    max-width: 300px;
    height: auto;
    /* Since the logo is a block/inline-block, text-align: center on the parent (.footer) handles centering. */
}

/* 2. Contact Info Line (Separate Line 2) */
/* Update these specific blocks in your CSS */

.footer-contact-info-line {
    display: flex;
    justify-content: center; /* Centers the group on desktop */
    align-items: center;     /* Centers items vertically */
    gap: 40px;               /* Space between phone and email */
    flex-wrap: wrap;         /* Allows wrapping on smaller screens */
    margin: 0 auto 30px auto;
}

.contact-block {
    display: flex;
    flex-direction: column; 
    align-items: center;    /* This is the key to centering the icon and text */
    text-align: center;     /* Ensures text is centered within the block */
}

.contact-block a {
    display: block;
    width: 100%;
    text-align: center;
}

.address-block address {
    font-style: normal; /* Removes italic on address tag */
}

/* Horizontal Rule */
.footer-hr {
    border: 0;
    height: 1px;
    background-color: #3b4255; /* A subtle divider color */
    margin: 20px auto;
    max-width: 90%;
}

/* 3. Legal Links Line (Separate Line 3) */
.footer-legal-line p {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.footer-legal-line a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* --- NEW BOOKING PORTAL STYLES --- */

.booking-portal {
    background-color: #f8f9fa; /* Very light grey to separate from white sections */
    padding: 80px 20px;
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.widget-frame {
    background: #ffffff;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
    
    /* This allows the widget to expand naturally without the "white box" looking like a mistake */
    min-height: 150px; 
}

/* This targets the specific widget container to ensure it matches your site fonts */
hospitable-direct-mps {
    font-family: var(--font-body) !important;
}

/* Ensure the features section doesn't feel cramped below it */
.features-section {
    padding-top: 80px;
}


/* --- Dedicated Booking Page --- */
.booking-container {
    max-width: 1200px;
    margin: 120px auto 60px auto; /* Space for the header */
    padding: 0 20px;
    min-height: 80vh;
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.widget-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    min-height: 500px; /* Now a large height is GOOD because it's a search page */
}

/* Adjust the widget font to match your site */
hospitable-direct-mps {
    font-family: var(--font-body) !important;
}

/* --- Property Detail Page Styles --- */
.prop-detail-container {
    padding-top: 150px;
    text-align: center;
    background-color: #FAFAFA;
    min-height: 100vh;
}

.prop-hero h1 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

.reopen-btn {
    background-color: var(--color-primary);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

/* Customizing the Hospitable Pop-out appearance */
hospitable-direct-booking {
    --hospitable-primary-color: #222E47; /* Your Navy */
    --hospitable-font-family: 'Poppins', sans-serif;
}

/* Add this to your styles.css */
.booking-wrapper {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

#booking-iframe {
    width: 100%;
    min-height: 850px; /* Ensures the calendar isn't squashed */
}

/* --- 10. MOBILE & TABLET RESPONSIVENESS --- */

@media (max-width: 900px) {
    /* Header: Shrink padding and stack logo if necessary */
    .header {
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
    }

    /* Hero: Adjust the white box to fit mobile screens */
    .hero-content {
        width: 95%; 
        padding: 30px 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    /* Feature Cards: Change from side-by-side to a vertical stack */
    .features-section {
        flex-direction: column;
        padding: 40px 20px;
        align-items: center;
    }

    .feature-card, .feature-card-alt {
        max-width: 100%;
        margin-bottom: 20px;
    }

    /* About Section: Stack the image and text */
    .about-section {
        flex-direction: column;
    }

    .about-content {
        max-width: 100%;
        padding: 40px 20px;
    }

    .about-image {
        width: 100%;
        height: 300px; /* Reduced height for mobile */
    }

    /* Our Approach: Stack the diagram and the steps */
    .approach-section.two-column {
        flex-direction: column;
        padding: 40px 20px;
    }

    .approach-diagram-column, 
    .approach-steps-column {
        max-width: 100%;
    }

    /* Footer: Center the contact info for easier tapping */
    .footer-contact-info-line {
        flex-direction: column; /* Stacks phone on top of email */
        gap: 20px;
        width: 100%;
        text-align: center;
    }
    .contact-block {
        width: 100%;
        justify-content: center;
    }
}