* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff8ed;
    color: #3b1f1f;
}

a {
    text-decoration: none;
}

.container {
    width: 92%;
    max-width: 1280px;
    margin: auto;
}

/* ================= HEADER ================= */

.main-header {
    background: #fffaf0;
    border-bottom: 2px solid #d69a20;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8d111b;
    min-width: 250px;
}

.logo-box img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.logo-text h2 {
    font-size: 28px;
    line-height: 1;
    color: #8d111b;
}

.logo-text p {
    color: #d69213;
    font-size: 17px;
    font-weight: bold;
}

.logo-text span {
    font-size: 12px;
    color: #8d111b;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex: 1;
}

.nav-menu a {
    color: #3b1f1f;
    font-weight: 700;
    padding-bottom: 6px;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #8d111b;
    border-bottom: 2px solid #8d111b;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    white-space: nowrap;
}

.logout-form {
    margin: 0;
    padding: 0;
}

.btn-primary,
.btn-outline {
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.btn-primary {
    background: #8d111b;
    color: white;
    border: 1px solid #8d111b;
}

.btn-primary:hover {
    background: #730b14;
}

.btn-outline {
    color: #8d111b;
    border: 1px solid #d69213;
    background: #fffaf0;
}

.btn-outline:hover {
    background: #fff1d2;
}

.logout-btn {
    cursor: pointer;
    font-family: inherit;
    border: 1px solid #8d111b;
}

/* ================= HERO ================= */

.hero-section {
    background:
        radial-gradient(circle at left, rgba(214,154,32,.15), transparent 35%),
        linear-gradient(120deg, #fff8ed 0%, #fffaf5 50%, #f8e7c8 100%);
    padding: 70px 0 40px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 78px;
    color: #8d111b;
    line-height: 1;
}

.hero-content h2 {
    font-size: 42px;
    color: #d69213;
    margin: 10px 0;
}

.hero-content h3 {
    font-size: 28px;
    color: #8d111b;
    margin: 18px 0;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-photo {
    height: 360px;
    border-radius: 180px 0 0 180px;
    background:
        linear-gradient(rgba(141,17,27,.25), rgba(141,17,27,.25)),
        url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 45px rgba(0,0,0,.18);
    border: 6px solid #d69213;
}

.stats-card {
    position: absolute;
    bottom: 25px;
    left: 80px;
    right: 30px;
    background: #8d111b;
    color: white;
    border: 2px solid #d69213;
    border-radius: 18px;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

.stats-card i {
    color: #d69213;
    font-size: 24px;
}

.stats-card h4 {
    font-size: 24px;
    margin: 6px 0;
}

.stats-card p {
    font-size: 13px;
}

/* ================= COMMON SECTIONS ================= */

.info-section,
.services-section,
.gallery-testimonial {
    padding: 28px 0;
}

.two-grid {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 24px;
}

.card {
    background: rgba(255,255,255,.86);
    border: 1px solid #efd9af;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 25px rgba(80,40,20,.08);
}

.card h2,
.section-title h2 {
    color: #8d111b;
    text-transform: uppercase;
    font-size: 22px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.about-card p {
    line-height: 1.7;
    color: #4b3333;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 28px;
    gap: 12px;
    text-align: center;
}

.values-grid i {
    font-size: 28px;
    color: #d69213;
}

.values-grid span {
    display: block;
    margin-top: 8px;
    color: #8d111b;
    font-weight: bold;
    font-size: 13px;
}

/* ================= FEATURES ================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.features-grid p {
    background: #fffaf2;
    border: 1px solid #f0d9ab;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    color: #3b1f1f;
}

.features-grid i {
    color: #8d111b;
    margin-right: 8px;
}

.highlight-line {
    margin-top: 20px;
    color: #8d111b;
    font-weight: 800;
    font-size: 18px;
}

.highlight-line i {
    color: #d69213;
    margin-right: 8px;
}

/* ================= SERVICES ================= */

.section-title {
    margin-bottom: 18px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.service-box {
    background: #fffaf2;
    border: 1px solid #efd9af;
    border-radius: 18px;
    text-align: center;
    padding: 24px 14px;
    transition: .3s;
}

.service-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(141,17,27,.15);
}

.service-box i {
    font-size: 34px;
    color: #8d111b;
    margin-bottom: 12px;
}

.service-box h3 {
    font-size: 15px;
    color: #3b1f1f;
}

/* ================= HOME GALLERY ================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.gallery-grid div {
    height: 100px;
    border-radius: 14px;
    background: linear-gradient(135deg, #8d111b, #d69213);
}

.small-btn {
    display: inline-block;
    margin-top: 18px;
    background: #8d111b;
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
}

.small-btn:hover {
    background: #730b14;
}

/* ================= TESTIMONIAL ================= */

.testimonial-card p {
    font-size: 18px;
    line-height: 1.8;
    color: #4b3333;
    margin-bottom: 20px;
}

.testimonial-card h4 {
    color: #8d111b;
    font-size: 20px;
}

.testimonial-card span {
    color: #d69213;
    font-weight: bold;
}

/* ================= FRONTEND GALLERY PAGE ================= */

.frontend-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.frontend-gallery-card {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #efd9af;
    box-shadow: 0 8px 25px rgba(80,40,20,.10);
    background: #fffaf2;
}

.frontend-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.frontend-gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px;
    background: linear-gradient(transparent, rgba(141,17,27,.95));
    color: white;
}

.gallery-overlay h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.gallery-overlay span {
    display: inline-block;
    background: #d69213;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

/* ================= WHATSAPP BUTTON ================= */

.whatsapp-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 32px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* ================= FOOTER ================= */

.footer {
    margin-top: 30px;
    background: #8d111b;
    color: white;
    padding-top: 45px;
    border-top: 6px solid #d69213;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 45px;
}

.footer h3 {
    margin-bottom: 18px;
    color: #ffd88a;
    text-transform: uppercase;
}

.footer p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer a {
    display: block;
    color: white;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #d69213;
    color: white;
    display: grid;
    place-items: center;
    margin-bottom: 0;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
}

.newsletter-form button {
    background: #d69213;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding: 18px;
    background: #730b14;
    margin-top: 35px;
    font-size: 22px;
    font-weight: bold;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1180px) {
    .nav-wrapper {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .logo-box {
        min-width: auto;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        padding-bottom: 10px;
    }

    .nav-buttons {
        margin-left: auto;
    }
}

@media (max-width: 992px) {
    .nav-wrapper {
        height: auto;
        flex-direction: column;
        align-items: center;
    }

    .nav-menu,
    .nav-buttons {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-grid,
    .two-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 52px;
    }

    .hero-content h2 {
        font-size: 34px;
    }

    .features-grid,
    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-card {
        position: static;
        margin-top: 18px;
        grid-template-columns: 1fr 1fr;
    }

    .hero-photo {
        border-radius: 30px;
    }

    .frontend-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .logo-box {
        flex-direction: column;
        text-align: center;
    }

    .logo-text h2 {
        font-size: 24px;
    }

    .nav-menu {
        gap: 14px;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline,
    .logout-form,
    .logout-btn {
        width: 100%;
    }

    .features-grid,
    .services-grid,
    .footer-grid,
    .values-grid,
    .gallery-grid,
    .frontend-gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-photo {
        height: 260px;
        border-radius: 30px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content h3 {
        font-size: 22px;
    }

    .stats-card {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
}