/* 
   Inked Agent - Real Estate Website
   Pink & Black Theme
*/

/* Base Styles and Variables */
:root {
    --primary-color: #ff41a3; /* Vibrant Pink */
    --primary-light: #ff8fcf;
    --primary-dark: #d6007a;
    --dark-color: #111111;
    --light-color: #ffffff;
    --gray-color: #f4f4f4;
    --dark-gray: #333333;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.8rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.2rem;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header span {
    color: var(--primary-color);
}

.section-header .underline {
    height: 4px;
    width: 80px;
    background: var(--primary-color);
    margin: 0 auto;
    margin-top: 10px;
}

.section-header.light h2,
.section-header.light span {
    color: var(--light-color);
}

.section-header.light .underline {
    background: var(--light-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    box-shadow: 0 4px 15px rgba(255, 65, 163, 0.4);
}

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

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
}

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

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

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo .main-logo {
    max-height: 70px; /* Increased size from 60px */
    border-radius: 50%;
    border: 3px solid var(--primary-color); /* Increased border thickness */
    padding: 2px;
    box-shadow: 0 0 15px rgba(255, 65, 163, 0.5); /* Added glow effect */
    transition: var(--transition);
}

.logo .main-logo:hover {
    transform: scale(1.05); /* Slight scale on hover */
}

.broker-logo {
    height: 40px;
    margin-left: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-color);
    position: relative;
}

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

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

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../images/optimized/large/mediterranean-villa-cape-coral.webp') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    padding: 0 1rem;
    margin-top: 80px;
}

@supports not (background-image: url('../images/optimized/large/mediterranean-villa-cape-coral.webp')) {
    .hero {
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                    url('../images/optimized/large/mediterranean-villa-cape-coral.jpg') center/cover no-repeat;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1.5s ease;
}

.hero h1 {
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    position: relative;
    width: 100%;
    height: 65vh;
    padding-bottom: 75%; /* Creates a responsive aspect ratio container */
}

.about-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills container without distortion */
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.stat {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-10px);
}

.stat i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.stat h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: var(--gray-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card-icon i {
    font-size: 2rem;
    color: var(--dark-color); /* Changed from var(--primary-color) to black */
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 0;
}

/* Featured Listing */
.featured-listing {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.featured-property {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.property-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    width: 100%;
    height: 65vh;
    padding-bottom: 66.67%; /* Creates a 3:2 aspect ratio container */
}

.property-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills container without distortion */
    transition: var(--transition);
}

.status-tag {
    position: absolute;
    top: 20px;
    left: 0;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.status-tag.sold {
    background-color: #28a745;
}

.status-tag.pending {
    background-color: #ffc107;
    color: var(--dark-color);
}

.property-details h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.price {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.property-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.property-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    box-shadow: none;
    padding: 0;
}

.property-stats .stat i {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.property-details p {
    margin-bottom: 2rem;
}

/* Listings */
.listings {
    padding: 6rem 0;
    background-color: var(--gray-color);
}

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

.listing-card {
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.listing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.listing-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.listing-card:hover .listing-image img {
    transform: scale(1.1);
}

.listing-details {
    padding: 1.5rem;
}

.listing-details h3 {
    margin-bottom: 0.3rem;
    font-size: 1.4rem;
}

.listing-details .price {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.listing-details .location {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.listing-details .property-stats {
    justify-content: space-between;
    gap: 0;
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('../images/optimized/large/agent-portrait.webp') center/cover no-repeat fixed;
    color: var(--light-color);
}

@supports not (background-image: url('../images/optimized/large/agent-portrait.webp')) {
    .testimonials {
        background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                    url('../images/optimized/large/agent-portrait.jpg') center/cover no-repeat fixed;
    }
}

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

.testimonial {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.quote {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 2rem;
}

.client {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-info h4 {
    margin-bottom: 0.2rem;
    color: var(--primary-light);
}

.client-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.rating i {
    color: #ffc107;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--light-color);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    margin-bottom: 1.5rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.info-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

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

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

.contact-form {
    background-color: var(--gray-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    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, 65, 163, 0.1);
}

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

.contact-form .btn {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.footer-logo .main-logo {
    max-height: 90px; /* Increased size */
    margin-bottom: 1rem;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 3px;
}

.footer-logo .broker-logo {
    max-height: 40px;
    margin-top: 10px;
}

.footer-links h4,
.footer-areas h4,
.footer-newsletter h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul li,
.footer-areas ul li {
    margin-bottom: 1rem;
}

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

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-newsletter p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

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

/* Media Queries */
@media screen and (max-width: 1200px) {
    .burger {
        display: block !important;
        position: relative;
        z-index: 1001;
        width: 35px;
        height: 30px;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 80px;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateY(-150%);
        z-index: 1000;
        transition: transform 0.5s ease;
        padding: 2rem 0;
        box-shadow: var(--box-shadow);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links a {
        margin: 0.8rem 0;
    }
    
    .logo .brand-text {
        font-size: 2rem;
    }
}

@media screen and (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 80px;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateY(-150%);
        z-index: -1;
        transition: transform 0.5s ease;
        padding: 2rem 0;
        box-shadow: var(--box-shadow);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .burger {
        display: block;
    }
    
    .about-content,
    .featured-property,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .testimonial-slider {
        gap: 3rem;
    }

    .about-image {
        padding-bottom: 66.67%; /* Slightly shorter aspect ratio on mobile */
        max-width: none; /* Remove any max-width limitations */
        width: 100%;     /* Ensure it takes full width */
        margin: 0 auto;  /* Center the image container */
    }
    
    .property-image {
        padding-bottom: 75%; /* Taller aspect ratio on mobile for better visibility */
        max-width: none;
        width: 100%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .property-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .listing-card {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}

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