/* ══════════════════════════════════════════════════════════════
   campus_villa — Public Landing Page CSS
   Modern, Clean, Student Housing Aesthetic
   Fonts: Plus Jakarta Sans
   ══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background: var(--bg-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    color: #111827;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Navbar ─────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand h2 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--secondary);
}

.navbar.scrolled .navbar-brand h2 {
    color: var(--primary-dark);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

.navbar-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    transition: color 0.3s;
}

.navbar-links a:hover {
    color: var(--primary);
}

.btn-nav {
    padding: 0.6rem 1.5rem;
    border-radius: 99px;
    font-weight: 700;
}

.btn-nav-accent {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 4px 14px rgba(46, 125, 79, 0.25);
}

.btn-nav-accent:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ── Hero ────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 6rem;
    background: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-image: url('../images/house3.jpg');
    background-size: cover;
    background-position: center;
    border-bottom-left-radius: 40px;
    z-index: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.hero-content {
    width: 55%;
    padding-right: 4rem;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    background: rgba(46, 125, 79, 0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.hero-label svg {
    width: 18px;
    height: 18px;
}

.hero h1 {
    font-size: 4rem;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero h1 .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.hero-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero svg {
    width: 20px;
    height: 20px;
}

.btn-hero-accent {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px rgba(46, 125, 79, 0.3);
}

.btn-hero-accent:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(46, 125, 79, 0.4);
}

.btn-hero-white {
    background: white;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-hero-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ── Stats Bar ───────────────────────────────────── */
.stats-bar {
    padding: 4rem 0;
    background: white;
    position: relative;
    z-index: 3;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-item .stat-number span {
    color: var(--secondary);
}

.stat-item .stat-text {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ── Section Shared ──────────────────────────────── */
.section {
    padding: 7rem 0;
}

.section-alt {
    background: white;
}

.section-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-label {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.75rem;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ── Feature Cards ───────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.feature-icon.accent {
    background: var(--primary);
}

.feature-icon.primary {
    background: #1B5E3B;
}

.feature-icon.success {
    background: #10B981;
}

.feature-icon.purple {
    background: #8B5CF6;
}

.feature-icon.orange {
    background: var(--secondary);
}

.feature-icon.blue {
    background: #3B82F6;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* ── How It Works ────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-card {
    text-align: left;
    padding: 2.5rem;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.step-number {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(46, 125, 79, 0.3);
}

.step-card h4 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* ── Why Choose Us ───────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.why-item {
    text-align: left;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.why-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--secondary);
}

.why-item h4 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.why-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* ── CTA ─────────────────────────────────────────── */
.cta-section {
    background: var(--gradient);
    padding: 6rem 0;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 4rem 1.5rem;
}

.cta-section h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-cta svg {
    width: 22px;
    height: 22px;
}

.btn-cta-accent {
    background: var(--secondary);
    color: white;
    box-shadow: 0 10px 25px rgba(245, 166, 35, 0.3);
}

.btn-cta-accent:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(245, 166, 35, 0.4);
}

.btn-cta-white {
    background: white;
    color: var(--primary-dark);
}

.btn-cta-white:hover {
    transform: translateY(-4px);
}

/* ── Footer ──────────────────────────────────────── */
.footer {
    background: white;
    color: var(--text-light);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.footer-brand span {
    color: var(--secondary);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 320px;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(46, 125, 79, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 125, 79, 0.1);
}

.footer-socials a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(46, 125, 79, 0.2);
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    font-size: 0.95rem;
    color: var(--text-light);
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #9ca3af;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 1rem !important;
}

.contact-list a {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
}

.contact-list li:not(:last-child) a {
    white-space: nowrap;
}

.contact-list i {
    width: 20px;
    text-align: center;
    color: var(--primary);
    margin-top: 4px; /* Align icon with first line of text */
}

.contact-list span {
    flex: 1;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
    .hero::before {
        display: none;
    }

    .hero-content {
        width: 100%;
        padding-right: 0;
        text-align: center;
    }

    .hero-label {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.75rem;
    }

    .stats-bar .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-section {
        margin: 2rem 1rem;
        padding: 4rem 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        gap: 2rem;
    }

    .navbar-links.active {
        right: 0;
    }

    .navbar-links a {
        color: var(--text-main);
        font-size: 1.5rem;
        font-weight: 700;
    }

    .navbar-links a:hover {
        color: var(--primary);
    }
}

@media (max-width: 480px) {
    .stats-bar .container {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }

    .btn-hero,
    .btn-cta {
        width: 100%;
        justify-content: center;
    }
}

/* -- University Carousel -- */
.university-carousel {
    width: 100%;
    overflow: hidden;
    background: var(--white);
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scrollTrack 35s linear infinite;
}

.uni-pill {
    margin: 0 16px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(46, 125, 79, 0.08);
    padding: 12px 30px;
    border-radius: 50px;
    letter-spacing: 1px;
}

@keyframes scrollTrack {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}
