/* -----------------------------------------------------------
   GLOBAL
----------------------------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    scroll-behavior: smooth;
}

/* -----------------------------------------------------------
   HEADER
----------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #526067;
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.site-header nav {
    margin-left: auto;
}
.logo {
    height: 110px;
    width: auto;
    object-fit: contain;
}

/* -----------------------------------------------------------
   NAVIGATION
----------------------------------------------------------- */
.header-nav {
    display: flex;
    gap: 25px;
    margin-right: 50px;
}

.header-nav a {
    color: white !important;
    text-decoration: none !important;
}

.header-nav a:hover {
    text-decoration: underline;
}

.header-nav a,
.dropbtn {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-weight: 500;
    letter-spacing: 0.4px;
    font-size: 1.05rem;
    color: white !important;
}

.header-nav a:hover,
.dropbtn:hover {
    text-decoration: none;
    color: #d4af37 !important;
}

/* -----------------------------------------------------------
   DROPDOWN
----------------------------------------------------------- */
.dropbtn {
    background-color: #526067;
}

.dropbtn::after {
    content: " ▼";
    font-size: 0.7rem;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #526067;
    min-width: 220px;
    border-radius: 6px;
    padding: 10px 0;
    top: 100%;
    left: 0;
    z-index: 2000;
}

.dropdown-content a {
    color: white;
    padding: 12px 18px;
    display: block;
    text-decoration: none;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.dropdown-content a:hover {
    background-color: #6f7c83;
}

.dropdown:hover .dropdown-content {
    display: block;
}
.dropbtn::after {
    content: " ▼";
    font-size: 0.8em;
    margin-left: 4px;
}
/* -----------------------------------------------------------
   HERO
----------------------------------------------------------- */
.hero {
    height: 100vh;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-text {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.hero-text h2,
.hero-text p {
    text-shadow: none !important;
}

.hero-main-line {
    font-size: 2.6rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    margin: 0 auto 5px auto;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 5px auto 0 auto;
}

/* -----------------------------------------------------------
   CONTENT SECTIONS
----------------------------------------------------------- */
.content {
    background: #f2f4f7;
    color: #333;
    padding: 60px 20px;
    text-align: center;
}

.content h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.content p {
    max-width: 800px;
    margin: 20px auto;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Remove side padding only for the About page */
.about-section.content {
    padding-left: 0;
    padding-right: 0;
}

/* -----------------------------------------------------------
   TESTIMONIALS
----------------------------------------------------------- */
.testimonials-section {
    padding: 80px 20px;
}

.testimonial-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #333;
    min-height: 330px;
    max-height: 330px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.testimonial-container.show {
    opacity: 1;
    transform: translateY(0);
}

.stars {
    font-size: 2rem;
    color: gold;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

#testimonial-text {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #1e2a44;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.arrow {
    font-size: 2.5rem;
    color: #1e2a44;
    cursor: pointer;
    pointer-events: auto;
    padding: 10px;
    transition: 0.3s;
    user-select: none;
}

.arrow:hover {
    color: #2f3b57;
    transform: scale(1.1);
}

.testimonial-dots {
    text-align: center;
    margin-top: 20px;
}

.testimonial-dots span {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.testimonial-dots .active {
    background-color: #1e2a44;
    transform: scale(1.2);
}

/* -----------------------------------------------------------
   PREMIUM SERVICES
----------------------------------------------------------- */
/* Change background behind the "Our Services" heading */
.services-heading-section {
    background: #e6eaee; /* or whichever colour you prefer */
    padding: 60px 20px;
}
.premium-services {
    background: #e6eaee;
    padding: 0 0 20px 0;
    margin-top: -20px;
}

.premium-service-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-service-row.reverse {
    flex-direction: row-reverse;
}

.premium-service-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.premium-service-image {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
}

.premium-service-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease, outline 0.3s ease;
    margin-bottom: -4px;
}

.premium-service-row:hover .premium-service-image img {
    transform: scale(1.05);
    outline: 3px solid black;
    outline-offset: -3px;
}

.premium-service-text {
    flex: 1;
    text-align: left;
}

.premium-service-text h3 {
    font-size: 2rem;
    color: #1e2a44;
    margin-bottom: 15px;
}

.premium-service-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #000;
}

.premium-service-link {
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    color: transparent;
    transition: color 0.3s ease;
    position: relative;
    z-index: 10;
}

.premium-service-row:hover .premium-service-link {
    color: #d4af37;
}

.premium-service-row a.premium-service-link {
    position: absolute;
    inset: 0;
    opacity: 0;
}

/* -----------------------------------------------------------
   CONTACT
----------------------------------------------------------- */
.contact-wrapper {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 30px;
}

.map-column {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
}

.map-column img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: 0.25s ease;
}

.map-column img:hover {
    border-color: #1e2a44;
    transform: translateY(-2px);
}

.map-column h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #1e2a44;
}

.contact-form {
    flex: 1;
    min-width: 350px;
    max-width: 450px;
    text-align: center;
}

.contact-form h2 {
    font-size: 2rem;
    color: #1e2a44;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 450px;
    padding: 12px;
    margin: 10px auto;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
    display: block;
}

.contact-form textarea {
    min-height: 160px;
}

.contact-form button {
    background: #1e2a44;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
}

.contact-form button:hover {
    background: #2f3b57;
}

/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */
.site-footer {
    background: #1e2a44;
    color: white;
    text-align: center;
    padding: 25px;
    line-height: 1.8;
}

.footer-contact {
    margin-bottom: 20px;
}

.footer-legal {
    font-size: 0.8rem;
    color: #ddd;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.6;
}

/* -----------------------------------------------------------
   FLOATING BUTTON
----------------------------------------------------------- */
.floating-consult {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #526067;
    color: white;
    padding: 14px 22px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: 0.25s ease;
    z-index: 2000;
}

.floating-consult:hover {
    background: #6f7c83;
    transform: translateY(-2px);
    color: #d4af37;
}

/* -----------------------------------------------------------
   ABOUT PAGE
----------------------------------------------------------- */
.about-section {
    background: #f2f4f7;
    color: #333;
    padding: 80px 20px;
}

.about-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 25px auto 0 auto;
    align-items: flex-start;
    flex-wrap: nowrap;
    transform: translateX(-80px);
}

.about-photo-column {
    flex: 0 0 45%;
    max-width: 45%;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    margin-top: 60px;
}

.about-text {
    flex: 0 0 67%;
    text-align: justify;
    line-height: 1.7;
    padding-top: 10px;
}

.about-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #526067;
    margin-bottom: 25px;
}

/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 800px) {
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .about-photo {
        flex: 0 0 auto;
        max-width: 70%;
        margin: 0 auto;
    }

    .about-text {
        flex: 0 0 auto;
        padding-top: 20px;
    }
}

/* -----------------------------------------------------------
   ABOUT PIXEL INTRO – FINAL WIDTH + NO SIDE BOXES
----------------------------------------------------------- */
.about-pixel-intro {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-pixel-intro p {
    max-width: 1200px;
    text-align: justify;
    margin: 20px auto;
}
/* Remove white side boxes on About Pixel section */
.content.about-pixel-intro {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Reduce spacing below About Pixel section */
.about-pixel-intro {
    padding-bottom: 0 !important;
}
/* Let the About Pixel section use full width, text included */
.about-pixel-intro {
    max-width: 100% !important;
    margin: 0 !important;
}

.about-pixel-intro p {
    max-width: 1200px;
    margin: 20px auto;
    text-align: justify;
}
/* Reduce gap between About Pixel and Darcy sections */
.about-pixel-intro {
    padding-bottom: 10px !important;
}

.about-section {
    padding-top: 40px !important;
}
/* Standard width for all service pages */
.service-page p,
.service-page ul,
.service-page h2,
.service-page h3 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}
/* Justify ALL text on service pages */
.service-page p,
.service-page h2,
.service-page h3,
.service-page li {
    text-align: justify !important;
}

/* Centre only the main hero heading */
.service-page h2 {
    text-align: center !important;
}
.content.contact-section h3 {
    font-size: 1.8rem !important;
    font-weight: bold;
    color: #1e2a44;
    text-align: center;
}
.thankyou-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.thankyou-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.thankyou-content h3 {
    margin-top: 0;
}

#close-popup {
    margin-top: 15px;
    padding: 10px 20px;
    background: #1e2a44;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.thankyou-popup,
.thankyou-popup h3,
.thankyou-popup p {
    color: #000 !important;
}
@media (max-width: 900px) {

    /* Allow hero heading to wrap */
    .hero-main-line {
        white-space: normal !important;
        font-size: 1.8rem; /* optional but recommended */
        line-height: 1.3;
        padding: 0 10px;
    }

    /* Fix background overflow on mobile */
    .hero {
        background-attachment: scroll !important;
        overflow-x: hidden;
    }

    /* Global safety net */
    html, body {
        overflow-x: hidden !important;
    }
}
@media (max-width: 900px) {

    /* Fix hero container */
    .hero {
        background-attachment: scroll !important;
        padding: 40px 15px !important;
        overflow-x: hidden !important;
        text-align: center;
    }

    /* Fix hero text width */
    .hero-text {
        max-width: 100% !important;
        padding: 0 10px;
    }

    /* Fix hero heading */
    .hero-main-line {
        white-space: normal !important;
        font-size: 1.7rem !important;
        line-height: 1.25 !important;
        margin: 0 auto 10px auto;
        display: block;
        word-break: break-word;
    }

    /* Fix hero paragraph */
    .hero-text p {
        font-size: 1rem !important;
        line-height: 1.45 !important;
        padding: 0 5px;
    }

    /* Global safety net */
    html, body {
        overflow-x: hidden !important;
    }
}
@media (max-width: 900px) {

    /* Add padding/border to About Pixel section */
    .about-pixel-intro {
        max-width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box;
    }

    /* Reset the left shift */
    .about-wrapper {
        transform: none !important;
        padding: 0 20px;
        box-sizing: border-box;
    }

    /* Fix photo size + centering */
    .about-photo {
        max-width: 90% !important;
        margin: 0 auto 20px auto !important;
        display: block;
    }

    /* Fix text alignment and prevent cutoff */
    .about-text {
        text-align: left !important;
        padding: 0 5px !important;
        width: 100% !important;
        box-sizing: border-box;
    }
}
@media (max-width: 900px) {

    /* Fix About Pixel section spacing */
    .about-pixel-intro {
        max-width: 100% !important;
        padding: 0 20px !important;
        margin: 0 !important;
        box-sizing: border-box;
        text-align: left !important;
    }

    /* Restore the heading visibility */
    .about-pixel-intro h2,
    .about-pixel-intro h3 {
        margin-top: 10px !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }

    /* Remove the white strip between sections */
    .about-section {
        padding-top: 10px !important;
    }

    /* Fix the photo size + centering */
    .about-photo {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto 20px auto !important;
        display: block;
    }

    /* Fix the wrapper shift */
    .about-wrapper {
        transform: none !important;
        padding: 0 20px !important;
        box-sizing: border-box;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }

    /* Fix Darcy text alignment */
    .about-text {
        text-align: left !important;
        padding: 0 5px !important;
        width: 100% !important;
        box-sizing: border-box;
    }
}
@media (max-width: 900px) {

    /* Fix About Pixel Wealth Management section */
    .about-pixel-intro {
        width: 100% !important;
        padding: 0 20px !important;
        margin: 0 !important;
        box-sizing: border-box;
        text-align: left !important;
    }

    /* Restore the heading */
    .about-pixel-intro h2,
    .about-pixel-intro h3 {
        display: block !important;
        margin: 0 0 15px 0 !important;
        padding: 0 !important;
        text-align: center !important;
        color: #333 !important;
    }

    /* Remove the white strip between sections */
    .about-section {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Fix the wrapper shift + spacing */
    .about-wrapper {
        transform: none !important;
        padding: 0 20px !important;
        margin: 0 !important;
        box-sizing: border-box;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* Fix the photo size + centering */
    .about-photo {
        width: 100% !important;
        max-width: 320px !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }

    /* Fix Darcy text alignment */
    .about-text {
        width: 100% !important;
        padding: 0 10px !important;
        margin: 0 !important;
        text-align: left !important;
        box-sizing: border-box;
    }

    /* Remove spacing between photo and "Darcy Johnstone" heading */
    .about-text h2,
    .about-text h3 {
        margin-top: 0 !important;
    }
}
@media (max-width: 900px) {

    /* FORCE About Pixel section to behave */
    .about-pixel-intro {
        width: 100% !important;
        padding: 0 20px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        text-align: left !important;
        background: none !important;
        border: none !important;
    }

    /* FORCE the heading to show */
    .about-pixel-intro h2,
    .about-pixel-intro h3 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 0 15px 0 !important;
        padding: 0 !important;
        text-align: center !important;
        color: #333 !important;
    }

    /* REMOVE the white line between sections */
    .about-section {
        padding-top: 0 !important;
        margin-top: 0 !important;
        border: none !important;
        background: none !important;
    }

    /* ADD spacing above Darcy's photo */
    .about-photo {
        width: 100% !important;
        max-width: 320px !important;
        height: auto !important;
        margin: 20px auto 10px auto !important; /* ← spacing above */
        display: block !important;
    }

    /* FIX wrapper alignment */
    .about-wrapper {
        transform: none !important;
        padding: 0 20px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    /* FIX Darcy text */
    .about-text {
        width: 100% !important;
        padding: 0 10px !important;
        margin: 0 !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }

    /* REMOVE spacing between photo and "Darcy Johnstone" heading */
    .about-text h2,
    .about-text h3 {
        margin-top: 0 !important;
    }
}
@media (max-width: 900px) {

    /* Override the .content class when used on About Pixel section */
    section.content.about-pixel-intro {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 140px !important; /* keep your original spacing */
        box-sizing: border-box !important;
    }

    /* Force the heading to appear properly */
    section.content.about-pixel-intro h2 {
        display: block !important;
        margin: 0 0 15px 0 !important;
        padding: 0 !important;
        text-align: center !important;
        color: #333 !important;
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }

    /* Fix the paragraph text */
    section.content.about-pixel-intro p {
        padding: 0 !important;
        margin-bottom: 15px !important;
        font-size: 1rem !important;
        line-height: 1.5 !important;
        text-align: left !important;
    }
}
@media (max-width: 900px) {

    /* UNIFY ALL SECTION HEADINGS */
    .about-pixel-intro h2,
    .about-section h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
        text-align: center !important;
        color: #333 !important;
    }

    /* UNIFY SUBHEADINGS (e.g., "Director | Financial Planner") */
    .about-section h3,
    .about-pixel-intro h3 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
        text-align: center !important;
        margin-bottom: 10px !important;
        color: #444 !important;
    }

    /* UNIFY BODY TEXT FOR BOTH SECTIONS */
    .about-pixel-intro p,
    .about-section p {
        font-size: 1rem !important;
        line-height: 1.55 !important;
        margin-bottom: 15px !important;
        text-align: left !important;
        padding: 0 !important;
    }
}
.footer-legal-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .footer-legal-links {
        line-height: 1.6;
        font-size: 0.9rem;
        padding: 0 10px;
    }
}
