/* ============================
   JOYVONNED PTY LTD - STYLES
   Template-Inspired Redesign
   ============================ */

/* --- Variables --- */
:root {
    --navy: #1a2e5a;
    --blue: #1a7abf;
    --light-blue: #2196f3;
    --white: #ffffff;
    --off-white: #f5f7fa;
    --dark-bg: #1e1e1e;
    --text-dark: #222222;
    --text-mid: #555555;
    --text-light: #bbbbbb;
    --transition: all 0.3s ease;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --max-width: 1100px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* --- Utility --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-pad {
    padding: 72px 0;
}

.section-pad-sm {
    padding: 48px 0;
}

.text-center {
    text-align: center;
}

.text-blue {
    color: var(--blue);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-blue {
    background: var(--blue);
    color: var(--white);
}

.btn-blue:hover {
    background: var(--navy);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--navy);
}

.section-divider-blue {
    width: 40px;
    height: 3px;
    background: var(--blue);
    margin: 10px auto;
}

.section-divider-blue.left {
    margin-left: 0;
}

/* =====================
   HEADER / NAVIGATION
   ===================== */
header {
    background: var(--white);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 24px;
}

.logo a {
    display: block;
}

.logo img {
    height: 55px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links li a {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--blue);
}

.nav-cta {
    background: var(--blue);
    color: var(--white) !important;
    padding: 10px 22px;
    font-size: 0.875rem !important;
}

.nav-cta:hover {
    background: var(--navy) !important;
    color: var(--white) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
}

/* =====================
   HERO SECTION
   ===================== */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('assets/hero.png') center center / cover no-repeat;
    opacity: 0.35;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 32px;
    max-width: 480px;
}

/* =====================
   ABOUT SECTION
   ===================== */
.about-section {
    padding: 72px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-wrap {
    position: relative;
}

.about-img-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.about-text h2 {
    font-size: 2.4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-mid);
    margin-bottom: 14px;
}

/* Vertical sidebar text (like template) */
.sidebar-text-left {
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    white-space: nowrap;
}

/* =====================
   SERVICES (CARDS) SECTION
   ===================== */
.services-section {
    padding: 0;
    background: var(--dark-bg);
}

.services-header {
    position: relative;
    padding: 48px 0 40px;
    text-align: center;
    overflow: hidden;
    background: var(--dark-bg);
}

.services-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/deep_cleaning.png') center / cover no-repeat;
    opacity: 0.12;
}

.services-header h2,
.services-header p {
    position: relative;
    color: var(--white);
}

.services-header h2 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.services-header p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 12px auto 0;
}

.services-cards-bg {
    background: var(--white);
    padding: 0 0 16px;
}

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

.service-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--blue);
    color: var(--white);
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover .service-card-title {
    background: var(--navy);
}

.service-body {
    padding: 20px 20px 24px;
    background: var(--white);
    border: 1px solid #eee;
    border-top: none;
}

.service-body p {
    color: var(--text-mid);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.service-body a {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-body a:hover {
    color: var(--blue);
}

.services-learn-more-wrap {
    text-align: center;
    padding: 20px 0 48px;
    background: var(--white);
}

/* =====================
   SERVICES DARK BANNER
   ===================== */
.services-banner {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    text-align: center;
    background: var(--dark-bg);
}

.services-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/hero.png') center / cover no-repeat;
    opacity: 0.08;
}

.services-banner h2,
.services-banner p {
    position: relative;
    color: var(--white);
}

.services-banner h2 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.services-banner p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 580px;
    margin: 12px auto 24px;
}

/* =====================
   CONTACT SECTION
   ===================== */
.contact-section {
    position: relative;
    background: url('assets/general_cleaning.png') center / cover no-repeat;
    padding: 64px 0 0;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 30, 60, 0.82);
}

.contact-header {
    position: relative;
    text-align: center;
    color: var(--white);
    margin-bottom: 48px;
}

.contact-header h2 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact-info-panel {
    background: var(--white);
    padding: 48px 40px 56px;
}

.contact-info-panel h3 {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info-panel h3::before {
    content: '—';
    color: var(--blue);
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--text-mid);
    font-size: 0.95rem;
}

.contact-detail-item i {
    color: var(--blue);
    margin-top: 4px;
    min-width: 16px;
}

.contact-location {
    margin-top: 32px;
}

.contact-map-panel {
    background: var(--off-white);
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 380px;
    overflow: hidden;
}

.map-placeholder-visual {
    flex: 1;
    background: #d4e3f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    flex-direction: column;
    gap: 16px;
    color: var(--navy);
    text-align: center;
}

.map-placeholder-visual i {
    font-size: 3rem;
    color: var(--blue);
}

.map-placeholder-visual h4 {
    font-size: 1rem;
    font-weight: 700;
}

.map-placeholder-visual p {
    font-size: 0.85rem;
    color: var(--text-mid);
}

/* Sidebar text right*/
.sidebar-text-right {
    writing-mode: vertical-rl;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    white-space: nowrap;
    padding: 16px 8px;
    background: var(--off-white);
    border-left: 1px solid #dce3ee;
}

/* =====================
   FOOTER
   ===================== */
footer {
    background: var(--navy);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.footer-brand {
    background: rgba(0, 0, 0, 0.2);
    padding: 40px 40px 40px 40px;
}

.footer-brand img {
    height: 55px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
}

.footer-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: var(--blue);
    min-height: 70px;
    gap: 24px;
}

.footer-cta-bar span {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-cta-bar a {
    color: var(--white);
    font-size: 1.5rem;
}

.footer-cta-bar .footer-cta-link {
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 8px 22px;
    font-size: 0.8rem !important;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-cta-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.footer-phone {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-phone i {
    font-size: 1rem;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: rgba(255, 255, 255, 0.6);
}

.footer-main-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.15);
}

.footer-main-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-main-links a:hover {
    color: var(--white);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
}

/* ============================
   RESPONSIVE / MOBILE
   ============================ */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-cta-bar {
        flex-wrap: wrap;
        padding: 20px;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 83px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px 24px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        gap: 16px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-panel {
        padding: 32px 24px;
    }

    .footer-main-links {
        padding: 16px 24px;
    }

    .footer-brand {
        padding: 32px 24px;
    }

    .sidebar-text-left {
        display: none;
    }
}

@media (max-width: 480px) {
    .about-img-wrap img {
        height: 280px;
    }
}