/* ===============================
   URBAN FOUNDATIONS DEVELOPMENT
   PREMIUM AGENCY WEBSITE CSS
   =============================== */

/* BRAND COLOURS */
:root {
    --navy: #0B1F3A;
    --teal: #1F7A8C;
    --slate: #6B7C85;
    --light: #F5F7FA;
    --white: #FFFFFF;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: var(--light);
    color: var(--slate);
    line-height: 1.6;
}

/* ===============================
   HEADER / NAVIGATION
   =============================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

header h1 {
    color: var(--white);
    font-size: 18px;
    letter-spacing: 1px;
}

nav a {
    color: var(--white);
    margin-left: 22px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

nav a:hover {
    color: var(--teal);
}

/* ===============================
   HERO SECTION
   =============================== */

.hero {
    height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    color: var(--white);

    background:
        linear-gradient(rgba(11,31,58,0.85), rgba(11,31,58,0.85)),
        url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=80');

    background-size: cover;
    background-position: center;
    padding: 20px;
}

.hero h2 {
    font-size: 52px;
    max-width: 900px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-top: 15px;
    max-width: 700px;
    color: #dfe7ea;
}

/* ===============================
   BUTTONS
   =============================== */

.btn {
    margin-top: 25px;
    padding: 14px 30px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn:hover {
    background: var(--navy);
    border: 1px solid var(--white);
    transform: translateY(-2px);
}

/* ===============================
   SECTIONS
   =============================== */

.section {
    padding: 90px 50px;
    max-width: 1200px;
    margin: auto;
}

.section h2 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 50px;
    color: var(--navy);
}

/* ===============================
   GRID SYSTEM
   =============================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
}

/* ===============================
   CARDS
   =============================== */

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-bottom: 4px solid var(--teal);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* ===============================
   STATS SECTION
   =============================== */

.stats {
    background: var(--navy);
    color: var(--white);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
    padding: 80px 30px;
}

.stats p {
    margin-top: 10px;
    color: #cfd8dc;
}

.counter {
    font-size: 44px;
    font-weight: bold;
    color: var(--teal);
}

/* ===============================
   REVEAL ANIMATION
   =============================== */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   MODAL (QUOTE FORM)
   =============================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    width: 420px;
    border-radius: 10px;
    position: relative;
    animation: pop 0.3s ease;
}

@keyframes pop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

/* ===============================
   FORM ELEMENTS
   =============================== */

input, textarea {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

textarea {
    resize: none;
}

/* ===============================
   TOAST NOTIFICATION
   =============================== */

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--white);
    padding: 14px 25px;
    border-radius: 6px;
    opacity: 0;
    transition: 0.4s ease;
    z-index: 3000;
}

.show-toast {
    opacity: 1;
}

/* ===============================
   WHATSAPP FLOAT BUTTON
   =============================== */

.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    padding: 15px 18px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.whatsapp:hover {
    transform: scale(1.05);
}

/* ===============================
   FOOTER
   =============================== */

footer {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 30px;
    margin-top: 60px;
    font-size: 14px;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    nav {
        margin-top: 10px;
    }

    .hero h2 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 60px 20px;
    }

    .modal-content {
        width: 90%;
    }

    /* ===============================
PROJECTS PAGE
=================================*/

.projects-hero{
    height:75vh;
    background:url("images/commercial building.jpg") center center/cover no-repeat;
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-overlay{
    background:rgba(0,0,0,.65);
    width:100%;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    color:white;
    text-align:center;
    padding:20px;
}

.hero-overlay h1{
    font-size:55px;
    margin-bottom:20px;
}

.hero-overlay p{
    max-width:700px;
    font-size:20px;
    margin-bottom:35px;
}

.btn{
    background:#009688;
    color:white;
    padding:15px 40px;
    text-decoration:none;
    border-radius:5px;
    transition:.3s;
}

.btn:hover{
    background:#003A63;
}

.stats{
    display:flex;
    justify-content:space-around;
    flex-wrap:wrap;
    padding:60px;
    background:#f4f4f4;
}

.stat{
    text-align:center;
}

.stat h2{
    font-size:45px;
    color:#003A63;
}

.section-title{
    text-align:center;
    margin:50px 0;
}

.filter-buttons{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-bottom:40px;
    flex-wrap:wrap;
}

.filter-buttons button{
    padding:12px 28px;
    border:none;
    background:#003A63;
    color:white;
    cursor:pointer;
    border-radius:5px;
}

.project-gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:30px;
}

.project-card{
    position:relative;
    overflow:hidden;
    border-radius:12px;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

.project-card img{
    width:100%;
    height:320px;
    object-fit:cover;
    transition:.5s;
}

.project-card:hover img{
    transform:scale(1.1);
}

.overlay{
    position:absolute;
    inset:0;
    background:rgba(0,58,99,.82);
    color:white;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    opacity:0;
    transition:.4s;
    text-align:center;
    padding:20px;
}

.project-card:hover .overlay{
    opacity:1;
}

.timeline{
    background:#f7f7f7;
    padding:80px 20px;
    margin-top:80px;
}

.timeline h2{
    text-align:center;
    margin-bottom:40px;
}

.timeline-item{
    max-width:900px;
    margin:20px auto;
    background:white;
    padding:25px;
    border-left:5px solid #009688;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.cta{
    padding:80px 20px;
    text-align:center;
    background:#003A63;
    color:white;
}

.cta p{
    max-width:700px;
    margin:20px auto 40px;
}

.active{
    color:#00c6a7;
}
}