/* ============================================
   Royal House Cleaning Services - Main Stylesheet
   ============================================ */

/* ----- CSS Custom Properties ----- */
:root {
    --color-primary: #1B5E20;
    --color-primary-dark: #144a18;
    --color-primary-light: #2e7d32;
    --color-accent: #B71C1C;
    --color-accent-dark: #931515;
    --color-gold: #C9A84C;
    --color-white: #FFFFFF;
    --color-light: #F5F5F5;
    --color-dark: #1A1A1A;
    --color-gray: #6B7280;
    --color-gray-light: #E5E7EB;
    --color-gray-dark: #374151;
    --color-border: #E0E0E0;

    --font-heading: 'Montserrat', 'Poppins', sans-serif;
    --font-body: 'Inter', 'Open Sans', sans-serif;

    --container-width: 1200px;
    --container-padding: 20px;

    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-dark);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

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

.text-accent {
    color: var(--color-primary);
}

/* ----- Container ----- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--color-white);
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 17px;
    border-radius: var(--radius-lg);
}

/* ----- Section Shared Styles ----- */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(27, 94, 32, 0.08);
    border-radius: 20px;
}

.section-title {
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--color-gray);
    line-height: 1.6;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--color-primary-dark);
    color: var(--color-white);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.top-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar a {
    color: var(--color-white);
    opacity: 0.85;
}

.top-bar a:hover {
    opacity: 1;
    color: var(--color-white);
}

.top-bar-social a {
    display: flex;
    align-items: center;
    opacity: 0.85;
}

.top-bar-social a:hover {
    opacity: 1;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

/* Logo */
.site-branding a {
    text-decoration: none;
    color: var(--color-dark);
}

.site-logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.1;
}

.logo-text strong {
    font-weight: 800;
    color: var(--color-primary);
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.primary-menu a:hover,
.primary-menu .current-menu-item a {
    color: var(--color-primary);
    background: rgba(27, 94, 32, 0.06);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* Header CTA */
.header-cta {
    flex-shrink: 0;
}

.header-cta .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1B5E20 0%, #144a18 40%, #0d3510 100%);
    color: var(--color-white);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(201, 168, 76, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-white);
}

.hero-title .text-accent {
    color: #4CAF50;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 680px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 36px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1;
    color: #4CAF50;
}

.stat-label {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 4px;
}

/* Hero CTAs */
.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-trust {
    font-size: 14px;
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(27, 94, 32, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 94, 32, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

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

.service-card p {
    font-size: 15px;
    color: var(--color-gray);
    line-height: 1.6;
}

.services-cta {
    text-align: center;
    padding: 32px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.services-cta p {
    font-size: 17px;
    margin-bottom: 16px;
    font-weight: 500;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-intro {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-gray-dark);
    margin-bottom: 28px;
    font-weight: 500;
}

.about-story {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.story-block {
    padding: 20px;
    background: var(--color-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}

.story-block h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 16px;
}

.story-block h4 svg {
    flex-shrink: 0;
}

.story-block p {
    font-size: 15px;
    color: var(--color-gray);
}

.about-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    background: rgba(27, 94, 32, 0.06);
    padding: 8px 16px;
    border-radius: 20px;
}

.trust-badge svg {
    flex-shrink: 0;
}

/* About Visual */
.about-visual {
    position: sticky;
    top: 100px;
}

.about-stats-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 40px;
    color: var(--color-white);
    margin-bottom: 24px;
}

.stat-big {
    text-align: center;
    padding: 16px 0;
}

.stat-big + .stat-big {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-big .stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    display: block;
    color: var(--color-gold);
}

.stat-big .stat-label {
    font-size: 14px;
    opacity: 0.85;
    display: block;
    margin-top: 4px;
}

.about-clients {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--color-border);
}

.about-clients p {
    font-size: 15px;
    color: var(--color-gray-dark);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    background: var(--color-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    background: var(--color-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(183, 28, 28, 0.08);
    border-radius: var(--radius-md);
}

.feature-item h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.6;
}

/* ============================================
   SERVICE AREAS SECTION
   ============================================ */
.areas-section {
    background: var(--color-white);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.area-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--color-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.area-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.area-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(27, 94, 32, 0.08);
    border-radius: 50%;
}

.area-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.area-card p {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #1B5E20 0%, #0d3510 100%);
    color: var(--color-white);
    text-align: center;
    padding: 100px 0;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-title .text-accent {
    color: #4CAF50;
}

.cta-text {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.6;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
}

.cta-section .btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.cta-section .btn-primary:hover {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.cta-response {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0d2810;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

.footer-logo .logo-text {
    color: var(--color-white);
    font-size: 16px;
}

.footer-logo .logo-text strong {
    color: #4CAF50;
}

.footer-col p {
    line-height: 1.7;
    opacity: 0.75;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: #25D366;
    color: var(--color-white);
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 15px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: #4CAF50;
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.6;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: #4CAF50;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    font-size: 13px;
    opacity: 0.6;
    text-align: center;
}

/* ============================================
   PAGE TEMPLATE
   ============================================ */
.page-template-default .site-main,
.page-template-page-php .site-main {
    padding: 40px 0 80px;
}

.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--color-white);
}

.page-content {
    padding: 40px 0;
}

.page-content .container {
    max-width: 800px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        position: static;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    section {
        padding: 50px 0;
    }

    .section-desc {
        font-size: 15px;
    }

    /* Top Bar */
    .top-bar-content {
        justify-content: center;
        font-size: 12px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .top-bar-email {
        display: none !important;
    }

    /* Header */
    .menu-toggle {
        display: block;
    }

    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .primary-menu.active {
        display: flex;
    }

    .primary-menu a {
        padding: 12px 16px;
        font-size: 15px;
        width: 100%;
    }

    .header-cta {
        display: none;
    }

    /* Hero */
    .hero-section {
        min-height: auto;
        padding: 80px 0 50px;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 24px 20px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto;
    }

    /* Areas */
    .areas-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* CTA */
    .cta-section {
        padding: 60px 0;
    }

    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta-section .btn {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
    }

    .footer-col {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .areas-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-item {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }
.hero-content > *:nth-child(6) { animation-delay: 0.6s; }
.hero-content > *:nth-child(7) { animation-delay: 0.7s; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
