/* ARTERRA Homes Custom Styles */

/* Color Palette */
:root {
    --primary-dark: #2a2a2a;
    --primary-gold: #a29569;
    --light-gold: #a29569;
    --rich-gold: #a29569;
    --warm-sand: #f2e8d9;
    --sage-green: #8a9b8e;
    --warm-gray: #6b6558;
    --soft-cream: #faf8f5;
    --light-base: #f8f6f3;
    --medium: #e8e4df;
    --deep-earth: #4a453e;
    --secondary: #3a3a3a;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--warm-gray);
    background-color: var(--light-base);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.text-gold {
    color: #a29569;
}

.text-warm-gray {
    color: var(--warm-gray);
}

.text-sage {
    color: var(--sage-green);
}

.bg-cream {
    background-color: var(--soft-cream);
}

.bg-sand {
    background-color: var(--warm-sand);
}

.bg-gold {
    background-color: var(--sage-green);
}

.bg-sage {
    background-color: var(--sage-green);
}

/* Header Styles */
.navbar {
    background-color: var(--primary-dark) !important;
    padding: 2rem 0;
    transition: all 0.3s ease;
    overflow: visible;
    z-index: 1000;
    min-height: 100px;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    position: relative;
    z-index: 1001;
    padding: 0;
}

.navbar-brand img {
    height: 100px;
    position: relative;
    top: -10px;
    transition: transform 0.3s ease;
    margin-bottom: -25px;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: #a29569 !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #b8a879 !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #a29569;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    color: #a29569;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Sections */
.hero {
    height: 70vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.6) 0%, rgba(42, 42, 42, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 900px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Buttons */
.btn-primary {
    background-color: var(--sage-green);
    border-color: var(--sage-green);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-gold {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--primary-dark);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--light-gold);
    border-color: var(--light-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-gold {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    background-color: transparent;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-gold:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--primary-dark);
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.btn-outline-primary {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: white;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.card-img-top {
    transition: transform 0.3s ease;
    height: 250px;
    object-fit: cover;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Project Gallery */
.project-filters {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 0.5rem 1.5rem;
    margin: 0.25rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-gold);
    color: white;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(42, 42, 42, 0.9));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(50%);
    transition: transform 0.3s ease;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 10px;
}

.modal-header {
    background-color: var(--primary-dark);
    color: var(--primary-gold);
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Services Page */
.service-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.service-icon {
    font-size: 3rem;
    color: var(--sage-green);
    margin-bottom: 1rem;
}

/* Team Section */
.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--primary-gold);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Contact page phone links */
a[href^="tel:"] {
    color: #a29569 !important;
    text-decoration: none;
    font-weight: 600;
}

a[href^="tel:"]:hover {
    color: #b8a879 !important;
}

.form-control {
    border: 2px solid var(--medium);
    border-radius: 5px;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 184, 150, 0.25);
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary-dark);
    color: var(--primary-gold);
    padding: 3rem 0;
    text-align: center;
}

.cta-banner h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--primary-gold);
    padding: 3rem 0 1rem;
}

/* Phone number links */
.footer a[href^="tel:"] {
    color: #a29569 !important;
    text-decoration: none;
}

.footer a[href^="tel:"]:hover {
    color: #b8a879 !important;
}

.footer h5 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.footer a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--light-gold);
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--sage-green);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin: 0 0.5rem;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-gold);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--warm-gray);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar-brand img {
        height: 60px;
        top: 0;
    }
    
    .navbar-toggler {
        position: absolute;
        right: 15px;
        top: 15px;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 60vh;
        min-height: 500px;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 90%;
        max-width: 300px;
        margin: 0 auto 1rem auto !important;
        padding: 0.875rem 1.5rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 70vh;
        min-height: 450px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .team-photo {
        width: 150px;
        height: 150px;
    }
}

/* Utility Classes */
.section-padding {
    padding: 4rem 0;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: var(--sage-green);
    color: white;
}

.alert-danger {
    background-color: #dc3545;
    color: white;
}

.alert-info {
    background-color: var(--primary-gold);
    color: white;
}
