/* 
   Theme: Armet Emlak Premium
   Colors: Dark Navy, Gold, White
   Fonts: Outfit (Body), Playfair Display (Headings)
*/

:root {
    --primary-color: #d4af37;
    /* Premium Gold */
    --primary-dark: #b5952f;
    --primary-light: #e5c158;
    --secondary-color: #0a192f;
    /* Deep Navy */
    --secondary-light: #172a45;
    --text-light: #e6f1ff;
    --text-muted: #8892b0;
    --white: #ffffff;
    --off-white: #f5f5f5;
    --black: #020c1b;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 20px;
}

p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

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

ul {
    list-style: none;
}

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

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

.section {
    padding: 100px 0;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-family: 'Outfit', sans-serif;
    /* Override Playfair for buttons if inherited */
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    /* Corrected from background to background-color for validity, though background works too */
    color: var(--secondary-color);
    /* Make text readable on gold */
    transform: translateY(-3px);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 20px;
    transition: var(--transition);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo img {
    height: 50px;
    /* Adjust based on actual logo ratio */
    width: auto;
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .nav-toggle, .nav-close {
        display: none !important;
    }

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

    .nav-links {
        display: flex;
        align-items: center;
        gap: 40px;
    }
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(2, 12, 27, 0.7);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.overlay-active {
    opacity: 1;
    visibility: visible;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
}

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

.nav-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    margin-top: -80px;
    /* Compensate for fixed header if needed, but easier to just let it start at top */
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/hero.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(10, 25, 47, 0.95) 0%,
            rgba(10, 25, 47, 0.7) 50%,
            rgba(10, 25, 47, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin-left: 0;
    /* Align left */
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero .highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
}

/* About Section */
.about {
    background-color: var(--white);
    color: var(--secondary-color);
}

.about h2 {
    color: var(--secondary-color);
}

.about p {
    color: #444;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    height: 400px;
    width: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.image-wrapper i {
    font-size: 100px;
    color: rgba(255, 255, 255, 0.2);
}

.feature-list li {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-list i {
    color: var(--primary-color);
}

/* Services Section */
.services {
    background-color: var(--secondary-light);
}

.services .section-title,
.services .section-subtitle {
    color: var(--text-light);
}

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

.service-card {
    background-color: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    display: block;
    text-decoration: none;
    height: 100%;
}

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

.service-card.special {
    background-color: rgba(212, 175, 55, 0.05);
    /* Very subtle gold tint */
}

.icon-box {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
}

/* Gallery Section */
.gallery {
    background-color: var(--secondary-light);
    /* padding-bottom is handled by general .section padding */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--primary-color);
    font-size: 32px;
}

/* About Section */
.about {
    background-color: var(--white);
    color: var(--secondary-color);
}

.about h2, .about h3 {
    color: var(--secondary-color);
}

.about p {
    color: #333;
}

/* Listings Section */
.listings {
    background-color: var(--white);
    color: var(--secondary-color);
}

.listings h2, .listings h3 {
    color: var(--secondary-color);
}

.listings p {
    color: #444;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.listings-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid var(--off-white);
    cursor: pointer;
    display: block;
    text-decoration: none;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.listings-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.listings-card.special {
    background-color: rgba(212, 175, 55, 0.05);
    /* Very subtle gold tint */
}

.listings-image {
    position: relative;
}

/* About Image Fix */
.image-wrapper-photo {
    height: 400px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.image-wrapper-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.contact h2 {
    color: var(--secondary-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item i {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
    /* Changed to secondary for better contrast on white bg, or could be primary */
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-family: 'Outfit', sans-serif;
}

.contact-item p {
    margin-bottom: 0;
    color: #666;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
}

.btn-primary.block {
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-align: center;
}

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

/* Footer */
.footer {
    background-color: var(--black);
    padding: 60px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #8892b0;
    max-width: 400px;
    margin: 0 auto;
}

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 14px;
    color: #555;
}

/* Utilities */
.center {
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    margin-bottom: 60px;
    color: var(--primary-color);
}


/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Classes (Handled by JS to add 'active' class) */
.reveal-left,
.reveal-right,
.reveal-bottom {
    opacity: 0;
    transition: all 1s ease;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-bottom {
    transform: translateY(50px);
}

.reveal-left.active,
.reveal-right.active,
.reveal-bottom.active {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%; /* Slightly wider for better touch area */
        background-color: var(--secondary-color);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1010;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 60px 40px;
    }

    .nav-menu.menu-active {
        transform: translateX(0);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align left in mobile */
        gap: 25px;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        font-size: 20px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        background: rgba(212, 175, 55, 0.1);
        border: none;
        border-radius: 50%;
        font-size: 28px;
        color: var(--primary-color);
        cursor: pointer;
        z-index: 1020;
        transition: var(--transition);
    }

    .nav-close:hover {
        background: var(--primary-color);
        color: var(--secondary-color);
    }

    .nav-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(2, 12, 27, 0.8);
        backdrop-filter: blur(8px);
        z-index: 1005;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-overlay.overlay-active {
        opacity: 1;
        visibility: visible;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-secondary {
        margin-left: 0;
    }
}

/* Page Header (for Blog and other subpages) */
.page-header {
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.8)), url('img/hero.png');
    background-size: cover;
    background-position: center;
    padding: 150px 0 80px;
    color: var(--white);
    text-align: center;
    margin-top: -80px;
    /* Under navbar */
    padding-top: 160px;
}

.page-header h1 {
    font-size: 48px;
    color: var(--primary-color);
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid #eee;
}

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

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 60px;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.blog-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.blog-content h3 {
    color: var(--secondary-color);
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-content p {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
    color: var(--primary-color);
}

/* Active Link State */
.nav-links a.active {
    color: var(--primary-color);
}