/*! TMS Residence Quy Nhơn - Complete Theme v3 */

:root {
    /* Colors */
    --navy: #0a1a30;
    --navy-light: #162d4a;
    --navy-mid: #1e3a5f;
    --gold: #d4a843;
    --gold-dark: #b8922e;
    --gold-light: #e4c06a;
    --white: #ffffff;
    --bg: #ffffff;
    --text: #0a1a30;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --shadow: 0 2px 12px rgba(10,26,48,0.08);
    --shadow-lg: 0 8px 30px rgba(10,26,48,0.12);
    --radius: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-logo: 'Cormorant Garamond', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.3s; }
ul { list-style: none; }

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

/* ============== HEADER ============== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
    position: relative;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .top {
    font-family: var(--font-logo);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.2;
}

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

.logo-text .bottom {
    font-size: 0.55rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-center {
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 0;
}

.main-nav a {
    display: block;
    padding: 22px 16px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 60%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.phone-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--navy);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.phone-btn .icon {
    width: 14px;
    height: 14px;
    color: var(--gold);
}

.phone-btn:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
}

.phone-btn small {
    font-size: 0.6rem;
    font-weight: 400;
    opacity: 0.7;
    margin-left: 2px;
}

.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    background: var(--navy);
    border: none;
    border-radius: 6px;
    color: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,26,48,0.75) 0%, rgba(10,26,48,0.3) 40%, rgba(10,26,48,0.1) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    gap: 40px;
}

.hero-left {
    flex: 1;
    max-width: 580px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(212,168,67,0.4);
    padding: 6px 16px;
    border-radius: 20px;
    color: var(--gold);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-family: var(--font);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.hero h1 .gold {
    color: var(--gold);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.hero-subtitle .star {
    color: var(--gold);
}

.hero-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-features-desktop {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 12px 16px;
    border-radius: var(--radius);
    flex: 1;
    min-width: 180px;
}

.hero-feature-item .icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--gold);
}

.hero-feature-item .text strong {
    display: block;
    font-size: 0.72rem;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.hero-feature-item .text span {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.75);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212,168,67,0.35);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
}

.btn-navy:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
}

.btn svg {
    width: 16px;
    height: 16px;
}

.hero-right {
    flex-shrink: 0;
    display: none;
}

.hero-badge-card {
    background: rgba(10,26,48,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 24px;
    max-width: 240px;
    text-align: center;
}

.hero-badge-card .stars {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.hero-badge-card p {
    font-size: 0.72rem;
    color: var(--white);
    line-height: 1.5;
    font-weight: 500;
}

/* ============== SECTION COMMON ============== */
.section {
    padding: 80px 20px;
}

.section-white { background: var(--white); }
.section-light { background: #f8f9fb; }

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title .line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.section-title .line::before,
.section-title .line::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.section-title .line span {
    color: var(--gold);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.section-title h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--navy);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============== FEATURE CARDS (3 columns) ============== */
.features-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.feature-card-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    color: var(--gold);
}

.feature-card h3 {
    font-size: 0.82rem;
    color: var(--navy);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.feature-card p {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============== AMENITIES CAROUSEL ============== */
.amenities-section {
    position: relative;
}

.amenity-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.amenity-slide {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.amenity-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amenity-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px 24px;
    background: linear-gradient(to top, rgba(10,26,48,0.85), transparent);
}

.amenity-slide-content h3 {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.amenity-slide-content h3 span {
    display: block;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
}

.amenity-slide-content .btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 20px;
    background: var(--navy);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel-nav:hover {
    background: var(--white);
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

/* ============== WHY CHOOSE (6 icons) ============== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.why-item {
    text-align: center;
    padding: 20px 12px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.why-item:hover {
    box-shadow: var(--shadow-lg);
}

.why-item .icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 10px;
    color: var(--gold);
}

.why-item p {
    font-size: 0.72rem;
    color: var(--navy);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* ============== APARTMENT CAROUSEL ============== */
.apartment-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

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

.apartment-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.apartment-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.apartment-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

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

.apartment-card-body {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.apartment-card-body h4 {
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 700;
    text-transform: uppercase;
}

.apartment-card-body .meta {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 2px;
}

.apartment-card-body .arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.apartment-card-body .arrow-btn:hover {
    background: var(--gold);
    color: var(--white);
}

/* ============== CONTACT FORM ============== */
.contact-section {
    background: #f8f9fb;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-feat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-feat .icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--gold);
}

.contact-feat h4 {
    font-size: 0.72rem;
    color: var(--navy);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.contact-feat p {
    font-size: 0.68rem;
    color: var(--text-light);
}

.quote-form-wrap {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.quote-form-wrap h3 {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.form-group .input-wrap {
    display: flex;
    align-items: center;
    background: #f8f9fb;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0 12px;
    transition: all 0.3s;
}

.form-group .input-wrap:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212,168,67,0.15);
}

.form-group .input-wrap .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-muted);
    margin-right: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    font-family: var(--font);
    font-size: 0.82rem;
    color: var(--navy);
    outline: none;
}

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

.form-group textarea {
    min-height: 40px;
    resize: vertical;
}

/* ============== FOOTER ============== */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.footer-brand p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    margin-top: 12px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all 0.3s;
}

.footer-social a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ============== RESPONSIVE ============== */
@media (min-width: 1025px) {
    .hero-right {
        display: block;
    }
}

@media (max-width: 1024px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }

    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 8px 0;
    }

    .main-nav.open a {
        padding: 12px 24px;
    }

    .main-nav.open a::after { display: none; }

    .hero-features-desktop {
        flex-direction: column;
    }

    .hero-feature-item {
        min-width: auto;
    }

    .features-3col {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .apartment-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-features {
        grid-template-columns: 1fr 1fr;
    }

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

    .header-center {
        display: none;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 48px 16px;
    }

    .header-inner {
        padding: 0 12px;
        height: 56px;
    }

    .phone-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .phone-btn small { display: none; }

    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

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

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-features-desktop {
        display: none;
    }

    .hero-features-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .hero-feature-item-mobile {
        display: flex;
        align-items: center;
        gap: 10px;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.12);
        padding: 10px 14px;
        border-radius: var(--radius);
    }

    .hero-feature-item-mobile .icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        color: var(--gold);
    }

    .hero-feature-item-mobile .text strong {
        display: block;
        font-size: 0.68rem;
        color: var(--white);
        font-weight: 700;
        text-transform: uppercase;
    }

    .hero-feature-item-mobile .text span {
        font-size: 0.62rem;
        color: rgba(255,255,255,0.75);
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.72rem;
    }

    .features-3col {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .why-item {
        padding: 16px 8px;
    }

    .contact-features {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .quote-form-wrap {
        padding: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .amenity-slide-content {
        padding: 24px 16px 16px;
    }

    .carousel-nav {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 641px) {
    .hero-features-mobile {
        display: none;
    }
}
