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

:root {
    --amber-400: #857064;
    --amber-500: #6b5b52;
    --amber-600: #4b3f38;
    --amber-700: #3f352f;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--neutral-800);
    -webkit-font-smoothing: antialiased;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--amber-600), var(--amber-700));
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--neutral-900);
    color: white;
}

.btn-secondary:hover {
    background: var(--neutral-700);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--neutral-200);
    color: var(--neutral-800);
}

.btn-outline-dark:hover {
    background: var(--neutral-100);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
}

.btn-dark {
    background: var(--neutral-800);
    color: white;
}

.btn-dark:hover {
    background: var(--neutral-700);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-100);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--neutral-800);
}

.logo-icon {
    width: 3.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    color: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-img {
    height: 3.5rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--neutral-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(23,23,23,0.5), transparent, rgba(23,23,23,0.8));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 1.5rem;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.hero-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .btn {
    width: 150px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }
}

/* Search Section */
.search-section {
    margin-top: -197px;
    position: relative;
    z-index: 20;
    padding: 0 1.5rem;
}

.search-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.search-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
}

.form-group select,
.form-group input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--neutral-50);
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.2);
}

.btn-search {
    margin-top: 0.5rem;
    padding: 0.90rem 1.5rem;
}

.btn-search svg {
    height: 1em;
    margin-right: 6px;
}

@media (min-width: 768px) {
    .search-form {
        grid-template-columns: repeat(5, 1fr);
        align-items: end;
    }
    .btn-search {
        margin-top: 0;
    }
}

/* Apartments Section */
.apartments-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #fffbeb, #fff7ed);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--neutral-800);
}

.section-subtitle {
    text-align: center;
    color: var(--neutral-600);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.apartments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .apartments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .apartments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.apartment-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.apartment-image {
    position: relative;
    height: 14rem;
    overflow: hidden;
}

.apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.apartment-card:hover .apartment-image img {
    transform: scale(1.1);
}

.rating {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating::before {
    content: "★";
    color: var(--amber-500);
}

.apartment-info {
    padding: 1.25rem;
    text-align: center;
}

.apartment-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.location {
    color: var(--neutral-500);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.apartment-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-800);
}

.price small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--neutral-500);
}

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

/* Why Section */
.why-section {
    padding: 5rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: var(--neutral-50);
    transition: transform 0.3s;
}

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

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    background: var(--amber-500);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--neutral-600);
    font-size: 0.875rem;
}

/* Owners Section */
.owners-section {
    padding: 5rem 0;
    background: var(--neutral-900);
    color: white;
}

.section-label {
    display: inline-block;
    background: rgba(245,158,11,0.1);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title-light {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle-light {
    color: var(--neutral-400);
    margin-bottom: 3rem;
    max-width: 700px;
}

.owners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .owners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .owners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.owner-feature {
    background: var(--neutral-800);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: background 0.3s;
}

.owner-feature:hover {
    background: var(--neutral-700);
}

.owner-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(245,158,11,0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.owner-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.owner-feature h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.owner-feature p {
    color: var(--neutral-400);
    font-size: 0.875rem;
}

.cta-card {
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    padding: 3rem;
    border-radius: 1.5rem;
    text-align: center;
}

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

.cta-card p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 205px;
}

/* Testimonials */
.testimonials-section {
    padding: 5rem 0;
    background: var(--neutral-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    color: var(--neutral-700);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    background: var(--amber-500);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.testimonial-author h4 {
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--neutral-500);
}

/* Footer */
.footer {
    background: var(--neutral-900);
    color: white;
    padding: 4rem 0 2rem;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr auto;
    }
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--neutral-400);
    font-size: 0.875rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--neutral-300);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--neutral-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

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

.footer-contact li {
    color: var(--neutral-400);
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid var(--neutral-800);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--neutral-500);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: white;
}

/* .avaibook-search-widget {
    background: red;
} */