/* ══════════════════════════════════════════════════
   WAMCO Adult Family Home — Theme Stylesheet
   Author: Cliff Mnduwira
   ══════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────── */
:root {
    --navy:    #1e3a5f;
    --green:   #2a6b4a;
    --green-d: #1d5037;
    --green-l: #eef5f0;
    --gold:    #c9a96e;
    --gold-d:  #a8854a;
    --cream:   #f8f6f0;
    --dark:    #1a2630;
    --muted:   #5a6a70;
}

/* ── Base ────────────────────────────────────────── */
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: #fff;
    overflow-x: hidden;
    max-width: 100%;
}
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; }
img { max-width: 100%; }

/* ── Utility ─────────────────────────────────────── */
.text-gold    { color: var(--gold) !important; }
.text-green   { color: var(--green) !important; }
.bg-green     { background-color: var(--green) !important; }
.bg-green-l   { background-color: var(--green-l) !important; }
.bg-cream     { background-color: var(--cream) !important; }
.section-py   { padding: 5rem 0; }
.section-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-block;
}
.section-title h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.2; }
.section-title p  { color: var(--muted); max-width: 680px; margin: .75rem auto 0; font-size: 1.05rem; }

/* ── Buttons ─────────────────────────────────────── */
.btn-gold         { background: var(--gold); color: #fff; border-color: var(--gold); font-weight: 600; }
.btn-gold:hover   { background: var(--gold-d); border-color: var(--gold-d); color: #fff; }
.btn-outline-gold { color: var(--gold); border-color: var(--gold); font-weight: 600; }
.btn-outline-gold:hover { background: var(--gold); color: #fff; }
.btn-white        { background: #fff; color: var(--green); font-weight: 600; }
.btn-white:hover  { background: #f0f0f0; color: var(--green); }
.btn-outline-white        { color: #fff; border-color: rgba(255,255,255,.7); font-weight: 600; }
.btn-outline-white:hover  { background: rgba(255,255,255,.15); color: #fff; }

/* ── Navbar ──────────────────────────────────────── */
#mainNav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgb(253 246 236);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 18px rgba(0,0,0,.08);
    padding: .6rem 0;
    transition: padding .25s;
}
#mainNav .navbar-brand img { transition: height .25s; }
.nav-link { font-weight: 500; color: var(--dark); padding: .5rem .8rem; position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: .8rem; right: .8rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .22s;
}
.nav-link:hover { color: var(--green); }
.nav-link:hover::after { transform: scaleX(1); }

/* Custom logo size in navbar */
#mainNav .custom-logo { height: 72px; width: auto; }

/* ── Hero ────────────────────────────────────────── */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d2a1e 0%, var(--green) 55%, #1a3d28 100%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    opacity: .8;
    animation: heroBgZoom 18s ease-in-out infinite alternate;
}
@keyframes heroBgZoom {
    from { transform: scale(1);    background-position: center 30%; }
    to   { transform: scale(1.07); background-position: center 38%; }
}
.hero-main {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-content { width: 100%; }
.hero-text-card {
    background: rgb(8 25 16 / 20%);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 2.5rem 2.75rem;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(201,169,110,.45);
    color: #fff;
    border-radius: 50px;
    padding: .4rem 1.1rem;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); color: #fff; line-height: 1.15; }
.hero .lead { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 560px; }
.hero-stat {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 1rem;
    padding: .9rem 1.1rem;
    text-align: center;
    color: #fff;
}
.hero-stat .lbl { font-size: .75rem; opacity: .8; margin-top: .1rem; }

/* ── Trust Bar ───────────────────────────────────── */
.trust-bar {
    position: relative;
    z-index: 2;
    background: rgb(15 38 60 / 88%);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
}
.trust-item { display: flex; align-items: center; gap: .75rem; color: #fff; }
.trust-item i { font-size: 1.4rem; color: var(--gold); flex-shrink: 0; }
.trust-item .ti-title { font-size: .875rem; font-weight: 600; }
.trust-item .ti-sub   { font-size: .75rem; opacity: .7; }
.trust-sep { width: 1px; height: 40px; background: rgba(255,255,255,.15); }

/* ── Feature Cards ───────────────────────────────── */
.feature-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    height: 100%;
    box-shadow: 0 2px 16px rgba(0,0,0,.05);
    border: 1px solid rgba(0,0,0,.04);
    transition: transform .25s, box-shadow .25s;
}
.feature-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 40px rgba(42,107,74,.13);
}
.fc-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: var(--green-l);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--green);
    margin-bottom: 1.2rem;
}
.feature-card h5 { font-size: 1.05rem; margin-bottom: .5rem; }

/* ── About ───────────────────────────────────────── */
.about-img-wrap { position: relative; }
.about-img-wrap img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px rgba(0,0,0,.14);
}
.about-badge {
    position: absolute;
    bottom: 2rem;
    left: -1.5rem;
    background: #fff;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.14);
    display: flex;
    align-items: center;
    gap: .75rem;
}
.about-badge .big {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--green);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}
.about-badge small { font-size: .76rem; color: var(--muted); }

/* ── Services ────────────────────────────────────── */
.svc-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.04);
    transition: border-color .2s, box-shadow .2s;
}
.svc-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 28px rgba(201,169,110,.14);
}
.svc-icon { font-size: 1.8rem; color: var(--green); margin-bottom: .75rem; }

/* ── Gallery ─────────────────────────────────────── */
.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
    display: block;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.tall  img { height: 380px; }
.gallery-item.short img { height: 180px; }

/* ── Specialties ─────────────────────────────────── */
.spec-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.04);
    transition: background .2s, border-color .2s, transform .2s;
}
.spec-card:hover {
    background: var(--green-l);
    border-color: var(--gold);
    transform: translateY(-4px);
}

/* ── Testimonials ────────────────────────────────── */
.testi-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 22px rgba(0,0,0,.06);
    border-left: 5px solid var(--gold);
    margin: .5rem;
}
.testi-stars { color: #f5a623; font-size: .9rem; margin-bottom: .6rem; }
.testi-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--green-l);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ── Owl Carousel custom dots ────────────────────── */
.owl-theme .owl-dots .owl-dot span {
    background: var(--green-l);
    border: 2px solid var(--green);
    transition: background .2s;
}
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--gold);
    border-color: var(--gold);
}
.owl-theme .owl-nav.disabled + .owl-dots { margin-top: 2rem; }

/* ── Promise ─────────────────────────────────────── */
.promise-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

/* ── CTA Banner ──────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-d) 100%);
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    top: -150px;
    right: -80px;
    pointer-events: none;
}

/* ── Contact ─────────────────────────────────────── */
.map-frame {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    display: block;
}
.contact-info-card { background: var(--cream); border-radius: 1.25rem; padding: 2rem; }
.ci-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(0,0,0,.07);
}
.ci-item:last-child { border-bottom: none; padding-bottom: 0; }
.ci-icon {
    width: 42px;
    height: 42px;
    border-radius: .75rem;
    background: var(--green-l);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: .1rem;
}
.ci-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.ci-value { font-weight: 600; font-size: .95rem; margin-top: .1rem; }
.form-control,
.form-select {
    border-radius: .75rem;
    border: 1.5px solid #dde2e6;
    padding: .75rem 1rem;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 .2rem rgba(42,107,74,.1);
}

/* ── Alert (form feedback) ───────────────────────── */
.alert-success-wamco { background: var(--green-l); color: var(--green-d); border: 1px solid #b8dfc8; }
.alert-error-wamco   { background: #fdf0f0; color: #9b2c2c; border: 1px solid #f5c6c6; }

/* ── List check ──────────────────────────────────── */
.list-check { list-style: none; padding-left: 0; }
.list-check li { padding-left: 1.9rem; position: relative; margin-bottom: .65rem; }
.list-check li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--green);
    position: absolute;
    left: 0;
    top: .05rem;
}

/* ── Footer ──────────────────────────────────────── */
.footer { background: #0c1a22; color: #c0cacd; }
.footer-top { padding: 4rem 0 3rem; }
.footer-bottom { padding: 1.5rem 0; font-size: .83rem; }
.footer h6 {
    color: #fff;
    font-size: .88rem;
    letter-spacing: .5px;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}
.footer a { color: #c0cacd; text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer-links li { margin-bottom: .45rem; font-size: .875rem; }
.soc-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c0cacd;
    font-size: .95rem;
    transition: background .2s, color .2s;
    text-decoration: none;
}
.soc-icon:hover { background: var(--gold); color: #fff; }

/* Custom logo in footer */
.footer .custom-logo { height: 80px; width: auto; margin-bottom: 1rem; }

/* ── Hero rotating phrase ────────────────────────── */
.hero-phrase-wrap { display: inline-block; position: relative; }
#heroPhrase {
    display: inline-block;
    color: var(--gold);
    transition: opacity .35s ease, transform .35s ease;
}
#heroPhrase.phrase-exit {
    opacity: 0;
    transform: translateY(-10px);
}
#heroPhrase.phrase-enter {
    animation: phraseIn .4s ease forwards;
}
@keyframes phraseIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
#heroPhrase::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: .85em;
    background: var(--gold);
    margin-left: 4px;
    vertical-align: middle;
    border-radius: 2px;
    animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── Button loading state ────────────────────────── */
.btn-loading { opacity: .75; pointer-events: none; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 991px) {
    .hero { min-height: auto; }
    .hero-main { padding: 4rem 0 0; }
    .hero-text-card { padding: 1.75rem; }
    .about-img-wrap img { height: 350px; }
    .about-badge { left: 0; }
}

@media (max-width: 767px) {
    .section-py  { padding: 3.5rem 0; }
    .trust-sep   { display: none; }
    .container   { padding-left: 1rem; padding-right: 1rem; }
    .row         { margin-left: 0; margin-right: 0; }
    .gallery-item.tall img  { height: 260px; }
    .gallery-item.short img { height: 160px; }
}
