/* ================= BASE STYLES ================= */

/* Color Variables — Kaaya Glow Deep Forest theme (dark green / sage / mint) */
:root {
    --bg: #DAF1DE;
    --primary: #235347;
    --gold: #8EB69B;
    --white: #FFFFFF;
    --dark: #0B2B26;

    --heading-font: 'Cormorant Garamond', serif;
    --body-font: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg);
    color: var(--dark);
    line-height: 1.6;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Paragraphs */
p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--dark);
}

/* Links */
a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--gold);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(199, 166, 106, 0.45);
}

.btn-secondary {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(89, 104, 74, 0.35);
}

/* Luxury button - soft gold, rounded, smooth hover elevation + glow
   (used for feature "final call to action" style buttons) */
.btn-luxury {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), #C9E4D2);
    color: var(--dark);
    font-weight: 600;
    padding: 1rem 2.8rem;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(142, 182, 155, 0.3);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.btn-luxury:hover {
    color: var(--dark);
    transform: translateY(-4px);
    background: linear-gradient(135deg, #C9E4D2, var(--gold));
    box-shadow: 0 18px 35px rgba(142, 182, 155, 0.55);
}

/* Sections */
.section-padding {
    padding: 80px 20px;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 10px auto 0;
}

/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Flex Utility */
.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Cards */
.service-card, .membership-card, .package-card, .reward-card, .choose-card, .team-card, .award-card, .review-card, .branch-card {
    background: var(--white);
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover, .membership-card:hover, .package-card:hover, .reward-card:hover, .choose-card:hover, .team-card:hover, .award-card:hover, .review-card:hover, .branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #C9E4D2;
    border-radius: 8px;
    font-family: var(--body-font);
    transition: border 0.3s ease;
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--gold);
    outline: none;
}

/* ================= SCROLL REVEAL ANIMATIONS ================= */
[data-animate] {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.16,.84,.44,1);
    will-change: opacity, transform;
}
[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-down"]  { transform: translateY(-40px); }
[data-animate="fade-left"]  { transform: translateX(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="zoom-in"]    { transform: scale(0.92); }
[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/hero/default.jpg') center/cover no-repeat;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}
@media (max-width: 768px) {
    /* background-attachment: fixed is unreliable/janky on mobile browsers */
    .hero-banner { background-attachment: scroll; }
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(46,46,46,0.4);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}
.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Scroll Indicator */
.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    margin: 20px auto 0;
    position: relative;
}
.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDown 1.5s infinite;
}
@keyframes scrollDown {
    0% { top: 10px; opacity: 1; }
    50% { top: 25px; opacity: 0.5; }
    100% { top: 40px; opacity: 0; }
}

/* "Your Beauty, Our Commitment" section (about.php) */
.our-commitment {
    text-align: center;
}
.commitment-inner {
    max-width: 780px;
}
.commitment-inner h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}
.commitment-inner p {
    font-size: 1.05rem;
    color: #8EB69B;
}

/* Final call-to-action section (about.php) - cream white background */
.final-cta {
    background: var(--white);
    text-align: center;
}
.cta-inner {
    max-width: 650px;
}
.cta-inner h2 {
    font-size: 2.4rem;
    margin-bottom: 18px;
}
.cta-inner p {
    color: #8EB69B;
    margin-bottom: 30px;
}

/* Map placeholder fallback (contact.php) - added because the referenced
   map-placeholder.jpg image was never shipped with the project */
.map-placeholder-fallback {
    background: var(--white);
    border: 1px dashed var(--gold);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    color: var(--primary);
}
.map-placeholder-fallback p:first-child {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    margin-bottom: 8px;
}
