/* Reset and Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    color: #333; 
}

.logo, h1, h2, h3 { 
    font-family: 'Montserrat', sans-serif; 
}

h2 {
    font-size: 2.2rem; 
    margin-bottom: 2rem; 
    text-align: center; 
    font-weight: 900; /* Use the heaviest weight for maximum impact */
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 900; /* Stronger logo */
    color: var(--primary); 
}

/* Variables */
:root {
    --primary: #2c3e50; /* Slate Blue */
    --accent: #e67e22;  /* Muted Orange */
    --light: #f4f4f4;
    --dark: #222;
    --white: #fff;
    --padding: 4rem 0;
}

/* Layout Utilities */
.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.section { padding: var(--padding); }
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--primary); color: var(--white); }
h2 { font-size: 2.2rem; margin-bottom: 2rem; text-align: center; }

/* Navigation */
.header { background: var(--white); box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; padding: 1rem 0; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }
.btn-nav { border: 2px solid var(--primary); padding: 0.5rem 1rem; border-radius: 4px; }
.btn-nav:hover { background: var(--primary); color: var(--white); }

/* Hero Section */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/Level-Ryde-11.JPG');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}
.hero h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.hero p { font-size: 1.2rem; margin-bottom: 1rem; }
.hero .price { font-size: 1.5rem; font-weight: bold; color: var(--accent); margin-bottom: 2rem; text-shadow: black 0 0 3px;;}
.btn-primary { background: var(--accent); color: var(--white); padding: 1rem 2rem; border-radius: 5px; font-weight: bold; transition: background 0.3s; }
.btn-primary:hover { background: #d35400; }

/* about */
#ryde > div > p {
	padding-bottom: 1rem;
}
#ryde > div > p > a {
	text-decoration:underline;
}


/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.feature-card { padding: 2rem; border: 1px solid #ddd; border-radius: 8px; text-align: center; }
.feature-card h3 { color: var(--primary); margin-bottom: 1rem; }

/* Specs Table */
.specs-table { max-width: 600px; margin: 0 auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 1rem; border-bottom: 1px solid #ddd; }
th { color: var(--primary); width: 40%; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.gallery-grid img { width: 100%; height: 250px; object-fit: cover; border-radius: 4px; transition: transform 0.3s; }
.gallery-grid img:hover { transform: scale(1.02); }
.note { text-align: center; margin-bottom: 1rem; font-style: italic; color: #666; font-size: 0.9rem; }
/* Target the links wrapping the images */
.gallery-grid a {
    display: block;
    /* Smooth transition for the hover animation */
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* The visual effect when hovering */
.gallery-grid a:hover {
    transform: scale(1.02); /* Expands the image slightly */
    opacity: 0.9;           /* Slight fade to indicate interaction */
        /* This changes the cursor to a magnifying glass with a plus sign */
    cursor: zoom-in; 
}

/* Map Section */
#map { 
	height: 400px; 
	width: 100%;
}

/* Contact Section */
.contact-card {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1); /* Slight transparency on dark bg */
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.method h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--accent); }
.method p { font-size: 1.3rem; font-weight: bold; }
.method a:hover { color: var(--accent); text-decoration: underline; }
.agent-note { margin-top: 2rem; font-size: 0.9rem; opacity: 0.8; }

/* Hamburger Icon Styling */
.hamburger {
    display: none; /* Hidden by default */
    cursor: pointer;
    padding: 10px;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary);
    transition: all 0.3s ease-in-out;
}

/* Back to Top Button Styling */
.top-btn {
    display: none; /* Initially hide the button */
    position: fixed; /* Keep it fixed on the screen */
    bottom: 30px; /* Distance from the bottom of the viewport */
    right: 30px; /* Distance from the right of the viewport */
    z-index: 99; /* Ensure it floats above other content */
    width: 50px; /* Explicit width */
    height: 50px; /* Explicit height, must match width */
        /* Centering the arrow perfectly */
    justify-content: center;
    align-items: center;
	border: none;
    outline: none;
    background-color: var(--accent); /* Uses your muted orange accent colour */
    color: var(--white);
    cursor: pointer;
    border-radius: 50%; /* Makes it a circle */
    font-size: 1.2rem;
    line-height: 1; /* Centers the arrow */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, background-color 0.3s;
}

.top-btn:hover {
    background-color: #d35400; /* Darker accent on hover */
}

/* Class to make the button visible */
.top-btn.show {
    display: flex;
    opacity: 0.7;
}

.smallprint {
font-size: 9px;
color: --light;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    /* .nav-links { display: none; }  */
    .hero h1 { font-size: 2rem; }
    .hero { height: 60vh; }
    .contact-methods { flex-direction: column; gap: 1.5rem; }

.hamburger {
        display: block; 
    }
    
    /* SET the default (CLOSED) state for the menu */
    .nav-links {
        /* Position menu off-screen initially */
        position: absolute;
        top: 100%; /* Below the header */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        flex-direction: column; /* Stack links vertically */
        align-items: center;
        padding: 10px 0;
        gap: 0;
        /* Default state is hidden */
        transform: translateY(-200%); /* Move far up */
        transition: transform 0.4s ease-in-out;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--light);
    }

    /* DEFINE the OPEN state class */
    .nav-links.active {
        transform: translateY(0); /* Slide into view */
    }
}






