/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Remove all underlines globally */
a,
a:visited,
a:hover,
a:focus,
a:active {
    text-decoration: none;
    color: inherit;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fdfaf6;
    color: #222;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: #fdfaf6;
    border-bottom: 1px solid #e7ddd0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.logo-svg {
    width: 44px;
    height: 44px;
}

.brand {
    font-size: 22px;
    font-weight: 600;
}

.subbrand {
    font-size: 13px;
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 22px;
    font-size: 15px;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* HERO */
.hero {
    padding: 110px 20px 80px;
    text-align: center;
}

.hero-tagline {
    font-size: 18px;
    opacity: 0.78;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 54px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 24px;
}

/* BUTTONS */
.btn-primary,
.btn-outline {
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
    border: none;
    background: #a9d8ff;
    color: #1b2731;
}

.btn-outline {
    border: 2px solid #a9d8ff;
    background: transparent;
    color: #1b2731;
}

.btn-primary:hover,
.btn-outline:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
}

/* FADE IN ANIMATION */
.fade-in {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* CAROUSEL (FIXED) */
.carousel-section {
    padding: 30px 20px 80px;
}

.carousel-card {
    max-width: 900px;
    margin: auto;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 300px;
}

/* stack images so opacity fade works */
.carousel-img {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

/* fade in */
.carousel-img.active {
    opacity: 1;
}

/* SECTIONS */
.section {
    padding: 80px 20px;
    background: #fdfaf6;
}

.section.alt {
    background: #f3ece3;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 26px;
    font-weight: 600;
}

.list {
    max-width: 720px;
    margin: auto;
    list-style: none;
    font-size: 18px;
    line-height: 1.6;
}

.list li + li {
    margin-top: 10px;
}

/* SERVICE GRID */
.service-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.service-card {
    background: #fff;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

/* CARD GRID */
.cards {
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
}

.card {
    background: #fff;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    max-width: 330px;
    width: 100%;
}

/* SUPPORT */
.support-text {
    max-width: 720px;
    margin: auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
}

/* FOOTER */
.footer {
    padding: 34px 20px;
    text-align: center;
    border-top: 1px solid #e7ddd0;
    background: #fdfaf6;
    font-size: 14px;
}

/* MOBILE CALL BUTTON */
.mobile-call-btn {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    background: #28a745;
    color: #fff;
    padding: 12px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 80;
}

/* CONTACT MODAL */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    z-index: 90;
}

.contact-modal.open {
    display: block;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
}

.contact-modal-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 100%;
    max-width: 470px;
    padding: 28px 24px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.contact-modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 28px;
    border: none;
    background: none;
    cursor: pointer;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid #d7d0c6;
    background: #fbf8f3;
    font-size: 14px;
}

#successMessage {
    text-align: center;
    margin-top: 10px;
    color: #167c3a;
    font-size: 14px;
    display: none;
}

.modal-submit {
    width: 100%;
    margin-top: 6px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .navbar {
        padding: 14px 18px;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 34px;
    }

    .mobile-call-btn {
        display: inline-block;
    }

    .contact-modal-panel {
        max-width: 90%;
        padding: 22px 16px;
    }
}
