/* =========================================================
   OLD AGE HOME WEBSITE
   STYLE SHEET
========================================================= */


/* =========================================================
   1. RESET & GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   2. COLORS
========================================================= */

:root {
    --primary: #8b5e3c;
    --primary-dark: #684329;
    --secondary: #d89b5b;
    --cream: #faf6ef;
    --light: #f5efe6;
    --dark: #2f2925;
    --text: #555;
    --white: #ffffff;
    --border: #e6ddd2;
    --green: #25d366;
}


/* =========================================================
   3. NAVIGATION
========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(10px);
}

.nav-container {
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 21px;
    font-weight: 700;

    color: var(--primary-dark);
}

.logo-icon {
    font-size: 25px;
    color: #c96c5b;
}

.navbar nav {
    display: flex;
    gap: 25px;
}

.navbar nav a {
    font-size: 14px;
    font-weight: 600;

    color: #555;

    transition: 0.3s;
}

.navbar nav a:hover {
    color: var(--primary);
}


/* =========================================================
   4. HERO
========================================================= */

.hero {
    position: relative;

    min-height: 680px;

    display: flex;
    align-items: center;

    background-image: url("images/home/home1.jpeg");

    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(35, 25, 20, 0.78),
            rgba(35, 25, 20, 0.35),
            rgba(35, 25, 20, 0.15)
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: 90%;
    max-width: 1200px;

    margin: 0 auto;

    color: white;
}

.hero-small-title {
    margin-bottom: 15px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 3px;

    color: #f3c48e;
}

.hero h1 {
    max-width: 700px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(42px, 6vw, 72px);

    line-height: 1.08;

    margin-bottom: 25px;
}

.hero h1 span {
    display: block;
    color: #f2c38e;
}

.hero-description {
    max-width: 560px;

    margin-bottom: 35px;

    font-size: 18px;

    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


/* =========================================================
   5. BUTTONS
========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 24px;

    border-radius: 5px;

    font-size: 14px;
    font-weight: 700;

    transition: all 0.3s ease;

    cursor: pointer;
}

.btn-primary {
    background: var(--primary);

    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);

    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.7);

    color: white;

    background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-dark);
}

.btn-whatsapp {
    background: var(--green);
    color: white;
}

.btn-whatsapp:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}


/* =========================================================
   6. INTRO
========================================================= */

.intro {
    padding: 90px 0;

    background: var(--cream);
}

.intro-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}

.intro h2,
.section-heading h2,
.about-content h2,
.donate-text h2,
.contact-content h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.2;

    color: var(--dark);
}

.intro h2 span,
.section-heading h2 span,
.about-content h2 span,
.donate-text h2 span,
.contact-content h2 span {
    color: var(--primary);
}

.intro-content > div:last-child p {
    margin-bottom: 20px;

    color: var(--text);

    font-size: 17px;
}

.section-label {
    margin-bottom: 12px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 3px;
}

.text-link {
    color: var(--primary);

    font-weight: 700;

    transition: 0.3s;
}

.text-link:hover {
    color: var(--primary-dark);
}


/* =========================================================
   7. GENERAL SECTIONS
========================================================= */

.section {
    padding: 100px 0;
}

.section-heading {
    max-width: 700px;

    margin: 0 auto 50px;

    text-align: center;
}

.section-heading > p:last-child {
    margin-top: 15px;

    color: var(--text);

    font-size: 16px;
}


/* =========================================================
   8. ABOUT
========================================================= */

.about {
    background: white;
}

.two-column {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}

.about-image {
    overflow: hidden;

    border-radius: 10px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.about-image img {
    width: 100%;
    height: 500px;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-content p {
    margin-bottom: 18px;

    color: var(--text);
}

.founder-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 24px;
    padding: 16px 18px;
    border-left: 3px solid var(--accent, #c8955d);
    background: rgba(201, 149, 93, 0.09);
    border-radius: 0 8px 8px 0;
}

.founder-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--muted, #8b7765);
}

.founder-details strong {
    color: var(--heading, #332820);
    font-size: 1.05rem;
}

.footer-founder {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item a,
.donation-details a {
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover,
.donation-details a:hover {
    text-decoration: underline;
}


/* =========================================================
   9. IMAGE CAROUSEL
========================================================= */

.gallery-section {
    background: var(--cream);
}

.carousel,
.resident-carousel {
    position: relative;

    max-width: 1000px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image-container,
.resident-image-container {
    width: 100%;

    height: 550px;

    overflow: hidden;

    border-radius: 10px;

    background: #ddd;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.carousel-image-container img,
.resident-image-container img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: opacity 0.3s ease;
}

.carousel-btn {
    position: absolute;

    z-index: 5;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.92);

    color: var(--primary-dark);

    font-size: 25px;

    cursor: pointer;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);

    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary);

    color: white;

    transform: scale(1.05);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    display: flex;

    justify-content: center;

    gap: 8px;

    margin-top: 22px;
}

.carousel-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #d0c5b8;

    cursor: pointer;

    transition: 0.3s;
}

.carousel-dot.active {
    width: 25px;

    border-radius: 10px;

    background: var(--primary);
}


/* =========================================================
   10. RESIDENTS
========================================================= */

.residents-section {
    background: white;
}

.resident-image-container {
    max-width: 850px;
    height: 600px;

    margin: auto;
}


/* =========================================================
   11. DONATION SECTION
========================================================= */

.donate-section {
    padding: 100px 0;

    background:
        linear-gradient(
            135deg,
            #f2e5d3,
            #fbf7f1
        );
}

.donate-content {
    display: grid;

    grid-template-columns: 1fr 450px;

    gap: 80px;

    align-items: center;
}

.donate-text > p:not(.section-label) {
    max-width: 600px;

    margin-top: 20px;

    color: var(--text);

    font-size: 17px;
}

.donation-card {
    padding: 35px;

    border-radius: 12px;

    background: white;

    box-shadow: 0 20px 50px rgba(80, 55, 30, 0.12);
}

.donation-card h3 {
    margin-bottom: 12px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 26px;

    color: var(--dark);
}

.donation-card > p {
    margin-bottom: 25px;

    color: var(--text);
}

.donation-options {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    margin-bottom: 25px;
}

.donation-option {
    padding: 15px 8px;

    text-align: center;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: var(--cream);
}

.donation-option span {
    display: block;

    margin-bottom: 5px;

    font-size: 25px;
}

.donation-option strong {
    font-size: 12px;

    color: var(--primary-dark);
}

.donation-details {
    padding: 20px;

    margin-bottom: 20px;

    border-radius: 8px;

    background: var(--light);
}

.donation-details p {
    margin-bottom: 10px;

    color: var(--text);
}

.donation-details p:last-child {
    margin-bottom: 0;
}

.donation-buttons {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}


/* =========================================================
   12. SUPPORT CARDS
========================================================= */

.support-section {
    background: var(--cream);
}

.support-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.support-card {
    padding: 40px 30px;

    text-align: center;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: white;

    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.support-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--light);

    font-size: 30px;
}

.support-card h3 {
    margin-bottom: 10px;

    color: var(--dark);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 23px;
}

.support-card p {
    color: var(--text);
}


/* =========================================================
   13. CONTACT
========================================================= */

.contact-section {
    padding: 100px 0;

    background: var(--dark);

    color: white;
}

.contact-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: center;
}

.contact-content h2 {
    color: white;
}

.contact-content > div:first-child > p:last-child {
    max-width: 550px;

    margin-top: 20px;

    color: rgba(255, 255, 255, 0.75);
}

.contact-details {
    display: flex;

    flex-direction: column;

    gap: 25px;
}

.contact-item {
    display: flex;

    gap: 20px;

    align-items: flex-start;
}

.contact-item > span {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.1);

    font-size: 20px;
}

.contact-item strong {
    display: block;

    margin-bottom: 4px;

    color: #f2c38e;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.75);
}


/* =========================================================
   14. FOOTER
========================================================= */

footer {
    padding: 35px 0;

    background: #211d1a;

    color: white;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 10px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 22px;
    font-weight: 700;
}

.footer-logo span {
    color: #d88978;
}

.footer-content > p {
    color: rgba(255, 255, 255, 0.6);

    font-size: 14px;
}

.footer-content .copyright {
    margin-top: 15px;

    font-size: 12px;

    color: rgba(255, 255, 255, 0.4);
}


/* =========================================================
   15. TABLET
========================================================= */

@media (max-width: 900px) {

    .navbar nav {
        gap: 15px;
    }

    .navbar nav a {
        font-size: 12px;
    }

    .intro-content,
    .two-column,
    .donate-content,
    .contact-content {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .support-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        min-height: 600px;
    }

    .carousel-image-container {
        height: 500px;
    }

}


/* =========================================================
   16. MOBILE
========================================================= */

@media (max-width: 650px) {

    .container {
        width: 92%;
    }


    /* Navigation */

    .nav-container {
        min-height: 65px;
    }

    .logo {
        font-size: 17px;
    }

    .logo-icon {
        font-size: 20px;
    }

    .navbar nav {
        display: none;
    }


    /* Hero */

    .hero {
        min-height: 650px;

        background-position: center;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }


    /* Sections */

    .section,
    .intro,
    .donate-section,
    .contact-section {
        padding: 70px 0;
    }

    .intro-content {
        gap: 30px;
    }

    .section-heading {
        margin-bottom: 35px;
    }


    /* About */

    .about-image img {
        height: 350px;
    }


    /* Carousel */

    .carousel-image-container,
    .resident-image-container {
        height: 400px;

        border-radius: 7px;
    }

    .carousel-btn {
        width: 42px;
        height: 42px;

        font-size: 20px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }


    /* Donation */

    .donation-card {
        padding: 25px;
    }

    .donation-options {
        gap: 6px;
    }

    .donation-option {
        padding: 12px 5px;
    }

    .donation-buttons {
        grid-template-columns: 1fr;
    }


    /* Support */

    .support-grid {
        grid-template-columns: 1fr;
    }


    /* Contact */

    .contact-content {
        gap: 45px;
    }

}


/* =========================================================
   17. VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .hero h1 {
        font-size: 37px;
    }

    .carousel-image-container,
    .resident-image-container {
        height: 330px;
    }

}
/* =========================================================
   INTRO IMAGE
========================================================= */

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.intro-image {
    overflow: hidden;
    border-radius: 12px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.intro-image img {
    width: 100%;
    height: 430px;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.intro-image:hover img {
    transform: scale(1.03);
}

.intro-text {
    max-width: 550px;
}

.intro-text p:not(.section-label) {
    margin-top: 20px;

    color: var(--text);
    font-size: 17px;
}


/* Mobile */

@media (max-width: 650px) {

    .intro-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .intro-image img {
        height: 320px;
    }

}

/* =========================================================
   18. FINANCIAL TRANSPARENCY & MONTHLY EXPENSES
========================================================= */

.transparency-section {
    background: #fff;
}

.expense-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 35px;
}

.expense-summary-card {
    min-height: 145px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--cream);
}

.expense-summary-featured {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.expense-summary-label {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.expense-summary-featured .expense-summary-label,
.expense-summary-featured .expense-summary-caption {
    color: rgba(255, 255, 255, 0.78);
}

.expense-summary-card strong {
    color: var(--primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2.5vw, 31px);
    line-height: 1.2;
}

.expense-summary-featured strong {
    color: #fff;
}

.expense-summary-caption {
    color: #777;
    font-size: 11px;
    line-height: 1.45;
}

.expense-table-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    box-shadow: 0 12px 35px rgba(80, 55, 30, 0.07);
}

.expense-table-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.expense-table-heading .section-label {
    margin-bottom: 5px;
}

.expense-table-heading h3,
.meal-sponsorship-intro h3 {
    color: var(--dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
}

.expense-period {
    padding: 7px 12px;
    border-radius: 20px;
    background: var(--light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.expense-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.expense-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.expense-table th,
.expense-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #eee8e0;
}

.expense-table thead th {
    background: var(--cream);
    color: var(--primary-dark);
    font-size: 13px;
}

.expense-table tbody td {
    color: var(--text);
    font-size: 14px;
}

.expense-table th:last-child,
.expense-table td:last-child {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.expense-table tbody tr:hover {
    background: #fdfbf8;
}

.expense-table tfoot th {
    padding-top: 17px;
    padding-bottom: 17px;
    border-bottom: 0;
    background: var(--light);
    color: var(--primary-dark);
    font-size: 15px;
}

.meal-sponsorship-card {
    margin-top: 28px;
    padding: 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f2e5d3, #fbf7f1);
}

.meal-sponsorship-intro {
    max-width: 700px;
    margin-bottom: 22px;
}

.meal-sponsorship-intro .section-label {
    margin-bottom: 6px;
}

.meal-sponsorship-intro p:last-child {
    margin-top: 8px;
    color: var(--text);
}

.meal-sponsorship-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.meal-sponsorship-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(139, 94, 60, 0.18);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.85);
}

.meal-sponsorship-option > span {
    font-size: 28px;
}

.meal-sponsorship-option div {
    display: flex;
    flex-direction: column;
}

.meal-sponsorship-option strong {
    color: var(--dark);
    font-size: 13px;
}

.meal-sponsorship-option b {
    color: var(--primary-dark);
    font-size: 21px;
}

.meal-sponsorship-option small {
    color: var(--text);
    font-size: 11px;
}

.meal-sponsorship-note,
.transparency-note {
    color: #6d6259;
    font-size: 12px;
    line-height: 1.6;
}

.meal-sponsorship-note {
    margin: 16px 0 20px;
}

.transparency-note {
    margin-top: 18px;
    text-align: center;
}

@media (max-width: 900px) {
    .expense-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .expense-summary {
        gap: 10px;
    }

    .expense-summary-card {
        min-height: 125px;
        padding: 17px 14px;
    }

    .expense-summary-label {
        font-size: 12px;
    }

    .expense-summary-caption {
        font-size: 10px;
    }

    .expense-table-card,
    .meal-sponsorship-card {
        padding: 20px 16px;
    }

    .expense-table-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .expense-table th,
    .expense-table td {
        padding: 11px 9px;
        font-size: 12px;
    }

    .meal-sponsorship-options {
        grid-template-columns: 1fr;
    }

    .meal-sponsorship-option {
        padding: 14px;
    }
}


/* =========================================================
   RESIDENT CAPACITY & ADMISSIONS (V3)
========================================================= */
.capacity-section {
    padding: 76px 0;
    text-align: center;
    background: #fbf8f3;
}
.capacity-section .section-heading {
    max-width: 720px;
    margin: 0 auto 30px;
}
.capacity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 24px;
}
.capacity-card {
    padding: 26px 18px;
    background: #fff;
    border: 1px solid #eee5da;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(60, 42, 25, 0.06);
}
.capacity-card strong {
    display: block;
    color: var(--primary-dark, #8b5e3c);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
}
.capacity-card span {
    display: block;
    margin-top: 9px;
    color: var(--text, #6d6259);
    font-size: 14px;
}
.admissions-status {
    margin: 0 auto 20px;
    max-width: 700px;
    color: var(--text, #6d6259);
}
@media (max-width: 650px) {
    .capacity-section { padding: 52px 0; }
    .capacity-grid { grid-template-columns: 1fr; gap: 12px; }
    .capacity-card { padding: 20px 16px; }
}
