/* ============================================
   Norway Island — Real Estate Website
   Clean Minimalist · Burgundy + Blush
   ============================================ */

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

:root {
    --burgundy: #7B2D3B;
    --burgundy-dark: #5A1F2B;
    --burgundy-light: #9A3D4E;
    --blush: #F5E6E8;
    --blush-light: #FBF3F4;
    --blush-dark: #E8C8CC;
    --cream: #FDF8F9;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #7A7A7A;
    --text-inverse: #F5E6E8;
    --line: rgba(123, 45, 59, 0.12);
    --line-strong: rgba(123, 45, 59, 0.25);
    --shadow-sm: 0 1px 3px rgba(123, 45, 59, 0.06);
    --shadow-md: 0 4px 20px rgba(123, 45, 59, 0.08);
    --shadow-lg: 0 8px 40px rgba(123, 45, 59, 0.12);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 249, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--burgundy);
    letter-spacing: -0.01em;
}

.logo-icon {
    color: var(--burgundy);
}

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

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-medium);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--burgundy);
    transition: width var(--transition);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-dark);
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: var(--burgundy-dark);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(90, 31, 43, 0.88) 0%,
        rgba(123, 45, 59, 0.72) 50%,
        rgba(90, 31, 43, 0.82) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 120px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-inner {
    max-width: 680px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 24px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line-strong);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title em {
    font-style: italic;
    color: var(--blush);
}

.hero-subtitle {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 230, 232, 0.8);
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(245, 230, 232, 0.2);
}

.hero-stat {
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 230, 232, 0.6);
}

.hero-stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(245, 230, 232, 0.2);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: 0;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--burgundy);
    color: var(--white);
    border: 1px solid var(--burgundy);
}

.btn-primary:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(245, 230, 232, 0.5);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 72px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section-lead {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-light);
}

/* ---------- ABOUT ---------- */
.about {
    background: var(--white);
}

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

.about-image-wrap {
    position: relative;
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.about-image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--blush-dark);
    z-index: -1;
}

.about-content {
    padding: 20px 0;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content p {
    font-size: 0.9375rem;
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--burgundy);
}

.about-feature h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ---------- SERVICES ---------- */
.services {
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 48px 36px;
    border: 1px solid var(--line);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--burgundy);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    margin-bottom: 28px;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---------- LISTINGS ---------- */
.listings {
    background: var(--white);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 56px;
}

.listing-card {
    border: 1px solid var(--line);
    transition: all var(--transition);
    overflow: hidden;
}

.listing-card:hover {
    border-color: var(--burgundy);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

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

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.listing-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--burgundy);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
}

.listing-info {
    padding: 28px;
}

.listing-info h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.listing-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.listing-details {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 0.8125rem;
    color: var(--text-medium);
}

.listing-details .divider {
    color: var(--blush-dark);
    margin: 0 8px;
}

.section-cta {
    text-align: center;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    background: var(--burgundy);
    color: var(--white);
}

.testimonials .section-tag {
    color: var(--blush);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(245, 230, 232, 0.15);
    padding: 44px 36px;
    transition: all var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 230, 232, 0.3);
    transform: translateY(-4px);
}

.testimonial-quote {
    color: var(--blush);
    margin-bottom: 24px;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: 1.1875rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
    color: rgba(245, 230, 232, 0.9);
    margin-bottom: 28px;
}

.testimonial-author {
    padding-top: 24px;
    border-top: 1px solid rgba(245, 230, 232, 0.15);
}

.author-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 4px;
}

.author-detail {
    font-size: 0.8125rem;
    color: rgba(245, 230, 232, 0.6);
}

/* ---------- CTA / CONTACT ---------- */
.cta {
    background: var(--blush-light);
}

.cta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.cta-content .section-tag {
    margin-bottom: 16px;
}

.cta-content .section-title {
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 36px;
}

.cta-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-phone, .cta-email {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--burgundy);
    font-weight: 400;
    transition: color var(--transition);
}

.cta-phone:hover, .cta-email:hover {
    color: var(--burgundy-dark);
}

.cta-phone svg, .cta-email svg {
    color: var(--burgundy);
    flex-shrink: 0;
}

/* ---------- FORM ---------- */
.cta-form {
    background: var(--white);
    padding: 48px;
    border: 1px solid var(--line);
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 0;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--text-dark);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-strong);
    outline: none;
    transition: border-color var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--burgundy);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(123, 45, 59, 0.06);
    border: 1px solid rgba(123, 45, 59, 0.15);
    color: var(--burgundy);
    font-size: 0.9375rem;
    font-weight: 400;
}

.form-success.show {
    display: flex;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--text-dark);
    color: var(--blush);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand .logo {
    color: var(--blush);
    margin-bottom: 20px;
}

.footer-brand .logo-icon {
    color: var(--blush);
}

.footer-desc {
    font-size: 0.9375rem;
    color: rgba(245, 230, 232, 0.6);
    line-height: 1.7;
    max-width: 300px;
}

.footer-info h4,
.footer-links h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-info address {
    font-style: normal;
    font-size: 0.9375rem;
    color: rgba(245, 230, 232, 0.7);
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-info p {
    font-size: 0.9375rem;
    color: rgba(245, 230, 232, 0.7);
    line-height: 1.7;
}

.footer-info a,
.footer-links a {
    color: rgba(245, 230, 232, 0.7);
    transition: color var(--transition);
}

.footer-info a:hover,
.footer-links a:hover {
    color: var(--white);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(245, 230, 232, 0.12);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(245, 230, 232, 0.4);
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(253, 248, 249, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dark);
    transition: color var(--transition);
}

.mobile-menu a:hover {
    color: var(--burgundy);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }

    .services-grid,
    .listings-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-wrapper {
        gap: 48px;
    }

    .footer-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        padding: 100px 24px 60px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-stat {
        flex: none;
    }

    .section {
        padding: 80px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        height: 360px;
    }

    .about-image-accent {
        display: none;
    }

    .services-grid,
    .listings-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cta-form {
        padding: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-card {
        padding: 36px 28px;
    }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
