/* ===================================
   Residential Stays — Light refresh + Recent Projects
   Load AFTER css/styles.css. Everything here is an override or an
   addition; delete this file and the site returns to how it was.
   =================================== */

:root {
    /* Readable secondary text on light backgrounds.
       The original --text-muted (#9ca3af) was built for dark panels
       and drops below contrast minimums once the panel goes light. */
    --text-muted-dark: #5a6472;
    --surface-alt: #f4f6f8;
    --hairline: rgba(26, 35, 50, 0.09);
}

/* ===================================
   Navigation — clear over the hero, white once scrolled
   =================================== */
.navbar {
    background: linear-gradient(180deg,
        rgba(26, 35, 50, 0.70) 0%,
        rgba(26, 35, 50, 0.32) 70%,
        transparent 100%);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(8px);
    box-shadow: 0 1px 0 var(--hairline), 0 4px 20px rgba(26, 35, 50, 0.06);
}

.navbar.scrolled .nav-link { color: var(--primary-dark); }
.navbar.scrolled .nav-link.nav-cta { color: var(--primary-dark); }

.navbar.scrolled .hamburger,
.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
    background-color: var(--primary-dark);
}

/* ===================================
   Hero — house as a faded texture, not a photo
   Image lives on ::after so it can blur without
   touching the headline. Overlay stays mid-opacity
   so the block stays lighter than the original navy.
   =================================== */
.hero {
    background-image: none;
    background-color: #3d4d66;
}

.hero::after {
    z-index: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(201, 169, 98, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 169, 98, 0.08) 0%, transparent 40%),
        url('../images/Home background.png') center center / cover no-repeat;
    filter: blur(14px) saturate(0.55) brightness(1.08);
    transform: scale(1.12);
    opacity: 0.42;
}

.hero::before {
    z-index: 1;
    background: linear-gradient(135deg,
        rgba(26, 35, 50, 0.70) 0%,
        rgba(45, 58, 79, 0.58) 50%,
        rgba(70, 88, 112, 0.50) 100%);
}

.hero-subtitle { color: rgba(255, 255, 255, 0.88); }
.hero-scroll-indicator { color: rgba(255, 255, 255, 0.75); }

/* ===================================
   Trust bar — flipped to light
   =================================== */
.trust-bar {
    background-color: var(--surface-alt);
    border-bottom: 1px solid var(--hairline);
}

.trust-item   { color: var(--primary-dark); }
.trust-icon   { color: var(--accent-dark); }
.trust-number { color: var(--primary-dark); }
.trust-label  { color: var(--text-muted-dark); }

/* ===================================
   Shared light-surface text
   =================================== */
.section-subtitle { color: var(--text-muted-dark); }
.faq-answer p     { color: var(--text-muted-dark); }
.form-disclaimer  { color: var(--text-muted-dark); }
.form-success p   { color: var(--text-muted-dark); }

/* ===================================
   Recent Projects
   =================================== */
.projects {
    padding: var(--section-padding) 0;
    background-color: var(--white);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

.project-card {
    background-color: var(--white);
    border: 1px solid var(--background-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.project-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
    background-color: var(--background-alt);
}

.project-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-status {
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: var(--white);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-top-right-radius: var(--radius-md);
}

.project-status.in-progress { color: var(--accent-dark); }

.project-body {
    padding: 28px 28px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-city {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.project-county {
    font-size: 0.9rem;
    color: var(--text-muted-dark);
    margin-bottom: 16px;
}

.project-note {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted-dark);
    margin-bottom: 24px;
    flex: 1;
}

.project-specs {
    border-top: 1px solid var(--background-alt);
    padding-top: 18px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-specs li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted-dark);
}

.project-specs strong {
    font-weight: 500;
    color: var(--text-dark);
    text-align: right;
}

.projects-footnote {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--background-alt);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
    text-align: center;
    color: var(--text-muted-dark);
}

.projects-footnote a {
    color: var(--primary-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

.projects-footnote a:hover { color: var(--accent-dark); }

/* ===================================
   Contact — light panel, dark type
   =================================== */
.contact {
    background: linear-gradient(135deg, #f4f6f8 0%, #e9edf1 100%);
}

.contact .section-tag   { color: var(--accent-dark); }
.contact .section-title { color: var(--text-dark); }
.contact-info           { color: var(--text-dark); }
.contact-description    { color: var(--text-muted-dark); }
.contact-label          { color: var(--text-muted-dark); }
.contact-value          { color: var(--primary-dark); }

.contact-icon { background-color: rgba(26, 35, 50, 0.06); }
.contact-icon svg { color: var(--accent-dark); }

a.contact-value:hover { color: var(--accent-dark); }

.contact-form,
.form-success {
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-md);
}

/* ===================================
   Mobile — re-applies after styles.css's own 768px block
   =================================== */
@media (max-width: 768px) {
    .navbar { background: rgba(26, 35, 50, 0.55); }
    .navbar.scrolled { background: rgba(255, 255, 255, 0.98); }

    .nav-menu {
        background-color: var(--white);
        box-shadow: -8px 0 40px rgba(26, 35, 50, 0.16);
    }

    .nav-menu .nav-link {
        color: var(--primary-dark);
        border-bottom: 1px solid var(--background-alt);
    }

    .nav-menu .nav-link.nav-cta {
        color: var(--primary-dark);
        border-bottom: none;
    }

    .project-grid { grid-template-columns: 1fr; }
    .project-body { padding: 24px 24px 28px; }
    .project-city { font-size: 1.4rem; }
}