/* =========================
   BASIC WEBSITE SETTINGS
========================= */
:root {
    --brand-blue: #2454D8;
    --brand-blue-dark: #173BA6;
    --brand-yellow: #F5C400;
    --brand-dark: #17191F;
    --brand-white: #FFFFFF;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #1b1b1b;
    background: #f5f5f5;
    line-height: 1.6;
}

.small-title {
    color: var(--brand-blue);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
}


/* =========================
   HEADER
========================= */

header {
    min-height: 90px;
    padding: 10px 7%;
    background: #0b0b0b;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 3px 15px rgba(0,0,0,.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    color: white;
    text-decoration: none;
}

.logo img {
    width: 70px;
    height: 70px;

    object-fit: cover;
    border-radius: 50%;

    background: white;
    border: 3px solid #f5a623;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text span {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-text small {
    color: #f5a623;
    margin-top: 5px;
    font-size: .9rem;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: .2s;
    position: relative;
}


nav a:hover {
    color: #f5a623;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: #f5a623;
    border-radius: 3px;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 78vh;

    display: flex;
    align-items: center;

    padding: 90px 8%;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.82),
            rgba(0,0,0,.35)
        ),
        url("images/rv-roof.jpg");

    background-size: cover;
    background-position: center;

    color: white;
}

.hero-content {
    max-width: 760px;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.hero h1 {
    animation: heroTitleIn 0.9s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes heroTitleIn {
    0% {
        opacity: 0;
        transform: translateX(-80px);
    }

    70% {
        opacity: 1;
        transform: translateX(10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}.hero-content > p:not(.small-title) {
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.45s forwards;
}

.hero-buttons {
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.75s forwards;
}

@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-content > p:not(.small-title) {
    max-width: 620px;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


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

.primary-button,
.secondary-button {
    display: inline-block;

    padding: 15px 27px;

    border-radius: 5px;

    text-decoration: none;
    font-weight: 800;

    transition: .2s;
}

.primary-button {
    background: #f5a623;
    color: #111;
}

.primary-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 22px rgba(245, 166, 35, 0.4);
}

.secondary-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 22px rgba(255, 255, 255, 0.25);
}
.secondary-button {
    border: 2px solid white;
    color: white;
}

.secondary-button:hover {
    background: white;
    color: #111;
}


/* =========================
   SERVICES
========================= */

.services {
    padding: 90px 8%;
    text-align: center;
    background: white;
}

.services h2,
.work h2,
.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-grid {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    padding: 35px 25px;

    background: #f7f7f7;

    border-radius: 10px;
    border-bottom: 4px solid #f5a623;

    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.service-card:hover .service-icon {
    transform: scale(1.25) rotate(-8deg);
}

.service-icon {
    transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
}

.service-icon {
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
}


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

.about {
    padding: 90px 8%;
    background: #111;
    color: white;
}

.about-content {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;

    align-items: center;
}

.about h2 {
    font-size: 2.7rem;
    line-height: 1.15;
    margin-bottom: 25px;
}

.about-text > p:not(.small-title) {
    color: #ddd;
    margin-bottom: 18px;
}

.about-image img {
    width: 100%;
    height: 500px;

    object-fit: cover;

    border-radius: 10px;
    border: 4px solid #f5a623;
}

.badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;

    margin-top: 30px;
}

.badge {
    padding: 12px 18px;

    background: #f5a623;
    color: #111;

    font-weight: 900;
    border-radius: 5px;
}


/* =========================
   OUR WORK
========================= */

.work {
    padding: 90px 8%;
    text-align: center;
    background: white;
}

.work-grid {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.work-card {
    background: #111;
    border-radius: 10px;
    overflow: hidden;

    box-shadow: 0 7px 25px rgba(0,0,0,.15);
}

.work-card img {
    display: block;

    width: 100%;
    height: 380px;

    object-fit: cover;
}

.work-caption {
    padding: 18px;
    color: white;
}

.work-caption h3 {
    color: #f5a623;
}


/* =========================
   CERTIFICATION / FLYER
========================= */

.certification {
    padding: 90px 8%;

    background: #ededed;

    display: grid;
    grid-template-columns: minmax(300px, 500px) 1fr;

    gap: 60px;
    align-items: center;
}

.certification-image img {
    width: 100%;

    display: block;

    border-radius: 10px;

    box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.certification-text {
    max-width: 650px;
}

.certification-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.certification-text p {
    margin-bottom: 20px;
    color: #555;
}

.certification-text .primary-button {
    margin-top: 10px;
}


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

.contact {
    padding: 90px 8%;

    background: #111;
    color: white;

    text-align: center;
}

.contact p {
    max-width: 650px;
    margin: 0 auto 25px;
    color: #ddd;
}

.contact-number {
    display: inline-block;

    color: #f5a623;

    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;

    text-decoration: none;

    margin: 15px 0 25px;
}
.contact-email {
    display: block;
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--brand-yellow);
    text-decoration: none;
    font-weight: 600;
}

.contact-email:hover {
    text-decoration: underline;
}
.contact-form {
    max-width: 650px;
    margin: 35px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .primary-button {
    align-self: center;
    margin-top: 5px;
}

#contactStatus {
    margin-top: 5px;
}

.contact-number:hover {
    color: white;
}
.contact-number {
    animation: phonePulse 2.5s ease-in-out infinite;
}

@keyframes phonePulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(245, 166, 35, 0);
    }

    50% {
        transform: scale(1.06);
        text-shadow: 0 0 18px rgba(245, 166, 35, 0.65);
    }
}
.contact .location {
    color: #aaa;
}


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

footer {
    padding: 40px 8%;

    text-align: center;

    background: #050505;
    color: #aaa;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 12px;

    color: white;

    margin-bottom: 15px;
}

.footer-logo img {
    width: 50px;
    height: 50px;

    object-fit: cover;
    border-radius: 50%;
}

.copyright {
    margin-top: 15px;
    font-size: .85rem;
}


/* =========================
   PHONE / TABLET
========================= */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 5%;
    }

    nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .hero {
        min-height: 70vh;

        background-position: center;

        padding: 70px 7%;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image img {
        height: 400px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-card img {
        height: 400px;
    }

    .certification {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 500px) {

    .logo img {
        width: 55px;
        height: 55px;
    }

    .logo-text span {
        font-size: .95rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .services,
    .about,
    .work,
    .certification,
    .contact {
        padding: 65px 6%;
    }

    .about-image img,
    .work-card img {
        height: 320px;
    }

    #reviewsContainer {
    grid-template-columns: 1fr;
    gap: 18px;
}

#reviewsContainer .customer-review-card {
    width: 85%;
    max-width: 320px;
    margin: 0 auto;
    padding: 20px;
}
}/* =========================
   CHAT ASSISTANT
========================= */

.chat-button {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 2000;

    border: none;
    border-radius: 50px;

    padding: 16px 22px;

    background: #f5a623;
    color: #111;

    font-size: 1rem;
    font-weight: 800;

    cursor: pointer;

    box-shadow: 0 5px 25px rgba(0,0,0,.3);
}

.chat-button:hover {
    transform: translateY(-2px);
}


.chat-window {
    display: none;

    position: fixed;
    right: 25px;
    bottom: 90px;

    width: 360px;
    height: 500px;

    background: white;

    border-radius: 12px;
    overflow: hidden;

    z-index: 2000;

    box-shadow: 0 10px 40px rgba(0,0,0,.35);

    flex-direction: column;
}


.chat-window.open {
    display: flex;
}


.chat-header {
    background: #111;
    color: white;

    padding: 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 4px solid #f5a623;
}


.chat-header div {
    display: flex;
    flex-direction: column;
}


.chat-header span {
    color: #bbb;
    font-size: .75rem;
}


.chat-header button {
    background: none;
    border: none;

    color: white;

    font-size: 1.8rem;

    cursor: pointer;
}


.chat-messages {
    flex: 1;

    padding: 18px;

    overflow-y: auto;

    background: #f5f5f5;
}


.bot-message {
    max-width: 85%;

    padding: 12px 14px;

    margin-bottom: 12px;

    background: white;

    border-radius: 12px 12px 12px 3px;

    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    overflow-wrap: anywhere;
word-break: break-word;
max-width: 100%;
}


.user-message {
    max-width: 85%;

    padding: 12px 14px;

    margin: 0 0 12px auto;

    background: #f5a623;
    color: #111;

    border-radius: 12px 12px 3px 12px;
}


.chat-input {
    display: flex;

    padding: 12px;

    background: white;

    border-top: 1px solid #ddd;
}


.chat-input input {
    flex: 1;

    padding: 12px;

    border: 1px solid #ccc;
    border-radius: 6px 0 0 6px;

    outline: none;
}


.chat-input button {
    padding: 12px 16px;

    border: none;

    background: #f5a623;

    font-weight: 800;

    cursor: pointer;

    border-radius: 0 6px 6px 0;
}


@media (max-width: 500px) {

    .chat-window {
        right: 10px;
        bottom: 80px;

        width: calc(100% - 20px);
        height: 70vh;
    }

    .chat-button {
        right: 15px;
        bottom: 15px;
    }
}.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0 20px;
}

.social-links a {
    display: inline-block;
    padding: 10px 20px;
    background: #f5c400;
    color: #222;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border-radius: 6px;
}

.social-links a:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}
/* ==========================
   CUSTOMER REVIEWS
========================== */

.reviews {
    padding: 80px 20px;
    text-align: center;
    background: #f5f5f5;
    overflow: hidden;
}

.reviews h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #1b1b1b;
}

.review-rating {
    margin: 15px auto 35px;
}

.review-rating strong {
    font-size: 28px;
    margin-right: 8px;
}

.review-rating span,
.review-stars {
    color: var(--brand-yellow);
    letter-spacing: 3px;
}

.review-rating p {
    color: #666;
    margin-top: 5px;
}

.review-slider {
    max-width: 750px;
    min-height: 260px;
    margin: auto;
    position: relative;
    perspective: 1000px;
}

.review-card {
    display: none;
    background: var(--brand-white);
    padding: 40px;
    border-radius: 18px;
    border-top: 5px solid var(--brand-blue);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.review-card.active {
    display: block;
   animation: reviewIn 1.3s cubic-bezier(.34, 1.56, .64, 1);
}

.review-stars {
    font-size: 25px;
    margin-bottom: 20px;
}

.review-text {
    font-size: 20px;
    line-height: 1.7;
    color: #333;
}

.review-name {
    margin-top: 22px;
    font-weight: bold;
    color: var(--brand-blue);
}

.review-dots {
    margin-top: 25px;
}

.review-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: #bbb;
    margin: 0 5px;
    cursor: pointer;
}

.review-dot.active {
    background: var(--brand-blue);
    transform: scale(1.25);
}
@keyframes reviewIn {
    0% {
        opacity: 0;
        transform: translateX(300px) rotateY(-90deg) scale(0.7);
    }

    60% {
        opacity: 1;
        transform: translateX(-30px) rotateY(15deg) scale(1.05);
    }

    80% {
        transform: translateX(10px) rotateY(-5deg) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0deg) scale(1);
    }
}

@media (max-width: 600px) {
    .reviews {
        padding: 55px 18px;
    }

    .reviews h2 {
        font-size: 30px;
    }

    .review-card {
        padding: 28px 22px;
    }

    .review-text {
        font-size: 17px;
    }
}
/* SCROLL REVEAL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(55px) scale(0.98);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.8,.2,1);
}

.reveal.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* =========================
   LEAVE A REVIEW
========================= */

.leave-review {
    max-width: 650px;
    margin: 55px auto 0;
    padding: 35px;
    background: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-bottom: 4px solid #f5a623;
}

.leave-review h3 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.leave-review > p {
    color: #666;
    margin-bottom: 25px;
}

#reviewForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#reviewForm input,
#reviewForm select,
#reviewForm textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font: inherit;
    box-sizing: border-box;
}

#reviewForm textarea {
    min-height: 130px;
    resize: vertical;
}

#reviewForm input:focus,
#reviewForm select:focus,
#reviewForm textarea:focus {
    outline: none;
    border-color: #f5a623;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

#reviewForm button {
    border: none;
    cursor: pointer;
    align-self: center;
    margin-top: 5px;
}

#reviewMessage {
    margin: 0;
    font-weight: 700;
}
/* SUBMITTED CUSTOMER REVIEWS */
#reviewsContainer {
    max-width: 750px;
    margin: 40px auto 0;
}

.customer-review-card {
    display: block;
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    border-top: 4px solid var(--brand-blue);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    text-align: left;
}

.customer-review-card h3 {
    margin-bottom: 10px;
}

.customer-review-card .review-stars {
    margin-bottom: 10px;
}
#reviewsContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
@media (max-width: 500px) {
    #reviewsContainer {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #reviewsContainer .customer-review-card {
        width: 85%;
        max-width: 320px;
        margin: 0 auto;
        padding: 20px;
    }
}
.google-review-button {
    display: inline-block;
    margin: 25px auto 10px;
    padding: 14px 24px;
    background: #f5a623;
    color: #111;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
}

.google-review-button:hover {
    filter: brightness(1.05);
}
.admin-page {
    min-height: 100vh;
    padding: 50px 20px;
    background: #f5f5f5;
}

.admin-header {
    max-width: 900px;
    margin: 0 auto 30px;
    text-align: center;
}

.admin-header h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

#adminReviews {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

#adminReviews .customer-review-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-top: 4px solid var(--brand-blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

#adminReviews button {
    padding: 10px 18px;
    margin-right: 10px;
    margin-top: 15px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

#adminReviews button:first-of-type {
    background: #2e8b57;
    color: white;
}

#adminReviews button:last-of-type {
    background: #c62828;
    color: white;
}
.payment-methods {
    margin: 25px auto 10px;
    text-align: center;
}

.payment-methods h3 {
    margin-bottom: 8px;
    color: white;
}

.payment-methods p {
    margin: 0; auto;
    max-width: none;
    color: #ebdb00;
    font-size: 1.05rem;
    text-align: center;
}