/* Main container - add top spacing to account for header */
.home-page {
    padding-top: 80px;
}

/* Slideshow container */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: 100vh;
}
.about-us{
    height: auto;
}
.about-content{
    padding-top: 90px;
}
.franchise{
    padding-top: 80px;
}

/* Slides wrapper */
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    touch-action: pan-y pinch-zoom;
    height: 100%;
}

/* Individual slide */
.slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.image-slides {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Slide text overlay - static, stays in place */
.slide-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 800px;
    width: 100%;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 10;
    padding: 20px;
    pointer-events: auto;
   
}

.slide-text h1 {
    font-size: 5rem;
    width: 700px;
    margin-bottom: 20px;
    font-weight: bold;
  
}

.slide-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.6;
    max-width: 1000px;
}

.slide-text strong {
    display: block;
    font-size: 1.2rem;
    margin: 20px 0;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    transition: background-color 0.3s;
    z-index: 10;
    border-radius: 4px;
    display: none; /* Hidden by default */
}

.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Show arrows only on screens 748px and above */
@media (min-width: 748px) {
    .nav-button {
        display: block;
    }
}

/* Dots/Indicators */
.dots-container {
    text-align: center;
    padding: 20px;
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 5;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* About Us Section */
.about-us {
    background-color: var(--invictus-theme);
    margin-top: 0;
    padding: 60px 20px;
}

.about-us .container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 0 0 45%;
}

.home-about {
    width: 80%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.about-text {
    flex: 1;
}

.about-text h1 {
    font-size: 5rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--black);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 30px, 0px;
    color: var(--black);
}

/* Mobile - screens below 749px */
@media (max-width: 748px) {
    .home-page {
        padding-top: 30px;
        max-height: 100%;
    }

    .slideshow-container {
        height: 680px;
    }
    .slide {
    position: relative;
    min-width: 10%;
    height: 100%;
    flex-shrink: 0;
    }

    .slide-text {
        left: 5%;
        right: 5%;
        max-width: 90%;
        padding: 15px;
    }

    .slide-text h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .slide-text p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .slide-text strong {
        font-size: 1rem;
        margin: 15px 0;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .main-button,
    .secondary-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
    }

    /* About section - stack on mobile */
    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-image {
        flex: 0 0 auto;
        width: 70%;
    }

    .about-text h1 {
        font-size: 2rem;
    }

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

/* Tablet - screens between 749px and 1024px */
@media (min-width: 749px) and (max-width: 1024px) {
    .home-page {
        padding-top: 70px;
    }

    .slideshow-container {
        height: 600px;
    }

    .slide-text {
        max-width: 500px;
    }

    .slide-text h1 {
        font-size: 2.5rem;
    }

    .slide-text p {
        font-size: 1rem;
    }
    .about-content {
        gap: 30px;
    }

    .about-image {
        flex: 0 0 40%;
    }
}

/* Large screens */
@media (min-width: 1025px) {
    .slide-text {
        left: 8%;
        max-width: 650px;
    }
}


.franchise {
    max-width: 1800px;
    margin: 0 auto;
    padding: 60px 20px;
    background: var(--white);
    margin-bottom: 5rem;
}

.franchise > .container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 60px;
}

.franchise > .container h2 {
    text-align: center;
}

#franchise-header {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
    color: #1a1a1a;
    text-transform: uppercase;
}

.franchise > .container > p {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    max-width: 900px;
    margin: 0 auto 20px;
}

.franchise-list {
    max-width: 1200px;
    margin: 0 auto;
}

.franchise-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0;
}

.franchises {
    position: relative;
    height: 400px;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: block;
}

.franchises:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.franchises img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.franchise-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    padding: 40px 30px 30px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    justify-content: flex-end;
}

.franchise-overlay h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: capitalize;
    letter-spacing: 1px;
}

.franchise-overlay p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.95;
    max-width: 280px;
}

.get-started-btn {
    background: white;
    color: #1a1a1a;
    padding: 12px 35px;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.get-started-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .franchise-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    #franchise-header {
        font-size: 1.8rem;
    }

    .franchise > .container > p {
        font-size: 1rem;
    }

    .franchise-container {
        grid-template-columns: 1fr;
    }

    .franchises {
        height: 350px;
    }

    .franchise-overlay h3 {
        font-size: 1.5rem;
    }
}  

.franchise-count {
    background: #f5f5f5;
    padding: 80px 20px;
    overflow: hidden;
}

.count-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}

.count-container > span:not(:has(img)) {
    display: block;
    margin-bottom: 60px;
}

.count-container > span:last-of-type:not(:has(img)) {
    margin-bottom: 0;
}

.count-container h1 {
    font-size: 5rem;
    font-weight: 500;
    color: var(--black);
    line-height: 1;
    margin-bottom: 10px;
}

.count-container p strong {
    line-height: 1.4;
    font-weight: 400;
    font-size: 4rem;
    color: var(--invictus-theme);
}

.ph-map {
    width: 100%;
    max-width: 500px;
    height: auto;
    justify-self: end;
    grid-row: 1 / 4;
    grid-column: 2;
}

/* Arrange the text items in the left column */
.count-container > span:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.count-container > span:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.count-container > span:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
}

@media (max-width: 968px) {
    .count-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .ph-map {
        grid-row: auto;
        grid-column: 1;
        justify-self: center;
        max-width: 400px;
        order: 4;
    }

    .count-container > span:nth-child(1),
    .count-container > span:nth-child(2),
    .count-container > span:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
    }

    .count-container h1 {
        font-size: 4rem;
    }

    .count-container p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .franchise-count {
        padding: 60px 20px;
    }

    .count-container h1 {
        font-size: 3rem;
    }

    .count-container p {
        font-size: 1rem;
    }

    .count-container > span:not(:has(img)) {
        margin-bottom: 40px;
    }

    .ph-map {
        max-width: 300px;
    }
}

.branch-link a {
    text-decoration: none;
    border: solid 2px var(--invictus-theme);
    color: var(--invictus-theme);
    font-weight: 600;
    font-size: clamp(16px, 1.5vw, 20px);
    padding: 15px 60px;
    transition: all 0.3s ease;
    background: transparent;
}

.branch-link a:hover {
    background: var(--black);
    color: var(--invictus-theme);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .branch-link a {
        padding: 12px 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .branch-link a {
        padding: 10px 30px;
        font-size: 14px;
        width: 80%;
    }
}
.contact {
    background: #d4af37;
    padding: 80px 20px;
    text-align: center;
}

.contact h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1a1a1a;
    max-width: 900px;
    margin: 0 auto 40px;
}

#pop-button {
    background: #1a1a1a;
    color: white;
    padding: 15px 50px;
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

#pop-button:hover {
    background: #000;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 20px;
    }

    .contact h1 {
        font-size: 2rem;
    }

    .contact p {
        font-size: 1rem;
        line-height: 1.6;
    }

    #pop-button {
        padding: 12px 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact h1 {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .contact p {
        font-size: 0.95rem;
    }

    #pop-button {
        padding: 12px 35px;
        font-size: 0.95rem;
    }
}