/* ========================================
   NIVAS PROPERTIES - STYLE GUIDE
   Color Palette: Grey & White
   Typography: Cormorant Garamond (headings) + DM Sans (body)
   Optimized for Mobile-First
======================================== */

/* CSS Variables */
:root {
    /* Colors - Grey & White Palette */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-grey: #e9ecef;
    --grey-100: #dee2e6;
    --grey-200: #ced4da;
    --grey-300: #adb5bd;
    --grey-400: #868e96;
    --grey-500: #6c757d;
    --grey-600: #495057;
    --grey-700: #343a40;
    --grey-800: #212529;
    --charcoal: #1a1a1a;
    --black: #0d0d0d;
    
    /* Accent */
    --accent: #4a4a4a;
    --accent-light: #6b6b6b;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--grey-700);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--grey-800);
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--light-grey);
    transition: all var(--transition-base);
}

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

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--grey-800);
    letter-spacing: 0.02em;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--grey-500);
    margin-top: 2px;
}

.nav-links {
    display: none;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--grey-600);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--grey-800);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--grey-800);
}

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

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--grey-700);
    transition: all var(--transition-base);
    border-radius: 2px;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--light-grey);
    padding: var(--space-lg);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--grey-700);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--light-grey);
    display: block;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: var(--grey-800);
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 90px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 50%, var(--light-grey) 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--grey-200) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, var(--grey-200) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
    text-align: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--grey-500);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--grey-800);
    margin-bottom: var(--space-lg);
}

.hero-title .highlight {
    color: var(--grey-600);
    font-style: italic;
    font-weight: 400;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--grey-600);
    margin-bottom: var(--space-xl);
    max-width: 100%;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--grey-800);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:active {
    background: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--grey-700);
    border: 1px solid var(--grey-300);
}

.btn-secondary:hover,
.btn-secondary:active {
    background: var(--grey-800);
    color: var(--white);
    border-color: var(--grey-800);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border-color: #25D366;
}

.btn-whatsapp:hover,
.btn-whatsapp:active {
    background: #128C7E;
    border-color: #128C7E;
    color: var(--white);
}

.btn-whatsapp svg {
    width: 18px;
    height: 18px;
}

.btn-full {
    width: 100%;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
    max-width: 350px;
    margin: 0 auto;
}

.hero-image {
    position: relative;
    aspect-ratio: 1/1;
    background: linear-gradient(145deg, var(--grey-200), var(--light-grey));
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: linear-gradient(145deg, var(--grey-100), var(--grey-200));
}

.house-icon {
    width: 80px;
    height: 80px;
    color: var(--grey-400);
}

.placeholder-text {
    font-size: 0.75rem;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Scroll Indicator */
.scroll-indicator {
    display: none;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--grey-400);
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, var(--grey-400), transparent);
}

/* ========================================
   SERVICES SECTION
======================================== */
.services {
    padding: var(--space-2xl) 0;
    background: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-subtitle {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--grey-500);
    margin-bottom: var(--space-xs);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--grey-800);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.service-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: 8px;
    transition: all var(--transition-base);
    border: 1px solid var(--light-grey);
}

.service-card-featured {
    border-left: 3px solid var(--grey-700);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-md);
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--grey-600);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--grey-800);
    margin-bottom: var(--space-sm);
}

.service-list {
    margin-bottom: var(--space-md);
    padding-left: 0;
}

.service-list li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
    color: var(--grey-600);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--grey-500);
    font-weight: 600;
}

.card-description {
    font-size: 0.9rem;
    color: var(--grey-500);
    line-height: 1.6;
    font-style: italic;
}

/* ========================================
   ABOUT SECTION
======================================== */
.about {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.about-intro {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.about-intro p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--grey-600);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.about-card {
    background: var(--off-white);
    padding: var(--space-lg);
    border-radius: 8px;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.about-card:hover {
    background: var(--white);
    border-color: var(--light-grey);
    box-shadow: var(--shadow-md);
}

/* Vision & Mission */
.vision-mission {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.vm-card {
    background: var(--grey-800);
    color: var(--white);
    padding: var(--space-lg);
    border-radius: 8px;
}

.vm-card h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.vm-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--grey-300);
}

/* ========================================
   AGENT/OWNER SECTION
======================================== */
.agent {
    padding: var(--space-2xl) 0;
    background: var(--off-white);
}

.agent-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.agent-image-container {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
}

.agent-image {
    aspect-ratio: 1/1;
    background: linear-gradient(145deg, var(--grey-200), var(--light-grey));
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.agent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.agent-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: linear-gradient(145deg, var(--grey-100), var(--grey-200));
}

.agent-placeholder svg {
    width: 60px;
    height: 60px;
    stroke: var(--grey-400);
}

.agent-badge {
    position: absolute;
    top: 15px;
    right: -10px;
    background: var(--grey-800);
    color: var(--white);
    padding: 6px 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.agent-content {
    text-align: center;
}

.agent-name {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--grey-800);
    margin-bottom: var(--space-xs);
    margin-top: var(--space-sm);
}

.agent-role {
    font-size: 0.85rem;
    color: var(--grey-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.agent-bio {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--grey-600);
    margin-bottom: var(--space-xl);
}

.agent-contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--grey-700);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.contact-item:hover {
    background: var(--light-grey);
}

.contact-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--grey-500);
    flex-shrink: 0;
}

.contact-item span {
    font-size: 0.9rem;
}

.linkedin-link {
    color: #0077B5;
}

.linkedin-link svg {
    stroke: #0077B5;
}

.linkedin-link:hover {
    background: rgba(0, 119, 181, 0.1);
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--grey-700) 0%, var(--grey-800) 100%);
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1rem;
    color: var(--grey-300);
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: var(--white);
    color: var(--grey-800);
}

.cta-buttons .btn-primary:hover {
    background: var(--off-white);
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--grey-800);
    color: var(--grey-300);
    padding: var(--space-2xl) 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--grey-700);
    text-align: center;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand .logo-tagline {
    color: var(--grey-400);
}

.footer-brand .logo {
    justify-content: center;
    align-items: center;
}

.footer-description {
    margin-top: var(--space-md);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--grey-400);
}

.footer-services h4,
.footer-contact h4,
.footer-links h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-services li {
    font-size: 0.85rem;
    color: var(--grey-400);
}

.footer-contact p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--grey-400);
}

.footer-contact a {
    color: var(--grey-400);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    color: var(--grey-400);
    font-size: 0.85rem;
}

.footer-social:hover {
    color: var(--white);
}

.footer-social svg {
    fill: currentColor;
}

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

.footer-links a {
    font-size: 0.85rem;
    color: var(--grey-400);
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding: var(--space-lg) 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--grey-500);
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
======================================== */
@media (min-width: 600px) {
    .nav {
        height: 80px;
    }
    
    .mobile-menu {
        top: 80px;
    }
    
    .logo-text {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 110px 0 80px;
    }
    
    .hero-image-wrapper {
        max-width: 400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vision-mission {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
    
    .footer-brand .logo {
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .footer-links {
        align-items: flex-start;
    }
}

/* ========================================
   RESPONSIVE DESIGN - DESKTOP
======================================== */
@media (min-width: 992px) {
    /* Navigation */
    .nav-links {
        display: flex;
    }
    
    .hamburger {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    /* Hero */
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
        text-align: left;
    }
    
    .hero-subtitle {
        position: relative;
        padding-left: 50px;
    }
    
    .hero-subtitle::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 35px;
        height: 1px;
        background: var(--grey-400);
    }
    
    .hero-cta {
        justify-content: flex-start;
    }
    
    .hero-image-wrapper {
        max-width: none;
        margin: 0;
        animation: fadeInRight 0.8s ease 0.2s forwards;
    }
    
    .scroll-indicator {
        display: flex;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* About */
    .about-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Agent */
    .agent-wrapper {
        grid-template-columns: 1fr 1.5fr;
        gap: var(--space-3xl);
    }
    
    .agent-image-container {
        max-width: none;
    }
    
    .agent-content {
        text-align: left;
    }
    
    .agent-contact-details {
        align-items: flex-start;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ========================================
   RESPONSIVE DESIGN - LARGE DESKTOP
======================================== */
@media (min-width: 1200px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .house-icon {
        width: 120px;
        height: 120px;
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
======================================== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .service-card:hover,
    .about-card:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* ========================================
   REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
