/* John Rhodes Cleaning Services Ltd
    Primary Stylesheet
*/

:root {
    --brand: #1f4fe1;
    --brand-dark: #163bb3;
    --brand-light: #f0f4ff;
    --slate: #0F172A;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --shadow-brand: 0 25px 50px -12px rgba(31, 79, 225, 0.15);
    --container-max: 1280px;
    --radius-lg: 2.5rem;
    --radius-md: 1.5rem;
}

/* Global Reset */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--slate);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

button { 
    cursor: pointer; 
    border: none; 
    background: none; 
    font-family: inherit; 
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

ul { 
    list-style: none; 
}

/* Layout Helpers */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex { display: flex; }
.grid { display: grid; gap: 2rem; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }

/* Top Info Bar */
.top-bar {
    background-color: var(--slate);
    color: var(--white);
    padding: 0.6rem 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    z-index: 60;
    position: relative;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-bar-location {
    display: none;
}

.top-bar-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    color: var(--white);
    font-size: 11px;
}

@media (min-width: 768px) {
    .top-bar-content { justify-content: space-between; }
    .top-bar-location { display: flex; align-items: center; gap: 0.6rem; }
    .top-bar { font-size: 11px; padding: 0.75rem 0; }
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-100);
    height: 6rem;
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand h2 { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.025em; text-transform: uppercase; line-height: 1; color: var(--slate); }
.nav-brand p { font-size: 10px; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: 0.2em; margin-top: 5px; }

.nav-links { display: none; align-items: center; gap: 2.5rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-link {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    position: relative;
}

.nav-link:hover { color: var(--brand); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* Mobile Menu */
.mobile-toggle {
    display: flex;
    color: var(--slate);
    font-size: 1.5rem;
}
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 100;
    display: none;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
}
.mobile-overlay.active { display: flex; }
.mobile-close { align-self: flex-end; font-size: 2.5rem; margin-bottom: 2rem; color: var(--slate); }
.mobile-link { font-size: 1.75rem; font-weight: 900; padding: 1rem 0; text-transform: uppercase; letter-spacing: -0.02em; }
.mobile-link:hover { color: var(--brand); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.15rem 2.5rem;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.btn-brand {
    background-color: var(--brand);
    color: var(--white);
    box-shadow: 0 15px 30px -5px rgba(31, 79, 225, 0.3);
}
.btn-brand:hover { background-color: var(--brand-dark); transform: translateY(-3px) scale(1.02); }

.btn-white {
    background-color: var(--white);
    color: var(--slate);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}
.btn-white:hover { background-color: var(--brand); color: var(--white); transform: translateY(-3px); }

/* Hero Section */
.hero {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    background: linear-gradient(to right, var(--slate) 35%, rgba(15, 23, 42, 0.5) 100%), 
                url('johnrhodescleaningservices.webp');
    background-size: cover;
    background-position: center 15%; 
    color: var(--white);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 5rem;
    position: relative; z-index: 10;
}

@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    background: rgba(31, 79, 225, 0.25);
    border: 1px solid rgba(31, 79, 225, 0.4);
    color: var(--brand-light);
    font-size: 11px;
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 2.5rem;
}

.hero h1 {
    font-size: clamp(2.75rem, 9vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2.5rem;
    letter-spacing: -0.03em;
}

.hero h1 span { color: var(--brand); }

.hero p {
    font-size: 1.25rem;
    color: var(--gray-400);
    max-width: 40rem;
    margin-bottom: 3.5rem;
    font-weight: 500;
}

.hero-btns { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 640px) { .hero-btns { flex-direction: row; } }

/* Hero Logo Feature */
.hero-logo-box {
    position: relative;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-ring {
    position: absolute;
    width: 110%;
    height: 110%;
    border: 2px solid rgba(31, 79, 225, 0.15);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.logo-main {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4rem;
    padding: 4rem;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5);
    transition: 0.5s;
    position: relative;
    z-index: 5;
}
.logo-main:hover { transform: scale(1.03) translateY(-10px); background: rgba(255, 255, 255, 0.08); }
.logo-main img { width: 450px; filter: drop-shadow(0 20px 40px rgba(31, 79, 225, 0.4)); }

/* Trust Cards */
.trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 5rem;
}
@media (min-width: 640px) { .trust-row { grid-template-columns: repeat(3, 1fr); } }

.trust-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(31, 79, 225, 0.3);
}
.trust-info h5 { font-size: 13px; font-weight: 900; text-transform: uppercase; margin-bottom: 2px; }
.trust-info p { font-size: 10px; color: var(--gray-400); margin-bottom: 0; }

/* Services Section */
.services { padding: 10rem 0; background: var(--white); }
.section-tag { color: var(--brand); font-weight: 900; text-transform: uppercase; letter-spacing: 0.35em; font-size: 11px; display: block; margin-bottom: 1.5rem; }
.section-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 2rem; }

.services-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 5rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-item {
    background: var(--gray-50);
    padding: 3.5rem;
    border-radius: 3rem;
    border: 1px solid var(--gray-100);
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.service-item:hover { transform: translateY(-12px); border-color: var(--brand); box-shadow: var(--shadow-brand); }

/* Special Card Style for Domestic & Commercial */
.service-item-special {
    background: var(--brand-light);
    border: 2px solid rgba(31, 79, 225, 0.2);
}
.service-item-special:hover {
    background: var(--white);
    border-color: var(--brand);
}

.icon-circle {
    width: 5.5rem;
    height: 5.5rem;
    background: var(--brand);
    color: var(--white);
    border-radius: 1.75rem;
    display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin-bottom: 3rem; box-shadow: 0 20px 30px -5px rgba(31, 79, 225, 0.4); }

.service-item h3 { font-size: 1.75rem; font-weight: 900; margin-bottom: 1.5rem; letter-spacing: -0.01em; }
.service-item p { color: var(--gray-600); font-size: 15px; margin-bottom: 2.5rem; font-weight: 500; }

.feature-list { margin-top: auto; display: grid; gap: 1rem; }
.feature-row { display: flex; align-items: center; gap: 0.85rem; font-size: 13px; font-weight: 800; color: var(--slate); opacity: 0.8; }
.feature-row i { color: var(--brand); font-size: 1rem; }

/* DUAL-AUTHORITY FEATURE SECTION */
.featured-service-row {
    grid-column: 1 / -1;
    background: var(--slate);
    color: var(--white);
    border-radius: 4rem;
    padding: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 4rem;
}
@media (min-width: 1024px) { .featured-service-row { grid-template-columns: 1fr 1fr; } }

.service-side { padding: 4rem; display: flex; flex-direction: column; justify-content: center; position: relative; }
.side-domestic { background: var(--slate); border-bottom: 1px solid rgba(255,255,255,0.05); }
@media (min-width: 1024px) { .side-domestic { border-bottom: none; border-right: 1px solid rgba(255,255,255,0.05); } }
.side-commercial { background: #111a31; }

.side-badge { 
    display: inline-block; 
    padding: 0.5rem 1.25rem; 
    background: rgba(31, 79, 225, 0.15); 
    color: var(--brand); 
    border-radius: 99px; 
    font-size: 10px; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.side-title { font-size: 2.25rem; font-weight: 900; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.side-desc { color: var(--gray-400); font-size: 1rem; margin-bottom: 2.5rem; line-height: 1.7; max-width: 28rem; }

.side-stats { display: flex; gap: 2rem; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; }
.stat-block h4 { font-size: 1.5rem; font-weight: 900; color: var(--brand); line-height: 1; }
.stat-block p { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--gray-500); margin-top: 5px; }

/* Why Us - 2 Column Layout */
.about-section { padding: 10rem 0; background: var(--gray-50); }
.about-wrap { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 4rem; 
    align-items: center; 
}
@media (min-width: 768px) { 
    .about-wrap { grid-template-columns: 1fr 1fr; gap: 6rem; } 
}

/* PREMIUM ROTATING GALLERY (SLIDER) */
.gallery-section { padding: 10rem 0; background: var(--white); overflow: hidden; }

.gallery-slider {
    position: relative;
    margin-top: 5rem;
    width: 100%;
}

.gallery-viewport {
    overflow: visible;
    width: 100%;
}

.gallery-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
}

.gallery-slide {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .gallery-slide { flex: 0 0 calc(50% - 1rem); max-width: calc(50% - 1rem); }
}

@media (min-width: 1024px) {
    .gallery-slide { flex: 0 0 calc(33.333% - 1.35rem); max-width: calc(33.333% - 1.35rem); }
}

.gallery-item {
    position: relative;
    height: 520px;
    border-radius: 2.5rem;
    overflow: hidden;
    background: var(--gray-100);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem;
    background: linear-gradient(to top, var(--slate) 0%, rgba(15, 23, 42, 0.8) 60%, transparent 100%);
    transform: translateY(0);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-category {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    background: var(--brand);
    color: white;
    border-radius: 99px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.gallery-content h4 { font-size: 1.35rem; font-weight: 900; margin-bottom: 0.5rem; color: white; letter-spacing: -0.01em; }
.gallery-content p { font-size: 0.85rem; color: var(--gray-400); display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.gallery-content p i { color: var(--brand); }

/* Slider Controls */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.slider-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--white);
    color: var(--slate);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.slider-btn:hover {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(31, 79, 225, 0.2);
}

.slider-dots {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-200);
    transition: 0.3s;
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--brand);
}

/* Areas */
.area-section { padding: 8rem 0; background: var(--gray-50); }
.area-pill-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 4rem; }
.area-pill {
    padding: 1.25rem 2.5rem;
    background: var(--white);
    border-radius: 999px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
    border: 1px solid var(--gray-200);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.area-pill:hover { background: var(--brand); color: var(--white); border-color: var(--brand); transform: scale(1.05); }
.area-pill i { color: var(--brand); font-size: 1.25rem; }
.area-pill:hover i { color: var(--white); }

/* Contact Section */
.contact-section { padding: 6rem 0; background: var(--white); }
.contact-card {
    background: var(--slate);
    border-radius: 3rem;
    padding: 2rem 1.5rem; 
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    overflow: hidden;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .contact-card { padding: 3rem; }
}
@media (min-width: 1024px) { 
    .contact-card { grid-template-columns: 1fr 1fr; padding: 4rem; align-items: center; } 
}

.contact-header h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.03em; }
.contact-header h2 span { color: var(--brand); }
.contact-header p { color: var(--gray-400); font-size: 1.1rem; margin-bottom: 2.5rem; }

.method-row { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }
.method-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--brand);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 10px 15px rgba(31, 79, 225, 0.2);
}

.method-text p:first-child { font-size: 9px; font-weight: 900; text-transform: uppercase; color: var(--brand); letter-spacing: 0.2em; margin-bottom: 2px; }
.method-text a { font-size: 1.5rem; font-weight: 800; color: white; line-height: 1.2; }
.method-text .email-link { font-size: 1rem; opacity: 0.9; word-break: break-all; }

/* PREMIUM CONTACT FORM */
.form-wrap {
    background: var(--white);
    border-radius: 2.5rem;
    padding: 2rem 1.5rem; 
    color: var(--slate);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.5);
}
@media (min-width: 768px) {
    .form-wrap { padding: 3rem; }
}

.form-grid { display: grid; gap: 1.25rem; }

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
@media (min-width: 640px) { 
    .form-row { display: grid; grid-template-columns: 1fr 1fr; } 
}

.input-group { position: relative; width: 100%; }
.input-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: 0.3s;
    pointer-events: none;
}

.form-input {
    width: 100%;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem 1.25rem 3.25rem;
    border-radius: 1.25rem;
    font-weight: 600;
    font-size: 14px;
    color: var(--slate);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--brand-light);
}
.form-input:focus + .input-icon { color: var(--brand); }

textarea.form-input { padding-top: 1.25rem; resize: none; min-height: 120px; }
.textarea-icon { top: 1.75rem; transform: none; }

.btn-submit {
    width: 100%;
    padding: 1.4rem;
    border-radius: 1.25rem;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--brand);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(31, 79, 225, 0.4);
    transition: 0.4s;
    margin-top: 1rem;
}
.btn-submit:hover { background: var(--brand-dark); transform: translateY(-2px); }

/* Footer */
footer { padding: 8rem 0; background: #080d1a; color: var(--gray-500); }

.footer-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-wrap {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 4rem;
    }
}

.footer-logo h2 { color: var(--white); font-size: 1.75rem; font-weight: 900; text-transform: uppercase; margin-bottom: 5px; }
.footer-links h4 { color: var(--white); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.3em; margin-bottom: 2.5rem; }
.footer-links li { margin-bottom: 1.25rem; font-weight: 700; }
.footer-links a:hover { color: var(--brand); }

/* Credit Link Styling */
.footer-credit-link {
    text-decoration: underline;
    transition: 0.3s;
    opacity: 0.8;
}

.footer-credit-link:hover {
    color: var(--brand);
    opacity: 1;
}

/* Floating Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(31, 79, 225, 0.4);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--brand-dark);
    transform: translateY(-5px);
}

/* Animation Utils */
.pulse { animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse-ring { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

.sparkle-anim { animation: shimmer 2s infinite linear; }
@keyframes shimmer { 0% { opacity: 0.4; } 50% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0.4; } }