/* ===================================
   NARS REALTY WEBSITE STYLES
   ================================== */

/* ===================================
   RESET & BASE STYLES
   ================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   CUSTOM COLOR VARIABLES
   ================================== */

:root {
    --nars-blue: #0F2C59;
    --nars-green: #2E7D32;
    --nars-gold: #D4AF37;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

/* ===================================
   UTILITY CLASSES
   ================================== */

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

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

.hidden {
    display: none;
}

.bg-nars-blue {
    background-color: var(--nars-blue);
}

.text-nars-blue {
    color: var(--nars-blue);
}

.border-nars-blue {
    border-color: var(--nars-blue);
}

.bg-nars-green {
    background-color: var(--nars-green);
}

.text-nars-green {
    color: var(--nars-green);
}

.bg-nars-gold {
    background-color: var(--nars-gold);
}

.text-nars-gold {
    color: var(--nars-gold);
}

/* ===================================
   ANIMATIONS
   ================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===================================
   HEADER & NAVIGATION
   ================================== */

#header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-container img {
    height: 3rem;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nars-blue);
}

.logo-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    letter-spacing: 0.1em;
}

.desktop-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

.desktop-menu a {
    color: var(--gray-600);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.desktop-menu a:hover {
    color: var(--nars-blue);
}

.cta-button {
    background-color: var(--nars-blue);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    opacity: 0.9;
}

.mobile-menu-button {
    display: block;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--gray-600);
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-menu-button:hover {
    background-color: var(--gray-100);
}

.mobile-menu-button svg {
    height: 1.5rem;
    width: 1.5rem;
}

#mobile-menu {
    padding: 0.5rem 1.5rem 1rem;
}

.mobile-menu-item {
    display: block;
    color: var(--gray-600);
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.mobile-menu-item:hover {
    color: var(--nars-blue);
}

.mobile-cta-button {
    display: block;
    background-color: var(--nars-blue);
    color: white;
    text-align: center;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: opacity 0.3s ease;
}

.mobile-cta-button:hover {
    opacity: 0.9;
}

/* ===================================
   HERO SECTION
   ================================== */

#home {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

#home::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.hero-button {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-button:hover {
    transform: scale(1.05);
}

.hero-button.primary {
    background-color: var(--nars-green);
    color: white;
}

.hero-button.primary:hover {
    opacity: 0.9;
}

.hero-button.secondary {
    background-color: white;
    color: var(--nars-blue);
}

.hero-button.secondary:hover {
    background-color: var(--gray-100);
}

/* ===================================
   SECTIONS
   ================================== */

section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--nars-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.section-bg-white {
    background-color: white;
}

/* ===================================
   INTRODUCTION SECTION
   ================================== */

.intro-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--nars-blue);
    margin-bottom: 1rem;
}

.intro-text p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.intro-text p:last-of-type {
    margin-bottom: 1.5rem;
}

.intro-link {
    font-weight: 700;
    color: var(--nars-green);
    text-decoration: none;
}

.intro-link:hover {
    text-decoration: underline;
}

.intro-image img {
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ===================================
   SERVICES SECTION
   ================================== */

.services-grid {
    display: grid;
    gap: 2rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-0.5rem);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nars-blue);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray-600);
}

/* ===================================
   WHY RALEIGH SECTION
   ================================== */

.why-raleigh-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.why-raleigh-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--nars-blue);
    margin-bottom: 1rem;
}

.why-raleigh-text p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.why-raleigh-image img {
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.map-caption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* ===================================
   TESTIMONIALS SECTION
   ================================== */

#testimonial-carousel {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 3rem;
}

.testimonial-text {
    font-size: 1.25rem;
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 700;
    text-align: right;
    color: var(--nars-blue);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: white;
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

.carousel-button svg {
    height: 1.5rem;
    width: 1.5rem;
    color: var(--nars-blue);
}

/* ===================================
   RESOURCES SECTION
   ================================== */

.resources-grid {
    display: grid;
    gap: 2rem;
    align-items: start;
    max-width: 64rem;
    margin: 0 auto;
}

.calculator-form {
    background-color: var(--gray-50);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
}

.calculator-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nars-blue);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    display: block;
    margin-bottom: 0.25rem;
}

.form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--nars-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-help {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.calculate-button {
    width: 100%;
    background-color: var(--nars-green);
    color: white;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.calculate-button:hover {
    opacity: 0.9;
}

.calculator-results {
    background-color: var(--nars-blue);
    color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    position: sticky;
    top: 7rem;
}

.calculator-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.results-content {
    margin-bottom: 1rem;
}

.results-main {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
}

.results-value {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.results-details {
    border-top: 1px solid rgba(59, 130, 246, 0.5);
    padding-top: 1rem;
    font-size: 0.875rem;
}

.results-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.results-disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
}

/* ===================================
   CONTACT SECTION
   ================================== */

.contact-grid {
    display: grid;
    gap: 3rem;
}

.contact-info {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.contact-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nars-blue);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info p:first-of-type {
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-item:last-child {
    align-items: flex-start;
}

.contact-item svg {
    height: 1.25rem;
    width: 1.25rem;
    color: var(--nars-green);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--nars-green);
}

.map-container {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nars-blue);
    margin-bottom: 1.5rem;
}

.contact-form .form-input {
    padding: 0.75rem;
}

.contact-form .form-input:focus {
    border-color: var(--nars-green);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

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

.submit-button {
    width: 100%;
    background-color: var(--nars-blue);
    color: white;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.submit-button:hover {
    opacity: 0.9;
}

/* ===================================
   FOOTER
   ================================== */

footer {
    background-color: var(--nars-blue);
    color: white;
}

.footer-content {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    margin-top: 3rem;
    border-top: 1px solid var(--gray-700);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ===================================
   RESPONSIVE DESIGN
   ================================== */

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .intro-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-raleigh-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-text {
        font-size: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    section {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .desktop-menu {
        display: flex;
    }
    
    .mobile-menu-button {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #home {
        min-height: 100vh;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 4rem;
    }
}

