/********** Template CSS **********/
:root {
    --primary: #314E47;
    --secondary: #907751;
    --light: #F8F2F0;
    --dark: #1a1a1a;
    --body-font: 'Cormorant Garamond', Georgia, serif;
    --heading-font: 'Playfair Display', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    font-size: 18px;
    line-height: 1.7;
    color: #444;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

.fw-medium {
    font-weight: 500 !important;
}

/*** Colors ***/
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

/*** Buttons ***/
.btn {
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    padding: 12px 28px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary);
}

.btn-light {
    background: #fff;
    color: var(--primary);
    border: none;
}

.btn-light:hover {
    background: var(--light);
    color: var(--primary);
}

/*** Top Bar ***/
.top-bar {
    background: var(--primary);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar a,
.top-bar span {
    color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
    color: #fff;
}

.top-bar .social-links a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: 8px;
    transition: all 0.3s ease;
}

.top-bar .social-links a:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

/*** Navbar ***/
.navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0;
}

.navbar .brand-text {
    font-family: var(--heading-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
}

.navbar .logo-img {
    height: 10vh;
    margin: 10px;
}

.navbar-nav .nav-link {
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    padding: 25px 20px !important;
    position: relative;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 40px);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-toggler {
    border: 2px solid var(--primary);
    padding: 8px 12px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23314E47' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 12px 0 !important;
    }
    .navbar-nav .nav-link::after {
        display: none;
    }
    .navbar-collapse {
        border-top: 1px solid #eee;
        padding: 15px 0;
    }
}

/*** Hero Section ***/
.hero-section {
    position: relative;
}

.hero-carousel .hero-slide {
    height: 85vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(49, 78, 71, 0.15) 0%, rgba(49, 78, 71, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 0;
}

.hero-subtitle {
    display: inline-block;
    color: var(--secondary);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-left: 60px;
    position: relative;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 45px;
    height: 2px;
    background: var(--secondary);
}

.hero-title {
    font-size: 60px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons .btn {
    padding: 15px 35px;
}

/* Hero Carousel Navigation */
.hero-carousel .owl-nav {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    gap: 10px;
}

.hero-carousel .owl-prev,
.hero-carousel .owl-next {
    width: 55px;
    height: 55px;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hero-carousel .owl-prev:hover,
.hero-carousel .owl-next:hover {
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

.hero-carousel .owl-dots {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-carousel .owl-dot {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    transition: all 0.3s ease;
}

.hero-carousel .owl-dot.active {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* Slide Counter */
.slide-counter {
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 10;
    color: #fff;
    font-family: var(--heading-font);
    font-size: 18px;
}

.slide-counter .current {
    font-size: 36px;
    font-weight: 700;
}

.slide-counter .separator {
    margin: 0 8px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .hero-slide {
        height: 100vh;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-desc {
        font-size: 16px;
    }
    .hero-carousel .owl-nav {
        bottom: 30px;
        right: 20px;
    }
    .slide-counter {
        display: none;
    }
}

/*** Section Headers ***/
.section-header {
    margin-bottom: 50px;
}

.section-subtitle {
    display: inline-block;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }
}

/*** Feature Boxes ***/
.feature-box {
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    background: var(--primary);
    color: #fff;
}

.feature-box h4 {
    font-size: 22px;
}

/*** Property Cards ***/
.property-card {
    background: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.property-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.property-image {
    position: relative;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.property-badge.sale {
    background: var(--primary);
    color: #fff;
}

.property-badge.rent {
    background: var(--secondary);
    color: #fff;
}

.property-content {
    padding: 25px;
}

.property-content h5 {
    font-size: 20px;
    margin-bottom: 10px;
}

.property-location {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

.property-location i {
    color: var(--secondary);
    margin-right: 5px;
}

.property-features {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.property-features span {
    font-size: 14px;
    color: #666;
}

.property-features i {
    color: var(--primary);
    margin-right: 5px;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-price {
    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.property-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
}

.property-link:hover {
    color: var(--primary);
}

/*** CTA Section ***/
.cta-section {
    background: var(--primary);
}

.cta-title {
    color: #fff;
    font-size: 36px;
    margin-bottom: 10px;
}

.cta-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
}

/*** Contact Section ***/
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h6 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-item p {
    margin: 0;
    color: #666;
}

.contact-form-box {
    background: var(--light);
}

.contact-form-box .form-control,
.contact-form-box .form-select {
    border: none;
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    padding: 15px 0;
    background: transparent;
    font-family: var(--body-font);
    font-size: 16px;
}

.contact-form-box .form-control:focus,
.contact-form-box .form-select:focus {
    box-shadow: none;
    border-color: var(--primary);
}

/*** Footer ***/
.footer-section {
    background: #314e47;
    color: rgba(255, 255, 255, 0.7);
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-brand .brand-text {
    font-family: var(--heading-font);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.footer-brand .footer-logo {
    height: 15vh;
    width: auto;
}

.footer-brand .tagline {
    color: var(--secondary);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-desc {
    margin-top: 5px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.footer-title {
    font-family: var(--heading-font);
    font-size: 20px;
    color: #fff;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 10px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact i {
    color: var(--secondary);
    font-size: 16px;
    margin-top: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    font-size: 14px;
}

.footer-bottom a {
    color: var(--secondary);
}

.footer-bottom a:hover {
    color: #fff;
}

/*** Back to Top ***/
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    display: inline-table;
}

.back-to-top:hover {
    background: var(--secondary);
    color: #fff;
}

/*** Page Header ***/
.page-header {
    background: linear-gradient(rgba(49, 78, 71, 0.85), rgba(49, 78, 71, 0.85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
    padding: 10px 0;
}

.page-header h1 {
    font-size: 48px;
    color: #fff;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item.active {
    color: var(--secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/*** Service Items ***/
.service-item {
    background: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.service-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.service-item i {
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-item:hover i {
    color: var(--secondary);
}

/*** Team Items ***/
.team-item {
    background: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/*** Forms ***/
.form-control,
.form-select {
    border-radius: 0;
    padding: 15px;
    font-family: var(--body-font);
    font-size: 16px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(49, 78, 71, 0.1);
}

/*** Animations ***/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*** Responsive ***/
@media (max-width: 991.98px) {
    .footer-top {
        padding: 60px 0 40px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }
    .page-header h1 {
        font-size: 32px;
    }
    .cta-title {
        font-size: 28px;
    }
}
