/* ========================================
   Enhanced 1313 Realty Website Styles
   Modern, Responsive, Lead-Generation Focused
======================================== */

/* === CSS Variables === */
:root {
    --primary-color: #FFD700;
    --secondary-color: #000000;
    --accent-color: #333333;
    --text-color: #000;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; color: var(--secondary-color); }
h3 { font-size: 1.5rem; }

/* === Top Contact Bar === */
.top-bar {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.phone-link, .email-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.phone-link:hover, .email-link:hover {
    color: var(--primary-color);
}

/* === Header & Navigation === */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-hover);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* === Hero Section === */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

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

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn-yellow, .btn-primary, .btn-outline, .btn-view {
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-block;
}

.btn-yellow {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-yellow:hover {
    background: #FFC700;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary-color);
}

.btn-view {
    background: var(--primary-color);
    color: var(--secondary-color);
    width: 100%;
    margin-top: 15px;
}

.btn-view:hover {
    background: #FFC700;
}

.btn-view.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* === Valuation CTA Section === */
.valuation-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FFC700 100%);
    padding: 60px 20px;
}

.valuation-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.valuation-text h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.valuation-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.quick-valuation-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-valuation-form input {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.quick-valuation-form button {
    padding: 15px 40px;
}

/* === About Section === */
#about {
    background: var(--light-bg);
}

.about-content {
    max-width: 800px;
    margin: 30px auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.features-list li {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.features-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* === Services Section === */
.services-section {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    color: var(--accent-color);
    line-height: 1.6;
}

/* === Properties Section === */
#properties {
    background: var(--light-bg);
}

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

.property-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.property-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.property-badge.sold {
    background: #e74c3c;
    color: var(--white);
}

.property-info {
    padding: 20px;
}

.property-info h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.property-address {
    color: var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-stats {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.property-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-color);
}

/* === Mortgage Calculator === */
.calculator-section {
    background: var(--white);
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto;
    background: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.calculator-form .input-group {
    margin-bottom: 30px;
}

.calculator-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.calculator-form input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    margin-bottom: 10px;
}

.calculator-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.calculator-form input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.calculator-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: var(--white);
}

.value-display {
    display: inline-block;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.calculator-result {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.calculator-result h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.payment-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.payment-breakdown {
    text-align: left;
    margin: 25px 0;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.payment-breakdown p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.payment-breakdown span {
    font-weight: 600;
    color: var(--secondary-color);
}

/* === Testimonials === */
#testimonials {
    background: var(--light-bg);
}

.testimonial-slider {
    max-width: 800px;
    margin: 40px auto;
    position: relative;
    padding: 0 60px;
}

.testimonial {
    display: none;
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial cite {
    font-weight: 600;
    color: var(--secondary-color);
    font-style: normal;
}

.testimonial-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

#prevTestimonial {
    left: 0;
}

#nextTestimonial {
    right: 0;
}

/* === Contact Section === */
.contact-section {
    background: var(--white);
}

.contact-form {
    max-width: 700px;
    margin: 40px auto;
    background: var(--light-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* === Footer === */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-section p, .footer-section ul {
    color: #ccc;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}

/* ========================================
   RESPONSIVE DESIGN - Mobile First
======================================== */

@media (max-width: 968px) {
    /* Calculator stacks on tablet */
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    /* Top bar stacks */
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Mobile Navigation */
    .nav {
        padding: 15px 20px;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-hover);
        padding: 30px 0;
        gap: 20px;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    /* Hero adjustments */
    .hero {
        height: 500px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    /* Section spacing */
    .section {
        padding: 50px 15px;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Properties grid */
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials */
    .testimonial-slider {
        padding: 0 20px;
    }
    
    .testimonial-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero {
        height: 400px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .btn-yellow, .btn-primary, .btn-outline {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .quick-valuation-form {
        flex-direction: column;
    }
    
    .quick-valuation-form input {
        min-width: 100%;
    }
    
    .calculator-container {
        padding: 25px 20px;
    }
    
    .payment-amount {
        font-size: 2.5rem;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
}

/* === Smooth Scrolling === */
html {
    scroll-behavior: smooth;
}

/* === Accessibility === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* === Loading States === */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* === Utility Classes === */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }


/* Dynamic Properties Section Styles */
.property-category-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.property-category-card h3 {
    font-size: 22px;
    margin: 15px 0 10px 0;
    color: #2d5016;
}

.property-category-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.category-link {
    color: #2d5016;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #2d5016;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: #2d5016;
    color: white;
}

.boldtrail-widget-container {
    min-height: 200px;
}

@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr !important;
    }
}

