/* Buttons */
.btn {
    display: inline-block;
    padding: 1.125rem 2.5rem;
    background: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-green);
    font-size: 1rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--background-cream);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 64, 38, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 64, 38, 0.2);
}

.btn-accent {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--white);
}

.btn-accent:hover {
    background: transparent;
    color: var(--accent-gold);
}

/* Content Sections */
.content-section {
    background: var(--white);
    padding: 8rem 0;
}

.content-section.accent {
    background: var(--background-cream) !important;
}

.section-header {
    text-align: left;
    margin-bottom: 4rem;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Responsive text alignment */
@media (max-width: 768px) {
    .section-header {
        text-align: left;
        margin-left: 0;
        margin-right: auto;
    }
    
    .single-column {
        text-align: left !important;
    }
    
    .section-grid div {
        text-align: left;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        grid-template-areas:
            "image"
            "content";
    }

    .section-grid.reverse {
        grid-template-columns: 1fr;
    }

    .section-grid h2 {
        font-size: clamp(2.5rem, 9vw, 3.25rem);
        margin-bottom: 1.25rem;
    }

    .section-grid .lead {
        font-size: 1.15rem;
    }

    .section-grid .section-image {
        grid-area: image;
        order: -1;
    }

    .section-grid > div:not(.section-image) {
        grid-area: content;
    }
}

@media (min-width: 769px) {
    .section-header {
        text-align: left;
    }
    
    .single-column {
        text-align: left !important;
    }
    
    .section-grid div {
        text-align: left;
    }
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.section-grid.reverse {
    grid-template-columns: 1fr 1fr;
}

/* Consistent vertical spacing for grid content */
.section-grid > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.section-grid h2 {
    margin-top: 0;
}

.section-grid .lead {
    margin-top: 0.5rem;
}

/* Residence Renderings Slider */
.renderings-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.renderings-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: renderingsFade 15s infinite;
}

.renderings-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.renderings-slide:nth-child(1) {
    animation-delay: 0s;
}

.renderings-slide:nth-child(2) {
    animation-delay: 5s;
}

.renderings-slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes renderingsFade {
    0% { opacity: 0; }
    8% { opacity: 1; }
    33% { opacity: 1; }
    41% { opacity: 0; }
    100% { opacity: 0; }
}

.section-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b8a05e 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 500;
    opacity: 0.9;
    position: relative;
    overflow: hidden;
}

.section-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.modal.is-visible {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.12);
    width: min(560px, 100%);
    border-radius: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-header {
    padding: 1.75rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modal-header h3 {
    margin: 0;
    color: var(--white);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    padding: 0;
}

.modal-body {
    padding: 1.5rem 2rem 2rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--white);
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.modal-actions .btn-secondary {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.modal-actions .btn-secondary:hover {
    background: var(--background-cream);
    color: var(--primary-green);
    border-color: var(--background-cream);
}

/* Bullet Lists */
.bullet-list {
    list-style: none;
}

.bullet-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
}

/* Subsections */
.subsection {
    margin-bottom: 3rem;
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-green);
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Single Column Sections */
.single-column {
    max-width: none;
    margin: 0;
}

.single-column .section-header {
    margin-bottom: 4rem;
}

/* Uniform vertical alignment for all sections */
.content-section {
    background: var(--white);
    padding: 8rem 0;
}

.content-section > .container {
    width: 100%;
}
.contact-section {
    background: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 8rem 0;
}

.contact-section h2 {
    color: var(--white);
    margin-bottom: 4rem;
}

.contact-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-btn {
    background: var(--white);
    color: var(--primary-green);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.contact-btn:hover {
    background: var(--accent-gold);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 3.5rem 0;
}

.footer .container {
    max-width: none;
}

.footer p {
    color: var(--white);
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.8;
}

.footer-content {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.footer-brand h3,
.footer-legal h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    margin: 0.35rem 0 0;
}

.footer-legal p {
    margin: 0.35rem 0;
}

.footer-copy {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

@media (min-width: 900px) {
    .footer {
        text-align: left;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.25rem 4rem;
    }

    .footer-brand,
    .footer-legal {
        text-align: left;
    }

    .footer-copy {
        grid-column: 1 / -1;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

/* Mobile Responsiveness for Components */
@media (max-width: 768px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        grid-template-areas:
            "image"
            "content";
    }

    .section-grid.reverse {
        grid-template-columns: 1fr;
    }

    .section-grid .section-image {
        grid-area: image;
        order: -1;
        width: 100%;
        justify-self: stretch;
        align-self: stretch;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .section-grid > div:not(.section-image) {
        grid-area: content;
    }

    .section-image img {
        width: 100%;
        height: 100%;
    }

    .hero-buttons {
        gap: 1rem;
    }

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

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

    .contact-btn {
        padding: 2rem 1.5rem;
    }
}