/* ==========================================================================
   Ruben Onsu Properti - Premium Real Estate
   style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Reset & Box Sizing
   -------------------------------------------------------------------------- */
   *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Remove default list styles */
ol, ul {
    list-style: none;
}

/* Images and media elements behave as blocks and are responsive */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* Remove built-in form typography styles */
input, button, textarea, select {
    font: inherit;
    outline: none;
    border: none;
}

/* Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   Global Variables
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --primary-color: #BFA071;         /* Subtle Gold */
    --secondary-color: #222222;       /* Dark Gray/Black */
    --background-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;

    /* Typography */
    --font-main: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    
    /* Animation & Transitions */
    --transition-speed: 0.3s;

    /* Anchor scroll offset (for sticky header) */
    --anchor-offset: 10px;
}

/* --------------------------------------------------------------------------
   Global Typography & Base Styles
   -------------------------------------------------------------------------- */
html {
    /* Ensure typography scales correctly across devices */
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--anchor-offset);
}

/* Prevent anchored sections from being hidden under sticky header */
[id] {
    scroll-margin-top: var(--anchor-offset);
}

@media (max-width: 991.98px) {
    :root {
        --anchor-offset: 10px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --anchor-offset: 10px;
    }
}

body {
    font-family: var(--font-main);
    color: var(--text-color-dark);
    background-color: var(--background-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

/* Links Base */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: rgb(255, 174, 0);
}

/* Paragraph spacing */
p {
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Layout Structure
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive adjustment for container padding */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
    background-color: black;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo a {
    display: flex;
    flex-direction: column;
}

.logo img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 0;
    letter-spacing: 2px;
}

.logo span {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-main);
    font-weight: 500;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav a {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

.main-nav a:hover, .main-nav a:focus {
    color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 4px; /* subtle border-radius */
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #a8885c; /* darker shade of primary-color */
    color: var(--text-color-light);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
#hero {
    padding: 3rem 0;
    background-color: var(--background-color);
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center elements horizontally */
    text-align: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-family: var(--font-main);
    color: var(--text-color-dark);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-image {
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* covers its container */
    border-radius: 8px;
    min-height: 300px; /* maintains a minimum aspect ratio */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Desktop layout (50/50 split) */
@media (min-width: 992px) {
    #hero {
        padding: 5rem 0;
        min-height: calc(100vh - 80px); /* Fill screen minus header */
        display: flex;
        align-items: center;
    }

    .hero-container {
        flex-direction: row;
        align-items: stretch;
        gap: 4rem;
    }

    .hero-content {
        flex: 1;
        align-items: center;
        text-align: center;
    }

    .hero-image {
        flex: 1;
        display: flex;
    }
}

/* --------------------------------------------------------------------------
   Trust / Services Section (#mengapa-kami)
   -------------------------------------------------------------------------- */
#tentang-kami {
    padding: 5rem 0;
    background-color: #FAFAFA; /* Subtle light background to contrast */
}

.mengapa-kami-container h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3.5rem;
    position: relative;
}

/* Subtle decorative line under h2 */
.mengapa-kami-container h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1.5rem auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.service-item {
    background-color: var(--background-color);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid #f0f0f0;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.service-item i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(191, 160, 113, 0.1); /* Subtle primary tint backing */
    font-style: normal;
}

.service-item h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-item p {
    font-family: var(--font-main);
    color: var(--text-color-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Desktop layout (3 columns) */
@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* --------------------------------------------------------------------------
   Property Showcase Section (#properti-terbaru)
   -------------------------------------------------------------------------- */
#properti-terbaru {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.properti-container h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3.5rem;
    color: var(--secondary-color);
    position: relative;
}

.properti-container h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1.5rem auto 0;
}

/* NEXT DEVELOPER: Duplicate .property-card to add listings */
.property-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 2rem;
}

.property-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #EAEAEA;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.property-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.property-details {
    padding: 1.5rem;
}

.property-details h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.property-location {
    font-family: var(--font-main);
    color: var(--text-color-dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.property-specs {
    font-family: var(--font-main);
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.property-card .btn-primary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 4px;
    text-align: center;
    width: 100%;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.property-card .btn-primary:hover, .property-card .btn-primary:focus {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

/* Tablet layout (2 columns) */
@media (min-width: 768px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop layout (4 columns) */
@media (min-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* Center 3 cards on desktop for homepage section */
@media (min-width: 1024px) {
    #properti-terbaru .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Contact Section (#kontak)
   -------------------------------------------------------------------------- */
#kontak {
    padding: 5rem 0;
    background-color: #F8F8F8; /* Subtle background color */
}

.contact-container h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3.5rem;
    color: var(--secondary-color);
    position: relative;
}

.contact-container h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1.5rem auto 0;
}

.contact-layout {
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    overflow: hidden;
}

.contact-info {
    padding: 3rem 2rem;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.contact-info h3:first-child {
    margin-top: 0;
}

.contact-info p {
    font-family: var(--font-main);
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-form {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-color-dark);
    background-color: #FAFAFA;
    border: 1px solid #EAEAEA;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: #FFFFFF;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(191, 160, 113, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    align-self: flex-start;
    width: auto;
}

/* Tablet & Desktop layout (2 columns) */
@media (min-width: 992px) {
    .contact-layout {
        flex-direction: row;
    }

    .contact-info {
        flex: 1;
        padding: 4rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .contact-form {
        flex: 1.5;
        padding: 4rem;
    }
}

/* ==========================================================================
   --- FOOTER SECTION ---
   ========================================================================== */
footer.footer {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    text-align: center;
}

.footer-container {
    display: inline-block;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo-copyright {
    flex: 1 1 320px;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-heading);
    color: var(--text-color-light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.footer-copyright {
    color: var(--text-color-light);
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-social {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.footer-social .social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--text-color-light);
    transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.footer-social .social-icon i {
    font-style: normal; /* keeps the icon element consistent */
    font-size: 1rem;
    color: inherit;
    line-height: 1;
    text-align: center;
}

.footer-social .social-icon:hover,
.footer-social .social-icon:focus {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ==========================================================================
   --- Alfan Alfa Residence 2 Page Styles ---
   ========================================================================== */
#alfan-alfa-hero {
    padding: 4rem 0;
    background-color: #FAFAFA;
}

.alfan-hero {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.alfan-hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.alfan-highlight {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    background-color: rgba(191, 160, 113, 0.15);
    border: 1px solid rgba(191, 160, 113, 0.45);
    color: var(--secondary-color);
    font-size: 1.05rem;
    line-height: 1.4;
}

.alfan-subtitle {
    font-family: var(--font-main);
    color: var(--text-color-dark);
    max-width: 680px;
    margin: 0 auto;
}

.alfan-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.alfan-section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
}

.alfan-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1.2rem auto 0;
}


#alfan-alfa-properties {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.properties {
    background: var(--primary-black);
    min-height: 100vh;
}

.properties-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.properties-card {
    aspect-ratio: 3/4;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.properties-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--dark-navy), var(--dark-navy), var(--gold));
    border-radius: 28px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.properties-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
}

.properties-card:hover::before {
    opacity: 1;
}

.properties-img {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.properties-img::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.properties-card:hover .properties-img::after {
    opacity: 1;
}

#alfan-alfa-denah {
    padding: 5rem 0;
}

#alfan-alfa-units {
    padding: 5rem 0;
    background-color: #FAFAFA;
}

.unit-line {
    font-family: var(--font-main);
    color: var(--text-color-dark);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.unit-kpr {
    color: var(--primary-color);
    font-weight: 700;
}

#alfan-alfa-offers {
    padding: 5rem 0;
    background-color: var(--background-color);
}

#alfan-alfa-bonus {
    padding: 5rem 0;
    background-color: #FAFAFA;
}

.alfan-bullet-list,
.alfan-number-list {
    margin: 2rem auto 0;
    max-width: 900px;
}

.alfan-bullet-list li {
    list-style: none;
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.85rem;
    font-family: var(--font-main);
    color: var(--text-color-dark);
}

.alfan-bullet-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.alfan-number-list {
    counter-reset: bonus;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 2rem;
    row-gap: 0.75rem;
}

.alfan-number-list li {
    list-style: none;
    position: relative;
    padding-left: 2.3rem;
    margin-bottom: 0;
    font-family: var(--font-main);
    color: var(--text-color-dark);
}

.alfan-number-list li::before {
    content: '\25CF';
    
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.alfan-note {
    margin: 1.8rem auto 0;
    max-width: 900px;
    font-family: var(--font-main);
    color: var(--text-color-dark);
    opacity: 0.9;
    text-align: center;
}

.alfan-cta-bottom {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

@media (min-width: 992px) {
    .alfan-hero {
        flex-direction: row;
        align-items: stretch;
    }

    .alfan-hero-content {
        flex: 1;
        align-items: center;
    }

    .alfan-hero-image {
        flex: 1;
        display: flex;
    }

    .alfan-hero-image img {
        width: 100%;
        min-height: 360px;
        object-fit: cover;
    }

    /* Make "21 Bonus Eksklusif" shorter vertically */
    .alfan-number-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ==========================================================================
   --- RESPONSIVE BREAKPOINTS ---
   Tablet: <992px
   Mobile: <768px
   ========================================================================== */
/* --- TABLET (<992px) --- */
@media (max-width: 991.98px) {
    /* Header: stack nav for narrower layouts */
    .header-container {
        /*flex-direction: column;*/
        align-items: center;
        text-align: center;
    }

    /* Grids: keep content readable (2 columns on tablet) */
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer: stack elements */
    .footer-container {
        flex-direction: column;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    /* New collage title styles - overlaid on images */
    .property-title {
        position: absolute;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
        padding: 1rem;
        border-radius: 12px;
        font-size: 1.3rem;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        z-index: 3;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.4s ease;
        color: var(--gold);
        margin-bottom: 0.5rem;
    }

    .property-card:hover .property-title {
        transform: translateY(0);
        opacity: 1;
    }

    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

}






/* --- MOBILE (<768px) --- */
@media (max-width: 767.98px) {
    /* Header nav: vertical links */
    .main-nav ul {
        /* flex-direction: column;
        align-items: center;
        gap: 0rem;*/
        display: none;
    }

    /* Grids: single column for small screens */
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Typography: scale down headings */
    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    footer {
        padding: 1rem 0;
    }

    .footer-container {
        flex-direction: column;
        justify-content: center;
    }

}
