/* =========================
   DESIGN VARIABLES
========================= */

:root{
    /* COLORS */
    --PDGreen: #525b58;
    --background: rgb(233,233,233);

    --text-dark: #0f172a;
    --text-light: #64748b;

    --card-bg: #ffffff;
    --border: #e2e8f0;

    /* SPACING */
    --section-gap: 80px;
}

/* =========================
   GLOBAL RESET
========================= */

*{
    box-sizing:border-box;
}

html, body{
    margin:0;
    padding:0;
    overflow-x:hidden;
}

/* =========================
   BASE STYLES
========================= */

body{
    font-family:'Inter',sans-serif;
    background: var(--background);
    color: var(--text-dark);
}

/* =========================
   GLOBAL SECTION SPACING SYSTEM
========================= */

section{
    padding: var(--section-gap) 0;
    position: relative;
}

/* Prevents internal element margins from leaking out and disrupting section flow */
section::before,
section::after {
    content: "";
    display: table;
}

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

.nav{
    text-align:right;
    padding:20px;
    background:#ffffff;
    border-bottom:1px solid var(--border);
}

.nav a{
    margin:0 12px;
    text-decoration:none;
    color: var(--PDGreen);
    font-weight:600;
}

.nav a:hover{
    text-decoration:underline;
}

/* =========================
   PAGE TITLE
========================= */

.page-title{
    font-size:48px;
    margin:20px 0;
    color: var(--PDGreen);
    padding-left: 40px;
}

/* =========================
   CONTAINER
========================= */

.container{
    max-width:1200px;
    margin:auto;
    padding: 0 30px; /* FIXED: Vertical padding removed to prevent double-stacking with sections */
}

/* =========================
   ABOUT SECTION
========================= */

.about{
    display:flex;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
}

.logo-container{
    flex-shrink:0;
}

.logo-container img{
    width:400px;
    max-width:100%;
    height:auto;
}

.about-text{
    flex:1;
}

.about-text h1{
    font-size:48px;
    margin-bottom:25px;
    color: var(--text-dark);
}

/* TAGLINE */
.tagline{
    color: var(--PDGreen);
    font-size:30px;
    font-style:italic;
    white-space:nowrap;
}

.about-text p{
    font-size:20px;
    line-height:1.8;
    color: var(--text-light);
}

.about-text a{
    color: var(--PDGreen);
    text-decoration:none;
    font-weight:600;
}

.about-text a:hover{
    text-decoration:underline;
}

/* =========================
   GALLERY
========================= */

.gallery{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:20px;
}

.gallery-title{
    text-align:center;
    font-size:40px;
    margin-bottom:40px;
    color: var(--text-dark);
}

.gallery img{
    width:100%;
    aspect-ratio: 4 / 3;
    object-fit:cover;
    border-radius:12px;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.gallery img:hover{
    transform: scale(1.03);
}

/* =========================
   SERVICES
========================= */

.services-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:20px;
}

.services-title{
    text-align:center;
    font-size:40px;
    margin-bottom:40px;
    color: var(--text-dark);
}

.service-card{
    background: var(--card-bg);
    padding:20px;
    border-radius:12px;
    box-shadow:0 6px 18px rgba(0,0,0,0.06);
    transition:transform 0.2s ease;
}

.service-card:hover{
    transform:translateY(-4px);
}

.service-card h3{
    font-size:16px;
    margin-bottom:8px;
    color: var(--text-dark);
}

.service-card p{
    font-size:14px;
    color: var(--text-light);
    line-height:1.4;
}

/* =========================
   CONTACT
========================= */

.contact{
    text-align:center;
    border-top:1px solid var(--border);
    /* FIXED: padding-top removed because the global section rule handles it */
}

.contact h2{
    color: var(--text-dark);
    font-size:40px;
}

.contact p{
    color: var(--PDGreen);
    font-size:20px;
}

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

.footer-banner{
    width:100%;
    margin:0;
    padding:0;
}

.footer-banner img{
    display:block;
    width:100%;
    height:auto;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px){

    .page-title{
        font-size:34px;
    }

    .about{
        flex-direction:column;
        text-align:center;
    }

    .about-text h1{
        font-size:34px;
    }

    .tagline{
        font-size:28px;
        white-space:normal;
    }

    .about-text p{
        font-size:18px;
    }

    .logo-container img{
        width:180px;
    }

    .gallery{
        grid-template-columns:repeat(2, 1fr);
    }

    .services-grid{
        grid-template-columns:repeat(2, 1fr);
    }

    .services-title{
        font-size:28px;
    }
}
