﻿/* =========================================================
   GENERAL
========================================================= */

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #8faeb0;
    padding: 15px;
}


/* =========================================================
   MAIN PHONE CONTAINER
========================================================= */

.phone {
    width: 100%;
    max-width: 420px;
    min-height: calc(100vh - 30px);

    background: #fff;
    border-radius: 20px;
    padding: 18px;

    box-shadow: 0 15px 30px rgba(0,0,0,0.25);

    position: relative;
}


/* =========================================================
   TOP BAR
========================================================= */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.top-bar i {
    font-size: 20px;
    color: #c96b3c;
    cursor: pointer;
    transition: transform 0.3s;
}

.top-bar i:hover {
    transform: scale(1.2);
}


/* =========================================================
   TITLE
========================================================= */

h2 {
    text-align: center;
    margin: 10px 0 25px;
    letter-spacing: 2px;
}


/* =========================================================
   SERVICES
========================================================= */

.services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.service {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.service:hover {
    transform: scale(1.05);
}


/* =========================================================
   SERVICE ICON
========================================================= */

.icon-circle {
    width: min(120px, 80%);
    aspect-ratio: 1 / 1;

    margin: auto;

    border-radius: 50%;

    background: #111;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 0 0 0 5px #c96b3c;

    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.icon-circle i {
    font-size: clamp(30px, 10vw, 48px);
    color: #fff;
}

.service span {
    display: block;
    margin-top: 10px;

    font-size: clamp(11px, 3.5vw, 13px);

    color: #c96b3c;
    letter-spacing: 1px;
}

.service:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px #c96b3c;
}


/* =========================================================
   OFFER
========================================================= */

.offer {
    margin-top: 25px;

    background: linear-gradient(
        135deg,
        #e36b2c,
        #f2a365
    );

    border-radius: 15px;

    padding: 18px;

    color: #fff;

    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.offer:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.offer:active {
    transform: scale(0.95);
}

.offer i {
    font-size: 40px;
}

.offer-text {
    text-align: right;
}

.offer-text b {
    font-size: 18px;
    display: block;
}

.discount {
    background: #111;

    border-radius: 50%;

    width: 70px;
    height: 70px;

    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    font-weight: bold;
}


/* =========================================================
   POPUP
========================================================= */

.popup {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.5);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;

    transition: all 0.3s ease;

    z-index: 1000;

    padding: 15px;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   POPUP CONTENT
========================================================= */

.popup-content {
    background: #fff;

    padding: 30px 20px 25px;

    border-radius: 20px;

    width: 350px;
    max-width: 100%;

    min-height: 400px;

    text-align: center;

    position: relative;

    animation: popupIn 0.3s ease;

    overflow-y: auto;

    max-height: 90vh;
}


/* CLOSE BUTTON */

.popup .close {
    position: absolute;

    top: 10px;
    left: 10px;

    font-size: 29px;

    cursor: pointer;

    color: #c96b3c;
}


/* POPUP TITLE */

.popup h4 {
    text-align: right;
}

#popupTitle {
    font-size: 18px;

    color: #c96b3c;

    margin-bottom: 8px;
}


/* =========================================================
   POPUP IMAGE
========================================================= */

.popup-image img {
    width: 120px;
    height: 120px;

    max-width: 40vw;
    max-height: 40vw;

    border-radius: 50%;

    object-fit: cover;

    margin-bottom: 15px;

    border: 3px solid #c96b3c;

    transition: transform 0.3s;
}

.popup-image img:hover {
    transform: scale(1.1);
}


/* =========================================================
   POPUP INFO
========================================================= */

#popupInfo {
    font-size: 14px;

    color: #333;

    line-height: 1.4;
}


/* =========================================================
   RATING
========================================================= */

.rating {
    text-align: center;

    margin: 10px 0;
}

.rating i {
    color: gold;

    font-size: 20px;

    margin: 0 2px;
}

.rating i:hover {
    transform: scale(1.2);

    color: #ffdd00;
}


/* =========================================================
   CONTACT
========================================================= */

#popupContactInfo {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    margin-top: 2px;
}

#popupContactInfo a {
    font-size: 20px;

    color: #111;

    text-decoration: none;

    display: inline-flex;

    align-items: center;

    margin: 5px 10px;

    transition:
        color 0.3s,
        transform 0.3s;
}

#popupContactInfo a i {
    font-size: 37px;

    margin-right: 5px;
}

#popupContactInfo a:hover {
    transform: scale(1.1);

    color: #c96b3c;
}


/* =========================================================
   POPUP ANIMATION
========================================================= */

@keyframes popupIn {

    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    body {
        padding: 8px;
    }

    .phone {
        width: 100%;
        min-height: calc(100vh - 16px);

        padding: 14px;

        border-radius: 16px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .services {
        gap: 12px;
    }

    .icon-circle {
        width: 85px;
        box-shadow: 0 0 0 4px #c96b3c;
    }

    .icon-circle i {
        font-size: 30px;
    }

    .service span {
        font-size: 11px;
    }

    .offer {
        padding: 12px;
    }

    .offer i {
        font-size: 30px;
    }

    .offer-text b {
        font-size: 15px;
    }

    .discount {
        width: 55px;
        height: 55px;
        font-size: 12px;
    }

    .popup-content {
        width: 100%;
        min-height: auto;
        padding: 25px 15px;
    }

    .popup-image img {
        width: 100px;
        height: 100px;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 330px) {

    body {
        padding: 5px;
    }

    .phone {
        padding: 12px;
        border-radius: 14px;
    }

    .services {
        gap: 8px;
    }

    .icon-circle {
        width: 72px;
        box-shadow: 0 0 0 3px #c96b3c;
    }

    .icon-circle i {
        font-size: 25px;
    }

    .service span {
        font-size: 10px;
    }

    .offer {
        padding: 10px;
    }

    .discount {
        width: 50px;
        height: 50px;
    }
}