/* ============================================
   NIKKI SIGMON — REAL ESTATE WEBSITE
   Bold Editorial | Emerald & Cream
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F0E8;
}
::-webkit-scrollbar-thumb {
    background: #0B5E3E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #064E2D;
}

/* --- Navigation --- */
#navbar {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 217, 200, 0.5);
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.97);
    box-shadow: 0 1px 20px rgba(15, 26, 20, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0B5E3E;
    transition: width 0.3s ease;
}

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

/* Mobile menu */
#mobile-menu {
    background: rgba(253, 252, 250, 0.98);
    backdrop-filter: blur(20px);
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.menu-line {
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* --- Hero --- */
#hero {
    position: relative;
    background: #FDFCFA;
}

.hero-tagline {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subheadline {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-body {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-ctas {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 1s;
}

.hero-image {
    animation: imageReveal 1.2s ease forwards;
    animation-delay: 0.3s;
    transform: scale(1.05);
}

.hero-image-wrapper {
    animation: imageReveal 1.2s ease forwards;
    animation-delay: 0.3s;
}

.hero-stat-card {
    animation: floatIn 0.8s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes imageReveal {
    from {
        transform: scale(1.05);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* CTA Buttons */
.cta-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: #0B5E3E;
    color: #F5F0E8;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.cta-primary .cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #064E2D;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

.cta-primary:hover .cta-bg {
    transform: scaleX(1);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    color: #0F1A14;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid rgba(15, 26, 20, 0.2);
    cursor: pointer;
    transition: all 0.4s ease;
}

.cta-secondary:hover {
    border-color: #0B5E3E;
    color: #0B5E3E;
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.cta-secondary:hover .cta-arrow {
    transform: translate(4px, -4px);
}

/* Scroll indicator */
.scroll-indicator {
    opacity: 0.6;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #0F1A14, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Section Tags --- */
.section-tag {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #0B5E3E;
}

/* --- Section Headings --- */
.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    line-height: 1.05;
}

/* --- Section Body --- */
.section-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(15, 26, 20, 0.7);
}

/* --- Divider --- */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(11, 94, 62, 0.2), transparent);
    margin: 0;
}

/* --- About Section --- */
.about-image {
    animation: imageReveal 1s ease forwards;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.stat-divider {
    width: 1px;
    background: rgba(11, 94, 62, 0.2);
    align-self: stretch;
}

/* --- Services Section --- */
.service-card {
    overflow: hidden;
}

.service-card-inner {
    transition: all 0.5s ease;
}

.service-card:hover .service-card-inner {
    transform: translateY(-4px);
}

/* --- Area Section --- */
.area-images {
    animation: imageReveal 1s ease forwards;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 3rem;
}

.highlight-item {
    border-left: 2px solid rgba(11, 94, 62, 0.2);
    padding-left: 1rem;
}

/* --- Testimonials --- */
.testimonial-card {
    overflow: hidden;
}

.testimonial-inner {
    transition: all 0.5s ease;
}

.testimonial-card:hover .testimonial-inner {
    transform: translateY(-4px);
}

.testimonial-divider {
    width: 40px;
    height: 2px;
    background: #0B5E3E;
    margin-top: 1rem;
}

/* --- Contact --- */
.contact-link {
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0B5E3E;
    transition: width 0.3s ease;
}

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

.contact-info-item {
    overflow: hidden;
}

.contact-info-inner {
    transition: all 0.4s ease;
}

.contact-info-item:hover .contact-info-inner {
    transform: translateX(8px);
}

/* Form */
.form-label {
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid rgba(15, 26, 20, 0.15);
    background: transparent;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    color: #0F1A14;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(15, 26, 20, 0.3);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-bottom-color: #0B5E3E;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230B5E3E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: #0B5E3E;
    color: #F5F0E8;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    width: 100%;
    justify-content: center;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #064E2D;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 0;
}

.form-submit span,
.form-submit-arrow {
    position: relative;
    z-index: 1;
}

.form-submit:hover::before {
    transform: scaleX(1);
}

.form-submit-arrow {
    transition: transform 0.3s ease;
}

.form-submit:hover .form-submit-arrow {
    transform: translate(4px, -4px);
}

.form-success {
    animation: slideUp 0.5s ease forwards;
}

/* --- Footer --- */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(245, 240, 232, 0.4);
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* --- Utility Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1023px) {
    .hero-headline {
        font-size: 3.5rem;
    }
    .hero-subheadline {
        font-size: 2rem;
    }
    .hero-image-wrapper {
        height: 450px;
    }
    .hero-stat-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    .hero-subheadline {
        font-size: 1.5rem;
    }
    .hero-image-wrapper {
        height: 350px;
    }
    .section-heading {
        font-size: 2.5rem;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .highlight-item {
        border-left: none;
        border-bottom: 1px solid rgba(11, 94, 62, 0.2);
        padding-left: 0;
        padding-bottom: 1rem;
    }
    .area-img-bottom {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }
    .hero-subheadline {
        font-size: 1.25rem;
    }
    .hero-image-wrapper {
        height: 300px;
    }
    .section-heading {
        font-size: 2rem;
    }
}
