/* =========================
   GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: #222;
    background-color: #f7f5f0;
    line-height: 1.6;
}

img {
    width: 100%;
    height: auto;
    display: block;
}


/* =========================
   HEADER
========================= */

header {
    display: flex;
    align-items: stretch;

    min-height: clamp(180px, 14vw, 280px);

    background-color: #222;

    color: white;
}

#header-p {
    font-size: 19px;
}

/* PHOTOS */

.header-photo {
    width: 22%;
    max-width: 320px;   /* keep it from stretching too wide on huge monitors */
    min-width: 140px;
    flex-shrink: 0;      /* stop it from getting squeezed by the nav (previous fix) */

    background-size: contain;   /* KEY CHANGE — show the whole racket, no cropping */
    background-position: center;
    background-repeat: no-repeat;
}


/* LEFT PHOTO */

.photo-left {
    background-position: center 19%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
        url("images/header-photo-left.jpeg");
}


/* RIGHT PHOTO */

.photo-right {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
        url("images/header-photo-right.jpeg");
}


/* CENTER */

.header-content {
    width: 56%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 30px;
}


/* LOGO */

.logo h1 {
    font-size: 24px;
    letter-spacing: 2px;
}

.logo p {
    font-size: 13px;
    color: #ccc;
}


/* NAVIGATION */

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #d69b55;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 80vh;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;
    padding: 70px 7%;

    background-color: #e9e1d4;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 55px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text p {
    font-size: 19px;
    max-width: 500px;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    min-height: 350px;
    background-color: #d0c8bb;
    object-fit: cover;
}


/* =========================
   BUTTON
========================= */

.button {
    display: inline-block;

    background-color: #222;
    color: white;

    padding: 13px 25px;

    text-decoration: none;
    border-radius: 5px;

    font-weight: bold;
}

.button:hover {
    background-color: #444;
}


/* =========================
   RACKETS
========================= */

.rackets {
    padding: 80px 7%;
    text-align: center;
}

.rackets h2,
.about h2,
.contact h2 {
    font-size: 38px;
    margin-bottom: 10px;
}

.section-intro {
    margin-bottom: 45px;
    color: #666;
}

.racket-container {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.racket-card {
    background-color: white;

    width: 33%;

    padding-bottom: 25px;

    border-radius: 8px;
    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.racket-card img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background-color: #ddd;
}

.racket-card h3 {
    margin-top: 20px;
    font-size: 24px;
}

.racket-card p {
    padding: 0 20px;
}

.specs {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.price {
    margin-top: 15px;
    font-weight: bold;
}


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

.about {
    display: flex;
    align-items: center;

    gap: 60px;

    padding: 80px 7%;

    background-color: #e9e1d4;
}

.about-image,
.about-text {
    flex: 1;
}

.about-image img {
    min-height: 350px;
    object-fit: cover;
    background-color: #d0c8bb;
}

.about-text p {
    margin: 20px 0;
}

/* =========================
   TESTIMONIALS
========================= */

.testimonials {
    padding: 80px 7%;
    text-align: center;
    background-color: #f7f5f0;
}

.testimonial-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: white;
    width: 50%;
    padding: 35px 25px;

    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

    text-align: left;
}

.quote-icon {
    font-size: 22px;
    color: #d69b55;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: bold;
    margin-bottom: 3px;
}

.testimonial-role {
    font-size: 13px;
    color: #666;
}




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

.contact {
    text-align: center;
    padding: 80px 7%;
}

.contact p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    background-color: #25D366;
    color: white;

    padding: 15px 25px;

    border-radius: 5px;

    text-decoration: none;
    font-weight: bold;
}

.whatsapp-button:hover {
    opacity: 0.85;
}

.whatsapp-button i {
    font-size: 24px;
}


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

footer {
    background-color: #222;
    color: #ccc;

    text-align: center;

    padding: 25px;
}

footer p {
    margin: 5px;
    font-size: 14px;
}


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

@media (max-width: 768px) {

    /* =========================
       HEADER
    ========================= */

    header {
        min-height: 160px;
    }

    /* Keep the photos, but make them narrow */

    .header-photo {
        display: block;
        width: 18%;
        min-width: 55px;
        flex-shrink: 0;
        background-size: cover;
        background-position: center;
    }

    /* Center section */

    .header-content {
        width: 64%;

        flex-direction: column;
        justify-content: center;
        gap: 15px;

        padding: 20px 8px;

        text-align: center;
    }

    /* Logo */

    .logo h1 {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .logo p {
        font-size: 10px;
    }

    /* Navigation */

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;

        gap: 8px;
    }

    nav {
        gap: 4px 10px;
    }

    nav a {
        font-size: 12px;
        padding: 4px 0;
    }


    /* =========================
       HERO
    ========================= */

    .hero {
        display: flex;
        flex-direction: column;

        padding: 45px 6%;
        gap: 30px;

        text-align: center;
    }

    /* PHOTO FIRST */

    .hero-image {
        width: 100%;
        order: 1;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        min-height: 0;
    }

    /* TEXT SECOND */

    .hero-text {
        width: 100%;
        order: 2;
    }

    .hero-text h2 {
        font-size: 36px;
    }

    .hero-text p {
        font-size: 17px;
    }


    /* =========================
       RACKETS
    ========================= */

    .rackets {
        padding: 60px 6%;
    }

    .rackets h2 {
        font-size: 32px;
    }

    .racket-container {
        display: flex;
        flex-direction: column;

        gap: 30px;
    }

    .racket-card {
        width: 100%;
    }

    .racket-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
    }


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

    .about {
        display: flex;
        flex-direction: column;

        padding: 60px 6%;
        gap: 30px;

        text-align: center;
    }

    /* PHOTO FIRST */

    .about-image {
        width: 100%;
        order: 1;
    }

    .about-image img {
        width: 100%;
        height: auto;
        min-height: 0;
    }

    /* TEXT SECOND */

    .about-text {
        width: 100%;
        order: 2;
    }

    .about h2 {
        font-size: 32px;
    }

    .testimonials {
        padding: 60px 6%;
    }

    .testimonial-container {
        flex-direction: column;
    }

    .testimonial-card {
        width: 100%;
    }


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

    .contact {
        padding: 60px 6%;
    }

    .contact h2 {
        font-size: 30px;
    }


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

    footer {
        padding: 25px 15px;
    }

}

    


/* =========================
   SOCIAL MEDIA
========================= */

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 20px;
}

.social-links a {
    font-size: 28px;
    text-decoration: none;
    color: #333;
    transition: 
        color 0.25s ease,
        transform 0.25s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Instagram */

.social-links a:nth-child(1):hover {
    color: #E4405F;
}

/* Facebook */

.social-links a:nth-child(2):hover {
    color: #1877F2;
}

/* YouTube */

.social-links a:nth-child(3):hover {
    color: #FF0000;
}

/* =========================
   FLOATING WHATSAPP
========================= */

.floating-whatsapp {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 9999;

    text-decoration: none;

    display: flex;
    align-items: center;
    gap: 12px;

    /* Initial state */
    opacity: 0;
    transform: translateY(80px) scale(0.5);

    /* Pop-up animation */
    animation: whatsappPop 0.8s ease-out forwards;
}


/* =========================
   RACKET / LOGO
========================= */

.whatsapp-racket {
    position: relative;

    width: 85px;
    height: 85px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

     /* Confines mix-blend-mode below to this circle only,
       instead of blending with page content behind it on mobile */
    isolation: isolate;

    background:
        linear-gradient(
            135deg,
            #d5a066,
            #9a6337
        );

    border: 3px solid #6d4326;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================
   FRONTON LOGO
========================= */

.whatsapp-racket img {
    width: 82%;
    height: 82%;

    object-fit: contain;

    /*
       Makes the white background
       visually blend with the wood
    */

    mix-blend-mode: multiply;
}


/* =========================
   WHATSAPP ICON
========================= */

.whatsapp-icon {
    position: absolute;

    
    bottom: -8px;
    

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background-color: #25D366;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 3px solid white;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.3);
}


.whatsapp-icon i {
    font-size: 19px;
}


/* =========================
   MESSAGE
========================= */

.whatsapp-message {
    background-color: #222;

    color: white;

    padding: 9px 14px;

    border-radius: 6px;

    font-size: 14px;
    font-weight: bold;

    white-space: nowrap;

    opacity: 0;

    transform: translateX(10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


/* =========================
   HOVER
========================= */

.floating-whatsapp:hover .whatsapp-racket {
    transform: scale(1.08) rotate(-4deg);

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.4);
}


.floating-whatsapp:hover .whatsapp-message {
    opacity: 1;

    transform: translateX(0);
}


/* =========================
   POP-UP ANIMATION
========================= */

@keyframes whatsappPop {

    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.5);
    }

    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.08);
    }

    80% {
        transform: translateY(4px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


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

@media (max-width: 768px) {

    .floating-whatsapp {
        right: 15px;
        bottom: 20px;
    }

    .whatsapp-racket {
        width: 68px;
        height: 68px;
    }

    .whatsapp-icon {
        width: 27px;
        height: 27px;

        right: 1px;
        bottom: -5px;
    }

    .whatsapp-icon i {
        font-size: 16px;
    }

    /* Hide text on mobile */

    .whatsapp-message {
        display: none;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
        margin: 25px 0;
    }

    .contact-item {
        font-size: 15px;
    }

    .whatsapp-button,
    .email-button {
        margin: 6px 4px;
    }

}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    .floating-whatsapp {
        animation: none;

        opacity: 1;
        transform: none;
    }

}

/* =========================
   EMAIL BUTTON
========================= */

.email-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background-color: #222;
    color: white;

    padding: 15px 25px;

    border-radius: 5px;

    text-decoration: none;
    font-weight: bold;

    margin-left: 10px;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.email-button:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.email-button i {
    font-size: 20px;
}


/* CONTACT INFORMATION */

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    margin: 25px 0 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #222;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.contact-item i {
    font-size: 19px;
}

.contact-item:hover {
    color: #25D366;
}

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

.gallery {
    padding: 70px 8%;
    text-align: center;
    min-height: 60vh;
}

.gallery h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.gallery-intro {
    font-size: 17px;
    margin-bottom: 45px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 45px;
}

.gallery-grid img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

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


/* GALLERY BUTTON */

.gallery-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background-color: #222;
    color: white;

    padding: 11px 20px;

    border-radius: 5px;

    text-decoration: none;

    font-size: 14px;
    font-weight: bold;

    margin-top: 35px;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.gallery-button:hover {
    background-color: #555;
    transform: translateY(-2px);
}


/* BACK TO HOME */

.gallery-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background-color: #222;
    color: white;

    padding: 11px 20px;

    border-radius: 5px;

    text-decoration: none;

    font-size: 14px;
    font-weight: bold;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.gallery-back-button:hover {
    background-color: #555;
    transform: translateY(-2px);
}


/* MOBILE GALLERY */

@media (max-width: 768px) {

    .gallery {
        padding: 50px 6%;
    }

    .gallery h2 {
        font-size: 32px;
    }

    .gallery-intro {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-grid img {
        height: auto;
    }

    .gallery-button {
        margin-top: 30px;
    }

}