/* ===================================
   CSS RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* LUXURY PALETTE: Dark & Gold */
    --gold: hsl(46, 70%, 50%);
    /* #D9B310 */
    --gold-light: hsl(46, 80%, 70%);
    /* Lighter Gold/Champagne */
    --gold-dark: hsl(45, 80%, 40%);
    /* Deep Gold/Bronze */

    --bg-deep: hsl(0, 0%, 5%);
    /* #0D0D0D - Almost Black */
    --bg-card: hsl(0, 0%, 10%);
    /* #1A1A1A - Dark Gray */
    --bg-card-hover: hsl(0, 0%, 15%);
    /* #262626 */

    --text-main: hsl(0, 0%, 95%);
    /* Off-White */
    --text-muted: hsl(0, 0%, 70%);
    /* Light Gray */
    --text-dark: hsl(0, 0%, 5%);
    /* For light backgrounds if any */

    /* GRADIENTS */
    --grad-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    --grad-dark: linear-gradient(to bottom, var(--bg-deep), var(--bg-card));
    --grad-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));

    /* TYPOGRAPHY - POPPINS */
    --font-main: 'Poppins', sans-serif;

    /* SPACING & LAYOUT */
    --container-width: 1300px;
    --section-pad: 120px;
    --radius-sm: 4px;
    --radius-md: 12px;

    /* EFFECTS */
    --shadow-gold: 0 10px 40px -10px rgba(212, 175, 55, 0.3);
    --shadow-soft: 0 20px 60px -15px rgba(0, 0, 0, 0.5);
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--ease);
}

ul {
    list-style: none;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
}

.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    /* Remove padding if handled by container, but container has padding: 0 30px */
}

.logo {
    justify-self: start;
}

/* Ensure Logo Text aligns properly */
.logo-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align text to left */
    line-height: 1;
}

.logo-jm {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -1px;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-construction {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-muted);
}

.nav-links {
    justify-self: center;
    /* Center the nav */
}

.nav-actions {
    justify-self: end;
    /* Align actions to right */
    display: flex;
    /* Ensure internal items align */
    align-items: center;
    gap: 15px;
    /* Add gap for search icon + button */
}

.nav-links ul {
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-main);
    text-transform: uppercase;
    position: relative;
    opacity: 0.8;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-book {
    padding: 14px 32px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s var(--ease);
}

.btn-book:hover {
    background: var(--gold);
    color: var(--bg-deep);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    height: 100vh;
    min-height: 700px;
}

.splide__slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, #000 100%);
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 600;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content h1 span {
    color: var(--gold);
    display: block;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-hero {
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s var(--ease);
}

.btn-primary {
    background: var(--gold);
    color: var(--bg-deep);
    border: 1px solid var(--gold);
}

.btn-primary:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--bg-deep);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-section {
    padding: var(--section-pad) 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    z-index: 1;
}

.about-image {
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-soft);
    filter: grayscale(20%);
    transition: 0.5s var(--ease);
}

.about-image-wrapper:hover .about-image {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.about-badge {
    position: absolute;
    bottom: -40px;
    left: -40px;
    background: var(--bg-card);
    border: 1px solid var(--gold);
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.badge-number {
    display: block;
    font-size: 56px;
    font-weight: 700;
    color: var(--gold);
    line-height: 0.9;
}

.badge-text {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    color: var(--text-muted);
}

.section-subtitle {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-content h2 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.2;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 16px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    gap: 10px;
}

.btn-read-more::after {
    content: '→';
    transition: transform 0.3s;
}

.btn-read-more:hover::after {
    transform: translateX(5px);
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-section {
    padding: var(--section-pad) 0;
    background: var(--bg-card);
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 600;
    margin-top: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-deep);
    padding: 40px 30px;
    transition: 0.5s var(--ease);
    border-top: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-top: 1px solid var(--gold);
    box-shadow: var(--shadow-gold);
}

.service-card .service-image {
    display: none;
}

/* Check if user wants images or purely iconic layout. Luxury often cleaner with just icons or subtle bg. Let's stick to iconic for grid. */

.service-icon {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 30px;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--gold);
    stroke-width: 1.5;
}

.service-content h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-main);
}

.service-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===================================
   PROCESS SECTION
   =================================== */
.process-section {
    padding: var(--section-pad) 0;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.process-step {
    position: relative;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.5;
    position: absolute;
    top: -30px;
    right: 0;
}

.step-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-muted);
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    padding: 160px 0;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.btn-cta {
    display: inline-block;
    padding: 18px 50px;
    background: var(--gold);
    color: var(--bg-deep);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 30px;
    transition: 0.4s var(--ease);
}

.btn-cta:hover {
    background: var(--white);
    transform: scale(1.05);
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
    padding: var(--section-pad) 0;
    background: var(--bg-card);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info svg {
    stroke: var(--gold);
    margin-right: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-main);
}

.contact-item p {
    font-size: 15px;
    color: var(--text-muted);
}

.contact-form {
    background: var(--bg-deep);
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 15px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--gold);
    padding-left: 10px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.4s;
}

.btn-submit:hover {
    background: var(--gold);
    color: var(--bg-deep);
}

/* ===================================
   FOOTER
   =================================== */
footer {
    padding: 80px 0 30px;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 14px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand .logo-jm {
    font-size: 28px;
}

.footer-tagline {
    margin-top: 10px;
    color: var(--gold);
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-size: 12px;
}

.footer-column a {
    display: block;
    margin-bottom: 12px;
    transition: 0.3s;
}

.footer-column a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    opacity: 0.5;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    :root {
        --section-pad: 80px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .services-grid,
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: flex;
        /* Revert to flex for mobile space-between */
        justify-content: space-between;
    }

    .navbar .nav-links,
    .navbar .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        width: 30px;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--gold);
        margin-bottom: 6px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===================================
   GLASSHAVEN GALLERY STYLES
   =================================== */
.gallery-page header {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.gallery-page .hero {
    display: none;
}

/* Hide standard hero if present */

/* HERO SECTION */
.glasshaven-hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center bottom;
    animation: zoomIn 10s infinite alternate;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-content-glass {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 120px 0 60px;
}

.glass-header {
    display: flex;
    justify-content: flex-start;
}

.arrow-icon {
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.glasshaven-hero h1 {
    font-size: clamp(60px, 10vw, 150px);
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    line-height: 0.9;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 14px;
}

.glass-footer p {
    font-weight: 700;
    line-height: 1.4;
}

/* SERVICES GRID */
.glass-services {
    background: var(--bg-card);
    padding: 100px 0;
    color: var(--white);
}

.glass-services h2 {
    font-size: 42px;
    margin-bottom: 60px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
}

.services-grid-glass {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.glass-service-card {
    display: flex;
    flex-direction: column;
}

.glass-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    filter: brightness(0.8);
    transition: 0.3s;
}

.glass-service-card:hover .glass-img {
    filter: brightness(1);
}

.glass-num {
    font-size: 24px;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 10px;
    display: block;
    opacity: 0.8;
}

.glass-service-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--white);
}



/* BENTO GRID */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    margin-top: 40px;
}

.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    /* Slight radius for premium feel */
}

/* Spans for Bento Effect */
.bento-item.span-2-col {
    grid-column: span 2;
}

.bento-item.span-2-row {
    grid-row: span 2;
}

.bento-item.span-3-col {
    grid-column: span 3;
}

.bento-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* Reuse the existing zoomIn animation */
    animation: zoomIn 15s infinite alternate;
    transition: transform 0.5s ease;
}

/* Hover effect to slightly speed up or scale? 
   Actually user said "use the animation in the bento design images also", 
   which usually implies the background slow zoom. 
   We'll keep it simple as per request. 
*/

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 200px;
    }

    .bento-item.span-2-col {
        grid-column: span 2;
    }

    /* Reset row spans on mobile if needed, or keep them for variety */
}

/* HOUSE PLAN SECTION */
.house-plan-section {
    background: var(--bg-deep);
    padding: 100px 0;
    color: var(--white);
}

.plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.plan-details h2 {
    font-size: 48px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 10px;
}

.area-text {
    font-size: 18px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.specs-table {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    font-size: 15px;
}

.spec-label {
    color: var(--white);
    font-weight: 500;
}

.spec-value {
    color: var(--text-muted);
}

.plan-image-wrapper {
    position: relative;
}

.plan-image {
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    filter: grayscale(20%);
}

.plan-credit {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* RESPONSIVE GALLERY */
@media (max-width: 1024px) {
    .glasshaven-hero h1 {
        font-size: 80px;
    }

    .services-grid-glass {
        grid-template-columns: 1fr 1fr;
    }

    .plan-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 640px) {
    .glasshaven-hero h1 {
        font-size: 48px;
    }

    .glass-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .services-grid-glass {
        grid-template-columns: 1fr;
    }
}