/* ============================================
   PIPROXY — Estate Agents & Painting Contractors
   Bolton, Greater Manchester
   ============================================ */

:root {
    --black: #1a1a1a;
    --dark: #2d2d2d;
    --body: #555555;
    --light: #888888;
    --border: #e5e5e5;
    --bg-warm: #fafafa;
    --bg-gray: #f5f5f5;
    --white: #ffffff;
    --gold: #c5a059;
    --gold-dark: #a88840;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--body);
    line-height: 1.65;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--black);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.4rem;
}

/* ============================================
   NAVIGATION
   ============================================ */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.35s ease;
}

.main-nav.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border);
    padding: 0.8rem 0;
}

.main-nav.scrolled .nav-links a {
    color: var(--black);
}

.main-nav.scrolled .nav-logo img {
    filter: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 42px;
    width: auto;
    transition: filter 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-links a {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-cta {
    background: var(--gold);
    color: var(--white);
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
}

.main-nav.scrolled .menu-toggle {
    color: var(--black);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 999;
    flex-direction: column;
    padding: 1.5rem 5%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 1px solid var(--border);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--black);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s ease;
}

.mobile-menu a:hover {
    color: var(--gold);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.55) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 700px;
    padding: 0 5%;
    color: var(--white);
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: 3.8rem;
    color: var(--white);
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 540px;
    margin: 0 auto 2.2rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: 2px solid var(--gold);
    display: inline-block;
}

.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197,160,89,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   ABOUT
   ============================================ */

.about {
    padding: 6rem 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--body);
    font-size: 0.97rem;
}

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--light);
    margin-top: 0.3rem;
    letter-spacing: 0.3px;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
    padding: 6rem 0;
    background: var(--bg-warm);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.2rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: transparent;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.service-icon span {
    color: var(--white);
    font-size: 1rem;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--body);
    line-height: 1.6;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery {
    padding: 6rem 0;
    background: var(--white);
}

.gallery-section-title {
    margin-bottom: 2rem;
}

.gallery-section-title h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.gallery-section-title p {
    color: var(--light);
    font-size: 0.95rem;
}

.gallery-second {
    margin-top: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.2rem 1.2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: var(--white);
    transform: translateY(8px);
    opacity: 0;
    transition: all 0.35s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

.gallery-caption h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.gallery-caption p {
    font-size: 0.8rem;
    opacity: 0.8;
    color: var(--white);
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
    padding: 6rem 0;
    background: var(--bg-warm);
}

.contact .section-header {
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.contact-card {
    display: block;
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    color: inherit;
}

.contact-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: transparent;
}

.whatsapp-card {
    display: block;
    text-decoration: none;
}

.whatsapp-card .contact-icon-wrap {
    transition: background 0.3s ease;
}

.contact-card .contact-icon-wrap {
    width: 52px;
    height: 52px;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin: 0 auto 1.2rem;
}

.contact-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.4rem;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--body);
    line-height: 1.5;
}

.contact-card a {
    color: var(--gold);
    transition: color 0.2s ease;
}

.contact-card a:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--black);
    color: rgba(255,255,255,0.6);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding: 1.5rem 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--gold);
}

.footer-legal span {
    color: rgba(255,255,255,0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .about-stats {
        flex-direction: column;
        gap: 1.2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}