/* ============================================
   Esther Makris-Horwath — Real Estate Website
   Custom Styles
   ============================================ */

/* ---------- Base & Typography ---------- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(232, 143, 40, 0.25);
    color: #2e121c;
}

/* ---------- Navbar ---------- */
.navbar-light .nav-logo-text,
.navbar-light .nav-logo-sub,
.navbar-light .nav-link {
    color: #1a1714;
}

.navbar-dark .nav-logo-text,
.navbar-dark .nav-logo-sub,
.navbar-dark .nav-link {
    color: #f9f1f4;
}

.navbar-light .nav-link {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.navbar-light .nav-link:hover {
    opacity: 1;
    color: #e88a0c;
}

.navbar-dark .nav-link {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.navbar-dark .nav-link:hover {
    opacity: 1;
    color: #f2b95e;
}

.navbar-light .nav-btn svg {
    stroke: #1a1714;
}

.navbar-dark .nav-btn svg {
    stroke: #f9f1f4;
}

/* ---------- Hero ---------- */
.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(46, 18, 28, 0.55) 0%,
        rgba(46, 18, 28, 0.45) 50%,
        rgba(46, 18, 28, 0.70) 100%
    );
}

.hero-headline {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* ---------- CTA Buttons ---------- */
.cta-primary {
    background-color: #e88a0c;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 2rem;
    border-radius: 2px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-primary:hover {
    background-color: #d46f07;
    transform: translateY(-1px);
}

.cta-secondary {
    background-color: transparent;
    color: #f9f1f4;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.875rem 2rem;
    border: 1.5px solid rgba(249, 241, 244, 0.4);
    border-radius: 2px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-secondary:hover {
    border-color: rgba(249, 241, 244, 0.8);
    background-color: rgba(249, 241, 244, 0.08);
}

/* ---------- Service Cards ---------- */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* ---------- Contact Form ---------- */
.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-submit:hover::after {
    left: 100%;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:not(.visible) {
    transform: translateY(10px);
}

/* ---------- Scroll Animations ---------- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* ---------- Mobile Menu ---------- */
.mobile-menu-open #mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open body {
    overflow: hidden;
}

/* ---------- Bounce Animation ---------- */
@keyframes bounce-slow {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -8px); }
}

.animate-bounce-slow {
    animation: bounce-slow 2.5s ease-in-out infinite;
}

/* ---------- Scroll Line ---------- */
@keyframes scroll-line-grow {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-line {
    animation: scroll-line-grow 2s ease-in-out infinite;
}

/* ---------- Form Focus States ---------- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #e88a0c !important;
    box-shadow: 0 0 0 3px rgba(232, 143, 40, 0.15);
}

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .service-card {
        padding: 1.5rem !important;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2rem;
    }
}
