/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lusitana', Georgia, 'Times New Roman', serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style-position: outside;
    padding-left: 1.5rem;
}

/* Visibility Helpers */
.desktop-only {
    display: none;
}

.mobile-only {
    display: flex;
}

@media (min-width: 769px) {
    .desktop-only {
        display: flex;
    }

    .mobile-only {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: top;
    justify-content: center;
    text-align: center;
    background-image: url('images/image1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 250, 250, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 900px;
}

.logo {
    margin-bottom: 1rem;
}

.logo img {
    width: 100px;
    height: auto;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 400;
    color: #fffefe;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.hero .subtitle {
    font-size: 1.1rem;
    color: #fffefe;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1;
}

/* ================================
   MOBILE LAYOUT (Install Button + Vertical Portal Nav)
   ================================ */
@media (max-width: 768px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        min-height: 100vh;
        justify-content: flex-start;
    }

    .hero h1 {
        font-size: 2.5rem;
        color: white;
        margin-bottom: 0.5rem;
    }

    .hero .subtitle {
        font-size: 0.95rem;
        color: white;
        margin-bottom: 2rem;
        line-height: 1.3;
    }

    .hero-overlay {
        background-color: rgba(250, 250, 250, 0.3);
    }
}

/* Install App Button (Mobile Only) */
.install-app-btn {
    background-color: #ed1d23;
    border: none;
    border-radius: 20px;
    padding: 1rem 2rem 1.5rem;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px;
}

.install-app-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(198, 40, 40, 0.5);
}

.install-app-btn:active {
    transform: translateY(-1px);
}

.install-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Lusitana', Georgia, serif;
    letter-spacing: 0.02em;
}

.install-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.install-logo img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.install-logo .logo-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    font-style: italic;
}

/* Portal Navigation (Mobile Only - Vertical) */
.portal-nav {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    margin-top: 10rem;
}

.portal-btn {
    background-color: rgba(80, 80, 90, 0.75);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-btn:hover {
    background-color: rgba(100, 100, 110, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.portal-btn:active {
    transform: translateY(0);
}

/* ================================
   DESKTOP LAYOUT (Original Top-Right Navigation)
   ================================ */

/* Auth Navigation Buttons (Desktop) */
.auth-nav {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    gap: 1rem;
}

.auth-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: inherit;
}

.btn-login {
    background-color: rgba(44, 47, 125, 0.8);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-signup {
    background-color: #455A64;
    color: #fff;
    border: 2px solid #455A64;
}

.btn-signup:hover {
    background-color: #546E7A;
    border-color: #546E7A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(84, 110, 122, 0.4);
}

/* About Section */
.about {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #455A64;
    margin-bottom: 2.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.about-image {
    display: flex;
    align-items: stretch;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h3 {
    font-size: 1.4rem;
    font-weight: 400;
    color: #455A64;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-text p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.7;
}

/* Services Section */
.services {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.services-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.services-text h3 {
    font-size: 1.4rem;
    font-weight: 400;
    color: #455A64;
    margin-bottom: 1.5rem;
    text-align: center;
}

.services-text p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    text-align: center;
}

.services-text ul {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

.services-text ul li {
    margin-bottom: 0.5rem;
}

.services-image {
    display: flex;
    align-items: stretch;
}

.services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Quality Section */
.quality {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.quality-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.quality-image {
    display: flex;
    align-items: stretch;
}

.quality-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quality-text h3 {
    font-size: 1.4rem;
    font-weight: 400;
    color: #455A64;
    margin-bottom: 1.5rem;
    text-align: center;
}

.quality-text p {
    font-size: 0.95rem;
    color: #555;
    text-align: center;
    line-height: 1.7;
}

/* Footer */
.footer {
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 2rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.footer .address {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.footer .phone {
    font-size: 0.9rem;
    color: #8B4513;
    display: inline-block;
    margin-top: 0.5rem;
}

.footer .phone:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #777;
}

/* WhatsApp Floating Button */
.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #455A64;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
    font-family: inherit;
    font-size: 0.9rem;
}

.whatsapp-button:hover {
    transform: scale(1.05);
    background-color: #546E7A;
}

.whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-icon svg {
    width: 24px;
    height: 24px;
}

.whatsapp-text {
    white-space: nowrap;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1.5rem;
    max-width: 350px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.cookie-banner h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.cookie-banner p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.cookie-accept {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.cookie-accept:hover {
    background-color: #555;
}

/* Responsive Design */
@media (max-width: 900px) {

    .about-content,
    .services-content,
    .quality-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image,
    .services-image,
    .quality-image {
        order: -1;
    }

    .cookie-banner {
        right: 1rem;
        left: 1rem;
        max-width: none;
        bottom: 5rem;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .logo img {
        width: 80px;
    }

    .about h2,
    .about-text h3,
    .services-text h3,
    .quality-text h3 {
        font-size: 1.2rem;
    }

    .whatsapp-button {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.6rem 1rem;
    }

    .whatsapp-text {
        font-size: 0.8rem;
    }

    .install-app-btn {
        padding: 0.875rem 1.5rem 1.25rem;
        min-width: 180px;
    }

    .portal-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}