/*
  Rosupport365 — Industry Standard Redesign v4
  Theme: Professional Home Service (Light/Navy/Orange)
  Inspiration: expertrorepairs.in
*/

/* ===== DESIGN TOKENS ===== */
:root {
    /* Colors */
    --clr-primary: #003061;
    /* Navy Blue */
    --clr-secondary: #0066CC;
    /* Sky Blue */
    --clr-accent: #0066CC;
    /* Vibrant Blue (Replacing Orange) */
    --clr-accent-hover: #0052A3;

    --clr-bg-white: #FFFFFF;
    --clr-bg-soft: #F4F7FA;
    --clr-text-dark: #1A202C;
    --clr-text-muted: #4A5568;
    --clr-border: #E2E8F0;

    /* Fonts */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background: var(--clr-bg-white);
    color: var(--clr-text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.25;
    color: var(--clr-primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--clr-accent);
    border-radius: var(--radius-full);
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

p {
    font-size: 1rem;
    color: var(--clr-text-muted);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-hover));
    color: #FFF;
    box-shadow: 0 4px 14px 0 rgba(0, 102, 204, 0.39);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--clr-accent-hover), var(--clr-accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.23);
}

.btn-navy {
    background: linear-gradient(135deg, var(--clr-primary), #002347);
    color: #FFF;
    box-shadow: 0 4px 14px 0 rgba(0, 48, 97, 0.3);
}

.btn-navy:hover {
    background: linear-gradient(135deg, #002347, var(--clr-primary));
    transform: translateY(-2px);
}

.btn-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #FFF;
    box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--clr-primary);
    color: #FFF;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 1.5rem;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Quick Actions Header */
.mobile-quick-actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.m-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #FFF;
    box-shadow: var(--shadow-sm);
}

.m-action-wa {
    background: #25D366;
}

.m-action-call {
    background: var(--clr-secondary);
}

/* ===== HEADER ===== */
.site-header {
    background: #FFF;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--clr-secondary);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--clr-primary);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--clr-accent);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-head {
    display: flex;
    flex-direction: column;
}

.phone-head span {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    font-weight: 600;
}

.phone-head a {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--clr-primary);
}

/* ===== HERO ===== */
.hero {
    background-color: var(--clr-bg-soft);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    color: var(--clr-primary);
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-form-card {
    background: #FFF;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--clr-accent);
}

.hero-form-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--clr-secondary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.feature-list {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.hero-trust {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 576px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}

.trust-item {
    text-align: center;
}

.trust-item i {
    font-size: 2rem;
    color: var(--clr-secondary);
    margin-bottom: 0.5rem;
}

.trust-item span {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ===== BRANDS ===== */
.brands {
    padding: 2rem 0;
    background: #FFF;
    border-bottom: 1px solid var(--clr-border);
}

.brands-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 1;
}

.brands-inner img {
    height: 40px;
    filter: grayscale(1);
    transition: var(--transition);
}

.brands-inner img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* ===== SERVICES ===== */
.section {
    padding: 5rem 0;
}

.bg-soft {
    background-color: var(--clr-bg-soft);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #FFF;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-accent);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--clr-bg-soft);
    color: var(--clr-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

.price-tag {
    font-weight: 800;
    color: var(--clr-primary);
    font-size: 1.1rem;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: 2px solid var(--clr-secondary);
    color: var(--clr-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
}

/* ===== REVIEWS ===== */
.reviews-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: #FFF;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stars {
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--clr-primary);
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 220px;
    max-height: 220px;
    background: var(--clr-bg-soft);
    position: relative;
    flex-shrink: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--clr-primary);
    color: #FFF;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: #FFF;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer p {
    color: #FFF;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: #FFF;
}

.footer a:hover {
    color: var(--clr-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #FFF;
}

/* ===== MOBILE STICKY CTA BAR ===== */
.sticky-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #003061, #0052A3);
    color: #FFF;
    z-index: 1000;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
    justify-content: center;
    align-items: center;
}

.sticky-cta-bar a {
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== MOBILE FLOATING ACTIONS (FAB) ===== */
.fab-container {
    display: none;
    position: fixed;
    right: 20px;
    z-index: 2000;
    flex-direction: column;
    gap: 10px;
}

.fab-call {
    bottom: 250px;
}

.fab-wa {
    bottom: 160px;
}

.fab-call .fab {
    background: var(--clr-secondary);
}

.fab-wa .fab {
    background: #25D366;
}

.fab {
    width: 60px;
    height: 60px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    border-radius: 50%;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.fab:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 102, 204, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
    }
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.fab-call .fab {
    animation: pulse-blue 2s infinite;
}

.fab-wa .fab {
    animation: pulse-green 2s infinite;
}

@media (max-width: 768px) {

    .fab-container,
    .sticky-cta-bar {
        display: flex;
    }

    body {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }

    /* ── Header / Nav ── */
    .site-header {
        padding: 0.6rem 0;
    }

    .header-inner {
        flex-wrap: nowrap;
        gap: 0.5rem;
        align-items: center;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .header-cta {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .mobile-quick-actions {
        display: flex;
        gap: 0.5rem;
        margin-left: auto;
    }

    .m-action-btn {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    /* ── Top Bar ── */
    .top-bar-info {
        gap: 0.5rem;
        font-size: 0.72rem;
    }

    .top-bar-info span:last-child {
        display: none;
    }

    .top-bar-social {
        display: none;
    }

    /* ── Sections ── */
    .section {
        padding: 2.5rem 0;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* ── Hero ── */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-trust {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .trust-item span {
        font-size: 0.72rem;
    }

    .trust-item i {
        font-size: 1.4rem;
    }

    /* ── Features ── */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* ── Services ── */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* ── Gallery ── */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .gallery-item {
        height: 160px;
    }

    /* ── Contact strip ── */
    .contact-strip p {
        font-size: 0.85rem !important;
        letter-spacing: 0 !important;
        line-height: 1.6;
    }

    /* ── Brands ── */
    .brands-inner {
        gap: 1rem;
        justify-content: center;
        font-size: 0.8rem;
    }

    /* ── Reviews ── */
    .reviews-scroll {
        grid-template-columns: 1fr;
    }

    /* ── Footer ── */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    /* ── Typography ── */
    h2 {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.95rem;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .hero-trust {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .logo-text {
        font-size: 1rem;
    }
}

/* Booking Notification Popup */
.booking-notification {
    position: fixed;
    bottom: 75px;
    left: 15px;
    background: #FFF;
    padding: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2500;
    transform: translateX(-150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid var(--clr-secondary);
    width: 260px;
}

.booking-notification.active {
    transform: translateX(0);
}

.bn-header {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.bn-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.bn-content {
    font-size: 0.85rem;
    line-height: 1.4;
}

.bn-content strong {
    display: block;
    color: var(--clr-primary);
    font-size: 0.95rem;
}

.bn-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 1.2rem;
    color: var(--clr-text-muted);
    cursor: pointer;
}

.bn-footer-btn {
    background: var(--clr-secondary);
    color: #FFF;
    text-align: center;
    padding: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}