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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

.hero-section {
    background: linear-gradient(rgba(60, 33, 1, 0.0), rgba(82, 45, 0, 0.0)), url('images/house-Mama-Mary.webp') center/cover;
    color: white;
    padding: 120px 20px;
    height: 500px;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section .subtitle {
    font-size: 1.3em;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-section {
    padding: 20px 20px;
    background: white;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

.intro-content p {
    margin-bottom: 20px;
}

.stats-section {
    background: #FF8C00;
    padding: 60px 20px;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item h3 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.1em;
    opacity: 0.95;
}

.homes-section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 50px;
}

.homes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(550px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.home-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.images-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 250px;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipient-image {
    border-right: 2px solid white;
}

.house-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 140, 0, 0.95);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.house-image:hover .house-overlay {
    transform: translateY(0);
}

.overlay-date {
    font-weight: 600;
    margin-bottom: 5px;
}

.overlay-note {
    font-size: 0.9em;
}

.card-content {
    padding: 25px;
}

.card-header {
    margin-bottom: 15px;
}

.recipient-name {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.location {
    color: #666;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 5px;
}

/*.location::before {
    content: "📍";
}*/

.story {
    color: #555;
    line-height: 1.6;
    margin: 15px 0;
    font-size: 0.95em;
}

.status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 10px;
}

.status.planned {
    background: #e3f2fd;
    color: #1976d2;
}

.status.in-progress {
    background: #fff3e0;
    color: #f57c00;
}

.status.completed {
    background: #e8f5e9;
    color: #388e3c;
}

.closing-section {
    background: #f5f5f5;
    padding: 60px 20px;
    text-align: center;
}

.closing-content {
    max-width: 800px;
    margin: 0 auto;
}

.closing-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.closing-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 40px;
    background: #FF8C00;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

.house-image {
    cursor: pointer;
    position: relative;
}

.click-tooltip {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.house-image:hover .click-tooltip {
    opacity: 1;
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    padding: 20px;
    padding-top: 60px;
    overflow-y: auto;
}

.gallery-modal.active {
    display: block;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-title {
    font-size: 1.8em;
    font-weight: 600;
}

.close-gallery {
    font-size: 2.5em;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s ease;
}

.close-gallery:hover {
    transform: scale(1.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    /*position: relative;*/
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-info {
    /*position: absolute;*/
    bottom: 0;
    /*left: 0;
    right: 0;*/
    background: rgba(255, 140, 0, 0.95);
    color: white;
    padding: 15px;
    /*transform: translateY(100%);
    /*transition: transform 0.3s ease;*/
}

/*.gallery-item:hover .gallery-info {
    transform: translateY(0);
}*/

.gallery-date {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.gallery-description {
    font-size: 0.9em;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2em;
    }

    .homes-grid {
        grid-template-columns: 1fr;
    }

    .stat-item h3 {
        font-size: 2em;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-title {
        font-size: 1.3em;
    }
}