/* ============================================
   MODERN SPLIT-LAYOUT HERO
   ============================================ */

:root {
    --hero-green: #2d5a27;
    --hero-gold: #c5a059;
    --hero-dark: #1a1a1a;
    --hero-light: #f8f9fa;
}

@media (min-width: 1200px) {
  .custom-hero-padding {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}

/* ── Section ─────────────────────────────── */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--hero-light);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* ── Location Tag ────────────────────────── */
.hero-location-tag {
    color: var(--hero-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* ── Feature Badge ───────────────────────── */
.hero-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    color: var(--hero-green);
}

.hero-feature-badge i {
    color: var(--hero-green);
}

/* ── Title ───────────────────────────────── */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--hero-green);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* ── Subtitle ────────────────────────────── */
.hero-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    color: #555;
    max-width: 540px;
    margin-bottom: 2.5rem;
    border-left: 3px solid var(--hero-gold);
    padding-left: 1.5rem;
    line-height: 1.7;
    text-transform: none;
    letter-spacing: 0;
}

/* ── CTA Buttons ─────────────────────────── */
.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn-primary {
    background-color: var(--hero-green);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

.hero-btn-primary:hover {
    background-color: #1e3d1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.2);
    color: #fff;
    text-decoration: none;
}

.hero-btn-outline {
    border: 2px solid var(--hero-green);
    color: var(--hero-green);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    background: transparent;
}

.hero-btn-outline:hover {
    background-color: var(--hero-green);
    color: #fff;
    text-decoration: none;
}

/* ── Mini Stats Row ──────────────────────── */
.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    opacity: 0.8;
}

.hero-stats-row .stat-item h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--hero-dark);
}

.hero-stats-row .stat-item small {
    color: #888;
    font-size: 0.8rem;
}

.hero-stats-divider {
    width: 1px;
    height: 35px;
    background: #ccc;
}

/* ── Image Container ─────────────────────── */
.hero-image-container {
    position: relative;
    z-index: 1;
    padding-left: 2rem;
}

.hero-main-img {
    width: 100%;
    height: 600px;
    max-height: calc(100vh - 120px);
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

/* ── Flip Card ───────────────────────────── */
.hero-flip-card {
    position: absolute;
    bottom: -25px;
    left: 0;
    max-width: 300px;
    z-index: 2;
}

.flip-card-inner {
    position: relative;
}

/* Each face: same shape as original card */
.flip-card-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: rotateY(90deg);
    animation: flipFace 20s ease-in-out infinite;
}

/* Make the first face visible and set size */
.face-1 {
    position: relative;
    animation-delay: 0s;
}

.face-2 {
    animation-delay: 4s;
}

.face-3 {
    animation-delay: 8s;
}

.face-4 {
    animation-delay: 12s;
}

.face-5 {
    animation-delay: 16s;
}

@keyframes flipFace {
    0%        { opacity: 0; transform: rotateY(90deg); }
    3%        { opacity: 1; transform: rotateY(0deg); }
    17%       { opacity: 1; transform: rotateY(0deg); }
    20%       { opacity: 0; transform: rotateY(-90deg); }
    100%      { opacity: 0; transform: rotateY(-90deg); }
}

/* Card inner elements */
.flip-card-face .card-icon {
    width: 45px;
    height: 45px;
    background: var(--hero-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.flip-card-face h6 {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
}

.flip-card-face small {
    color: #888;
}

.flip-card-face p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.flip-card-face hr {
    margin: 10px 0;
    border-color: #eee;
}

/* ── Decorative accent ───────────────────── */
.hero-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 90, 39, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        text-align: center;
        padding: 3rem 0;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
        border-left: none;
        border-top: 3px solid var(--hero-gold);
        padding-left: 0;
        padding-top: 1rem;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-stats-row {
        justify-content: center;
    }

    /* Hide image & floating card on smaller screens */
    .hero-image-container {
        display: none;
    }

    .hero-feature-badge {
        margin: 0 auto 1.5rem;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 15px;
    }

    .hero-main-img {
        max-height: calc(100vh - 350px);
        border-radius: 15px;
    }

    .hero-btn-primary,
    .hero-btn-outline {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .hero-stats-row {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .hero-stats-row .stat-item h4 {
        font-size: 1.1rem;
    }

    .hero-floating-card {
        padding: 1.2rem;
    }
}

/* ============================================
   NAVBAR & SIDEBAR OVERRIDES (Light Hero BG)
   ============================================ */

/* Navbar: fixed at top, hidden by default, slides in on scroll */
.top-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 60;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

/* Slide in when scrolled */
.top-nav.nav-scrolled {
    transform: translateY(0);
}

/* On mobile: always show navbar so hamburger is accessible */
@media (max-width: 991.98px) {
    .top-nav .row {
        display: flex;
        align-items: center;
    }

    .navbar-toggler {
        border-color: #ccc !important;
    }

    .navbar-toggler .fa-bars {
        color: #333 !important;
    }
}

/* Nav link colors (always dark since hero bg is light) */
.navbar-light .navbar-nav .nav-link {
    color: #333 !important;
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show > .nav-link {
    color: #2d5a27 !important;
    border-bottom-color: #98ad1c;
}

.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
    color: #2d5a27 !important;
}

/* Phone number & "Make a Call" text — hidden on mobile only */
.top-text-style {
    color: #333 !important;
}

@media (max-width: 991.98px) {
    .top-text-style {
        display: none !important;
    }
}

.top-text-style a {
    color: #2d5a27 !important;
}

.top-text-style span {
    color: #666 !important;
}

/* Dropdown menu */
.dropdown-menu {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.dropdown-item {
    color: #333;
}

.dropdown-item:hover {
    background-color: #f0f4e1;
    color: #2d5a27;
}

/* Social sidebar: dark icons for light hero */
.socul-section .line {
    background-color: #333;
}

.socul-icon ul li a {
    color: #555 !important;
}

.socul-icon ul li a:hover {
    color: #2d5a27 !important;
}
