/* ===== GOOGLE FONTS ===== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
/* ===== VARIABLES CSS ===== */

:root {
    --header-height: 3.5rem;
    /* Colors */
    --first-color: #D4AF37;
    --first-color-alt: #B8941F;
    --title-color: #1E3A8A;
    --text-color: #4B5563;
    --text-color-light: #6B7280;
    --body-color: #FFFFFF;
    --container-color: #F9FAFB;
    --white-color: #FFFFFF;
    /* Font and typography */
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 2.25rem;
    --h1-font-size: 1.875rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.75rem;
    /* Font weight */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    /* Margins Bottom */
    --mb-0-25: 0.25rem;
    --mb-0-5: 0.5rem;
    --mb-0-75: 0.75rem;
    --mb-1: 1rem;
    --mb-1-25: 1.25rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    /* z index */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* Responsive typography */

@media screen and (min-width: 968px) {
    :root {
        --biggest-font-size: 3.5rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.875rem;
        --h3-font-size: 1.5rem;
        --normal-font-size: 1.125rem;
        --small-font-size: 1rem;
        --smaller-font-size: 0.875rem;
    }
}

/* ===== BASE ===== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}

h1,
h2,
h3,
h4 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* ===== REUSABLE CSS CLASSES ===== */

.container {
    max-width: 1200px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

.section {
    padding: 4.5rem 0 2rem;
}

.section__title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-1);
    text-align: center;
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-2-5);
    text-align: center;
    color: var(--text-color-light);
}

.section__header {
    margin-bottom: var(--mb-2-5);
}

.grid {
    display: grid;
}

.main {
    overflow: hidden;
}

/* ===== BUTTONS ===== */

.button {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--white-color);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid var(--first-color);
}

.button:hover {
    background-color: var(--first-color-alt);
    border-color: var(--first-color-alt);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.button--primary {
    background-color: var(--first-color);
    border-color: var(--first-color);
}

.button--secondary {
    background-color: transparent;
    color: var(--first-color);
    border-color: var(--first-color);
}

.button--secondary:hover {
    background-color: var(--first-color);
    color: var(--white-color);
}

.button--small {
    padding: 0.75rem 1.5rem;
    font-size: var(--small-font-size);
}

/* ===== HEADER & NAV ===== */

.header {
    width: 100%;
    background-color: var(--white-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition: box-shadow 0.3s ease;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo h2 {
    color: var(--first-color);
    font-weight: var(--font-bold);
    font-size: var(--h3-font-size);
}

.nav__list {
    display: flex;
    flex-direction: row;
    column-gap: 2rem;
}

.nav__link {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: color 0.3s ease;
    position: relative;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--first-color);
}

.nav__link.active-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--first-color);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Show shadow header */

.scroll-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== BREADCRUMB ===== */

.breadcrumb {
    background-color: var(--container-color);
    padding: 1rem 0;
    margin-top: var(--header-height);
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

/* ===== HOME ===== */

.home {
    padding-top: 2rem;
}

.home__container {
    gap: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

.home__data {
    text-align: center;
}

.home__title {
    font-size: var(--biggest-font-size);
    margin-bottom: var(--mb-1);
    line-height: 1.2;
}

.home__description {
    margin-bottom: var(--mb-2);
    font-size: var(--normal-font-size);
    color: var(--text-color);
    line-height: 1.6;
}

.home__img {
    justify-self: center;
}

.home__img img {
    width: 100%;
    max-width: 500px;
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* ===== PRODUCTS ===== */

.products__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--mb-2);
}

.product__card {
    background-color: var(--white-color);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.product__img {
    position: relative;
    margin-bottom: var(--mb-1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.product__img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product__card:hover .product__img img {
    transform: scale(1.05);
}

.product__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--first-color);
    color: var(--white-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
    z-index: 1;
}

.product__content {
    text-align: center;
}

.product__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-0-5);
    color: var(--title-color);
}

.product__price {
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--first-color);
    margin-bottom: var(--mb-1);
}

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

.about__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.about__data {
    text-align: center;
}

.about__description {
    margin-bottom: var(--mb-1-5);
    line-height: 1.6;
    color: var(--text-color);
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: var(--mb-2);
}

.about__stat {
    text-align: center;
    padding: 1rem;
    background-color: var(--container-color);
    border-radius: 0.5rem;
}

.stat__number {
    font-size: var(--h1-font-size);
    color: var(--first-color);
    margin-bottom: var(--mb-0-25);
}

.stat__text {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.about__img {
    justify-self: center;
}

.about__img img {
    width: 100%;
    max-width: 400px;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact__info {
    display: grid;
    gap: 1.5rem;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact__icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-0-25);
    color: var(--title-color);
}

.contact__text {
    color: var(--text-color);
    line-height: 1.6;
}

.contact__form {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.form__group {
    margin-bottom: var(--mb-1-5);
}

.form__input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    transition: border-color 0.3s ease;
    background-color: var(--white-color);
}

.form__input:focus {
    border-color: var(--first-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.map__container {
    margin-top: var(--mb-2-5);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

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

.footer {
    background-color: var(--title-color);
    padding: 3rem 0 2rem;
    color: var(--white-color);
}

.footer__container {
    row-gap: 2rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer__title {
    font-size: var(--h3-font-size);
    color: var(--first-color);
    margin-bottom: var(--mb-1);
}

.footer__subtitle {
    font-size: var(--normal-font-size);
    margin-bottom: var(--mb-1);
    color: var(--white-color);
}

.footer__description {
    line-height: 1.6;
    color: #D1D5DB;
}

.footer__links {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
}

.footer__link {
    color: #D1D5DB;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--first-color);
}

.footer__social {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
}

.footer__social-link {
    color: #D1D5DB;
    transition: color 0.3s ease;
}

.footer__social-link:hover {
    color: var(--first-color);
}

.footer__bottom {
    margin-top: var(--mb-2);
    padding-top: var(--mb-1-5);
    border-top: 1px solid #374151;
    text-align: center;
}

.footer__copy {
    color: #9CA3AF;
    font-size: var(--small-font-size);
}

/* ===== MODAL ===== */

.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal__content {
    background-color: var(--white-color);
    margin: 2% auto;
    padding: 0;
    border-radius: 1rem;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalShow 0.3s ease;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-color);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white-color);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.modal__close:hover {
    background-color: var(--first-color);
    color: var(--white-color);
    transform: rotate(90deg);
}

.modal__breadcrumb {
    padding: 1rem 2rem;
    background-color: var(--container-color);
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.modal__body {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.modal__img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.modal__title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-0-5);
}

.modal__badge {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--white-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-1);
}

.modal__price {
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    color: var(--first-color);
    margin-bottom: var(--mb-1-5);
}

.modal__description,
.modal__specs {
    margin-bottom: var(--mb-1-5);
}

.modal__description h3,
.modal__specs h3 {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-0-75);
}

.modal__specs ul {
    padding-left: 1rem;
}

.modal__specs li {
    margin-bottom: var(--mb-0-25);
    color: var(--text-color);
}

.modal__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== WHATSAPP FLOAT ===== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: var(--white-color);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: var(--z-tooltip);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===== BREAKPOINTS ===== */

/* For small devices */

@media screen and (max-width: 320px) {
    .container {
        margin-left: var(--mb-1);
        margin-right: var(--mb-1);
    }
    .home__title {
        font-size: var(--h1-font-size);
    }
    .about__stats {
        grid-template-columns: 1fr;
    }
    .modal__actions {
        flex-direction: column;
    }
}

/* For medium devices */

@media screen and (min-width: 568px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
    .home__container,
    .about__container {
        grid-template-columns: 1fr;
    }
    .contact__container {
        grid-template-columns: 1fr;
    }
    .products__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 768px) {
    .section {
        padding: 6rem 0 2rem;
    }
    .nav__menu {
        position: relative;
    }
    .nav__list {
        flex-direction: row;
    }
    .nav__toggle {
        display: none;
    }
    .home__container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    .home__data {
        text-align: left;
    }
    .about__container {
        grid-template-columns: 1fr 1fr;
    }
    .about__data {
        text-align: left;
    }
    .contact__container {
        grid-template-columns: 1fr 1fr;
    }
    .modal__body {
        grid-template-columns: 1fr 1fr;
    }
    .modal__img img {
        height: 400px;
    }
}

/* For large devices */

@media screen and (min-width: 1024px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }
    .products__container {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer__content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile Navigation */

@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white-color);
        transition: left 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .nav__list {
        flex-direction: column;
        row-gap: 2rem;
        padding: 2rem;
    }
    .nav__toggle {
        display: flex;
    }
    .show-menu {
        left: 0;
    }
    .nav__toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav__toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Smooth loading animations */

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states */

.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus states for accessibility */

.button:focus,
.form__input:focus,
.nav__link:focus {
    outline: 2px solid var(--first-color);
    outline-offset: 2px;
}

/* Print styles */

@media print {
    .header,
    .whatsapp-float,
    .modal {
        display: none !important;
    }
    .section {
        padding: 1rem 0;
    }
}